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 |
Associates a resource with an application. Both the resource and the application can be specified either by ID or name.
Synopsis
- data AssociateResource = AssociateResource' {}
- newAssociateResource :: Text -> ResourceType -> Text -> AssociateResource
- associateResource_application :: Lens' AssociateResource Text
- associateResource_resourceType :: Lens' AssociateResource ResourceType
- associateResource_resource :: Lens' AssociateResource Text
- data AssociateResourceResponse = AssociateResourceResponse' {
- applicationArn :: Maybe Text
- resourceArn :: Maybe Text
- httpStatus :: Int
- newAssociateResourceResponse :: Int -> AssociateResourceResponse
- associateResourceResponse_applicationArn :: Lens' AssociateResourceResponse (Maybe Text)
- associateResourceResponse_resourceArn :: Lens' AssociateResourceResponse (Maybe Text)
- associateResourceResponse_httpStatus :: Lens' AssociateResourceResponse Int
Creating a Request
data AssociateResource Source #
See: newAssociateResource
smart constructor.
AssociateResource' | |
|
Instances
:: Text | |
-> ResourceType | |
-> Text | |
-> AssociateResource |
Create a value of AssociateResource
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:application:AssociateResource'
, associateResource_application
- The name or ID of the application.
$sel:resourceType:AssociateResource'
, associateResource_resourceType
- The type of resource of which the application will be associated.
$sel:resource:AssociateResource'
, associateResource_resource
- The name or ID of the resource of which the application will be
associated.
Request Lenses
associateResource_application :: Lens' AssociateResource Text Source #
The name or ID of the application.
associateResource_resourceType :: Lens' AssociateResource ResourceType Source #
The type of resource of which the application will be associated.
associateResource_resource :: Lens' AssociateResource Text Source #
The name or ID of the resource of which the application will be associated.
Destructuring the Response
data AssociateResourceResponse Source #
See: newAssociateResourceResponse
smart constructor.
AssociateResourceResponse' | |
|
Instances
newAssociateResourceResponse Source #
Create a value of AssociateResourceResponse
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:applicationArn:AssociateResourceResponse'
, associateResourceResponse_applicationArn
- The Amazon resource name (ARN) of the application that was augmented
with attributes.
$sel:resourceArn:AssociateResourceResponse'
, associateResourceResponse_resourceArn
- The Amazon resource name (ARN) that specifies the resource.
$sel:httpStatus:AssociateResourceResponse'
, associateResourceResponse_httpStatus
- The response's http status code.
Response Lenses
associateResourceResponse_applicationArn :: Lens' AssociateResourceResponse (Maybe Text) Source #
The Amazon resource name (ARN) of the application that was augmented with attributes.
associateResourceResponse_resourceArn :: Lens' AssociateResourceResponse (Maybe Text) Source #
The Amazon resource name (ARN) that specifies the resource.
associateResourceResponse_httpStatus :: Lens' AssociateResourceResponse Int Source #
The response's http status code.