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.ServiceCatalog.AssociateTagOptionWithResource
Description
Associate the specified TagOption with the specified portfolio or product.
Synopsis
- data AssociateTagOptionWithResource = AssociateTagOptionWithResource' {
- resourceId :: Text
- tagOptionId :: Text
- newAssociateTagOptionWithResource :: Text -> Text -> AssociateTagOptionWithResource
- associateTagOptionWithResource_resourceId :: Lens' AssociateTagOptionWithResource Text
- associateTagOptionWithResource_tagOptionId :: Lens' AssociateTagOptionWithResource Text
- data AssociateTagOptionWithResourceResponse = AssociateTagOptionWithResourceResponse' {
- httpStatus :: Int
- newAssociateTagOptionWithResourceResponse :: Int -> AssociateTagOptionWithResourceResponse
- associateTagOptionWithResourceResponse_httpStatus :: Lens' AssociateTagOptionWithResourceResponse Int
Creating a Request
data AssociateTagOptionWithResource Source #
See: newAssociateTagOptionWithResource
smart constructor.
Constructors
AssociateTagOptionWithResource' | |
Fields
|
Instances
newAssociateTagOptionWithResource Source #
Arguments
:: Text | |
-> Text | |
-> AssociateTagOptionWithResource |
Create a value of AssociateTagOptionWithResource
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:resourceId:AssociateTagOptionWithResource'
, associateTagOptionWithResource_resourceId
- The resource identifier.
$sel:tagOptionId:AssociateTagOptionWithResource'
, associateTagOptionWithResource_tagOptionId
- The TagOption identifier.
Request Lenses
associateTagOptionWithResource_resourceId :: Lens' AssociateTagOptionWithResource Text Source #
The resource identifier.
associateTagOptionWithResource_tagOptionId :: Lens' AssociateTagOptionWithResource Text Source #
The TagOption identifier.
Destructuring the Response
data AssociateTagOptionWithResourceResponse Source #
See: newAssociateTagOptionWithResourceResponse
smart constructor.
Constructors
AssociateTagOptionWithResourceResponse' | |
Fields
|
Instances
newAssociateTagOptionWithResourceResponse Source #
Arguments
:: Int | |
-> AssociateTagOptionWithResourceResponse |
Create a value of AssociateTagOptionWithResourceResponse
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:AssociateTagOptionWithResourceResponse'
, associateTagOptionWithResourceResponse_httpStatus
- The response's http status code.
Response Lenses
associateTagOptionWithResourceResponse_httpStatus :: Lens' AssociateTagOptionWithResourceResponse Int Source #
The response's http status code.