Class CfnDistributionConfiguration.LaunchPermissionConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.CfnDistributionConfiguration.LaunchPermissionConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDistributionConfiguration.LaunchPermissionConfigurationProperty>
- Enclosing interface:
CfnDistributionConfiguration.LaunchPermissionConfigurationProperty
@Stability(Stable)
public static final class CfnDistributionConfiguration.LaunchPermissionConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDistributionConfiguration.LaunchPermissionConfigurationProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.organizationalUnitArns
(List<String> organizationalUnitArns) organizationArns
(List<String> organizationArns) userGroups
(List<String> userGroups)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
organizationalUnitArns
@Stability(Stable) public CfnDistributionConfiguration.LaunchPermissionConfigurationProperty.Builder organizationalUnitArns(List<String> organizationalUnitArns) Sets the value ofCfnDistributionConfiguration.LaunchPermissionConfigurationProperty.getOrganizationalUnitArns()
- Parameters:
organizationalUnitArns
- The ARN for an AWS Organizations organizational unit (OU) that you want to share your AMI with. For more information about key concepts for AWS Organizations , see AWS Organizations terminology and concepts .- Returns:
this
-
organizationArns
@Stability(Stable) public CfnDistributionConfiguration.LaunchPermissionConfigurationProperty.Builder organizationArns(List<String> organizationArns) Sets the value ofCfnDistributionConfiguration.LaunchPermissionConfigurationProperty.getOrganizationArns()
- Parameters:
organizationArns
- The ARN for an AWS Organization that you want to share your AMI with. For more information, see What is AWS Organizations ? .- Returns:
this
-
userGroups
@Stability(Stable) public CfnDistributionConfiguration.LaunchPermissionConfigurationProperty.Builder userGroups(List<String> userGroups) Sets the value ofCfnDistributionConfiguration.LaunchPermissionConfigurationProperty.getUserGroups()
- Parameters:
userGroups
- The name of the group.- Returns:
this
-
userIds
@Stability(Stable) public CfnDistributionConfiguration.LaunchPermissionConfigurationProperty.Builder userIds(List<String> userIds) - Parameters:
userIds
- The AWS account ID.- Returns:
this
-
build
@Stability(Stable) public CfnDistributionConfiguration.LaunchPermissionConfigurationProperty build()Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDistributionConfiguration.LaunchPermissionConfigurationProperty>
- Returns:
- a new instance of
CfnDistributionConfiguration.LaunchPermissionConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-