![JAR search and dependency download from the Maven repository](/logo.png)
io.cloudshiftdev.awscdk.services.codepipeline.actions.StackSetDeploymentModel.kt Maven / Gradle / Ivy
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.codepipeline.actions
import io.cloudshiftdev.awscdk.common.CdkObject
import io.cloudshiftdev.awscdk.common.CdkObjectWrappers
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Determines how IAM roles are created and managed.
*
* Example:
*
* ```
* Pipeline pipeline;
* Artifact sourceOutput;
* pipeline.addStage(StageOptions.builder()
* .stageName("DeployStackSets")
* .actions(List.of(
* // First, update the StackSet itself with the newest template
* CloudFormationDeployStackSetAction.Builder.create()
* .actionName("UpdateStackSet")
* .runOrder(1)
* .stackSetName("MyStackSet")
* .template(StackSetTemplate.fromArtifactPath(sourceOutput.atPath("template.yaml")))
* // Change this to 'StackSetDeploymentModel.organizations()' if you want to deploy to OUs
* .deploymentModel(StackSetDeploymentModel.selfManaged())
* // This deploys to a set of accounts
* .stackInstances(StackInstances.inAccounts(List.of("111111111111"), List.of("us-east-1",
* "eu-west-1")))
* .build(),
* // Afterwards, update/create additional instances in other accounts
* CloudFormationDeployStackInstancesAction.Builder.create()
* .actionName("AddMoreInstances")
* .runOrder(2)
* .stackSetName("MyStackSet")
* .stackInstances(StackInstances.inAccounts(List.of("222222222222", "333333333333"),
* List.of("us-east-1", "eu-west-1")))
* .build()))
* .build());
* ```
*/
public abstract class StackSetDeploymentModel(
cdkObject: software.amazon.awscdk.services.codepipeline.actions.StackSetDeploymentModel,
) : CdkObject(cdkObject) {
private class Wrapper(
cdkObject: software.amazon.awscdk.services.codepipeline.actions.StackSetDeploymentModel,
) : StackSetDeploymentModel(cdkObject)
public companion object {
public fun organizations(): StackSetDeploymentModel =
software.amazon.awscdk.services.codepipeline.actions.StackSetDeploymentModel.organizations().let(StackSetDeploymentModel::wrap)
public fun organizations(props: OrganizationsDeploymentProps): StackSetDeploymentModel =
software.amazon.awscdk.services.codepipeline.actions.StackSetDeploymentModel.organizations(props.let(OrganizationsDeploymentProps.Companion::unwrap)).let(StackSetDeploymentModel::wrap)
@kotlin.Suppress("INAPPLICABLE_JVM_NAME")
@JvmName("e105658e12856cc49c5140211e41158380b040deac477a50924f8cf64ea4dd3c")
public fun organizations(props: OrganizationsDeploymentProps.Builder.() -> Unit):
StackSetDeploymentModel = organizations(OrganizationsDeploymentProps(props))
public fun selfManaged(): StackSetDeploymentModel =
software.amazon.awscdk.services.codepipeline.actions.StackSetDeploymentModel.selfManaged().let(StackSetDeploymentModel::wrap)
public fun selfManaged(props: SelfManagedDeploymentProps): StackSetDeploymentModel =
software.amazon.awscdk.services.codepipeline.actions.StackSetDeploymentModel.selfManaged(props.let(SelfManagedDeploymentProps.Companion::unwrap)).let(StackSetDeploymentModel::wrap)
@kotlin.Suppress("INAPPLICABLE_JVM_NAME")
@JvmName("70b9e9c45bd8d5aa4c4dd5196158ab5f3f2068a91a1e44c4fbf43ff439475cdc")
public fun selfManaged(props: SelfManagedDeploymentProps.Builder.() -> Unit):
StackSetDeploymentModel = selfManaged(SelfManagedDeploymentProps(props))
internal
fun wrap(cdkObject: software.amazon.awscdk.services.codepipeline.actions.StackSetDeploymentModel):
StackSetDeploymentModel = CdkObjectWrappers.wrap(cdkObject) as? StackSetDeploymentModel ?:
Wrapper(cdkObject)
internal fun unwrap(wrapped: StackSetDeploymentModel):
software.amazon.awscdk.services.codepipeline.actions.StackSetDeploymentModel = (wrapped as
CdkObject).cdkObject as
software.amazon.awscdk.services.codepipeline.actions.StackSetDeploymentModel
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy