Class CfnInfrastructureConfiguration.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.CfnInfrastructureConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInfrastructureConfiguration>
- Enclosing class:
CfnInfrastructureConfiguration
@Stability(Stable)
public static final class CfnInfrastructureConfiguration.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInfrastructureConfiguration>
A fluent builder for
CfnInfrastructureConfiguration
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
description
(String description) The description of the infrastructure configuration.instanceMetadataOptions
(IResolvable instanceMetadataOptions) The instance metadata option settings for the infrastructure configuration.instanceMetadataOptions
(CfnInfrastructureConfiguration.InstanceMetadataOptionsProperty instanceMetadataOptions) The instance metadata option settings for the infrastructure configuration.instanceProfileName
(String instanceProfileName) The instance profile of the infrastructure configuration.instanceTypes
(List<String> instanceTypes) The instance types of the infrastructure configuration.The Amazon EC2 key pair of the infrastructure configuration.logging
(IResolvable logging) The logging configuration defines where Image Builder uploads your logs.The logging configuration defines where Image Builder uploads your logs.The name of the infrastructure configuration.placement
(IResolvable placement) The instance placement settings that define where the instances that are launched from your image will run.The instance placement settings that define where the instances that are launched from your image will run.resourceTags
(Map<String, String> resourceTags) The tags attached to the resource created by Image Builder.resourceTags
(IResolvable resourceTags) The tags attached to the resource created by Image Builder.securityGroupIds
(List<String> securityGroupIds) The security group IDs of the infrastructure configuration.snsTopicArn
(String snsTopicArn) The Amazon Resource Name (ARN) of the SNS topic for the infrastructure configuration.The subnet ID of the infrastructure configuration.The tags of the infrastructure configuration.terminateInstanceOnFailure
(Boolean terminateInstanceOnFailure) The terminate instance on failure configuration of the infrastructure configuration.terminateInstanceOnFailure
(IResolvable terminateInstanceOnFailure) The terminate instance on failure configuration of the infrastructure configuration.
-
Method Details
-
create
@Stability(Stable) public static CfnInfrastructureConfiguration.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnInfrastructureConfiguration.Builder
.
-
instanceProfileName
@Stability(Stable) public CfnInfrastructureConfiguration.Builder instanceProfileName(String instanceProfileName) The instance profile of the infrastructure configuration.- Parameters:
instanceProfileName
- The instance profile of the infrastructure configuration. This parameter is required.- Returns:
this
- See Also:
-
name
The name of the infrastructure configuration.- Parameters:
name
- The name of the infrastructure configuration. This parameter is required.- Returns:
this
- See Also:
-
description
The description of the infrastructure configuration.- Parameters:
description
- The description of the infrastructure configuration. This parameter is required.- Returns:
this
- See Also:
-
instanceMetadataOptions
@Stability(Stable) public CfnInfrastructureConfiguration.Builder instanceMetadataOptions(IResolvable instanceMetadataOptions) The instance metadata option settings for the infrastructure configuration.- Parameters:
instanceMetadataOptions
- The instance metadata option settings for the infrastructure configuration. This parameter is required.- Returns:
this
- See Also:
-
instanceMetadataOptions
@Stability(Stable) public CfnInfrastructureConfiguration.Builder instanceMetadataOptions(CfnInfrastructureConfiguration.InstanceMetadataOptionsProperty instanceMetadataOptions) The instance metadata option settings for the infrastructure configuration.- Parameters:
instanceMetadataOptions
- The instance metadata option settings for the infrastructure configuration. This parameter is required.- Returns:
this
- See Also:
-
instanceTypes
@Stability(Stable) public CfnInfrastructureConfiguration.Builder instanceTypes(List<String> instanceTypes) The instance types of the infrastructure configuration.- Parameters:
instanceTypes
- The instance types of the infrastructure configuration. This parameter is required.- Returns:
this
- See Also:
-
keyPair
The Amazon EC2 key pair of the infrastructure configuration.- Parameters:
keyPair
- The Amazon EC2 key pair of the infrastructure configuration. This parameter is required.- Returns:
this
- See Also:
-
logging
The logging configuration defines where Image Builder uploads your logs.- Parameters:
logging
- The logging configuration defines where Image Builder uploads your logs. This parameter is required.- Returns:
this
- See Also:
-
logging
@Stability(Stable) public CfnInfrastructureConfiguration.Builder logging(CfnInfrastructureConfiguration.LoggingProperty logging) The logging configuration defines where Image Builder uploads your logs.- Parameters:
logging
- The logging configuration defines where Image Builder uploads your logs. This parameter is required.- Returns:
this
- See Also:
-
placement
The instance placement settings that define where the instances that are launched from your image will run.- Parameters:
placement
- The instance placement settings that define where the instances that are launched from your image will run. This parameter is required.- Returns:
this
- See Also:
-
placement
@Stability(Stable) public CfnInfrastructureConfiguration.Builder placement(CfnInfrastructureConfiguration.PlacementProperty placement) The instance placement settings that define where the instances that are launched from your image will run.- Parameters:
placement
- The instance placement settings that define where the instances that are launched from your image will run. This parameter is required.- Returns:
this
- See Also:
-
resourceTags
@Stability(Stable) public CfnInfrastructureConfiguration.Builder resourceTags(IResolvable resourceTags) The tags attached to the resource created by Image Builder.- Parameters:
resourceTags
- The tags attached to the resource created by Image Builder. This parameter is required.- Returns:
this
- See Also:
-
resourceTags
@Stability(Stable) public CfnInfrastructureConfiguration.Builder resourceTags(Map<String, String> resourceTags) The tags attached to the resource created by Image Builder.- Parameters:
resourceTags
- The tags attached to the resource created by Image Builder. This parameter is required.- Returns:
this
- See Also:
-
securityGroupIds
@Stability(Stable) public CfnInfrastructureConfiguration.Builder securityGroupIds(List<String> securityGroupIds) The security group IDs of the infrastructure configuration.- Parameters:
securityGroupIds
- The security group IDs of the infrastructure configuration. This parameter is required.- Returns:
this
- See Also:
-
snsTopicArn
The Amazon Resource Name (ARN) of the SNS topic for the infrastructure configuration.- Parameters:
snsTopicArn
- The Amazon Resource Name (ARN) of the SNS topic for the infrastructure configuration. This parameter is required.- Returns:
this
- See Also:
-
subnetId
The subnet ID of the infrastructure configuration.- Parameters:
subnetId
- The subnet ID of the infrastructure configuration. This parameter is required.- Returns:
this
- See Also:
-
tags
The tags of the infrastructure configuration.- Parameters:
tags
- The tags of the infrastructure configuration. This parameter is required.- Returns:
this
- See Also:
-
terminateInstanceOnFailure
@Stability(Stable) public CfnInfrastructureConfiguration.Builder terminateInstanceOnFailure(Boolean terminateInstanceOnFailure) The terminate instance on failure configuration of the infrastructure configuration.- Parameters:
terminateInstanceOnFailure
- The terminate instance on failure configuration of the infrastructure configuration. This parameter is required.- Returns:
this
- See Also:
-
terminateInstanceOnFailure
@Stability(Stable) public CfnInfrastructureConfiguration.Builder terminateInstanceOnFailure(IResolvable terminateInstanceOnFailure) The terminate instance on failure configuration of the infrastructure configuration.- Parameters:
terminateInstanceOnFailure
- The terminate instance on failure configuration of the infrastructure configuration. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnInfrastructureConfiguration>
- Returns:
- a newly built instance of
CfnInfrastructureConfiguration
.
-