Amazon.Shield.AmazonShieldClient.CreateProtectionAsync C# (CSharp) Method

CreateProtectionAsync() public method

Initiates the asynchronous execution of the CreateProtection operation.
public CreateProtectionAsync ( CreateProtectionRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.Shield.Model.CreateProtectionRequest Container for the necessary parameters to execute the CreateProtection operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
        public Task<CreateProtectionResponse> CreateProtectionAsync(CreateProtectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new CreateProtectionRequestMarshaller();
            var unmarshaller = CreateProtectionResponseUnmarshaller.Instance;

            return InvokeAsync<CreateProtectionRequest,CreateProtectionResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }