updateTypedLinkFacet method

Future<void> updateTypedLinkFacet({
  1. required List<TypedLinkFacetAttributeUpdate> attributeUpdates,
  2. required List<String> identityAttributeOrder,
  3. required String name,
  4. required String schemaArn,
})

Updates a TypedLinkFacet. For more information, see Typed link.

May throw InternalServiceException. May throw InvalidArnException. May throw RetryableConflictException. May throw ValidationException. May throw LimitExceededException. May throw AccessDeniedException. May throw FacetValidationException. May throw InvalidFacetUpdateException. May throw ResourceNotFoundException. May throw FacetNotFoundException. May throw InvalidRuleException.

Parameter attributeUpdates : Attributes update structure.

Parameter identityAttributeOrder : The order of identity attributes for the facet, from most significant to least significant. The ability to filter typed links considers the order that the attributes are defined on the typed link facet. When providing ranges to a typed link selection, any inexact ranges must be specified at the end. Any attributes that do not have a range specified are presumed to match the entire range. Filters are interpreted in the order of the attributes on the typed link facet, not the order in which they are supplied to any API calls. For more information about identity attributes, see Typed link.

Parameter name : The unique name of the typed link facet.

Parameter schemaArn : The Amazon Resource Name (ARN) that is associated with the schema. For more information, see arns.

Implementation

Future<void> updateTypedLinkFacet({
  required List<TypedLinkFacetAttributeUpdate> attributeUpdates,
  required List<String> identityAttributeOrder,
  required String name,
  required String schemaArn,
}) async {
  ArgumentError.checkNotNull(attributeUpdates, 'attributeUpdates');
  ArgumentError.checkNotNull(
      identityAttributeOrder, 'identityAttributeOrder');
  ArgumentError.checkNotNull(name, 'name');
  ArgumentError.checkNotNull(schemaArn, 'schemaArn');
  final headers = <String, String>{
    'x-amz-data-partition': schemaArn.toString(),
  };
  final $payload = <String, dynamic>{
    'AttributeUpdates': attributeUpdates,
    'IdentityAttributeOrder': identityAttributeOrder,
    'Name': name,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri: '/amazonclouddirectory/2017-01-11/typedlink/facet',
    headers: headers,
    exceptionFnMap: _exceptionFns,
  );
}