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 |
Deletes the specified resource share. This doesn't delete any of the resources that were associated with the resource share; it only stops the sharing of those resources outside of the Amazon Web Services account that created them.
Synopsis
- data DeleteResourceShare = DeleteResourceShare' {}
- newDeleteResourceShare :: Text -> DeleteResourceShare
- deleteResourceShare_clientToken :: Lens' DeleteResourceShare (Maybe Text)
- deleteResourceShare_resourceShareArn :: Lens' DeleteResourceShare Text
- data DeleteResourceShareResponse = DeleteResourceShareResponse' {
- clientToken :: Maybe Text
- returnValue :: Maybe Bool
- httpStatus :: Int
- newDeleteResourceShareResponse :: Int -> DeleteResourceShareResponse
- deleteResourceShareResponse_clientToken :: Lens' DeleteResourceShareResponse (Maybe Text)
- deleteResourceShareResponse_returnValue :: Lens' DeleteResourceShareResponse (Maybe Bool)
- deleteResourceShareResponse_httpStatus :: Lens' DeleteResourceShareResponse Int
Creating a Request
data DeleteResourceShare Source #
See: newDeleteResourceShare
smart constructor.
DeleteResourceShare' | |
|
Instances
newDeleteResourceShare Source #
Create a value of DeleteResourceShare
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:
DeleteResourceShare
, deleteResourceShare_clientToken
- Specifies a unique, case-sensitive identifier that you provide to ensure
the idempotency of the request. This lets you safely retry the request
without accidentally performing the same operation a second time.
Passing the same value to a later call to an operation requires that you
also pass the same value for all other parameters. We recommend that you
use a
UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
DeleteResourceShare
, deleteResourceShare_resourceShareArn
- Specifies the
Amazon Resoure Name (ARN)
of the resource share to delete.
Request Lenses
deleteResourceShare_clientToken :: Lens' DeleteResourceShare (Maybe Text) Source #
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
deleteResourceShare_resourceShareArn :: Lens' DeleteResourceShare Text Source #
Specifies the Amazon Resoure Name (ARN) of the resource share to delete.
Destructuring the Response
data DeleteResourceShareResponse Source #
See: newDeleteResourceShareResponse
smart constructor.
DeleteResourceShareResponse' | |
|
Instances
newDeleteResourceShareResponse Source #
Create a value of DeleteResourceShareResponse
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:
DeleteResourceShare
, deleteResourceShareResponse_clientToken
- The idempotency identifier associated with this request. If you want to
repeat the same operation in an idempotent manner then you must include
this value in the clientToken
request parameter of that later call.
All other parameters must also have the same values that you used in the
first call.
$sel:returnValue:DeleteResourceShareResponse'
, deleteResourceShareResponse_returnValue
- A return value of true
indicates that the request succeeded. A value
of false
indicates that the request failed.
$sel:httpStatus:DeleteResourceShareResponse'
, deleteResourceShareResponse_httpStatus
- The response's http status code.
Response Lenses
deleteResourceShareResponse_clientToken :: Lens' DeleteResourceShareResponse (Maybe Text) Source #
The idempotency identifier associated with this request. If you want to
repeat the same operation in an idempotent manner then you must include
this value in the clientToken
request parameter of that later call.
All other parameters must also have the same values that you used in the
first call.
deleteResourceShareResponse_returnValue :: Lens' DeleteResourceShareResponse (Maybe Bool) Source #
A return value of true
indicates that the request succeeded. A value
of false
indicates that the request failed.
deleteResourceShareResponse_httpStatus :: Lens' DeleteResourceShareResponse Int Source #
The response's http status code.