public static interface CreateProtectionRequest.Builder extends ShieldRequest.Builder, SdkPojo, CopyableBuilder<CreateProtectionRequest.Builder,CreateProtectionRequest>
Modifier and Type | Method and Description |
---|---|
CreateProtectionRequest.Builder |
name(String name)
Friendly name for the
Protection you are creating. |
CreateProtectionRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
CreateProtectionRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
CreateProtectionRequest.Builder |
resourceArn(String resourceArn)
The ARN (Amazon Resource Name) of the resource to be protected.
|
build
overrideConfiguration
copy
applyMutation, build
CreateProtectionRequest.Builder name(String name)
Friendly name for the Protection
you are creating.
name
- Friendly name for the Protection
you are creating.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 AWS CloudFront distribution:
arn:aws:cloudfront::account-id:distribution/distribution-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
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:::hostedzone/hosted-zone-id
For an Elastic IP address:
arn:aws:ec2:region:account-id:eip-allocation/allocation-id
CreateProtectionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.CreateProtectionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.