Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Creates a new infrastructure configuration. An infrastructure configuration defines the environment in which your image will be built and tested.
Synopsis
- data CreateInfrastructureConfiguration = CreateInfrastructureConfiguration' {
- description :: Maybe Text
- instanceMetadataOptions :: Maybe InstanceMetadataOptions
- instanceTypes :: Maybe [Text]
- keyPair :: Maybe Text
- logging :: Maybe Logging
- resourceTags :: Maybe (HashMap Text Text)
- securityGroupIds :: Maybe [Text]
- snsTopicArn :: Maybe Text
- subnetId :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- terminateInstanceOnFailure :: Maybe Bool
- name :: Text
- instanceProfileName :: Text
- clientToken :: Text
- newCreateInfrastructureConfiguration :: Text -> Text -> Text -> CreateInfrastructureConfiguration
- createInfrastructureConfiguration_description :: Lens' CreateInfrastructureConfiguration (Maybe Text)
- createInfrastructureConfiguration_instanceMetadataOptions :: Lens' CreateInfrastructureConfiguration (Maybe InstanceMetadataOptions)
- createInfrastructureConfiguration_instanceTypes :: Lens' CreateInfrastructureConfiguration (Maybe [Text])
- createInfrastructureConfiguration_keyPair :: Lens' CreateInfrastructureConfiguration (Maybe Text)
- createInfrastructureConfiguration_logging :: Lens' CreateInfrastructureConfiguration (Maybe Logging)
- createInfrastructureConfiguration_resourceTags :: Lens' CreateInfrastructureConfiguration (Maybe (HashMap Text Text))
- createInfrastructureConfiguration_securityGroupIds :: Lens' CreateInfrastructureConfiguration (Maybe [Text])
- createInfrastructureConfiguration_snsTopicArn :: Lens' CreateInfrastructureConfiguration (Maybe Text)
- createInfrastructureConfiguration_subnetId :: Lens' CreateInfrastructureConfiguration (Maybe Text)
- createInfrastructureConfiguration_tags :: Lens' CreateInfrastructureConfiguration (Maybe (HashMap Text Text))
- createInfrastructureConfiguration_terminateInstanceOnFailure :: Lens' CreateInfrastructureConfiguration (Maybe Bool)
- createInfrastructureConfiguration_name :: Lens' CreateInfrastructureConfiguration Text
- createInfrastructureConfiguration_instanceProfileName :: Lens' CreateInfrastructureConfiguration Text
- createInfrastructureConfiguration_clientToken :: Lens' CreateInfrastructureConfiguration Text
- data CreateInfrastructureConfigurationResponse = CreateInfrastructureConfigurationResponse' {}
- newCreateInfrastructureConfigurationResponse :: Int -> CreateInfrastructureConfigurationResponse
- createInfrastructureConfigurationResponse_clientToken :: Lens' CreateInfrastructureConfigurationResponse (Maybe Text)
- createInfrastructureConfigurationResponse_infrastructureConfigurationArn :: Lens' CreateInfrastructureConfigurationResponse (Maybe Text)
- createInfrastructureConfigurationResponse_requestId :: Lens' CreateInfrastructureConfigurationResponse (Maybe Text)
- createInfrastructureConfigurationResponse_httpStatus :: Lens' CreateInfrastructureConfigurationResponse Int
Creating a Request
data CreateInfrastructureConfiguration Source #
See: newCreateInfrastructureConfiguration
smart constructor.
CreateInfrastructureConfiguration' | |
|
Instances
newCreateInfrastructureConfiguration Source #
:: Text | |
-> Text | |
-> Text | |
-> CreateInfrastructureConfiguration |
Create a value of CreateInfrastructureConfiguration
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateInfrastructureConfiguration
, createInfrastructureConfiguration_description
- The description of the infrastructure configuration.
CreateInfrastructureConfiguration
, createInfrastructureConfiguration_instanceMetadataOptions
- The instance metadata options that you can set for the HTTP requests
that pipeline builds use to launch EC2 build and test instances.
CreateInfrastructureConfiguration
, createInfrastructureConfiguration_instanceTypes
- 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.
CreateInfrastructureConfiguration
, createInfrastructureConfiguration_keyPair
- The key pair of the infrastructure configuration. You can use this to
log on to and debug the instance used to create your image.
CreateInfrastructureConfiguration
, createInfrastructureConfiguration_logging
- The logging configuration of the infrastructure configuration.
CreateInfrastructureConfiguration
, createInfrastructureConfiguration_resourceTags
- The tags attached to the resource created by Image Builder.
CreateInfrastructureConfiguration
, createInfrastructureConfiguration_securityGroupIds
- The security group IDs to associate with the instance used to customize
your Amazon EC2 AMI.
CreateInfrastructureConfiguration
, createInfrastructureConfiguration_snsTopicArn
- 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.
CreateInfrastructureConfiguration
, createInfrastructureConfiguration_subnetId
- The subnet ID in which to place the instance used to customize your
Amazon EC2 AMI.
CreateInfrastructureConfiguration
, createInfrastructureConfiguration_tags
- The tags of the infrastructure configuration.
CreateInfrastructureConfiguration
, createInfrastructureConfiguration_terminateInstanceOnFailure
- 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.
CreateInfrastructureConfiguration
, createInfrastructureConfiguration_name
- The name of the infrastructure configuration.
CreateInfrastructureConfiguration
, createInfrastructureConfiguration_instanceProfileName
- The instance profile to associate with the instance used to customize
your Amazon EC2 AMI.
CreateInfrastructureConfiguration
, createInfrastructureConfiguration_clientToken
- The idempotency token used to make this request idempotent.
Request Lenses
createInfrastructureConfiguration_description :: Lens' CreateInfrastructureConfiguration (Maybe Text) Source #
The description of the infrastructure configuration.
createInfrastructureConfiguration_instanceMetadataOptions :: Lens' CreateInfrastructureConfiguration (Maybe InstanceMetadataOptions) Source #
The instance metadata options that you can set for the HTTP requests that pipeline builds use to launch EC2 build and test instances.
createInfrastructureConfiguration_instanceTypes :: Lens' CreateInfrastructureConfiguration (Maybe [Text]) Source #
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.
createInfrastructureConfiguration_keyPair :: Lens' CreateInfrastructureConfiguration (Maybe Text) Source #
The key pair of the infrastructure configuration. You can use this to log on to and debug the instance used to create your image.
createInfrastructureConfiguration_logging :: Lens' CreateInfrastructureConfiguration (Maybe Logging) Source #
The logging configuration of the infrastructure configuration.
createInfrastructureConfiguration_resourceTags :: Lens' CreateInfrastructureConfiguration (Maybe (HashMap Text Text)) Source #
The tags attached to the resource created by Image Builder.
createInfrastructureConfiguration_securityGroupIds :: Lens' CreateInfrastructureConfiguration (Maybe [Text]) Source #
The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.
createInfrastructureConfiguration_snsTopicArn :: Lens' CreateInfrastructureConfiguration (Maybe Text) Source #
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.
createInfrastructureConfiguration_subnetId :: Lens' CreateInfrastructureConfiguration (Maybe Text) Source #
The subnet ID in which to place the instance used to customize your Amazon EC2 AMI.
createInfrastructureConfiguration_tags :: Lens' CreateInfrastructureConfiguration (Maybe (HashMap Text Text)) Source #
The tags of the infrastructure configuration.
createInfrastructureConfiguration_terminateInstanceOnFailure :: Lens' CreateInfrastructureConfiguration (Maybe Bool) Source #
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.
createInfrastructureConfiguration_name :: Lens' CreateInfrastructureConfiguration Text Source #
The name of the infrastructure configuration.
createInfrastructureConfiguration_instanceProfileName :: Lens' CreateInfrastructureConfiguration Text Source #
The instance profile to associate with the instance used to customize your Amazon EC2 AMI.
createInfrastructureConfiguration_clientToken :: Lens' CreateInfrastructureConfiguration Text Source #
The idempotency token used to make this request idempotent.
Destructuring the Response
data CreateInfrastructureConfigurationResponse Source #
See: newCreateInfrastructureConfigurationResponse
smart constructor.
CreateInfrastructureConfigurationResponse' | |
|
Instances
newCreateInfrastructureConfigurationResponse Source #
Create a value of CreateInfrastructureConfigurationResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateInfrastructureConfiguration
, createInfrastructureConfigurationResponse_clientToken
- The idempotency token used to make this request idempotent.
CreateInfrastructureConfigurationResponse
, createInfrastructureConfigurationResponse_infrastructureConfigurationArn
- The Amazon Resource Name (ARN) of the infrastructure configuration that
was created by this request.
$sel:requestId:CreateInfrastructureConfigurationResponse'
, createInfrastructureConfigurationResponse_requestId
- The request ID that uniquely identifies this request.
$sel:httpStatus:CreateInfrastructureConfigurationResponse'
, createInfrastructureConfigurationResponse_httpStatus
- The response's http status code.
Response Lenses
createInfrastructureConfigurationResponse_clientToken :: Lens' CreateInfrastructureConfigurationResponse (Maybe Text) Source #
The idempotency token used to make this request idempotent.
createInfrastructureConfigurationResponse_infrastructureConfigurationArn :: Lens' CreateInfrastructureConfigurationResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the infrastructure configuration that was created by this request.
createInfrastructureConfigurationResponse_requestId :: Lens' CreateInfrastructureConfigurationResponse (Maybe Text) Source #
The request ID that uniquely identifies this request.
createInfrastructureConfigurationResponse_httpStatus :: Lens' CreateInfrastructureConfigurationResponse Int Source #
The response's http status code.