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) |
CreateProtectionRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
CreateProtectionRequest.Builder |
resourceArn(String resourceArn)
The ARN (Amazon Resource Name) of the resource to be protected.
|
CreateProtectionRequest.Builder |
tags(Collection<Tag> tags)
One or more tag key-value pairs for the Protection object that is created.
|
CreateProtectionRequest.Builder |
tags(Consumer<Tag.Builder>... tags)
One or more tag key-value pairs for the Protection object that is created.
|
CreateProtectionRequest.Builder |
tags(Tag... tags)
One or more tag key-value pairs for the Protection object that is created.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildCreateProtectionRequest.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 an AWS CloudFront distribution:
arn:aws:cloudfront::account-id:distribution/distribution-id
For an AWS Global Accelerator 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
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 AWS CloudFront distribution:
arn:aws:cloudfront::account-id:distribution/distribution-id
For an AWS Global Accelerator 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
CreateProtectionRequest.Builder tags(Collection<Tag> tags)
One or more tag key-value pairs for the Protection object that is created.
tags - One or more tag key-value pairs for the Protection object that is created.CreateProtectionRequest.Builder tags(Tag... tags)
One or more tag key-value pairs for the Protection object that is created.
tags - One or more tag key-value pairs for the Protection object that is created.CreateProtectionRequest.Builder tags(Consumer<Tag.Builder>... tags)
One or more tag key-value pairs for the Protection object that is created.
This is a convenience that creates an instance of theList.Builder avoiding the need to create
one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and its result
is passed to #tags(List) .tags - a consumer that will call methods on List.Builder #tags(List) CreateProtectionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderCreateProtectionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2021. All rights reserved.