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 |
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.
UpdateLicenseSpecificationsForResource' | |
|
Instances
newUpdateLicenseSpecificationsForResource Source #
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.
UpdateLicenseSpecificationsForResourceResponse' | |
|
Instances
Eq UpdateLicenseSpecificationsForResourceResponse Source # | |
Read UpdateLicenseSpecificationsForResourceResponse Source # | |
Show UpdateLicenseSpecificationsForResourceResponse Source # | |
Generic UpdateLicenseSpecificationsForResourceResponse Source # | |
NFData UpdateLicenseSpecificationsForResourceResponse Source # | |
type Rep UpdateLicenseSpecificationsForResourceResponse Source # | |
Defined in Amazonka.LicenseManager.UpdateLicenseSpecificationsForResource type Rep UpdateLicenseSpecificationsForResourceResponse = D1 ('MetaData "UpdateLicenseSpecificationsForResourceResponse" "Amazonka.LicenseManager.UpdateLicenseSpecificationsForResource" "libZSservicesZSamazonka-license-managerZSamazonka-license-manager" 'False) (C1 ('MetaCons "UpdateLicenseSpecificationsForResourceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newUpdateLicenseSpecificationsForResourceResponse Source #
:: 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.