{ "$schema": "https://json-structure.org/meta/core/v0/#", "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-ec2-image-builder/refs/heads/main/json-structure/ec2-image-builder-create-infrastructure-configuration-request-structure.json", "name": "CreateInfrastructureConfigurationRequest", "description": "CreateInfrastructureConfigurationRequest schema from EC2 Image Builder", "type": "object", "properties": { "name": { "allOf": [ { "$ref": "#/components/schemas/ResourceName" }, { "description": "The name of the infrastructure configuration." } ] }, "description": { "allOf": [ { "$ref": "#/components/schemas/NonEmptyString" }, { "description": "The description of the infrastructure configuration." } ] }, "instanceTypes": { "allOf": [ { "$ref": "#/components/schemas/InstanceTypeList" }, { "description": "The instance types of the infrastructure configuration. 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." } ] }, "instanceProfileName": { "allOf": [ { "$ref": "#/components/schemas/InstanceProfileNameType" }, { "description": "The instance profile to associate with the instance used to customize your Amazon EC2 AMI." } ] }, "securityGroupIds": { "allOf": [ { "$ref": "#/components/schemas/SecurityGroupIds" }, { "description": "The security group IDs to associate with the instance used to customize your Amazon EC2 AMI." } ] }, "subnetId": { "allOf": [ { "$ref": "#/components/schemas/NonEmptyString" }, { "description": "The subnet ID in which to place the instance used to customize your Amazon EC2 AMI." } ] }, "logging": { "allOf": [ { "$ref": "#/components/schemas/Logging" }, { "description": "The logging configuration of the infrastructure configuration." } ] }, "keyPair": { "allOf": [ { "$ref": "#/components/schemas/NonEmptyString" }, { "description": "The key pair of the infrastructure configuration. You can use this to log on to and debug the instance used to create your image." } ] }, "terminateInstanceOnFailure": { "allOf": [ { "$ref": "#/components/schemas/NullableBoolean" }, { "description": "The terminate instance on failure setting of the infrastructure configuration. 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." } ] }, "snsTopicArn": { "allOf": [ { "$ref": "#/components/schemas/SnsTopicArn" }, { "description": "
The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.
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.