| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.ServiceCatalogAppRegistry.DisassociateResource
Description
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.
Constructors
| DisassociateResource' | |
Fields
| |
Instances
newDisassociateResource Source #
Arguments
| :: 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.
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.
Constructors
| DisassociateResourceResponse' | |
Fields
| |
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.