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 |
Resource shares that were created by attaching a policy to a resource are visible only to the resource share owner, and the resource share cannot be modified in RAM.
Use this API action to promote the resource share. When you promote the resource share, it becomes:
- Visible to all principals that it is shared with.
- Modifiable in RAM.
Synopsis
- data PromoteResourceShareCreatedFromPolicy = PromoteResourceShareCreatedFromPolicy' {}
- newPromoteResourceShareCreatedFromPolicy :: Text -> PromoteResourceShareCreatedFromPolicy
- promoteResourceShareCreatedFromPolicy_resourceShareArn :: Lens' PromoteResourceShareCreatedFromPolicy Text
- data PromoteResourceShareCreatedFromPolicyResponse = PromoteResourceShareCreatedFromPolicyResponse' {
- returnValue :: Maybe Bool
- httpStatus :: Int
- newPromoteResourceShareCreatedFromPolicyResponse :: Int -> PromoteResourceShareCreatedFromPolicyResponse
- promoteResourceShareCreatedFromPolicyResponse_returnValue :: Lens' PromoteResourceShareCreatedFromPolicyResponse (Maybe Bool)
- promoteResourceShareCreatedFromPolicyResponse_httpStatus :: Lens' PromoteResourceShareCreatedFromPolicyResponse Int
Creating a Request
data PromoteResourceShareCreatedFromPolicy Source #
See: newPromoteResourceShareCreatedFromPolicy
smart constructor.
PromoteResourceShareCreatedFromPolicy' | |
|
Instances
newPromoteResourceShareCreatedFromPolicy Source #
:: Text |
|
-> PromoteResourceShareCreatedFromPolicy |
Create a value of PromoteResourceShareCreatedFromPolicy
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:resourceShareArn:PromoteResourceShareCreatedFromPolicy'
, promoteResourceShareCreatedFromPolicy_resourceShareArn
- The Amazon Resource Name (ARN) of the resource share to promote.
Request Lenses
promoteResourceShareCreatedFromPolicy_resourceShareArn :: Lens' PromoteResourceShareCreatedFromPolicy Text Source #
The Amazon Resource Name (ARN) of the resource share to promote.
Destructuring the Response
data PromoteResourceShareCreatedFromPolicyResponse Source #
See: newPromoteResourceShareCreatedFromPolicyResponse
smart constructor.
PromoteResourceShareCreatedFromPolicyResponse' | |
|
Instances
newPromoteResourceShareCreatedFromPolicyResponse Source #
:: Int |
|
-> PromoteResourceShareCreatedFromPolicyResponse |
Create a value of PromoteResourceShareCreatedFromPolicyResponse
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:returnValue:PromoteResourceShareCreatedFromPolicyResponse'
, promoteResourceShareCreatedFromPolicyResponse_returnValue
- Indicates whether the request succeeded.
$sel:httpStatus:PromoteResourceShareCreatedFromPolicyResponse'
, promoteResourceShareCreatedFromPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
promoteResourceShareCreatedFromPolicyResponse_returnValue :: Lens' PromoteResourceShareCreatedFromPolicyResponse (Maybe Bool) Source #
Indicates whether the request succeeded.
promoteResourceShareCreatedFromPolicyResponse_httpStatus :: Lens' PromoteResourceShareCreatedFromPolicyResponse Int Source #
The response's http status code.