getDataRetrievalPolicy method
This operation returns the current data retrieval policy for the account and region specified in the GET request. For more information about data retrieval policies, see Amazon Glacier Data Retrieval Policies.
May throw InvalidParameterValueException. May throw MissingParameterValueException. May throw ServiceUnavailableException.
Parameter accountId
:
The AccountId
value is the AWS account ID. This value must
match the AWS account ID associated with the credentials used to sign the
request. You can either specify an AWS account ID or optionally a single
'-
' (hyphen), in which case Amazon Glacier uses the AWS
account ID associated with the credentials used to sign the request. If
you specify your account ID, do not include any hyphens ('-') in the ID.
Implementation
Future<GetDataRetrievalPolicyOutput> getDataRetrievalPolicy({
required String accountId,
}) async {
ArgumentError.checkNotNull(accountId, 'accountId');
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/${Uri.encodeComponent(accountId)}/policies/data-retrieval',
exceptionFnMap: _exceptionFns,
);
return GetDataRetrievalPolicyOutput.fromJson(response);
}