#[non_exhaustive]pub struct CreateProtectionInputBuilder { /* private fields */ }
Expand description
A builder for CreateProtectionInput
.
Implementations§
source§impl CreateProtectionInputBuilder
impl CreateProtectionInputBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
Friendly name for the Protection
you are creating.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
Friendly name for the Protection
you are creating.
sourcepub fn resource_arn(self, input: impl Into<String>) -> Self
pub fn resource_arn(self, input: impl Into<String>) -> Self
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
sourcepub fn set_resource_arn(self, input: Option<String>) -> Self
pub fn set_resource_arn(self, input: Option<String>) -> Self
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
sourcepub fn get_resource_arn(&self) -> &Option<String>
pub fn get_resource_arn(&self) -> &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
Appends an item to tags
.
To override the contents of this collection use set_tags
.
One or more tag key-value pairs for the Protection
object that is created.
One or more tag key-value pairs for the Protection
object that is created.
One or more tag key-value pairs for the Protection
object that is created.
sourcepub fn build(self) -> Result<CreateProtectionInput, BuildError>
pub fn build(self) -> Result<CreateProtectionInput, BuildError>
Consumes the builder and constructs a CreateProtectionInput
.
source§impl CreateProtectionInputBuilder
impl CreateProtectionInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateProtectionOutput, SdkError<CreateProtectionError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateProtectionOutput, SdkError<CreateProtectionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateProtectionInputBuilder
impl Clone for CreateProtectionInputBuilder
source§fn clone(&self) -> CreateProtectionInputBuilder
fn clone(&self) -> CreateProtectionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateProtectionInputBuilder
impl Debug for CreateProtectionInputBuilder
source§impl Default for CreateProtectionInputBuilder
impl Default for CreateProtectionInputBuilder
source§fn default() -> CreateProtectionInputBuilder
fn default() -> CreateProtectionInputBuilder
source§impl PartialEq for CreateProtectionInputBuilder
impl PartialEq for CreateProtectionInputBuilder
source§fn eq(&self, other: &CreateProtectionInputBuilder) -> bool
fn eq(&self, other: &CreateProtectionInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.