Amazon.CodeCommit.AmazonCodeCommitClient.PutRepositoryTriggers C# (CSharp) Method

PutRepositoryTriggers() public method

Replaces all triggers for a repository. This can be used to create or delete triggers.
/// An encryption integrity check failed. /// /// An encryption key could not be accessed. /// /// The encryption key is disabled. /// /// No encryption key was found. /// /// The encryption key is not available. /// /// At least one specified repository name is not valid. /// /// /// /// This exception only occurs when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// One or more branch names specified for the trigger is not valid. /// /// The custom data provided for the trigger is not valid. /// /// The Amazon Resource Name (ARN) for the trigger is not valid for the specified destination. /// The most common reason for this error is that the ARN does not meet the requirements /// for the service type. /// /// One or more events specified for the trigger is not valid. Check to make sure that /// all events specified match the requirements for allowed events. /// /// The name of the trigger is not valid. /// /// The region for the trigger target does not match the region for the repository. Triggers /// must be created in the same region as the target for the trigger. /// /// The number of branches for the trigger was exceeded. /// /// The number of triggers allowed for the repository was exceeded. /// /// The specified repository does not exist. /// /// A repository name is required but was not specified. /// /// At least one branch name is required but was not specified in the trigger configuration. /// /// A destination ARN for the target service for the trigger is required but was not specified. /// /// At least one event for the trigger is required but was not specified. /// /// A name for the trigger is required but was not specified. /// /// The list of triggers for the repository is required but was not specified. ///
public PutRepositoryTriggers ( PutRepositoryTriggersRequest request ) : PutRepositoryTriggersResponse
request Amazon.CodeCommit.Model.PutRepositoryTriggersRequest Container for the necessary parameters to execute the PutRepositoryTriggers service method.
return Amazon.CodeCommit.Model.PutRepositoryTriggersResponse
        public PutRepositoryTriggersResponse PutRepositoryTriggers(PutRepositoryTriggersRequest request)
        {
            var marshaller = new PutRepositoryTriggersRequestMarshaller();
            var unmarshaller = PutRepositoryTriggersResponseUnmarshaller.Instance;

            return Invoke<PutRepositoryTriggersRequest,PutRepositoryTriggersResponse>(request, marshaller, unmarshaller);
        }