describeInstanceAttribute method

Future<DescribeInstanceAttributeResponse> describeInstanceAttribute({
  1. required InstanceAttributeType attributeType,
  2. required String instanceId,
})

This API is in preview release for Connect Customer and is subject to change.

Describes the specified instance attribute.

May throw InternalServiceException. May throw InvalidParameterException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter attributeType : The type of attribute.

Parameter instanceId : The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

Implementation

Future<DescribeInstanceAttributeResponse> describeInstanceAttribute({
  required InstanceAttributeType attributeType,
  required String instanceId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/instance/${Uri.encodeComponent(instanceId)}/attribute/${Uri.encodeComponent(attributeType.value)}',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeInstanceAttributeResponse.fromJson(response);
}