public void SecretsManagerGetResourcePolicy()
        {
            #region to-retrieve-the-resource-based-policy-attached-to-a-secret-1530209677536

            var response = client.GetResourcePolicy(new GetResourcePolicyRequest
            {
                SecretId = "MyTestDatabaseSecret"
            });

            string arn            = response.ARN;
            string name           = response.Name;
            string resourcePolicy = response.ResourcePolicy;

            #endregion
        }
 private Amazon.SecretsManager.Model.GetResourcePolicyResponse CallAWSServiceOperation(IAmazonSecretsManager client, Amazon.SecretsManager.Model.GetResourcePolicyRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Secrets Manager", "GetResourcePolicy");
     try
     {
         #if DESKTOP
         return(client.GetResourcePolicy(request));
         #elif CORECLR
         return(client.GetResourcePolicyAsync(request).GetAwaiter().GetResult());
         #else
                 #error "Unknown build edition"
         #endif
     }
     catch (AmazonServiceException exc)
     {
         var webException = exc.InnerException as System.Net.WebException;
         if (webException != null)
         {
             throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException);
         }
         throw;
     }
 }