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

CreateProtection() public method

Enables AWS Shield Advanced for a specific AWS resource. The resource can be an Amazon CloudFront distribution, Elastic Load Balancing load balancer, or an Amazon Route 53 hosted zone.
/// Exception that indicates that a problem occurred with the service infrastructure. /// You can retry the request. /// /// Exception that indicates that the operation would not cause any change to occur. /// /// Exception that indicates that the resource is invalid. You might not have access to /// the resource, or the resource might not exist. /// /// Exception that indicates that the operation would exceed a limit. /// /// Exception that indicates that the protection state has been modified by another client. /// You can retry the request. /// /// Exception indicating the specified resource already exists. /// /// Exception indicating the specified resource does not exist. ///
public CreateProtection ( CreateProtectionRequest request ) : CreateProtectionResponse
request Amazon.Shield.Model.CreateProtectionRequest Container for the necessary parameters to execute the CreateProtection service method.
return Amazon.Shield.Model.CreateProtectionResponse
        public CreateProtectionResponse CreateProtection(CreateProtectionRequest request)
        {
            var marshaller = new CreateProtectionRequestMarshaller();
            var unmarshaller = CreateProtectionResponseUnmarshaller.Instance;

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