acceptEngagementInvitation method
Use the AcceptEngagementInvitation action to accept an
engagement invitation shared by AWS. Accepting the invitation indicates
your willingness to participate in the engagement, granting you access to
all engagement-related data.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter catalog :
The CatalogType parameter specifies the catalog associated
with the engagement invitation. Accepted values are AWS and
Sandbox, which determine the environment in which the
engagement invitation is managed.
Parameter identifier :
The Identifier parameter in the
AcceptEngagementInvitationRequest specifies the unique
identifier of the EngagementInvitation to be accepted.
Providing the correct identifier ensures that the intended invitation is
accepted.
Implementation
Future<void> acceptEngagementInvitation({
required String catalog,
required String identifier,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'AWSPartnerCentralSelling.AcceptEngagementInvitation'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Catalog': catalog,
'Identifier': identifier,
},
);
}