getDataProtectionPolicy method

Future<GetDataProtectionPolicyResponse> getDataProtectionPolicy({
  1. required String resourceArn,
})

Retrieves the specified inline DataProtectionPolicy document that is stored in the specified Amazon SNS topic.

May throw AuthorizationErrorException. May throw InternalErrorException. May throw InvalidParameterException. May throw InvalidSecurityException. May throw NotFoundException.

Parameter resourceArn : The ARN of the topic whose DataProtectionPolicy you want to get.

For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.

Implementation

Future<GetDataProtectionPolicyResponse> getDataProtectionPolicy({
  required String resourceArn,
}) async {
  final $request = <String, String>{
    'ResourceArn': resourceArn,
  };
  final $result = await _protocol.send(
    $request,
    action: 'GetDataProtectionPolicy',
    version: '2010-03-31',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    resultWrapper: 'GetDataProtectionPolicyResult',
  );
  return GetDataProtectionPolicyResponse.fromXml($result);
}