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 |
Updates a new infrastructure configuration. An infrastructure configuration defines the environment in which your image will be built and tested.
Synopsis
- data UpdateInfrastructureConfiguration = UpdateInfrastructureConfiguration' {
- 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
- terminateInstanceOnFailure :: Maybe Bool
- infrastructureConfigurationArn :: Text
- instanceProfileName :: Text
- clientToken :: Text
- newUpdateInfrastructureConfiguration :: Text -> Text -> Text -> UpdateInfrastructureConfiguration
- updateInfrastructureConfiguration_securityGroupIds :: Lens' UpdateInfrastructureConfiguration (Maybe [Text])
- updateInfrastructureConfiguration_snsTopicArn :: Lens' UpdateInfrastructureConfiguration (Maybe Text)
- updateInfrastructureConfiguration_instanceTypes :: Lens' UpdateInfrastructureConfiguration (Maybe [Text])
- updateInfrastructureConfiguration_keyPair :: Lens' UpdateInfrastructureConfiguration (Maybe Text)
- updateInfrastructureConfiguration_resourceTags :: Lens' UpdateInfrastructureConfiguration (Maybe (HashMap Text Text))
- updateInfrastructureConfiguration_subnetId :: Lens' UpdateInfrastructureConfiguration (Maybe Text)
- updateInfrastructureConfiguration_instanceMetadataOptions :: Lens' UpdateInfrastructureConfiguration (Maybe InstanceMetadataOptions)
- updateInfrastructureConfiguration_logging :: Lens' UpdateInfrastructureConfiguration (Maybe Logging)
- updateInfrastructureConfiguration_description :: Lens' UpdateInfrastructureConfiguration (Maybe Text)
- updateInfrastructureConfiguration_terminateInstanceOnFailure :: Lens' UpdateInfrastructureConfiguration (Maybe Bool)
- updateInfrastructureConfiguration_infrastructureConfigurationArn :: Lens' UpdateInfrastructureConfiguration Text
- updateInfrastructureConfiguration_instanceProfileName :: Lens' UpdateInfrastructureConfiguration Text
- updateInfrastructureConfiguration_clientToken :: Lens' UpdateInfrastructureConfiguration Text
- data UpdateInfrastructureConfigurationResponse = UpdateInfrastructureConfigurationResponse' {}
- newUpdateInfrastructureConfigurationResponse :: Int -> UpdateInfrastructureConfigurationResponse
- updateInfrastructureConfigurationResponse_requestId :: Lens' UpdateInfrastructureConfigurationResponse (Maybe Text)
- updateInfrastructureConfigurationResponse_infrastructureConfigurationArn :: Lens' UpdateInfrastructureConfigurationResponse (Maybe Text)
- updateInfrastructureConfigurationResponse_clientToken :: Lens' UpdateInfrastructureConfigurationResponse (Maybe Text)
- updateInfrastructureConfigurationResponse_httpStatus :: Lens' UpdateInfrastructureConfigurationResponse Int
Creating a Request
data UpdateInfrastructureConfiguration Source #
See: newUpdateInfrastructureConfiguration
smart constructor.
UpdateInfrastructureConfiguration' | |
|
Instances
newUpdateInfrastructureConfiguration Source #
:: Text |
|
-> Text | |
-> Text | |
-> UpdateInfrastructureConfiguration |
Create a value of UpdateInfrastructureConfiguration
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:UpdateInfrastructureConfiguration'
, updateInfrastructureConfiguration_securityGroupIds
- The security group IDs to associate with the instance used to customize
your Amazon EC2 AMI.
$sel:snsTopicArn:UpdateInfrastructureConfiguration'
, updateInfrastructureConfiguration_snsTopicArn
- The SNS topic on which to send image build events.
$sel:instanceTypes:UpdateInfrastructureConfiguration'
, updateInfrastructureConfiguration_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:UpdateInfrastructureConfiguration'
, updateInfrastructureConfiguration_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:UpdateInfrastructureConfiguration'
, updateInfrastructureConfiguration_resourceTags
- The tags attached to the resource created by Image Builder.
$sel:subnetId:UpdateInfrastructureConfiguration'
, updateInfrastructureConfiguration_subnetId
- The subnet ID to place the instance used to customize your Amazon EC2
AMI in.
$sel:instanceMetadataOptions:UpdateInfrastructureConfiguration'
, updateInfrastructureConfiguration_instanceMetadataOptions
- The instance metadata options that you can set for the HTTP requests
that pipeline builds use to launch EC2 build and test instances. For
more information about instance metadata options, see one of the
following links:
- Configure the instance metadata options in the /Amazon EC2 User Guide/ for Linux instances.
- Configure the instance metadata options in the /Amazon EC2 Windows Guide/ for Windows instances.
$sel:logging:UpdateInfrastructureConfiguration'
, updateInfrastructureConfiguration_logging
- The logging configuration of the infrastructure configuration.
$sel:description:UpdateInfrastructureConfiguration'
, updateInfrastructureConfiguration_description
- The description of the infrastructure configuration.
$sel:terminateInstanceOnFailure:UpdateInfrastructureConfiguration'
, updateInfrastructureConfiguration_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:infrastructureConfigurationArn:UpdateInfrastructureConfiguration'
, updateInfrastructureConfiguration_infrastructureConfigurationArn
- The Amazon Resource Name (ARN) of the infrastructure configuration that
you want to update.
$sel:instanceProfileName:UpdateInfrastructureConfiguration'
, updateInfrastructureConfiguration_instanceProfileName
- The instance profile to associate with the instance used to customize
your Amazon EC2 AMI.
$sel:clientToken:UpdateInfrastructureConfiguration'
, updateInfrastructureConfiguration_clientToken
- The idempotency token used to make this request idempotent.
Request Lenses
updateInfrastructureConfiguration_securityGroupIds :: Lens' UpdateInfrastructureConfiguration (Maybe [Text]) Source #
The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.
updateInfrastructureConfiguration_snsTopicArn :: Lens' UpdateInfrastructureConfiguration (Maybe Text) Source #
The SNS topic on which to send image build events.
updateInfrastructureConfiguration_instanceTypes :: Lens' UpdateInfrastructureConfiguration (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.
updateInfrastructureConfiguration_keyPair :: Lens' UpdateInfrastructureConfiguration (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.
updateInfrastructureConfiguration_resourceTags :: Lens' UpdateInfrastructureConfiguration (Maybe (HashMap Text Text)) Source #
The tags attached to the resource created by Image Builder.
updateInfrastructureConfiguration_subnetId :: Lens' UpdateInfrastructureConfiguration (Maybe Text) Source #
The subnet ID to place the instance used to customize your Amazon EC2 AMI in.
updateInfrastructureConfiguration_instanceMetadataOptions :: Lens' UpdateInfrastructureConfiguration (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. For more information about instance metadata options, see one of the following links:
- Configure the instance metadata options in the /Amazon EC2 User Guide/ for Linux instances.
- Configure the instance metadata options in the /Amazon EC2 Windows Guide/ for Windows instances.
updateInfrastructureConfiguration_logging :: Lens' UpdateInfrastructureConfiguration (Maybe Logging) Source #
The logging configuration of the infrastructure configuration.
updateInfrastructureConfiguration_description :: Lens' UpdateInfrastructureConfiguration (Maybe Text) Source #
The description of the infrastructure configuration.
updateInfrastructureConfiguration_terminateInstanceOnFailure :: Lens' UpdateInfrastructureConfiguration (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.
updateInfrastructureConfiguration_infrastructureConfigurationArn :: Lens' UpdateInfrastructureConfiguration Text Source #
The Amazon Resource Name (ARN) of the infrastructure configuration that you want to update.
updateInfrastructureConfiguration_instanceProfileName :: Lens' UpdateInfrastructureConfiguration Text Source #
The instance profile to associate with the instance used to customize your Amazon EC2 AMI.
updateInfrastructureConfiguration_clientToken :: Lens' UpdateInfrastructureConfiguration Text Source #
The idempotency token used to make this request idempotent.
Destructuring the Response
data UpdateInfrastructureConfigurationResponse Source #
See: newUpdateInfrastructureConfigurationResponse
smart constructor.
UpdateInfrastructureConfigurationResponse' | |
|
Instances
newUpdateInfrastructureConfigurationResponse Source #
Create a value of UpdateInfrastructureConfigurationResponse
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:UpdateInfrastructureConfigurationResponse'
, updateInfrastructureConfigurationResponse_requestId
- The request ID that uniquely identifies this request.
$sel:infrastructureConfigurationArn:UpdateInfrastructureConfiguration'
, updateInfrastructureConfigurationResponse_infrastructureConfigurationArn
- The Amazon Resource Name (ARN) of the infrastructure configuration that
was updated by this request.
$sel:clientToken:UpdateInfrastructureConfiguration'
, updateInfrastructureConfigurationResponse_clientToken
- The idempotency token used to make this request idempotent.
$sel:httpStatus:UpdateInfrastructureConfigurationResponse'
, updateInfrastructureConfigurationResponse_httpStatus
- The response's http status code.
Response Lenses
updateInfrastructureConfigurationResponse_requestId :: Lens' UpdateInfrastructureConfigurationResponse (Maybe Text) Source #
The request ID that uniquely identifies this request.
updateInfrastructureConfigurationResponse_infrastructureConfigurationArn :: Lens' UpdateInfrastructureConfigurationResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the infrastructure configuration that was updated by this request.
updateInfrastructureConfigurationResponse_clientToken :: Lens' UpdateInfrastructureConfigurationResponse (Maybe Text) Source #
The idempotency token used to make this request idempotent.
updateInfrastructureConfigurationResponse_httpStatus :: Lens' UpdateInfrastructureConfigurationResponse Int Source #
The response's http status code.