#[non_exhaustive]pub struct CreateProtectionInput { /* private fields */ }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.
source§impl CreateProtectionInput
impl CreateProtectionInput
sourcepub fn builder() -> CreateProtectionInputBuilder
pub fn builder() -> CreateProtectionInputBuilder
Creates a new builder-style object to manufacture CreateProtectionInput.
source§impl CreateProtectionInput
impl CreateProtectionInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateProtection, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation( &self, _config: &Config ) -> Result<Operation<CreateProtection, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateProtection>
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<CreateProtectionInput> for CreateProtectionInput
impl PartialEq<CreateProtectionInput> 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 ==.