Module Values.CreateProtectionResponseSource

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.

Sourcetype nonrec t = {
  1. protectionId : ProtectionId.t option;
    (*

    The unique identifier (ID) for the Protection object that is created.

    *)
}
Sourcetype nonrec error = [
  1. | `InternalErrorException of InternalErrorException.t
  2. | `InvalidOperationException of InvalidOperationException.t
  3. | `InvalidParameterException of InvalidParameterException.t
  4. | `InvalidResourceException of InvalidResourceException.t
  5. | `LimitsExceededException of LimitsExceededException.t
  6. | `OptimisticLockException of OptimisticLockException.t
  7. | `ResourceAlreadyExistsException of ResourceAlreadyExistsException.t
  8. | `ResourceNotFoundException of ResourceNotFoundException.t
  9. | `Unknown_operation_error of string * string option
]
Sourceval make : ?protectionId:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `InternalErrorException of InternalErrorException.t | `InvalidOperationException of InvalidOperationException.t | `InvalidParameterException of InvalidParameterException.t | `InvalidResourceException of InvalidResourceException.t | `LimitsExceededException of LimitsExceededException.t | `OptimisticLockException of OptimisticLockException.t | `ResourceAlreadyExistsException of ResourceAlreadyExistsException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `InternalErrorException of InternalErrorException.t | `InvalidOperationException of InvalidOperationException.t | `InvalidParameterException of InvalidParameterException.t | `InvalidResourceException of InvalidResourceException.t | `LimitsExceededException of LimitsExceededException.t | `OptimisticLockException of OptimisticLockException.t | `ResourceAlreadyExistsException of ResourceAlreadyExistsException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `String of ProtectionId.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t