Class CfnInfrastructureConfigurationProps.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.CfnInfrastructureConfigurationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInfrastructureConfigurationProps>
- Enclosing interface:
- CfnInfrastructureConfigurationProps
@Stability(Stable)
public static final class CfnInfrastructureConfigurationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInfrastructureConfigurationProps>
A builder for
CfnInfrastructureConfigurationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnInfrastructureConfigurationProps.getDescription()instanceMetadataOptions(IResolvable instanceMetadataOptions) Sets the value ofCfnInfrastructureConfigurationProps.getInstanceMetadataOptions()instanceMetadataOptions(CfnInfrastructureConfiguration.InstanceMetadataOptionsProperty instanceMetadataOptions) Sets the value ofCfnInfrastructureConfigurationProps.getInstanceMetadataOptions()instanceProfileName(String instanceProfileName) Sets the value ofCfnInfrastructureConfigurationProps.getInstanceProfileName()instanceTypes(List<String> instanceTypes) Sets the value ofCfnInfrastructureConfigurationProps.getInstanceTypes()Sets the value ofCfnInfrastructureConfigurationProps.getKeyPair()logging(IResolvable logging) Sets the value ofCfnInfrastructureConfigurationProps.getLogging()Sets the value ofCfnInfrastructureConfigurationProps.getLogging()Sets the value ofCfnInfrastructureConfigurationProps.getName()resourceTags(Map<String, String> resourceTags) Sets the value ofCfnInfrastructureConfigurationProps.getResourceTags()resourceTags(IResolvable resourceTags) Sets the value ofCfnInfrastructureConfigurationProps.getResourceTags()securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnInfrastructureConfigurationProps.getSecurityGroupIds()snsTopicArn(String snsTopicArn) Sets the value ofCfnInfrastructureConfigurationProps.getSnsTopicArn()Sets the value ofCfnInfrastructureConfigurationProps.getSubnetId()Sets the value ofCfnInfrastructureConfigurationProps.getTags()terminateInstanceOnFailure(Boolean terminateInstanceOnFailure) Sets the value ofCfnInfrastructureConfigurationProps.getTerminateInstanceOnFailure()terminateInstanceOnFailure(IResolvable terminateInstanceOnFailure) Sets the value ofCfnInfrastructureConfigurationProps.getTerminateInstanceOnFailure()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceProfileName
@Stability(Stable) public CfnInfrastructureConfigurationProps.Builder instanceProfileName(String instanceProfileName) Sets the value ofCfnInfrastructureConfigurationProps.getInstanceProfileName()- Parameters:
instanceProfileName- The instance profile of the infrastructure configuration. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnInfrastructureConfigurationProps.getName()- Parameters:
name- The name of the infrastructure configuration. This parameter is required.- Returns:
this
-
description
@Stability(Stable) public CfnInfrastructureConfigurationProps.Builder description(String description) Sets the value ofCfnInfrastructureConfigurationProps.getDescription()- Parameters:
description- The description of the infrastructure configuration.- Returns:
this
-
instanceMetadataOptions
@Stability(Stable) public CfnInfrastructureConfigurationProps.Builder instanceMetadataOptions(IResolvable instanceMetadataOptions) Sets the value ofCfnInfrastructureConfigurationProps.getInstanceMetadataOptions()- Parameters:
instanceMetadataOptions- The instance metadata option settings for the infrastructure configuration.- Returns:
this
-
instanceMetadataOptions
@Stability(Stable) public CfnInfrastructureConfigurationProps.Builder instanceMetadataOptions(CfnInfrastructureConfiguration.InstanceMetadataOptionsProperty instanceMetadataOptions) Sets the value ofCfnInfrastructureConfigurationProps.getInstanceMetadataOptions()- Parameters:
instanceMetadataOptions- The instance metadata option settings for the infrastructure configuration.- Returns:
this
-
instanceTypes
@Stability(Stable) public CfnInfrastructureConfigurationProps.Builder instanceTypes(List<String> instanceTypes) Sets the value ofCfnInfrastructureConfigurationProps.getInstanceTypes()- Parameters:
instanceTypes- The instance types of the infrastructure configuration.- Returns:
this
-
keyPair
Sets the value ofCfnInfrastructureConfigurationProps.getKeyPair()- Parameters:
keyPair- The Amazon EC2 key pair of the infrastructure configuration.- Returns:
this
-
logging
Sets the value ofCfnInfrastructureConfigurationProps.getLogging()- Parameters:
logging- The logging configuration defines where Image Builder uploads your logs.- Returns:
this
-
logging
@Stability(Stable) public CfnInfrastructureConfigurationProps.Builder logging(CfnInfrastructureConfiguration.LoggingProperty logging) Sets the value ofCfnInfrastructureConfigurationProps.getLogging()- Parameters:
logging- The logging configuration defines where Image Builder uploads your logs.- Returns:
this
-
resourceTags
@Stability(Stable) public CfnInfrastructureConfigurationProps.Builder resourceTags(IResolvable resourceTags) Sets the value ofCfnInfrastructureConfigurationProps.getResourceTags()- Parameters:
resourceTags- The tags attached to the resource created by Image Builder.- Returns:
this
-
resourceTags
@Stability(Stable) public CfnInfrastructureConfigurationProps.Builder resourceTags(Map<String, String> resourceTags) Sets the value ofCfnInfrastructureConfigurationProps.getResourceTags()- Parameters:
resourceTags- The tags attached to the resource created by Image Builder.- Returns:
this
-
securityGroupIds
@Stability(Stable) public CfnInfrastructureConfigurationProps.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnInfrastructureConfigurationProps.getSecurityGroupIds()- Parameters:
securityGroupIds- The security group IDs of the infrastructure configuration.- Returns:
this
-
snsTopicArn
@Stability(Stable) public CfnInfrastructureConfigurationProps.Builder snsTopicArn(String snsTopicArn) Sets the value ofCfnInfrastructureConfigurationProps.getSnsTopicArn()- Parameters:
snsTopicArn- The Amazon Resource Name (ARN) of the SNS topic for the infrastructure configuration.- Returns:
this
-
subnetId
Sets the value ofCfnInfrastructureConfigurationProps.getSubnetId()- Parameters:
subnetId- The subnet ID of the infrastructure configuration.- Returns:
this
-
tags
Sets the value ofCfnInfrastructureConfigurationProps.getTags()- Parameters:
tags- The tags of the infrastructure configuration.- Returns:
this
-
terminateInstanceOnFailure
@Stability(Stable) public CfnInfrastructureConfigurationProps.Builder terminateInstanceOnFailure(Boolean terminateInstanceOnFailure) Sets the value ofCfnInfrastructureConfigurationProps.getTerminateInstanceOnFailure()- Parameters:
terminateInstanceOnFailure- The terminate instance on failure configuration of the infrastructure configuration.- Returns:
this
-
terminateInstanceOnFailure
@Stability(Stable) public CfnInfrastructureConfigurationProps.Builder terminateInstanceOnFailure(IResolvable terminateInstanceOnFailure) Sets the value ofCfnInfrastructureConfigurationProps.getTerminateInstanceOnFailure()- Parameters:
terminateInstanceOnFailure- The terminate instance on failure configuration of the infrastructure configuration.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInfrastructureConfigurationProps>- Returns:
- a new instance of
CfnInfrastructureConfigurationProps - Throws:
NullPointerException- if any required attribute was not provided
-