Interface CreateProtectionRequest.Builder

    • Method Detail

      • name

        CreateProtectionRequest.Builder name​(String name)

        Friendly name for the Protection you are creating.

        Parameters:
        name - Friendly name for the Protection you are creating.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • resourceArn

        CreateProtectionRequest.Builder resourceArn​(String 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 an Amazon CloudFront distribution: arn:aws:cloudfront::account-id:distribution/distribution-id

        • For an Global Accelerator standard accelerator: arn:aws:globalaccelerator::account-id:accelerator/accelerator-id

        • For Amazon RouteĀ 53: arn:aws:route53:::hostedzone/hosted-zone-id

        • For an Elastic IP address: arn:aws:ec2:region:account-id:eip-allocation/allocation-id

        Parameters:
        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 an Amazon CloudFront distribution: arn:aws:cloudfront::account-id:distribution/distribution-id

        • For an Global Accelerator standard accelerator: arn:aws:globalaccelerator::account-id:accelerator/accelerator-id

        • For Amazon RouteĀ 53: arn:aws:route53:::hostedzone/hosted-zone-id

        • For an Elastic IP address: arn:aws:ec2:region:account-id:eip-allocation/allocation-id

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateProtectionRequest.Builder tags​(Collection<Tag> tags)

        One or more tag key-value pairs for the Protection object that is created.

        Parameters:
        tags - One or more tag key-value pairs for the Protection object that is created.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateProtectionRequest.Builder tags​(Tag... tags)

        One or more tag key-value pairs for the Protection object that is created.

        Parameters:
        tags - One or more tag key-value pairs for the Protection object that is created.
        Returns:
        Returns a reference to this object so that method calls can be chained together.