Class SelfManagedDeploymentProps.Builder

java.lang.Object
software.amazon.awscdk.services.codepipeline.actions.SelfManagedDeploymentProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<SelfManagedDeploymentProps>
Enclosing interface:
SelfManagedDeploymentProps

@Stability(Stable) public static final class SelfManagedDeploymentProps.Builder extends Object implements software.amazon.jsii.Builder<SelfManagedDeploymentProps>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • administrationRole

      @Stability(Stable) public SelfManagedDeploymentProps.Builder administrationRole(IRole administrationRole)
      Parameters:
      administrationRole - The IAM role in the administrator account used to assume execution roles in the target accounts. You must create this role before using the StackSet action.

      The role needs to be assumable by CloudFormation, and it needs to be able to sts:AssumeRole each of the execution roles (whose names are specified in the executionRoleName parameter) in each of the target accounts.

      If you do not specify the role, we assume you have created a role named AWSCloudFormationStackSetAdministrationRole.

      Returns:
      this
    • executionRoleName

      @Stability(Stable) public SelfManagedDeploymentProps.Builder executionRoleName(String executionRoleName)
      Parameters:
      executionRoleName - The name of the IAM role in the target accounts used to perform stack set operations. You must create these roles in each of the target accounts before using the StackSet action.

      The roles need to be assumable by by the administrationRole, and need to have the permissions necessary to successfully create and modify the resources that the subsequent CloudFormation deployments need. Administrator permissions would be commonly granted to these, but if you can scope the permissions down frome there you would be safer.

      Returns:
      this
    • build

      @Stability(Stable) public SelfManagedDeploymentProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<SelfManagedDeploymentProps>
      Returns:
      a new instance of SelfManagedDeploymentProps
      Throws:
      NullPointerException - if any required attribute was not provided