describeInstanceAttribute method
Future<DescribeInstanceAttributeResponse>
describeInstanceAttribute({
- required InstanceAttributeType attributeType,
- required String instanceId,
This API is in preview release for Amazon Connect and is subject to change.
Describes the specified instance attribute.
May throw ResourceNotFoundException. May throw InternalServiceException. May throw InvalidRequestException. May throw InvalidParameterException. May throw ThrottlingException.
Parameter attributeType
:
The type of attribute.
Parameter instanceId
:
The identifier of the Amazon Connect instance.
Implementation
Future<DescribeInstanceAttributeResponse> describeInstanceAttribute({
required InstanceAttributeType attributeType,
required String instanceId,
}) async {
ArgumentError.checkNotNull(attributeType, 'attributeType');
ArgumentError.checkNotNull(instanceId, 'instanceId');
_s.validateStringLength(
'instanceId',
instanceId,
1,
100,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/instance/${Uri.encodeComponent(instanceId)}/attribute/${Uri.encodeComponent(attributeType.toValue())}',
exceptionFnMap: _exceptionFns,
);
return DescribeInstanceAttributeResponse.fromJson(response);
}