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 |
Disassociates a resource from application. Both the resource and the application can be specified either by ID or name.
Synopsis
- data DisassociateResource = DisassociateResource' {}
- newDisassociateResource :: Text -> ResourceType -> Text -> DisassociateResource
- disassociateResource_application :: Lens' DisassociateResource Text
- disassociateResource_resourceType :: Lens' DisassociateResource ResourceType
- disassociateResource_resource :: Lens' DisassociateResource Text
- data DisassociateResourceResponse = DisassociateResourceResponse' {
- applicationArn :: Maybe Text
- resourceArn :: Maybe Text
- httpStatus :: Int
- newDisassociateResourceResponse :: Int -> DisassociateResourceResponse
- disassociateResourceResponse_applicationArn :: Lens' DisassociateResourceResponse (Maybe Text)
- disassociateResourceResponse_resourceArn :: Lens' DisassociateResourceResponse (Maybe Text)
- disassociateResourceResponse_httpStatus :: Lens' DisassociateResourceResponse Int
Creating a Request
data DisassociateResource Source #
See: newDisassociateResource
smart constructor.
DisassociateResource' | |
|
Instances
newDisassociateResource Source #
:: Text | |
-> ResourceType | |
-> Text | |
-> DisassociateResource |
Create a value of DisassociateResource
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:DisassociateResource'
, disassociateResource_application
- The name or ID of the application.
$sel:resourceType:DisassociateResource'
, disassociateResource_resourceType
- The type of the resource that is being disassociated.
$sel:resource:DisassociateResource'
, disassociateResource_resource
- The name or ID of the resource.
Request Lenses
disassociateResource_application :: Lens' DisassociateResource Text Source #
The name or ID of the application.
disassociateResource_resourceType :: Lens' DisassociateResource ResourceType Source #
The type of the resource that is being disassociated.
disassociateResource_resource :: Lens' DisassociateResource Text Source #
The name or ID of the resource.
Destructuring the Response
data DisassociateResourceResponse Source #
See: newDisassociateResourceResponse
smart constructor.
DisassociateResourceResponse' | |
|
Instances
newDisassociateResourceResponse Source #
Create a value of DisassociateResourceResponse
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:DisassociateResourceResponse'
, disassociateResourceResponse_applicationArn
- The Amazon resource name (ARN) that specifies the application.
$sel:resourceArn:DisassociateResourceResponse'
, disassociateResourceResponse_resourceArn
- The Amazon resource name (ARN) that specifies the resource.
$sel:httpStatus:DisassociateResourceResponse'
, disassociateResourceResponse_httpStatus
- The response's http status code.
Response Lenses
disassociateResourceResponse_applicationArn :: Lens' DisassociateResourceResponse (Maybe Text) Source #
The Amazon resource name (ARN) that specifies the application.
disassociateResourceResponse_resourceArn :: Lens' DisassociateResourceResponse (Maybe Text) Source #
The Amazon resource name (ARN) that specifies the resource.
disassociateResourceResponse_httpStatus :: Lens' DisassociateResourceResponse Int Source #
The response's http status code.