Smaws_Client_Shield.CreateProtection
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 CreateProtection
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.
val request :
Smaws_Lib.Context.t ->
Types.create_protection_request ->
(Types.create_protection_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `InternalErrorException of Types.internal_error_exception
| `InvalidOperationException of Types.invalid_operation_exception
| `InvalidParameterException of Types.invalid_parameter_exception
| `InvalidResourceException of Types.invalid_resource_exception
| `LimitsExceededException of Types.limits_exceeded_exception
| `OptimisticLockException of Types.optimistic_lock_exception
| `ResourceAlreadyExistsException of
Types.resource_already_exists_exception
| `ResourceNotFoundException of Types.resource_not_found_exception ])
Stdlib.result