Class CfnInfrastructureConfigurationPropsMixin
Creates a new infrastructure configuration.
Implements
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.ImageBuilder.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnInfrastructureConfigurationPropsMixin : Mixin, IMixin
Syntax (vb)
Public Class CfnInfrastructureConfigurationPropsMixin Inherits Mixin Implements IMixin
Remarks
An infrastructure configuration defines the environment in which your image will be built and tested.
CloudformationResource: AWS::ImageBuilder::InfrastructureConfiguration
Mixin: true
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.Mixins.Preview.Mixins;
using Amazon.CDK.Mixins.Preview.AWS.ImageBuilder.Mixins;
var cfnInfrastructureConfigurationPropsMixin = new CfnInfrastructureConfigurationPropsMixin(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
}, new CfnPropertyMixinOptions {
Strategy = PropertyMergeStrategy.OVERRIDE
});
Synopsis
Constructors
| CfnInfrastructureConfigurationPropsMixin(ICfnInfrastructureConfigurationMixinProps, ICfnPropertyMixinOptions?) | Create a mixin to apply properties to |
Properties
| CFN_PROPERTY_KEYS | Creates a new infrastructure configuration. |
| Props | Creates a new infrastructure configuration. |
| Strategy | Creates a new infrastructure configuration. |
Methods
| ApplyTo(IConstruct) | Apply the mixin properties to the construct. |
| Supports(IConstruct) | Check if this mixin supports the given construct. |
Constructors
CfnInfrastructureConfigurationPropsMixin(ICfnInfrastructureConfigurationMixinProps, ICfnPropertyMixinOptions?)
Create a mixin to apply properties to AWS::ImageBuilder::InfrastructureConfiguration.
public CfnInfrastructureConfigurationPropsMixin(ICfnInfrastructureConfigurationMixinProps props, ICfnPropertyMixinOptions? options = null)
Parameters
- props ICfnInfrastructureConfigurationMixinProps
L1 properties to apply.
- options ICfnPropertyMixinOptions
Mixin options.
Remarks
An infrastructure configuration defines the environment in which your image will be built and tested.
CloudformationResource: AWS::ImageBuilder::InfrastructureConfiguration
Mixin: true
ExampleMetadata: fixture=_generated
Properties
CFN_PROPERTY_KEYS
Creates a new infrastructure configuration.
protected static string[] CFN_PROPERTY_KEYS { get; }
Property Value
string[]
Remarks
An infrastructure configuration defines the environment in which your image will be built and tested.
CloudformationResource: AWS::ImageBuilder::InfrastructureConfiguration
Mixin: true
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.Mixins.Preview.Mixins;
using Amazon.CDK.Mixins.Preview.AWS.ImageBuilder.Mixins;
var cfnInfrastructureConfigurationPropsMixin = new CfnInfrastructureConfigurationPropsMixin(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
}, new CfnPropertyMixinOptions {
Strategy = PropertyMergeStrategy.OVERRIDE
});
Props
Creates a new infrastructure configuration.
protected virtual ICfnInfrastructureConfigurationMixinProps Props { get; }
Property Value
ICfnInfrastructureConfigurationMixinProps
Remarks
An infrastructure configuration defines the environment in which your image will be built and tested.
CloudformationResource: AWS::ImageBuilder::InfrastructureConfiguration
Mixin: true
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.Mixins.Preview.Mixins;
using Amazon.CDK.Mixins.Preview.AWS.ImageBuilder.Mixins;
var cfnInfrastructureConfigurationPropsMixin = new CfnInfrastructureConfigurationPropsMixin(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
}, new CfnPropertyMixinOptions {
Strategy = PropertyMergeStrategy.OVERRIDE
});
Strategy
Creates a new infrastructure configuration.
protected virtual PropertyMergeStrategy Strategy { get; }
Property Value
Remarks
An infrastructure configuration defines the environment in which your image will be built and tested.
CloudformationResource: AWS::ImageBuilder::InfrastructureConfiguration
Mixin: true
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.Mixins.Preview.Mixins;
using Amazon.CDK.Mixins.Preview.AWS.ImageBuilder.Mixins;
var cfnInfrastructureConfigurationPropsMixin = new CfnInfrastructureConfigurationPropsMixin(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
}, new CfnPropertyMixinOptions {
Strategy = PropertyMergeStrategy.OVERRIDE
});
Methods
ApplyTo(IConstruct)
Apply the mixin properties to the construct.
public override IConstruct ApplyTo(IConstruct construct)
Parameters
- construct IConstruct
Returns
IConstruct
Overrides
Remarks
An infrastructure configuration defines the environment in which your image will be built and tested.
CloudformationResource: AWS::ImageBuilder::InfrastructureConfiguration
Mixin: true
ExampleMetadata: fixture=_generated
Supports(IConstruct)
Check if this mixin supports the given construct.
public override bool Supports(IConstruct construct)
Parameters
- construct IConstruct
Returns
Overrides
Remarks
An infrastructure configuration defines the environment in which your image will be built and tested.
CloudformationResource: AWS::ImageBuilder::InfrastructureConfiguration
Mixin: true
ExampleMetadata: fixture=_generated