pub struct CreateProtectionRequest {
pub name: String,
pub resource_arn: String,
}
Fields§
§name: String
Friendly name for the Protection
you are creating.
resource_arn: String
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
Trait Implementations§
Source§impl Clone for CreateProtectionRequest
impl Clone for CreateProtectionRequest
Source§fn clone(&self) -> CreateProtectionRequest
fn clone(&self) -> CreateProtectionRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more