Interface CloudFormationDeployStackSetActionProps

All Superinterfaces:
CommonActionProps, CommonAwsActionProps, CommonCloudFormationStackSetOptions, software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CloudFormationDeployStackSetActionProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:48.376Z") @Stability(Stable) public interface CloudFormationDeployStackSetActionProps extends software.amazon.jsii.JsiiSerializable, CommonAwsActionProps, CommonCloudFormationStackSetOptions
Properties for the CloudFormationDeployStackSetAction.

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());
 
  • Method Details

    • getStackSetName

      @Stability(Stable) @NotNull String getStackSetName()
      The name to associate with the stack set.

      This name must be unique in the Region where it is created.

      The name may only contain alphanumeric and hyphen characters. It must begin with an alphabetic character and be 128 characters or fewer.

    • getTemplate

      @Stability(Stable) @NotNull StackSetTemplate getTemplate()
      The location of the template that defines the resources in the stack set.

      This must point to a template with a maximum size of 460,800 bytes.

      Enter the path to the source artifact name and template file.

    • getCfnCapabilities

      @Stability(Stable) @Nullable default List<CfnCapabilities> getCfnCapabilities()
      Indicates that the template can create and update resources, depending on the types of resources in the template.

      You must use this property if you have IAM resources in your stack template or you create a stack directly from a template containing macros.

      Default: - the StackSet will have no IAM capabilities

    • getDeploymentModel

      @Stability(Stable) @Nullable default StackSetDeploymentModel getDeploymentModel()
      Determines how IAM roles are created and managed.

      The choices are:

      • Self Managed: you create IAM roles with the required permissions in the administration account and all target accounts.
      • Service Managed: only available if the account and target accounts are part of an AWS Organization. The necessary roles will be created for you.

      If you want to deploy to all accounts that are a member of AWS Organizations Organizational Units (OUs), you must select Service Managed permissions.

      Note: This parameter can only be changed when no stack instances exist in the stack set.

      Default: StackSetDeploymentModel.selfManaged()

    • getDescription

      @Stability(Stable) @Nullable default String getDescription()
      A description of the stack set.

      You can use this to describe the stack set’s purpose or other relevant information.

      Default: - no description

    • getParameters

      @Stability(Stable) @Nullable default StackSetParameters getParameters()
      The template parameters for your stack set.

      These parameters are shared between all instances of the stack set.

      Default: - no parameters will be used

    • getStackInstances

      @Stability(Stable) @Nullable default StackInstances getStackInstances()
      Specify where to create or update Stack Instances.

      You can specify either AWS Accounts Ids or AWS Organizations Organizational Units.

      Default: - don't create or update any Stack Instances

    • builder

      @Stability(Stable) static CloudFormationDeployStackSetActionProps.Builder builder()
      Returns:
      a CloudFormationDeployStackSetActionProps.Builder of CloudFormationDeployStackSetActionProps