Interface ICfnInfrastructureConfigurationMixinProps
Properties for CfnInfrastructureConfigurationPropsMixin.
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.ImageBuilder
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public interface ICfnInfrastructureConfigurationMixinProps
Syntax (vb)
Public Interface ICfnInfrastructureConfigurationMixinProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.ImageBuilder;
var cfnInfrastructureConfigurationMixinProps = new CfnInfrastructureConfigurationMixinProps {
Description = "description",
InstanceMetadataOptions = new InstanceMetadataOptionsProperty {
HttpPutResponseHopLimit = 123,
HttpTokens = "httpTokens"
},
InstanceProfileName = "instanceProfileName",
InstanceTypes = new [] { "instanceTypes" },
KeyPair = "keyPair",
Logging = new LoggingProperty {
S3Logs = new S3LogsProperty {
S3BucketName = "s3BucketName",
S3KeyPrefix = "s3KeyPrefix"
}
},
Name = "name",
Placement = new PlacementProperty {
AvailabilityZone = "availabilityZone",
HostId = "hostId",
HostResourceGroupArn = "hostResourceGroupArn",
Tenancy = "tenancy"
},
ResourceTags = new Dictionary<string, string> {
{ "resourceTagsKey", "resourceTags" }
},
SecurityGroupIds = new [] { "securityGroupIds" },
SnsTopicArn = "snsTopicArn",
SubnetId = "subnetId",
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
},
TerminateInstanceOnFailure = false
};
Synopsis
Properties
| Description | The description of the infrastructure configuration. |
| InstanceMetadataOptions | The instance metadata options that you can set for the HTTP requests that pipeline builds use to launch EC2 build and test instances. |
| InstanceProfileName | The instance profile to associate with the instance used to customize your Amazon EC2 AMI. |
| InstanceTypes | The instance types of the infrastructure configuration. |
| KeyPair | The key pair of the infrastructure configuration. |
| Logging | The logging configuration of the infrastructure configuration. |
| Name | The name of the infrastructure configuration. |
| Placement | The instance placement settings that define where the instances that are launched from your image will run. |
| ResourceTags | The metadata tags to assign to the Amazon EC2 instance that Image Builder launches during the build process. |
| SecurityGroupIds | The security group IDs to associate with the instance used to customize your Amazon EC2 AMI. |
| SnsTopicArn | The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications. |
| SubnetId | The subnet ID in which to place the instance used to customize your Amazon EC2 AMI. |
| Tags | The metadata tags to assign to the infrastructure configuration resource that Image Builder creates as output. |
| TerminateInstanceOnFailure | The terminate instance on failure setting of the infrastructure configuration. |
Properties
Description
The description of the infrastructure configuration.
string? Description { get; }
Property Value
Remarks
InstanceMetadataOptions
The instance metadata options that you can set for the HTTP requests that pipeline builds use to launch EC2 build and test instances.
object? InstanceMetadataOptions { get; }
Property Value
Remarks
Type union: either IResolvable or CfnInfrastructureConfigurationPropsMixin.IInstanceMetadataOptionsProperty
InstanceProfileName
The instance profile to associate with the instance used to customize your Amazon EC2 AMI.
object? InstanceProfileName { get; }
Property Value
Remarks
InstanceTypes
The instance types of the infrastructure configuration.
string[]? InstanceTypes { get; }
Property Value
string[]
Remarks
You can specify one or more instance types to use for this build. The service will pick one of these instance types based on availability.
KeyPair
The key pair of the infrastructure configuration.
string? KeyPair { get; }
Property Value
Remarks
You can use this to log on to and debug the instance used to create your image.
Logging
The logging configuration of the infrastructure configuration.
object? Logging { get; }
Property Value
Remarks
Name
The name of the infrastructure configuration.
string? Name { get; }
Property Value
Remarks
Placement
The instance placement settings that define where the instances that are launched from your image will run.
object? Placement { get; }
Property Value
Remarks
ResourceTags
The metadata tags to assign to the Amazon EC2 instance that Image Builder launches during the build process.
object? ResourceTags { get; }
Property Value
Remarks
Tags are formatted as key value pairs.
Type union: either IResolvable or Dictionary<string, string>
SecurityGroupIds
The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.
string[]? SecurityGroupIds { get; }
Property Value
string[]
Remarks
SnsTopicArn
The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.
object? SnsTopicArn { get; }
Property Value
Remarks
EC2 Image Builder is unable to send notifications to SNS topics that are encrypted using keys from other accounts. The key that is used to encrypt the SNS topic must reside in the account that the Image Builder service runs under.
Type union: either string or ITopicRef
SubnetId
The subnet ID in which to place the instance used to customize your Amazon EC2 AMI.
string? SubnetId { get; }
Property Value
Remarks
Tags
The metadata tags to assign to the infrastructure configuration resource that Image Builder creates as output.
IDictionary<string, string>? Tags { get; }
Property Value
Remarks
Tags are formatted as key value pairs.
TerminateInstanceOnFailure
The terminate instance on failure setting of the infrastructure configuration.
object? TerminateInstanceOnFailure { get; }
Property Value
Remarks
Set to false if you want Image Builder to retain the instance used to configure your AMI if the build or test phase of your workflow fails.
Type union: either bool or IResolvable