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 a permission with a resource share.
Synopsis
- data AssociateResourceSharePermission = AssociateResourceSharePermission' {}
- newAssociateResourceSharePermission :: Text -> Text -> AssociateResourceSharePermission
- associateResourceSharePermission_replace :: Lens' AssociateResourceSharePermission (Maybe Bool)
- associateResourceSharePermission_clientToken :: Lens' AssociateResourceSharePermission (Maybe Text)
- associateResourceSharePermission_permissionVersion :: Lens' AssociateResourceSharePermission (Maybe Int)
- associateResourceSharePermission_resourceShareArn :: Lens' AssociateResourceSharePermission Text
- associateResourceSharePermission_permissionArn :: Lens' AssociateResourceSharePermission Text
- data AssociateResourceSharePermissionResponse = AssociateResourceSharePermissionResponse' {
- clientToken :: Maybe Text
- returnValue :: Maybe Bool
- httpStatus :: Int
- newAssociateResourceSharePermissionResponse :: Int -> AssociateResourceSharePermissionResponse
- associateResourceSharePermissionResponse_clientToken :: Lens' AssociateResourceSharePermissionResponse (Maybe Text)
- associateResourceSharePermissionResponse_returnValue :: Lens' AssociateResourceSharePermissionResponse (Maybe Bool)
- associateResourceSharePermissionResponse_httpStatus :: Lens' AssociateResourceSharePermissionResponse Int
Creating a Request
data AssociateResourceSharePermission Source #
See: newAssociateResourceSharePermission
smart constructor.
AssociateResourceSharePermission' | |
|
Instances
newAssociateResourceSharePermission Source #
Create a value of AssociateResourceSharePermission
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:replace:AssociateResourceSharePermission'
, associateResourceSharePermission_replace
- Indicates whether the permission should replace the permissions that are
currently associated with the resource share. Use true
to replace the
current permissions. Use false
to add the permission to the current
permission.
$sel:clientToken:AssociateResourceSharePermission'
, associateResourceSharePermission_clientToken
- A unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
$sel:permissionVersion:AssociateResourceSharePermission'
, associateResourceSharePermission_permissionVersion
- The version of the RAM permissions to associate with the resource share.
$sel:resourceShareArn:AssociateResourceSharePermission'
, associateResourceSharePermission_resourceShareArn
- The Amazon Resource Name (ARN) of the resource share.
$sel:permissionArn:AssociateResourceSharePermission'
, associateResourceSharePermission_permissionArn
- The Amazon Resource Name (ARN) of the RAM permission to associate with
the resource share.
Request Lenses
associateResourceSharePermission_replace :: Lens' AssociateResourceSharePermission (Maybe Bool) Source #
Indicates whether the permission should replace the permissions that are
currently associated with the resource share. Use true
to replace the
current permissions. Use false
to add the permission to the current
permission.
associateResourceSharePermission_clientToken :: Lens' AssociateResourceSharePermission (Maybe Text) Source #
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
associateResourceSharePermission_permissionVersion :: Lens' AssociateResourceSharePermission (Maybe Int) Source #
The version of the RAM permissions to associate with the resource share.
associateResourceSharePermission_resourceShareArn :: Lens' AssociateResourceSharePermission Text Source #
The Amazon Resource Name (ARN) of the resource share.
associateResourceSharePermission_permissionArn :: Lens' AssociateResourceSharePermission Text Source #
The Amazon Resource Name (ARN) of the RAM permission to associate with the resource share.
Destructuring the Response
data AssociateResourceSharePermissionResponse Source #
See: newAssociateResourceSharePermissionResponse
smart constructor.
AssociateResourceSharePermissionResponse' | |
|
Instances
newAssociateResourceSharePermissionResponse Source #
Create a value of AssociateResourceSharePermissionResponse
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:AssociateResourceSharePermission'
, associateResourceSharePermissionResponse_clientToken
- A unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
$sel:returnValue:AssociateResourceSharePermissionResponse'
, associateResourceSharePermissionResponse_returnValue
- Indicates whether the request succeeded.
$sel:httpStatus:AssociateResourceSharePermissionResponse'
, associateResourceSharePermissionResponse_httpStatus
- The response's http status code.
Response Lenses
associateResourceSharePermissionResponse_clientToken :: Lens' AssociateResourceSharePermissionResponse (Maybe Text) Source #
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
associateResourceSharePermissionResponse_returnValue :: Lens' AssociateResourceSharePermissionResponse (Maybe Bool) Source #
Indicates whether the request succeeded.
associateResourceSharePermissionResponse_httpStatus :: Lens' AssociateResourceSharePermissionResponse Int Source #
The response's http status code.