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 Details

    • create

      @Stability(Stable) public static CfnInfrastructureConfiguration.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      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
    • name

      @Stability(Stable) public CfnInfrastructureConfiguration.Builder name(String name)
      The name of the infrastructure configuration.

      Parameters:
      name - The name of the infrastructure configuration. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public CfnInfrastructureConfiguration.Builder description(String description)
      The description of the infrastructure configuration.

      Parameters:
      description - The description of the infrastructure configuration. This parameter is required.
      Returns:
      this
    • 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
    • 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
    • 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
    • keyPair

      @Stability(Stable) public CfnInfrastructureConfiguration.Builder keyPair(String 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
    • logging

      @Stability(Stable) public CfnInfrastructureConfiguration.Builder logging(IResolvable 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
    • 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
    • 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
    • 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
    • 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
    • snsTopicArn

      @Stability(Stable) public CfnInfrastructureConfiguration.Builder snsTopicArn(String 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
    • subnetId

      @Stability(Stable) public CfnInfrastructureConfiguration.Builder subnetId(String subnetId)
      The subnet ID of the infrastructure configuration.

      Parameters:
      subnetId - The subnet ID of the infrastructure configuration. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnInfrastructureConfiguration.Builder tags(Map<String,String> tags)
      The tags of the infrastructure configuration.

      Parameters:
      tags - The tags of the infrastructure configuration. This parameter is required.
      Returns:
      this
    • 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
    • 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
    • build

      @Stability(Stable) public CfnInfrastructureConfiguration build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnInfrastructureConfiguration>
      Returns:
      a newly built instance of CfnInfrastructureConfiguration.