RAM.Client.
reject_resource_share_invitation
(**kwargs)¶Rejects an invitation to a resource share from another Amazon Web Services account.
See also: AWS API Documentation
Request Syntax
response = client.reject_resource_share_invitation(
resourceShareInvitationArn='string',
clientToken='string'
)
[REQUIRED]
Specifies the Amazon Resoure Name (ARN) of the invitation that you want to reject.
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.
dict
Response Syntax
{
'resourceShareInvitation': {
'resourceShareInvitationArn': 'string',
'resourceShareName': 'string',
'resourceShareArn': 'string',
'senderAccountId': 'string',
'receiverAccountId': 'string',
'invitationTimestamp': datetime(2015, 1, 1),
'status': 'PENDING'|'ACCEPTED'|'REJECTED'|'EXPIRED',
'resourceShareAssociations': [
{
'resourceShareArn': 'string',
'resourceShareName': 'string',
'associatedEntity': 'string',
'associationType': 'PRINCIPAL'|'RESOURCE',
'status': 'ASSOCIATING'|'ASSOCIATED'|'FAILED'|'DISASSOCIATING'|'DISASSOCIATED',
'statusMessage': 'string',
'creationTime': datetime(2015, 1, 1),
'lastUpdatedTime': datetime(2015, 1, 1),
'external': True|False
},
],
'receiverArn': 'string'
},
'clientToken': 'string'
}
Response Structure
(dict) --
resourceShareInvitation (dict) --
An object that contains the details about the rejected invitation.
resourceShareInvitationArn (string) --
The Amazon Resoure Name (ARN) of the invitation.
resourceShareName (string) --
The name of the resource share.
resourceShareArn (string) --
The Amazon Resoure Name (ARN) of the resource share
senderAccountId (string) --
The ID of the Amazon Web Services account that sent the invitation.
receiverAccountId (string) --
The ID of the Amazon Web Services account that received the invitation.
invitationTimestamp (datetime) --
The date and time when the invitation was sent.
status (string) --
The current status of the invitation.
resourceShareAssociations (list) --
To view the resources associated with a pending resource share invitation, use ListPendingInvitationResources.
(dict) --
Describes an association with a resource share and either a principal or a resource.
resourceShareArn (string) --
The Amazon Resoure Name (ARN) of the resource share.
resourceShareName (string) --
The name of the resource share.
associatedEntity (string) --
The associated entity. This can be either of the following:
associationType (string) --
The type of entity included in this association.
status (string) --
The current status of the association.
statusMessage (string) --
A message about the status of the association.
creationTime (datetime) --
The date and time when the association was created.
lastUpdatedTime (datetime) --
The date and time when the association was last updated.
external (boolean) --
Indicates whether the principal belongs to the same organization in Organizations as the Amazon Web Services account that owns the resource share.
receiverArn (string) --
The Amazon Resoure Name (ARN) of the IAM user or role that received the invitation.
clientToken (string) --
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.
Exceptions
RAM.Client.exceptions.MalformedArnException
RAM.Client.exceptions.OperationNotPermittedException
RAM.Client.exceptions.ResourceShareInvitationArnNotFoundException
RAM.Client.exceptions.ResourceShareInvitationAlreadyAcceptedException
RAM.Client.exceptions.ResourceShareInvitationAlreadyRejectedException
RAM.Client.exceptions.ResourceShareInvitationExpiredException
RAM.Client.exceptions.ServerInternalException
RAM.Client.exceptions.ServiceUnavailableException
RAM.Client.exceptions.InvalidClientTokenException
RAM.Client.exceptions.IdempotentParameterMismatchException