Skip to content

Commit

Permalink
feat: update CDK version
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudshiftchris committed Oct 3, 2024
1 parent 2c99fc2 commit 2e84d45
Show file tree
Hide file tree
Showing 5,455 changed files with 203,076 additions and 40,140 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group = io.cloudshiftdev.kotlin-cdk-wrapper
version = 0.8.1
version = 0.9.0

kotlin.code.style=official

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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)
}
Expand Down Expand Up @@ -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)
Expand All @@ -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.
*
Expand Down Expand Up @@ -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()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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();
Expand Down Expand Up @@ -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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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();
Expand Down Expand Up @@ -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.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ public interface CfnAutoScalingReplacingUpdate {

private class Wrapper(
cdkObject: software.amazon.awscdk.CfnAutoScalingReplacingUpdate,
) : CdkObject(cdkObject), CfnAutoScalingReplacingUpdate {
) : CdkObject(cdkObject),
CfnAutoScalingReplacingUpdate {
/**
*
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ public interface CfnAutoScalingScheduledAction {

private class Wrapper(
cdkObject: software.amazon.awscdk.CfnAutoScalingScheduledAction,
) : CdkObject(cdkObject), CfnAutoScalingScheduledAction {
) : CdkObject(cdkObject),
CfnAutoScalingScheduledAction {
/**
*
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading

0 comments on commit 2e84d45

Please sign in to comment.