Create Protection
shield_create_protection | R Documentation |
Enables Shield Advanced for a specific Amazon Web Services resource¶
Description¶
Enables Shield Advanced for a specific Amazon Web Services resource. The resource can be an Amazon CloudFront distribution, Amazon RouteĀ 53 hosted zone, Global Accelerator standard accelerator, Elastic IP Address, Application Load Balancer, or a Classic Load Balancer. You can protect Amazon EC2 instances and Network Load Balancers by association with protected Amazon EC2 Elastic IP addresses.
You can add protection to only a single resource with each
create_protection
request. You can add protection to multiple
resources at once through the Shield Advanced console at
https://console.aws.amazon.com/wafv2/shieldv2#/. For more information
see Getting Started with Shield
Advanced
and Adding Shield Advanced protection to Amazon Web Services
resources.
Usage¶
shield_create_protection(Name, ResourceArn, Tags)
Arguments¶
Name |
[required] Friendly name for the |
ResourceArn |
[required] The ARN (Amazon Resource Name) of the resource to be protected. The ARN should be in one of the following formats:
|
Tags |
One or more tag key-value pairs for the Protection object that is created. |
Value¶
A list with the following syntax:
list(
ProtectionId = "string"
)
Request syntax¶
svc$create_protection(
Name = "string",
ResourceArn = "string",
Tags = list(
list(
Key = "string",
Value = "string"
)
)
)