#[non_exhaustive]pub struct CreateProtectionInput {
pub name: Option<String>,
pub resource_arn: Option<String>,
pub tags: Option<Vec<Tag>>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: Option<String>Friendly name for the Protection you are creating.
resource_arn: Option<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 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
One or more tag key-value pairs for the Protection object that is created.
Implementations§
source§impl CreateProtectionInput
impl CreateProtectionInput
sourcepub fn resource_arn(&self) -> Option<&str>
pub fn resource_arn(&self) -> Option<&str>
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
One or more tag key-value pairs for the Protection object that is created.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none().
source§impl CreateProtectionInput
impl CreateProtectionInput
sourcepub fn builder() -> CreateProtectionInputBuilder
pub fn builder() -> CreateProtectionInputBuilder
Creates a new builder-style object to manufacture CreateProtectionInput.
Trait Implementations§
source§impl Clone for CreateProtectionInput
impl Clone for CreateProtectionInput
source§fn clone(&self) -> CreateProtectionInput
fn clone(&self) -> CreateProtectionInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateProtectionInput
impl Debug for CreateProtectionInput
source§impl PartialEq for CreateProtectionInput
impl PartialEq for CreateProtectionInput
source§fn eq(&self, other: &CreateProtectionInput) -> bool
fn eq(&self, other: &CreateProtectionInput) -> bool
self and other values to be equal, and is used
by ==.