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 |
Amazonka.LicenseManager.UpdateLicenseSpecificationsForResource
Description
Adds or removes the specified license configurations for the specified Amazon Web Services resource.
You can update the license specifications of AMIs, instances, and hosts. You cannot update the license specifications for launch templates and CloudFormation templates, as they send license configurations to the operation that creates the resource.
Synopsis
- data UpdateLicenseSpecificationsForResource = UpdateLicenseSpecificationsForResource' {}
- newUpdateLicenseSpecificationsForResource :: Text -> UpdateLicenseSpecificationsForResource
- updateLicenseSpecificationsForResource_addLicenseSpecifications :: Lens' UpdateLicenseSpecificationsForResource (Maybe [LicenseSpecification])
- updateLicenseSpecificationsForResource_removeLicenseSpecifications :: Lens' UpdateLicenseSpecificationsForResource (Maybe [LicenseSpecification])
- updateLicenseSpecificationsForResource_resourceArn :: Lens' UpdateLicenseSpecificationsForResource Text
- data UpdateLicenseSpecificationsForResourceResponse = UpdateLicenseSpecificationsForResourceResponse' {
- httpStatus :: Int
- newUpdateLicenseSpecificationsForResourceResponse :: Int -> UpdateLicenseSpecificationsForResourceResponse
- updateLicenseSpecificationsForResourceResponse_httpStatus :: Lens' UpdateLicenseSpecificationsForResourceResponse Int
Creating a Request
data UpdateLicenseSpecificationsForResource Source #
See: newUpdateLicenseSpecificationsForResource
smart constructor.
Constructors
UpdateLicenseSpecificationsForResource' | |
Fields
|
Instances
newUpdateLicenseSpecificationsForResource Source #
Arguments
:: Text | |
-> UpdateLicenseSpecificationsForResource |
Create a value of UpdateLicenseSpecificationsForResource
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:addLicenseSpecifications:UpdateLicenseSpecificationsForResource'
, updateLicenseSpecificationsForResource_addLicenseSpecifications
- ARNs of the license configurations to add.
$sel:removeLicenseSpecifications:UpdateLicenseSpecificationsForResource'
, updateLicenseSpecificationsForResource_removeLicenseSpecifications
- ARNs of the license configurations to remove.
$sel:resourceArn:UpdateLicenseSpecificationsForResource'
, updateLicenseSpecificationsForResource_resourceArn
- Amazon Resource Name (ARN) of the Amazon Web Services resource.
Request Lenses
updateLicenseSpecificationsForResource_addLicenseSpecifications :: Lens' UpdateLicenseSpecificationsForResource (Maybe [LicenseSpecification]) Source #
ARNs of the license configurations to add.
updateLicenseSpecificationsForResource_removeLicenseSpecifications :: Lens' UpdateLicenseSpecificationsForResource (Maybe [LicenseSpecification]) Source #
ARNs of the license configurations to remove.
updateLicenseSpecificationsForResource_resourceArn :: Lens' UpdateLicenseSpecificationsForResource Text Source #
Amazon Resource Name (ARN) of the Amazon Web Services resource.
Destructuring the Response
data UpdateLicenseSpecificationsForResourceResponse Source #
See: newUpdateLicenseSpecificationsForResourceResponse
smart constructor.
Constructors
UpdateLicenseSpecificationsForResourceResponse' | |
Fields
|
Instances
newUpdateLicenseSpecificationsForResourceResponse Source #
Arguments
:: Int |
|
-> UpdateLicenseSpecificationsForResourceResponse |
Create a value of UpdateLicenseSpecificationsForResourceResponse
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:httpStatus:UpdateLicenseSpecificationsForResourceResponse'
, updateLicenseSpecificationsForResourceResponse_httpStatus
- The response's http status code.
Response Lenses
updateLicenseSpecificationsForResourceResponse_httpStatus :: Lens' UpdateLicenseSpecificationsForResourceResponse Int Source #
The response's http status code.