updateLinkAttributes method
Updates a given typed link’s attributes. Attributes to be updated must not
contribute to the typed link’s identity, as defined by its
IdentityAttributeOrder.
May throw AccessDeniedException.
May throw DirectoryNotEnabledException.
May throw FacetValidationException.
May throw InternalServiceException.
May throw InvalidArnException.
May throw LimitExceededException.
May throw ResourceNotFoundException.
May throw RetryableConflictException.
May throw ValidationException.
Parameter attributeUpdates :
The attributes update structure.
Parameter directoryArn :
The Amazon Resource Name (ARN) that is associated with the Directory where
the updated typed link resides. For more information, see arns or
Typed
Links.
Parameter typedLinkSpecifier :
Allows a typed link specifier to be accepted as input.
Implementation
Future<void> updateLinkAttributes({
required List<LinkAttributeUpdate> attributeUpdates,
required String directoryArn,
required TypedLinkSpecifier typedLinkSpecifier,
}) async {
final headers = <String, String>{
'x-amz-data-partition': directoryArn.toString(),
};
final $payload = <String, dynamic>{
'AttributeUpdates': attributeUpdates,
'TypedLinkSpecifier': typedLinkSpecifier,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/amazonclouddirectory/2017-01-11/typedlink/attributes/update',
headers: headers,
exceptionFnMap: _exceptionFns,
);
}