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 |
Disassociates the specified principals or resources from the specified resource share.
Synopsis
- data DisassociateResourceShare = DisassociateResourceShare' {
- clientToken :: Maybe Text
- principals :: Maybe [Text]
- resourceArns :: Maybe [Text]
- resourceShareArn :: Text
- newDisassociateResourceShare :: Text -> DisassociateResourceShare
- disassociateResourceShare_clientToken :: Lens' DisassociateResourceShare (Maybe Text)
- disassociateResourceShare_principals :: Lens' DisassociateResourceShare (Maybe [Text])
- disassociateResourceShare_resourceArns :: Lens' DisassociateResourceShare (Maybe [Text])
- disassociateResourceShare_resourceShareArn :: Lens' DisassociateResourceShare Text
- data DisassociateResourceShareResponse = DisassociateResourceShareResponse' {}
- newDisassociateResourceShareResponse :: Int -> DisassociateResourceShareResponse
- disassociateResourceShareResponse_clientToken :: Lens' DisassociateResourceShareResponse (Maybe Text)
- disassociateResourceShareResponse_resourceShareAssociations :: Lens' DisassociateResourceShareResponse (Maybe [ResourceShareAssociation])
- disassociateResourceShareResponse_httpStatus :: Lens' DisassociateResourceShareResponse Int
Creating a Request
data DisassociateResourceShare Source #
See: newDisassociateResourceShare
smart constructor.
DisassociateResourceShare' | |
|
Instances
newDisassociateResourceShare Source #
Create a value of DisassociateResourceShare
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:
DisassociateResourceShare
, disassociateResourceShare_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.
$sel:principals:DisassociateResourceShare'
, disassociateResourceShare_principals
- Specifies a list of one or more principals that no longer are to have
access to the resources in this resource share.
You can include the following values:
- An Amazon Web Services account ID, for example:
123456789012
- An
Amazon Resoure Name (ARN)
of an organization in Organizations, for example:
organizations::123456789012:organization/o-exampleorgid
- An ARN of an organizational unit (OU) in Organizations, for example:
organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid123
- An ARN of an IAM role, for example:
iam::123456789012:role/rolename
- An ARN of an IAM user, for example:
iam::123456789012user/username
Not all resource types can be shared with IAM roles and users. For more information, see Sharing with IAM roles and users in the Resource Access Manager User Guide.
$sel:resourceArns:DisassociateResourceShare'
, disassociateResourceShare_resourceArns
- Specifies a list of
Amazon Resource Names (ARNs)
for one or more resources that you want to remove from the resource
share. After the operation runs, these resources are no longer shared
with principals outside of the Amazon Web Services account that created
the resources.
DisassociateResourceShare
, disassociateResourceShare_resourceShareArn
- Specifies
Amazon Resoure Name (ARN)
of the resource share that you want to remove resources from.
Request Lenses
disassociateResourceShare_clientToken :: Lens' DisassociateResourceShare (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.
disassociateResourceShare_principals :: Lens' DisassociateResourceShare (Maybe [Text]) Source #
Specifies a list of one or more principals that no longer are to have access to the resources in this resource share.
You can include the following values:
- An Amazon Web Services account ID, for example:
123456789012
- An
Amazon Resoure Name (ARN)
of an organization in Organizations, for example:
organizations::123456789012:organization/o-exampleorgid
- An ARN of an organizational unit (OU) in Organizations, for example:
organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid123
- An ARN of an IAM role, for example:
iam::123456789012:role/rolename
- An ARN of an IAM user, for example:
iam::123456789012user/username
Not all resource types can be shared with IAM roles and users. For more information, see Sharing with IAM roles and users in the Resource Access Manager User Guide.
disassociateResourceShare_resourceArns :: Lens' DisassociateResourceShare (Maybe [Text]) Source #
Specifies a list of Amazon Resource Names (ARNs) for one or more resources that you want to remove from the resource share. After the operation runs, these resources are no longer shared with principals outside of the Amazon Web Services account that created the resources.
disassociateResourceShare_resourceShareArn :: Lens' DisassociateResourceShare Text Source #
Specifies Amazon Resoure Name (ARN) of the resource share that you want to remove resources from.
Destructuring the Response
data DisassociateResourceShareResponse Source #
See: newDisassociateResourceShareResponse
smart constructor.
DisassociateResourceShareResponse' | |
|
Instances
newDisassociateResourceShareResponse Source #
Create a value of DisassociateResourceShareResponse
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:
DisassociateResourceShare
, disassociateResourceShareResponse_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.
DisassociateResourceShareResponse
, disassociateResourceShareResponse_resourceShareAssociations
- An array of objects that contain information about the updated
associations for this resource share.
$sel:httpStatus:DisassociateResourceShareResponse'
, disassociateResourceShareResponse_httpStatus
- The response's http status code.
Response Lenses
disassociateResourceShareResponse_clientToken :: Lens' DisassociateResourceShareResponse (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.
disassociateResourceShareResponse_resourceShareAssociations :: Lens' DisassociateResourceShareResponse (Maybe [ResourceShareAssociation]) Source #
An array of objects that contain information about the updated associations for this resource share.
disassociateResourceShareResponse_httpStatus :: Lens' DisassociateResourceShareResponse Int Source #
The response's http status code.