updateLinkAttributes method

Future<void> updateLinkAttributes({
  1. required List<LinkAttributeUpdate> attributeUpdates,
  2. required String directoryArn,
  3. required TypedLinkSpecifier typedLinkSpecifier,
})

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 InternalServiceException. May throw InvalidArnException. May throw RetryableConflictException. May throw ValidationException. May throw LimitExceededException. May throw AccessDeniedException. May throw DirectoryNotEnabledException. May throw ResourceNotFoundException. May throw FacetValidationException.

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 {
  ArgumentError.checkNotNull(attributeUpdates, 'attributeUpdates');
  ArgumentError.checkNotNull(directoryArn, 'directoryArn');
  ArgumentError.checkNotNull(typedLinkSpecifier, 'typedLinkSpecifier');
  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,
  );
}