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 |
Retrieves the configuration data of the specified instance. You can use this data to create a launch template.
This action calls on other describe actions to get instance information.
Depending on your instance configuration, you may need to allow the
following actions in your IAM policy: DescribeSpotInstanceRequests
,
DescribeInstanceCreditSpecifications
, DescribeVolumes
,
DescribeInstanceAttribute
, and DescribeElasticGpus
. Or, you can
allow describe*
depending on your instance requirements.
Synopsis
- data GetLaunchTemplateData = GetLaunchTemplateData' {
- dryRun :: Maybe Bool
- instanceId :: Text
- newGetLaunchTemplateData :: Text -> GetLaunchTemplateData
- getLaunchTemplateData_dryRun :: Lens' GetLaunchTemplateData (Maybe Bool)
- getLaunchTemplateData_instanceId :: Lens' GetLaunchTemplateData Text
- data GetLaunchTemplateDataResponse = GetLaunchTemplateDataResponse' {}
- newGetLaunchTemplateDataResponse :: Int -> GetLaunchTemplateDataResponse
- getLaunchTemplateDataResponse_launchTemplateData :: Lens' GetLaunchTemplateDataResponse (Maybe ResponseLaunchTemplateData)
- getLaunchTemplateDataResponse_httpStatus :: Lens' GetLaunchTemplateDataResponse Int
Creating a Request
data GetLaunchTemplateData Source #
See: newGetLaunchTemplateData
smart constructor.
GetLaunchTemplateData' | |
|
Instances
newGetLaunchTemplateData Source #
Create a value of GetLaunchTemplateData
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:dryRun:GetLaunchTemplateData'
, getLaunchTemplateData_dryRun
- Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
GetLaunchTemplateData
, getLaunchTemplateData_instanceId
- The ID of the instance.
Request Lenses
getLaunchTemplateData_dryRun :: Lens' GetLaunchTemplateData (Maybe Bool) Source #
Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
getLaunchTemplateData_instanceId :: Lens' GetLaunchTemplateData Text Source #
The ID of the instance.
Destructuring the Response
data GetLaunchTemplateDataResponse Source #
See: newGetLaunchTemplateDataResponse
smart constructor.
GetLaunchTemplateDataResponse' | |
|
Instances
newGetLaunchTemplateDataResponse Source #
Create a value of GetLaunchTemplateDataResponse
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:
GetLaunchTemplateDataResponse
, getLaunchTemplateDataResponse_launchTemplateData
- The instance data.
$sel:httpStatus:GetLaunchTemplateDataResponse'
, getLaunchTemplateDataResponse_httpStatus
- The response's http status code.
Response Lenses
getLaunchTemplateDataResponse_launchTemplateData :: Lens' GetLaunchTemplateDataResponse (Maybe ResponseLaunchTemplateData) Source #
The instance data.
getLaunchTemplateDataResponse_httpStatus :: Lens' GetLaunchTemplateDataResponse Int Source #
The response's http status code.