示例#1
0
        public void CodePipelineDeleteCustomActionType()
        {
            #region delete-a-custom-action-1449163239567

            var response = client.DeleteCustomActionType(new DeleteCustomActionTypeRequest
            {
                Version  = "1",                    // This is the current version number of the custom action.
                Category = "Build",                // This is the type of action that the custom action is, for example build or test.
                Provider = "MyJenkinsProviderName" // This is the provider of the service used in the custom action. In this example, the custom action is for a Jenkins build, and the name of the provider is the one configured in the AWS CodePipeline Plugin for Jenkins
            });


            #endregion
        }
 private Amazon.CodePipeline.Model.DeleteCustomActionTypeResponse CallAWSServiceOperation(IAmazonCodePipeline client, Amazon.CodePipeline.Model.DeleteCustomActionTypeRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS CodePipeline", "DeleteCustomActionType");
     try
     {
         #if DESKTOP
         return(client.DeleteCustomActionType(request));
         #elif CORECLR
         return(client.DeleteCustomActionTypeAsync(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;
     }
 }