Struct aws_sdk_shield::input::CreateProtectionInput [−][src]
#[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 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
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateProtection, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateProtection, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<CreateProtection>
Creates a new builder-style object to manufacture CreateProtectionInput
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for CreateProtectionInput
impl Send for CreateProtectionInput
impl Sync for CreateProtectionInput
impl Unpin for CreateProtectionInput
impl UnwindSafe for CreateProtectionInput
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more