describeLocationObjectStorage method
Future<DescribeLocationObjectStorageResponse>
describeLocationObjectStorage({
- required String locationArn,
Returns metadata about a self-managed object storage server location. For more information about self-managed object storage locations, see create-object-location.
May throw InvalidRequestException. May throw InternalException.
Parameter locationArn
:
The Amazon Resource Name (ARN) of the self-managed object storage server
location that was described.
Implementation
Future<DescribeLocationObjectStorageResponse> describeLocationObjectStorage({
required String locationArn,
}) async {
ArgumentError.checkNotNull(locationArn, 'locationArn');
_s.validateStringLength(
'locationArn',
locationArn,
0,
128,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'FmrsService.DescribeLocationObjectStorage'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'LocationArn': locationArn,
},
);
return DescribeLocationObjectStorageResponse.fromJson(jsonResponse.body);
}