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 the specified resource share with the specified principals and resources.
Synopsis
- data AssociateResourceShare = AssociateResourceShare' {
- clientToken :: Maybe Text
- principals :: Maybe [Text]
- resourceArns :: Maybe [Text]
- resourceShareArn :: Text
- newAssociateResourceShare :: Text -> AssociateResourceShare
- associateResourceShare_clientToken :: Lens' AssociateResourceShare (Maybe Text)
- associateResourceShare_principals :: Lens' AssociateResourceShare (Maybe [Text])
- associateResourceShare_resourceArns :: Lens' AssociateResourceShare (Maybe [Text])
- associateResourceShare_resourceShareArn :: Lens' AssociateResourceShare Text
- data AssociateResourceShareResponse = AssociateResourceShareResponse' {}
- newAssociateResourceShareResponse :: Int -> AssociateResourceShareResponse
- associateResourceShareResponse_clientToken :: Lens' AssociateResourceShareResponse (Maybe Text)
- associateResourceShareResponse_resourceShareAssociations :: Lens' AssociateResourceShareResponse (Maybe [ResourceShareAssociation])
- associateResourceShareResponse_httpStatus :: Lens' AssociateResourceShareResponse Int
Creating a Request
data AssociateResourceShare Source #
See: newAssociateResourceShare
smart constructor.
AssociateResourceShare' | |
|
Instances
newAssociateResourceShare Source #
Create a value of AssociateResourceShare
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:clientToken:AssociateResourceShare'
, associateResourceShare_clientToken
- A unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
$sel:principals:AssociateResourceShare'
, associateResourceShare_principals
- The principals to associate with the resource share. The possible values
are:
- An Amazon Web Services account ID
- An Amazon Resource Name (ARN) of an organization in Organizations
- An ARN of an organizational unit (OU) in Organizations
- An ARN of an IAM role
- An ARN of an IAM user
Not all resource types can be shared with IAM roles and IAM users. For more information, see Sharing with IAM roles and IAM users in the Resource Access Manager User Guide.
$sel:resourceArns:AssociateResourceShare'
, associateResourceShare_resourceArns
- The Amazon Resource Names (ARNs) of the resources.
$sel:resourceShareArn:AssociateResourceShare'
, associateResourceShare_resourceShareArn
- The Amazon Resource Name (ARN) of the resource share.
Request Lenses
associateResourceShare_clientToken :: Lens' AssociateResourceShare (Maybe Text) Source #
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
associateResourceShare_principals :: Lens' AssociateResourceShare (Maybe [Text]) Source #
The principals to associate with the resource share. The possible values are:
- An Amazon Web Services account ID
- An Amazon Resource Name (ARN) of an organization in Organizations
- An ARN of an organizational unit (OU) in Organizations
- An ARN of an IAM role
- An ARN of an IAM user
Not all resource types can be shared with IAM roles and IAM users. For more information, see Sharing with IAM roles and IAM users in the Resource Access Manager User Guide.
associateResourceShare_resourceArns :: Lens' AssociateResourceShare (Maybe [Text]) Source #
The Amazon Resource Names (ARNs) of the resources.
associateResourceShare_resourceShareArn :: Lens' AssociateResourceShare Text Source #
The Amazon Resource Name (ARN) of the resource share.
Destructuring the Response
data AssociateResourceShareResponse Source #
See: newAssociateResourceShareResponse
smart constructor.
AssociateResourceShareResponse' | |
|
Instances
newAssociateResourceShareResponse Source #
Create a value of AssociateResourceShareResponse
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:clientToken:AssociateResourceShare'
, associateResourceShareResponse_clientToken
- A unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
$sel:resourceShareAssociations:AssociateResourceShareResponse'
, associateResourceShareResponse_resourceShareAssociations
- Information about the associations.
$sel:httpStatus:AssociateResourceShareResponse'
, associateResourceShareResponse_httpStatus
- The response's http status code.
Response Lenses
associateResourceShareResponse_clientToken :: Lens' AssociateResourceShareResponse (Maybe Text) Source #
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
associateResourceShareResponse_resourceShareAssociations :: Lens' AssociateResourceShareResponse (Maybe [ResourceShareAssociation]) Source #
Information about the associations.
associateResourceShareResponse_httpStatus :: Lens' AssociateResourceShareResponse Int Source #
The response's http status code.