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 |
Accepts an invitation to a resource share from another Amazon Web Services account. After you accept the invitation, the resources included in the resource share are available to interact with in the relevant Amazon Web Services Management Consoles and tools.
Synopsis
- data AcceptResourceShareInvitation = AcceptResourceShareInvitation' {}
- newAcceptResourceShareInvitation :: Text -> AcceptResourceShareInvitation
- acceptResourceShareInvitation_clientToken :: Lens' AcceptResourceShareInvitation (Maybe Text)
- acceptResourceShareInvitation_resourceShareInvitationArn :: Lens' AcceptResourceShareInvitation Text
- data AcceptResourceShareInvitationResponse = AcceptResourceShareInvitationResponse' {}
- newAcceptResourceShareInvitationResponse :: Int -> AcceptResourceShareInvitationResponse
- acceptResourceShareInvitationResponse_clientToken :: Lens' AcceptResourceShareInvitationResponse (Maybe Text)
- acceptResourceShareInvitationResponse_resourceShareInvitation :: Lens' AcceptResourceShareInvitationResponse (Maybe ResourceShareInvitation)
- acceptResourceShareInvitationResponse_httpStatus :: Lens' AcceptResourceShareInvitationResponse Int
Creating a Request
data AcceptResourceShareInvitation Source #
See: newAcceptResourceShareInvitation
smart constructor.
AcceptResourceShareInvitation' | |
|
Instances
newAcceptResourceShareInvitation Source #
Create a value of AcceptResourceShareInvitation
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:
AcceptResourceShareInvitation
, acceptResourceShareInvitation_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.
AcceptResourceShareInvitation
, acceptResourceShareInvitation_resourceShareInvitationArn
- The
Amazon Resoure Name (ARN)
of the invitation that you want to accept.
Request Lenses
acceptResourceShareInvitation_clientToken :: Lens' AcceptResourceShareInvitation (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.
acceptResourceShareInvitation_resourceShareInvitationArn :: Lens' AcceptResourceShareInvitation Text Source #
The Amazon Resoure Name (ARN) of the invitation that you want to accept.
Destructuring the Response
data AcceptResourceShareInvitationResponse Source #
See: newAcceptResourceShareInvitationResponse
smart constructor.
AcceptResourceShareInvitationResponse' | |
|
Instances
newAcceptResourceShareInvitationResponse Source #
Create a value of AcceptResourceShareInvitationResponse
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:
AcceptResourceShareInvitation
, acceptResourceShareInvitationResponse_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:resourceShareInvitation:AcceptResourceShareInvitationResponse'
, acceptResourceShareInvitationResponse_resourceShareInvitation
- An object that contains information about the specified invitation.
$sel:httpStatus:AcceptResourceShareInvitationResponse'
, acceptResourceShareInvitationResponse_httpStatus
- The response's http status code.
Response Lenses
acceptResourceShareInvitationResponse_clientToken :: Lens' AcceptResourceShareInvitationResponse (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.
acceptResourceShareInvitationResponse_resourceShareInvitation :: Lens' AcceptResourceShareInvitationResponse (Maybe ResourceShareInvitation) Source #
An object that contains information about the specified invitation.
acceptResourceShareInvitationResponse_httpStatus :: Lens' AcceptResourceShareInvitationResponse Int Source #
The response's http status code.