public void SecretsManagerCancelRotateSecret()
        {
            #region to-cancel-scheduled-rotation-for-a-secret-1523996016032

            var response = client.CancelRotateSecret(new CancelRotateSecretRequest
            {
                SecretId = "MyTestDatabaseSecret"
            });

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

            #endregion
        }
Beispiel #2
0
 private Amazon.SecretsManager.Model.CancelRotateSecretResponse CallAWSServiceOperation(IAmazonSecretsManager client, Amazon.SecretsManager.Model.CancelRotateSecretRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Secrets Manager", "CancelRotateSecret");
     try
     {
         #if DESKTOP
         return(client.CancelRotateSecret(request));
         #elif CORECLR
         return(client.CancelRotateSecretAsync(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;
     }
 }