AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the CreateProtection operation. Enables AWS Shield Advanced for a specific AWS resource. The resource can be an Amazon CloudFront distribution, Elastic Load Balancing load balancer, Elastic IP Address, or an Amazon Route 53 hosted zone.

You can add protection to only a single resource with each CreateProtection request. If you want to add protection to multiple resources at once, use the AWS WAF console. For more information see Getting Started with AWS Shield Advanced and Add AWS Shield Advanced Protection to more AWS Resources.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.Shield.AmazonShieldRequest
      Amazon.Shield.Model.CreateProtectionRequest

Namespace: Amazon.Shield.Model
Assembly: AWSSDK.Shield.dll
Version: 3.x.y.z

Syntax

C#
public class CreateProtectionRequest : AmazonShieldRequest
         IAmazonWebServiceRequest

The CreateProtectionRequest type exposes the following members

Constructors

NameDescription
Public Method CreateProtectionRequest()

Properties

NameTypeDescription
Public Property Name System.String

Gets and sets the property Name.

Friendly name for the Protection you are creating.

Public Property ResourceArn System.String

Gets and sets the property ResourceArn.

The ARN (Amazon Resource Name) of the resource to be protected.

The ARN should be in one of the following formats:

  • For an Application Load Balancer:

    arn:aws:elasticloadbalancing:region:account-id:loadbalancer/app/load-balancer-name/load-balancer-id
                
    

  • For an Elastic Load Balancer (Classic Load Balancer):

    arn:aws:elasticloadbalancing:region:account-id:loadbalancer/load-balancer-name
                
    

  • For AWS CloudFront distribution:

    arn:aws:cloudfront::account-id:distribution/distribution-id
                
    

  • For Amazon Route 53:

    arn:aws:route53::account-id:hostedzone/hosted-zone-id
                
    

  • For an Elastic IP address:

    arn:aws:ec2:region:account-id:eip-allocation/allocation-id
                
    

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms