Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a new infrastructure configuration. An infrastructure configuration defines the environment in which your image will be built and tested.
Synopsis
- data CreateInfrastructureConfiguration = CreateInfrastructureConfiguration' {
- securityGroupIds :: Maybe [Text]
- snsTopicArn :: Maybe Text
- instanceTypes :: Maybe [Text]
- keyPair :: Maybe Text
- resourceTags :: Maybe (HashMap Text Text)
- subnetId :: Maybe Text
- instanceMetadataOptions :: Maybe InstanceMetadataOptions
- logging :: Maybe Logging
- description :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- terminateInstanceOnFailure :: Maybe Bool
- name :: Text
- instanceProfileName :: Text
- clientToken :: Text
- newCreateInfrastructureConfiguration :: Text -> Text -> Text -> CreateInfrastructureConfiguration
- createInfrastructureConfiguration_securityGroupIds :: Lens' CreateInfrastructureConfiguration (Maybe [Text])
- createInfrastructureConfiguration_snsTopicArn :: Lens' CreateInfrastructureConfiguration (Maybe Text)
- createInfrastructureConfiguration_instanceTypes :: Lens' CreateInfrastructureConfiguration (Maybe [Text])
- createInfrastructureConfiguration_keyPair :: Lens' CreateInfrastructureConfiguration (Maybe Text)
- createInfrastructureConfiguration_resourceTags :: Lens' CreateInfrastructureConfiguration (Maybe (HashMap Text Text))
- createInfrastructureConfiguration_subnetId :: Lens' CreateInfrastructureConfiguration (Maybe Text)
- createInfrastructureConfiguration_instanceMetadataOptions :: Lens' CreateInfrastructureConfiguration (Maybe InstanceMetadataOptions)
- createInfrastructureConfiguration_logging :: Lens' CreateInfrastructureConfiguration (Maybe Logging)
- createInfrastructureConfiguration_description :: 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_requestId :: Lens' CreateInfrastructureConfigurationResponse (Maybe Text)
- createInfrastructureConfigurationResponse_infrastructureConfigurationArn :: Lens' CreateInfrastructureConfigurationResponse (Maybe Text)
- createInfrastructureConfigurationResponse_clientToken :: 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:
$sel:securityGroupIds:CreateInfrastructureConfiguration'
, createInfrastructureConfiguration_securityGroupIds
- The security group IDs to associate with the instance used to customize
your Amazon EC2 AMI.
$sel:snsTopicArn:CreateInfrastructureConfiguration'
, createInfrastructureConfiguration_snsTopicArn
- The SNS topic on which to send image build events.
$sel:instanceTypes: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.
$sel:keyPair: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.
$sel:resourceTags:CreateInfrastructureConfiguration'
, createInfrastructureConfiguration_resourceTags
- The tags attached to the resource created by Image Builder.
$sel:subnetId:CreateInfrastructureConfiguration'
, createInfrastructureConfiguration_subnetId
- The subnet ID in which to place the instance used to customize your
Amazon EC2 AMI.
$sel:instanceMetadataOptions: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.
$sel:logging:CreateInfrastructureConfiguration'
, createInfrastructureConfiguration_logging
- The logging configuration of the infrastructure configuration.
$sel:description:CreateInfrastructureConfiguration'
, createInfrastructureConfiguration_description
- The description of the infrastructure configuration.
$sel:tags:CreateInfrastructureConfiguration'
, createInfrastructureConfiguration_tags
- The tags of the infrastructure configuration.
$sel:terminateInstanceOnFailure: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.
$sel:name:CreateInfrastructureConfiguration'
, createInfrastructureConfiguration_name
- The name of the infrastructure configuration.
$sel:instanceProfileName:CreateInfrastructureConfiguration'
, createInfrastructureConfiguration_instanceProfileName
- The instance profile to associate with the instance used to customize
your Amazon EC2 AMI.
$sel:clientToken:CreateInfrastructureConfiguration'
, createInfrastructureConfiguration_clientToken
- The idempotency token used to make this request idempotent.
Request Lenses
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 SNS topic on which to send image build events.
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_resourceTags :: Lens' CreateInfrastructureConfiguration (Maybe (HashMap Text Text)) Source #
The tags attached to the resource created by Image Builder.
createInfrastructureConfiguration_subnetId :: Lens' CreateInfrastructureConfiguration (Maybe Text) Source #
The subnet ID in which to place the instance used to customize your Amazon EC2 AMI.
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_logging :: Lens' CreateInfrastructureConfiguration (Maybe Logging) Source #
The logging configuration of the infrastructure configuration.
createInfrastructureConfiguration_description :: Lens' CreateInfrastructureConfiguration (Maybe Text) Source #
The description of the infrastructure configuration.
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:
$sel:requestId:CreateInfrastructureConfigurationResponse'
, createInfrastructureConfigurationResponse_requestId
- The request ID that uniquely identifies this request.
$sel:infrastructureConfigurationArn:CreateInfrastructureConfigurationResponse'
, createInfrastructureConfigurationResponse_infrastructureConfigurationArn
- The Amazon Resource Name (ARN) of the infrastructure configuration that
was created by this request.
$sel:clientToken:CreateInfrastructureConfiguration'
, createInfrastructureConfigurationResponse_clientToken
- The idempotency token used to make this request idempotent.
$sel:httpStatus:CreateInfrastructureConfigurationResponse'
, createInfrastructureConfigurationResponse_httpStatus
- The response's http status code.
Response Lenses
createInfrastructureConfigurationResponse_requestId :: Lens' CreateInfrastructureConfigurationResponse (Maybe Text) Source #
The request ID that uniquely identifies this request.
createInfrastructureConfigurationResponse_infrastructureConfigurationArn :: Lens' CreateInfrastructureConfigurationResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the infrastructure configuration that was created by this request.
createInfrastructureConfigurationResponse_clientToken :: Lens' CreateInfrastructureConfigurationResponse (Maybe Text) Source #
The idempotency token used to make this request idempotent.
createInfrastructureConfigurationResponse_httpStatus :: Lens' CreateInfrastructureConfigurationResponse Int Source #
The response's http status code.