Module Smaws_Client_Shield.Types

type nonrec error_message = string
type nonrec validation_exception_reason =
  1. | OTHER
  2. | FIELD_VALIDATION_FAILED
type nonrec string_ = string
type nonrec validation_exception_field = {
  1. message : string_;
    (*

    The message describing why the parameter failed validation.

    *)
  2. name : string_;
    (*

    The name of the parameter that failed validation.

    *)
}

Provides information about a particular parameter passed inside a request that resulted in an exception.

type nonrec validation_exception_field_list = validation_exception_field list
type nonrec update_subscription_response = unit
type nonrec auto_renew =
  1. | DISABLED
  2. | ENABLED
type nonrec update_subscription_request = {
  1. auto_renew : auto_renew option;
    (*

    When you initally create a subscription, AutoRenew is set to ENABLED. If ENABLED, the subscription will be automatically renewed at the end of the existing subscription period. You can change this by submitting an UpdateSubscription request. If the UpdateSubscription request does not included a value for AutoRenew, the existing value for AutoRenew remains unchanged.

    *)
}
type nonrec resource_not_found_exception = {
  1. resource_type : string_ option;
    (*

    Type of resource.

    *)
  2. message : error_message option;
}

Exception indicating the specified resource does not exist. If available, this exception includes details in additional properties.

type nonrec optimistic_lock_exception = {
  1. message : error_message option;
}

Exception that indicates that the resource state has been modified by another client. Retrieve the resource and then retry your request.

type nonrec locked_subscription_exception = {
  1. message : error_message option;
}

You are trying to update a subscription that has not yet completed the 1-year commitment. You can change the AutoRenew parameter during the last 30 days of your subscription. This exception indicates that you are attempting to change AutoRenew prior to that period.

type nonrec invalid_parameter_exception = {
  1. fields : validation_exception_field_list option;
    (*

    Fields that caused the exception.

    *)
  2. reason : validation_exception_reason option;
    (*

    Additional information about the exception.

    *)
  3. message : error_message option;
}

Exception that indicates that the parameters passed to the API are invalid. If available, this exception includes details in additional properties.

type nonrec internal_error_exception = {
  1. message : error_message option;
}

Exception that indicates that a problem occurred with the service infrastructure. You can retry the request.

type nonrec update_protection_group_response = unit
type nonrec protection_group_id = string
type nonrec protection_group_aggregation =
  1. | MAX
  2. | MEAN
  3. | SUM
type nonrec protection_group_pattern =
  1. | BY_RESOURCE_TYPE
  2. | ARBITRARY
  3. | ALL
type nonrec protected_resource_type =
  1. | GLOBAL_ACCELERATOR
  2. | APPLICATION_LOAD_BALANCER
  3. | CLASSIC_LOAD_BALANCER
  4. | ELASTIC_IP_ALLOCATION
  5. | ROUTE_53_HOSTED_ZONE
  6. | CLOUDFRONT_DISTRIBUTION
type nonrec resource_arn = string
type nonrec protection_group_members = resource_arn list
type nonrec update_protection_group_request = {
  1. members : protection_group_members option;
    (*

    The Amazon Resource Names (ARNs) of the resources to include in the protection group. You must set this when you set Pattern to ARBITRARY and you must not set it for any other Pattern setting.

    *)
  2. resource_type : protected_resource_type option;
    (*

    The resource type to include in the protection group. All protected resources of this type are included in the protection group. You must set this when you set Pattern to BY_RESOURCE_TYPE and you must not set it for any other Pattern setting.

    *)
  3. pattern : protection_group_pattern;
    (*

    The criteria to use to choose the protected resources for inclusion in the group. You can include all resources that have protections, provide a list of resource Amazon Resource Names (ARNs), or include all resources of a specified resource type.

    *)
  4. aggregation : protection_group_aggregation;
    (*

    Defines how Shield combines resource data for the group in order to detect, mitigate, and report events.

    • Sum - Use the total traffic across the group. This is a good choice for most cases. Examples include Elastic IP addresses for EC2 instances that scale manually or automatically.
    • Mean - Use the average of the traffic across the group. This is a good choice for resources that share traffic uniformly. Examples include accelerators and load balancers.
    • Max - Use the highest traffic from each resource. This is useful for resources that don't share traffic and for resources that share that traffic in a non-uniform way. Examples include Amazon CloudFront distributions and origin resources for CloudFront distributions.
    *)
  5. protection_group_id : protection_group_id;
    (*

    The name of the protection group. You use this to identify the protection group in lists and to manage the protection group, for example to update, delete, or describe it.

    *)
}
type nonrec update_emergency_contact_settings_response = unit
type nonrec email_address = string
type nonrec phone_number = string
type nonrec contact_notes = string
type nonrec emergency_contact = {
  1. contact_notes : contact_notes option;
    (*

    Additional notes regarding the contact.

    *)
  2. phone_number : phone_number option;
    (*

    The phone number for the contact.

    *)
  3. email_address : email_address;
    (*

    The email address for the contact.

    *)
}

Contact information that the SRT can use to contact you if you have proactive engagement enabled, for escalations to the SRT and to initiate proactive customer support.

type nonrec emergency_contact_list = emergency_contact list
type nonrec update_emergency_contact_settings_request = {
  1. emergency_contact_list : emergency_contact_list option;
    (*

    A list of email addresses and phone numbers that the Shield Response Team (SRT) can use to contact you if you have proactive engagement enabled, for escalations to the SRT and to initiate proactive customer support.

    If you have proactive engagement enabled, the contact list must include at least one phone number.

    *)
}
type nonrec update_application_layer_automatic_response_response = unit
type nonrec block_action = unit
type nonrec count_action = unit
type nonrec response_action = {
  1. count : count_action option;
    (*

    Specifies that Shield Advanced should configure its WAF rules with the WAF Count action.

    You must specify exactly one action, either Block or Count.

    *)
  2. block : block_action option;
    (*

    Specifies that Shield Advanced should configure its WAF rules with the WAF Block action.

    You must specify exactly one action, either Block or Count.

    *)
}

Specifies the action setting that Shield Advanced should use in the WAF rules that it creates on behalf of the protected resource in response to DDoS attacks. You specify this as part of the configuration for the automatic application layer DDoS mitigation feature, when you enable or update automatic mitigation. Shield Advanced creates the WAF rules in a Shield Advanced-managed rule group, inside the web ACL that you have associated with the resource.

type nonrec update_application_layer_automatic_response_request = {
  1. action : response_action;
    (*

    Specifies the action setting that Shield Advanced should use in the WAF rules that it creates on behalf of the protected resource in response to DDoS attacks. You specify this as part of the configuration for the automatic application layer DDoS mitigation feature, when you enable or update automatic mitigation. Shield Advanced creates the WAF rules in a Shield Advanced-managed rule group, inside the web ACL that you have associated with the resource.

    *)
  2. resource_arn : resource_arn;
    (*

    The ARN (Amazon Resource Name) of the resource.

    *)
}
type nonrec invalid_operation_exception = {
  1. message : error_message option;
}

Exception that indicates that the operation would not cause any change to occur.

type nonrec untag_resource_response = unit
type nonrec tag_key = string
type nonrec tag_key_list = tag_key list
type nonrec untag_resource_request = {
  1. tag_keys : tag_key_list;
    (*

    The tag key for each tag that you want to remove from the resource.

    *)
  2. resource_ar_n : resource_arn;
    (*

    The Amazon Resource Name (ARN) of the resource that you want to remove tags from.

    *)
}
type nonrec invalid_resource_exception = {
  1. message : error_message option;
}

Exception that indicates that the resource is invalid. You might not have access to the resource, or the resource might not exist.

type nonrec unit_ =
  1. | REQUESTS
  2. | PACKETS
  3. | BYTES
  4. | BITS
type nonrec long = int
type nonrec contributor = {
  1. value : long option;
    (*

    The contribution of this contributor expressed in Protection units. For example 10,000.

    *)
  2. name : string_ option;
    (*

    The name of the contributor. The type of name that you'll find here depends on the AttackPropertyIdentifier setting in the AttackProperty where this contributor is defined. For example, if the AttackPropertyIdentifier is SOURCE_COUNTRY, the Name could be United States.

    *)
}

A contributor to the attack and their contribution.

type nonrec top_contributors = contributor list
type nonrec token = string
type nonrec timestamp = Smaws_Lib.CoreTypes.Timestamp.t
type nonrec time_range = {
  1. to_exclusive : timestamp option;
    (*

    The end time, in Unix time in seconds.

    *)
  2. from_inclusive : timestamp option;
    (*

    The start time, in Unix time in seconds.

    *)
}

The time range.

type nonrec tag_value = string
type nonrec tag_resource_response = unit
type nonrec tag = {
  1. value : tag_value option;
    (*

    Part of the key:value pair that defines a tag. You can use a tag value to describe a specific value within a category, such as "companyA" or "companyB." Tag values are case-sensitive.

    *)
  2. key : tag_key option;
    (*

    Part of the key:value pair that defines a tag. You can use a tag key to describe a category of information, such as "customer." Tag keys are case-sensitive.

    *)
}

A tag associated with an Amazon Web Services resource. Tags are key:value pairs that you can use to categorize and manage your resources, for purposes like billing or other management. Typically, the tag key represents a category, such as "environment", and the tag value represents a specific value within that category, such as "test," "development," or "production". Or you might set the tag key to "customer" and the value to the customer name or ID. You can specify one or more tags to add to each Amazon Web Services resource, up to 50 tags for a resource.

type nonrec tag_list = tag list
type nonrec tag_resource_request = {
  1. tags : tag_list;
    (*

    The tags that you want to modify or add to the resource.

    *)
  2. resource_ar_n : resource_arn;
    (*

    The Amazon Resource Name (ARN) of the resource that you want to add or update tags for.

    *)
}
type nonrec double = float
type nonrec integer = int
type nonrec summarized_counter = {
  1. unit_ : string_ option;
    (*

    The unit of the counters.

    *)
  2. n : integer option;
    (*

    The number of counters for a specified time period.

    *)
  3. sum : double option;
    (*

    The total of counter values for a specified time period.

    *)
  4. average : double option;
    (*

    The average value of the counter for a specified time period.

    *)
  5. max : double option;
    (*

    The maximum value of the counter for a specified time period.

    *)
  6. name : string_ option;
    (*

    The counter name.

    *)
}

The counter that describes a DDoS attack.

type nonrec summarized_counter_list = summarized_counter list
type nonrec summarized_attack_vector = {
  1. vector_counters : summarized_counter_list option;
    (*

    The list of counters that describe the details of the attack.

    *)
  2. vector_type : string_;
    (*

    The attack type, for example, SNMP reflection or SYN flood.

    *)
}

A summary of information about the attack.

type nonrec summarized_attack_vector_list = summarized_attack_vector list
type nonrec subscription_state =
  1. | INACTIVE
  2. | ACTIVE
type nonrec limit = {
  1. max : long option;
    (*

    The maximum number of protections that can be created for the specified Type.

    *)
  2. type_ : string_ option;
    (*

    The type of protection.

    *)
}

Specifies how many protections of a given type you can create.

type nonrec limits = limit list
type nonrec protection_limits = {
  1. protected_resource_type_limits : limits;
    (*

    The maximum number of resource types that you can specify in a protection.

    *)
}

Limits settings on protections for your subscription.

type nonrec protection_group_arbitrary_pattern_limits = {
  1. max_members : long;
    (*

    The maximum number of resources you can specify for a single arbitrary pattern in a protection group.

    *)
}

Limits settings on protection groups with arbitrary pattern type.

type nonrec protection_group_pattern_type_limits = {
  1. arbitrary_pattern_limits : protection_group_arbitrary_pattern_limits;
    (*

    Limits settings on protection groups with arbitrary pattern type.

    *)
}

Limits settings by pattern type in the protection groups for your subscription.

type nonrec protection_group_limits = {
  1. pattern_type_limits : protection_group_pattern_type_limits;
    (*

    Limits settings by pattern type in the protection groups for your subscription.

    *)
  2. max_protection_groups : long;
    (*

    The maximum number of protection groups that you can have at one time.

    *)
}

Limits settings on protection groups for your subscription.

type nonrec subscription_limits = {
  1. protection_group_limits : protection_group_limits;
    (*

    Limits settings on protection groups for your subscription.

    *)
  2. protection_limits : protection_limits;
    (*

    Limits settings on protections for your subscription.

    *)
}

Limits settings for your subscription.

type nonrec duration_in_seconds = int
type nonrec proactive_engagement_status =
  1. | PENDING
  2. | DISABLED
  3. | ENABLED
type nonrec subscription = {
  1. subscription_arn : resource_arn option;
    (*

    The ARN (Amazon Resource Name) of the subscription.

    *)
  2. subscription_limits : subscription_limits;
    (*

    Limits settings for your subscription.

    *)
  3. proactive_engagement_status : proactive_engagement_status option;
    (*

    If ENABLED, the Shield Response Team (SRT) will use email and phone to notify contacts about escalations to the SRT and to initiate proactive customer support.

    If PENDING, you have requested proactive engagement and the request is pending. The status changes to ENABLED when your request is fully processed.

    If DISABLED, the SRT will not proactively notify contacts about escalations or to initiate proactive customer support.

    *)
  4. limits : limits option;
    (*

    Specifies how many protections of a given type you can create.

    *)
  5. auto_renew : auto_renew option;
    (*

    If ENABLED, the subscription will be automatically renewed at the end of the existing subscription period.

    When you initally create a subscription, AutoRenew is set to ENABLED. You can change this by submitting an UpdateSubscription request. If the UpdateSubscription request does not included a value for AutoRenew, the existing value for AutoRenew remains unchanged.

    *)
  6. time_commitment_in_seconds : duration_in_seconds option;
    (*

    The length, in seconds, of the Shield Advanced subscription for the account.

    *)
  7. end_time : timestamp option;
    (*

    The date and time your subscription will end.

    *)
  8. start_time : timestamp option;
    (*

    The start time of the subscription, in Unix time in seconds.

    *)
}

Information about the Shield Advanced subscription for an account.

type nonrec sub_resource_type =
  1. | URL
  2. | IP
type nonrec sub_resource_summary = {
  1. counters : summarized_counter_list option;
    (*

    The counters that describe the details of the attack.

    *)
  2. attack_vectors : summarized_attack_vector_list option;
    (*

    The list of attack types and associated counters.

    *)
  3. id : string_ option;
    (*

    The unique identifier (ID) of the SubResource.

    *)
  4. type_ : sub_resource_type option;
    (*

    The SubResource type.

    *)
}

The attack information for the specified SubResource.

type nonrec sub_resource_summary_list = sub_resource_summary list
type nonrec role_arn = string
type nonrec resource_arn_list = resource_arn list
type nonrec resource_arn_filters = resource_arn list
type nonrec resource_arn_filter_list = resource_arn list
type nonrec resource_already_exists_exception = {
  1. resource_type : string_ option;
    (*

    The type of resource that already exists.

    *)
  2. message : error_message option;
}

Exception indicating the specified resource already exists. If available, this exception includes details in additional properties.

type nonrec protection_id = string
type nonrec protection_name = string
type nonrec health_check_id = string
type nonrec health_check_ids = health_check_id list
type nonrec application_layer_automatic_response_status =
  1. | DISABLED
  2. | ENABLED
type nonrec application_layer_automatic_response_configuration = {
  1. action : response_action;
    (*

    Specifies the action setting that Shield Advanced should use in the WAF rules that it creates on behalf of the protected resource in response to DDoS attacks. You specify this as part of the configuration for the automatic application layer DDoS mitigation feature, when you enable or update automatic mitigation. Shield Advanced creates the WAF rules in a Shield Advanced-managed rule group, inside the web ACL that you have associated with the resource.

    *)
  2. status : application_layer_automatic_response_status;
    (*

    Indicates whether automatic application layer DDoS mitigation is enabled for the protection.

    *)
}

The automatic application layer DDoS mitigation settings for a Protection. This configuration determines whether Shield Advanced automatically manages rules in the web ACL in order to respond to application layer events that Shield Advanced determines to be DDoS attacks.

type nonrec protection = {
  1. application_layer_automatic_response_configuration : application_layer_automatic_response_configuration option;
    (*

    The automatic application layer DDoS mitigation settings for the protection. This configuration determines whether Shield Advanced automatically manages rules in the web ACL in order to respond to application layer events that Shield Advanced determines to be DDoS attacks.

    *)
  2. protection_arn : resource_arn option;
    (*

    The ARN (Amazon Resource Name) of the protection.

    *)
  3. health_check_ids : health_check_ids option;
    (*

    The unique identifier (ID) for the Route 53 health check that's associated with the protection.

    *)
  4. resource_arn : resource_arn option;
    (*

    The ARN (Amazon Resource Name) of the Amazon Web Services resource that is protected.

    *)
  5. name : protection_name option;
    (*

    The name of the protection. For example, My CloudFront distributions.

    *)
  6. id : protection_id option;
    (*

    The unique identifier (ID) of the protection.

    *)
}

An object that represents a resource that is under DDoS protection.

type nonrec protections = protection list
type nonrec protection_name_filters = protection_name list
type nonrec protection_group = {
  1. protection_group_arn : resource_arn option;
    (*

    The ARN (Amazon Resource Name) of the protection group.

    *)
  2. members : protection_group_members;
    (*

    The ARNs (Amazon Resource Names) of the resources to include in the protection group. You must set this when you set Pattern to ARBITRARY and you must not set it for any other Pattern setting.

    *)
  3. resource_type : protected_resource_type option;
    (*

    The resource type to include in the protection group. All protected resources of this type are included in the protection group. You must set this when you set Pattern to BY_RESOURCE_TYPE and you must not set it for any other Pattern setting.

    *)
  4. pattern : protection_group_pattern;
    (*

    The criteria to use to choose the protected resources for inclusion in the group. You can include all resources that have protections, provide a list of resource ARNs (Amazon Resource Names), or include all resources of a specified resource type.

    *)
  5. aggregation : protection_group_aggregation;
    (*

    Defines how Shield combines resource data for the group in order to detect, mitigate, and report events.

    • Sum - Use the total traffic across the group. This is a good choice for most cases. Examples include Elastic IP addresses for EC2 instances that scale manually or automatically.
    • Mean - Use the average of the traffic across the group. This is a good choice for resources that share traffic uniformly. Examples include accelerators and load balancers.
    • Max - Use the highest traffic from each resource. This is useful for resources that don't share traffic and for resources that share that traffic in a non-uniform way. Examples include Amazon CloudFront distributions and origin resources for CloudFront distributions.
    *)
  6. protection_group_id : protection_group_id;
    (*

    The name of the protection group. You use this to identify the protection group in lists and to manage the protection group, for example to update, delete, or describe it.

    *)
}

A grouping of protected resources that you and Shield Advanced can monitor as a collective. This resource grouping improves the accuracy of detection and reduces false positives.

type nonrec protection_groups = protection_group list
type nonrec protection_group_pattern_filters = protection_group_pattern list
type nonrec protection_group_id_filters = protection_group_id list
type nonrec protection_group_aggregation_filters = protection_group_aggregation list
type nonrec protected_resource_type_filters = protected_resource_type list
type nonrec no_associated_role_exception = {
  1. message : error_message option;
}

The ARN of the role that you specified does not exist.

type nonrec mitigation = {
  1. mitigation_name : string_ option;
    (*

    The name of the mitigation taken for this attack.

    *)
}

The mitigation applied to a DDoS attack.

type nonrec mitigation_list = mitigation list
type nonrec max_results = int
type nonrec log_bucket = string
type nonrec log_bucket_list = log_bucket list
type nonrec list_tags_for_resource_response = {
  1. tags : tag_list option;
    (*

    A list of tag key and value pairs associated with the specified resource.

    *)
}
type nonrec list_tags_for_resource_request = {
  1. resource_ar_n : resource_arn;
    (*

    The Amazon Resource Name (ARN) of the resource to get tags for.

    *)
}
type nonrec list_resources_in_protection_group_response = {
  1. next_token : token option;
    (*

    When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, Shield Advanced includes a NextToken value in the response. You can retrieve the next batch of objects by requesting the list again and providing the token that was returned by the prior call in your request.

    You can indicate the maximum number of objects that you want Shield Advanced to return for a single call with the MaxResults setting. Shield Advanced will not return more than MaxResults objects, but may return fewer, even if more objects are still available.

    Whenever more objects remain that Shield Advanced has not yet returned to you, the response will include a NextToken value.

    *)
  2. resource_arns : resource_arn_list;
    (*

    The Amazon Resource Names (ARNs) of the resources that are included in the protection group.

    *)
}
type nonrec list_resources_in_protection_group_request = {
  1. max_results : max_results option;
    (*

    The greatest number of objects that you want Shield Advanced to return to the list request. Shield Advanced might return fewer objects than you indicate in this setting, even if more objects are available. If there are more objects remaining, Shield Advanced will always also return a NextToken value in the response.

    The default setting is 20.

    *)
  2. next_token : token option;
    (*

    When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, Shield Advanced includes a NextToken value in the response. You can retrieve the next batch of objects by requesting the list again and providing the token that was returned by the prior call in your request.

    You can indicate the maximum number of objects that you want Shield Advanced to return for a single call with the MaxResults setting. Shield Advanced will not return more than MaxResults objects, but may return fewer, even if more objects are still available.

    Whenever more objects remain that Shield Advanced has not yet returned to you, the response will include a NextToken value.

    On your first call to a list operation, leave this setting empty.

    *)
  3. protection_group_id : protection_group_id;
    (*

    The name of the protection group. You use this to identify the protection group in lists and to manage the protection group, for example to update, delete, or describe it.

    *)
}
type nonrec invalid_pagination_token_exception = {
  1. message : error_message option;
}

Exception that indicates that the NextToken specified in the request is invalid. Submit the request using the NextToken value that was returned in the prior response.

type nonrec list_protections_response = {
  1. next_token : token option;
    (*

    When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, Shield Advanced includes a NextToken value in the response. You can retrieve the next batch of objects by requesting the list again and providing the token that was returned by the prior call in your request.

    You can indicate the maximum number of objects that you want Shield Advanced to return for a single call with the MaxResults setting. Shield Advanced will not return more than MaxResults objects, but may return fewer, even if more objects are still available.

    Whenever more objects remain that Shield Advanced has not yet returned to you, the response will include a NextToken value.

    *)
  2. protections : protections option;
    (*

    The array of enabled Protection objects.

    *)
}
type nonrec inclusion_protection_filters = {
  1. resource_types : protected_resource_type_filters option;
    (*

    The type of protected resource whose protections you want to retrieve.

    *)
  2. protection_names : protection_name_filters option;
    (*

    The name of the protection that you want to retrieve.

    *)
  3. resource_arns : resource_arn_filters option;
    (*

    The ARN (Amazon Resource Name) of the resource whose protection you want to retrieve.

    *)
}

Narrows the set of protections that the call retrieves. You can retrieve a single protection by providing its name or the ARN (Amazon Resource Name) of its protected resource. You can also retrieve all protections for a specific resource type. You can provide up to one criteria per filter type. Shield Advanced returns protections that exactly match all of the filter criteria that you provide.

type nonrec list_protections_request = {
  1. inclusion_filters : inclusion_protection_filters option;
    (*

    Narrows the set of protections that the call retrieves. You can retrieve a single protection by providing its name or the ARN (Amazon Resource Name) of its protected resource. You can also retrieve all protections for a specific resource type. You can provide up to one criteria per filter type. Shield Advanced returns protections that exactly match all of the filter criteria that you provide.

    *)
  2. max_results : max_results option;
    (*

    The greatest number of objects that you want Shield Advanced to return to the list request. Shield Advanced might return fewer objects than you indicate in this setting, even if more objects are available. If there are more objects remaining, Shield Advanced will always also return a NextToken value in the response.

    The default setting is 20.

    *)
  3. next_token : token option;
    (*

    When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, Shield Advanced includes a NextToken value in the response. You can retrieve the next batch of objects by requesting the list again and providing the token that was returned by the prior call in your request.

    You can indicate the maximum number of objects that you want Shield Advanced to return for a single call with the MaxResults setting. Shield Advanced will not return more than MaxResults objects, but may return fewer, even if more objects are still available.

    Whenever more objects remain that Shield Advanced has not yet returned to you, the response will include a NextToken value.

    On your first call to a list operation, leave this setting empty.

    *)
}
type nonrec list_protection_groups_response = {
  1. next_token : token option;
    (*

    When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, Shield Advanced includes a NextToken value in the response. You can retrieve the next batch of objects by requesting the list again and providing the token that was returned by the prior call in your request.

    You can indicate the maximum number of objects that you want Shield Advanced to return for a single call with the MaxResults setting. Shield Advanced will not return more than MaxResults objects, but may return fewer, even if more objects are still available.

    Whenever more objects remain that Shield Advanced has not yet returned to you, the response will include a NextToken value.

    *)
  2. protection_groups : protection_groups;
}
type nonrec inclusion_protection_group_filters = {
  1. aggregations : protection_group_aggregation_filters option;
    (*

    The aggregation setting of the protection groups that you want to retrieve.

    *)
  2. resource_types : protected_resource_type_filters option;
    (*

    The resource type configuration of the protection groups that you want to retrieve. In the protection group configuration, you specify the resource type when you set the group's Pattern to BY_RESOURCE_TYPE.

    *)
  3. patterns : protection_group_pattern_filters option;
    (*

    The pattern specification of the protection groups that you want to retrieve.

    *)
  4. protection_group_ids : protection_group_id_filters option;
    (*

    The ID of the protection group that you want to retrieve.

    *)
}

Narrows the set of protection groups that the call retrieves. You can retrieve a single protection group by its name and you can retrieve all protection groups that are configured with a specific pattern, aggregation, or resource type. You can provide up to one criteria per filter type. Shield Advanced returns the protection groups that exactly match all of the search criteria that you provide.

type nonrec list_protection_groups_request = {
  1. inclusion_filters : inclusion_protection_group_filters option;
    (*

    Narrows the set of protection groups that the call retrieves. You can retrieve a single protection group by its name and you can retrieve all protection groups that are configured with specific pattern or aggregation settings. You can provide up to one criteria per filter type. Shield Advanced returns the protection groups that exactly match all of the search criteria that you provide.

    *)
  2. max_results : max_results option;
    (*

    The greatest number of objects that you want Shield Advanced to return to the list request. Shield Advanced might return fewer objects than you indicate in this setting, even if more objects are available. If there are more objects remaining, Shield Advanced will always also return a NextToken value in the response.

    The default setting is 20.

    *)
  3. next_token : token option;
    (*

    When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, Shield Advanced includes a NextToken value in the response. You can retrieve the next batch of objects by requesting the list again and providing the token that was returned by the prior call in your request.

    You can indicate the maximum number of objects that you want Shield Advanced to return for a single call with the MaxResults setting. Shield Advanced will not return more than MaxResults objects, but may return fewer, even if more objects are still available.

    Whenever more objects remain that Shield Advanced has not yet returned to you, the response will include a NextToken value.

    On your first call to a list operation, leave this setting empty.

    *)
}
type nonrec attack_timestamp = Smaws_Lib.CoreTypes.Timestamp.t
type nonrec attack_vector_description = {
  1. vector_type : string_;
    (*

    The attack type. Valid values:

    • UDP_TRAFFIC
    • UDP_FRAGMENT
    • GENERIC_UDP_REFLECTION
    • DNS_REFLECTION
    • NTP_REFLECTION
    • CHARGEN_REFLECTION
    • SSDP_REFLECTION
    • PORT_MAPPER
    • RIP_REFLECTION
    • SNMP_REFLECTION
    • MSSQL_REFLECTION
    • NET_BIOS_REFLECTION
    • SYN_FLOOD
    • ACK_FLOOD
    • REQUEST_FLOOD
    • HTTP_REFLECTION
    • UDS_REFLECTION
    • MEMCACHED_REFLECTION
    *)
}

Describes the attack.

type nonrec attack_vector_description_list = attack_vector_description list
type nonrec attack_summary = {
  1. attack_vectors : attack_vector_description_list option;
    (*

    The list of attacks for a specified time period.

    *)
  2. end_time : attack_timestamp option;
    (*

    The end time of the attack, in Unix time in seconds.

    *)
  3. start_time : attack_timestamp option;
    (*

    The start time of the attack, in Unix time in seconds.

    *)
  4. resource_arn : string_ option;
    (*

    The ARN (Amazon Resource Name) of the resource that was attacked.

    *)
  5. attack_id : string_ option;
    (*

    The unique identifier (ID) of the attack.

    *)
}

Summarizes all DDoS attacks for a specified time period.

type nonrec attack_summaries = attack_summary list
type nonrec list_attacks_response = {
  1. next_token : token option;
    (*

    When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, Shield Advanced includes a NextToken value in the response. You can retrieve the next batch of objects by requesting the list again and providing the token that was returned by the prior call in your request.

    You can indicate the maximum number of objects that you want Shield Advanced to return for a single call with the MaxResults setting. Shield Advanced will not return more than MaxResults objects, but may return fewer, even if more objects are still available.

    Whenever more objects remain that Shield Advanced has not yet returned to you, the response will include a NextToken value.

    *)
  2. attack_summaries : attack_summaries option;
    (*

    The attack information for the specified time range.

    *)
}
type nonrec list_attacks_request = {
  1. max_results : max_results option;
    (*

    The greatest number of objects that you want Shield Advanced to return to the list request. Shield Advanced might return fewer objects than you indicate in this setting, even if more objects are available. If there are more objects remaining, Shield Advanced will always also return a NextToken value in the response.

    The default setting is 20.

    *)
  2. next_token : token option;
    (*

    When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, Shield Advanced includes a NextToken value in the response. You can retrieve the next batch of objects by requesting the list again and providing the token that was returned by the prior call in your request.

    You can indicate the maximum number of objects that you want Shield Advanced to return for a single call with the MaxResults setting. Shield Advanced will not return more than MaxResults objects, but may return fewer, even if more objects are still available.

    Whenever more objects remain that Shield Advanced has not yet returned to you, the response will include a NextToken value.

    On your first call to a list operation, leave this setting empty.

    *)
  3. end_time : time_range option;
    (*

    The end of the time period for the attacks. This is a timestamp type. The request syntax listing for this call indicates a number type, but you can provide the time in any valid timestamp format setting.

    *)
  4. start_time : time_range option;
    (*

    The start of the time period for the attacks. This is a timestamp type. The request syntax listing for this call indicates a number type, but you can provide the time in any valid timestamp format setting.

    *)
  5. resource_arns : resource_arn_filter_list option;
    (*

    The ARNs (Amazon Resource Names) of the resources that were attacked. If you leave this blank, all applicable resources for this account will be included.

    *)
}
type nonrec limit_type = string
type nonrec limit_number = int
type nonrec limits_exceeded_exception = {
  1. limit : limit_number option;
    (*

    The threshold that would be exceeded.

    *)
  2. type_ : limit_type option;
    (*

    The type of limit that would be exceeded.

    *)
  3. message : error_message option;
}

Exception that indicates that the operation would exceed a limit.

type nonrec health_check_arn = string
type nonrec get_subscription_state_response = {
  1. subscription_state : subscription_state;
    (*

    The status of the subscription.

    *)
}
type nonrec get_subscription_state_request = unit
type nonrec enable_proactive_engagement_response = unit
type nonrec enable_proactive_engagement_request = unit
type nonrec enable_application_layer_automatic_response_response = unit
type nonrec enable_application_layer_automatic_response_request = {
  1. action : response_action;
    (*

    Specifies the action setting that Shield Advanced should use in the WAF rules that it creates on behalf of the protected resource in response to DDoS attacks. You specify this as part of the configuration for the automatic application layer DDoS mitigation feature, when you enable or update automatic mitigation. Shield Advanced creates the WAF rules in a Shield Advanced-managed rule group, inside the web ACL that you have associated with the resource.

    *)
  2. resource_arn : resource_arn;
    (*

    The ARN (Amazon Resource Name) of the protected resource.

    *)
}
type nonrec disassociate_health_check_response = unit
type nonrec disassociate_health_check_request = {
  1. health_check_arn : health_check_arn;
    (*

    The Amazon Resource Name (ARN) of the health check that is associated with the protection.

    *)
  2. protection_id : protection_id;
    (*

    The unique identifier (ID) for the Protection object to remove the health check association from.

    *)
}
type nonrec disassociate_drt_role_response = unit
type nonrec disassociate_drt_role_request = unit
type nonrec disassociate_drt_log_bucket_response = unit
type nonrec disassociate_drt_log_bucket_request = {
  1. log_bucket : log_bucket;
    (*

    The Amazon S3 bucket that contains the logs that you want to share.

    *)
}
type nonrec access_denied_for_dependency_exception = {
  1. message : error_message option;
}

In order to grant the necessary access to the Shield Response Team (SRT) the user submitting the request must have the iam:PassRole permission. This error indicates the user did not have the appropriate permissions. For more information, see Granting a User Permissions to Pass a Role to an Amazon Web Services Service.

type nonrec disable_proactive_engagement_response = unit
type nonrec disable_proactive_engagement_request = unit
type nonrec disable_application_layer_automatic_response_response = unit
type nonrec disable_application_layer_automatic_response_request = {
  1. resource_arn : resource_arn;
    (*

    The ARN (Amazon Resource Name) of the protected resource.

    *)
}
type nonrec describe_subscription_response = {
  1. subscription : subscription option;
    (*

    The Shield Advanced subscription details for an account.

    *)
}
type nonrec describe_subscription_request = unit
type nonrec describe_protection_response = {
  1. protection : protection option;
    (*

    The Protection that you requested.

    *)
}
type nonrec describe_protection_request = {
  1. resource_arn : resource_arn option;
    (*

    The ARN (Amazon Resource Name) of the protected Amazon Web Services resource. You must provide either the ResourceArn of the protected resource or the ProtectionID of the protection, but not both.

    *)
  2. protection_id : protection_id option;
    (*

    The unique identifier (ID) for the Protection object to describe. You must provide either the ResourceArn of the protected resource or the ProtectionID of the protection, but not both.

    *)
}
type nonrec describe_protection_group_response = {
  1. protection_group : protection_group;
    (*

    A grouping of protected resources that you and Shield Advanced can monitor as a collective. This resource grouping improves the accuracy of detection and reduces false positives.

    *)
}
type nonrec describe_protection_group_request = {
  1. protection_group_id : protection_group_id;
    (*

    The name of the protection group. You use this to identify the protection group in lists and to manage the protection group, for example to update, delete, or describe it.

    *)
}
type nonrec describe_emergency_contact_settings_response = {
  1. emergency_contact_list : emergency_contact_list option;
    (*

    A list of email addresses and phone numbers that the Shield Response Team (SRT) can use to contact you if you have proactive engagement enabled, for escalations to the SRT and to initiate proactive customer support.

    *)
}
type nonrec describe_emergency_contact_settings_request = unit
type nonrec describe_drt_access_response = {
  1. log_bucket_list : log_bucket_list option;
    (*

    The list of Amazon S3 buckets accessed by the SRT.

    *)
  2. role_arn : role_arn option;
    (*

    The Amazon Resource Name (ARN) of the role the SRT used to access your Amazon Web Services account.

    *)
}
type nonrec describe_drt_access_request = unit
type nonrec attack_volume_statistics = {
  1. max : double;
    (*

    The maximum attack volume observed for the given unit.

    *)
}

Statistics objects for the various data types in AttackVolume.

type nonrec attack_volume = {
  1. requests_per_second : attack_volume_statistics option;
    (*

    A statistics object that uses requests per second as the unit. This is included for application level attacks, and is only available for accounts that are subscribed to Shield Advanced.

    *)
  2. packets_per_second : attack_volume_statistics option;
    (*

    A statistics object that uses packets per second as the unit. This is included for network level attacks.

    *)
  3. bits_per_second : attack_volume_statistics option;
    (*

    A statistics object that uses bits per second as the unit. This is included for network level attacks.

    *)
}

Information about the volume of attacks during the time period, included in an AttackStatisticsDataItem. If the accompanying AttackCount in the statistics object is zero, this setting might be empty.

type nonrec attack_statistics_data_item = {
  1. attack_count : long;
    (*

    The number of attacks detected during the time period. This is always present, but might be zero.

    *)
  2. attack_volume : attack_volume option;
    (*

    Information about the volume of attacks during the time period. If the accompanying AttackCount is zero, this setting might be empty.

    *)
}

A single attack statistics data record. This is returned by DescribeAttackStatistics along with a time range indicating the time period that the attack statistics apply to.

type nonrec attack_statistics_data_list = attack_statistics_data_item list
type nonrec describe_attack_statistics_response = {
  1. data_items : attack_statistics_data_list;
    (*

    The data that describes the attacks detected during the time period.

    *)
  2. time_range : time_range;
    (*

    The time range of the attack.

    *)
}
type nonrec describe_attack_statistics_request = unit
type nonrec attack_id = string
type nonrec attack_layer =
  1. | APPLICATION
  2. | NETWORK
type nonrec attack_property_identifier =
  1. | WORDPRESS_PINGBACK_SOURCE
  2. | WORDPRESS_PINGBACK_REFLECTOR
  3. | SOURCE_USER_AGENT
  4. | SOURCE_IP_ADDRESS
  5. | SOURCE_COUNTRY
  6. | SOURCE_ASN
  7. | REFERRER
  8. | DESTINATION_URL
type nonrec attack_property = {
  1. total : long option;
    (*

    The total contributions made to this Shield event by all contributors.

    *)
  2. unit_ : unit_ option;
    (*

    The unit used for the Contributor Value property.

    *)
  3. top_contributors : top_contributors option;
    (*

    Contributor objects for the top five contributors to a Shield event. A contributor is a source of traffic that Shield Advanced identifies as responsible for some or all of an event.

    *)
  4. attack_property_identifier : attack_property_identifier option;
    (*

    Defines the Shield event property information that is provided. The WORDPRESS_PINGBACK_REFLECTOR and WORDPRESS_PINGBACK_SOURCE values are valid only for WordPress reflective pingback events.

    *)
  5. attack_layer : attack_layer option;
    (*

    The type of Shield event that was observed. NETWORK indicates layer 3 and layer 4 events and APPLICATION indicates layer 7 events.

    For infrastructure layer events (L3 and L4 events), you can view metrics for top contributors in Amazon CloudWatch metrics. For more information, see Shield metrics and alarms in the WAF Developer Guide.

    *)
}

Details of a Shield event. This is provided as part of an AttackDetail.

type nonrec attack_properties = attack_property list
type nonrec attack_detail = {
  1. mitigations : mitigation_list option;
    (*

    List of mitigation actions taken for the attack.

    *)
  2. attack_properties : attack_properties option;
    (*

    The array of objects that provide details of the Shield event.

    For infrastructure layer events (L3 and L4 events), you can view metrics for top contributors in Amazon CloudWatch metrics. For more information, see Shield metrics and alarms in the WAF Developer Guide.

    *)
  3. attack_counters : summarized_counter_list option;
    (*

    List of counters that describe the attack for the specified time period.

    *)
  4. end_time : attack_timestamp option;
    (*

    The time the attack ended, in Unix time in seconds.

    *)
  5. start_time : attack_timestamp option;
    (*

    The time the attack started, in Unix time in seconds.

    *)
  6. sub_resources : sub_resource_summary_list option;
    (*

    If applicable, additional detail about the resource being attacked, for example, IP address or URL.

    *)
  7. resource_arn : resource_arn option;
    (*

    The ARN (Amazon Resource Name) of the resource that was attacked.

    *)
  8. attack_id : attack_id option;
    (*

    The unique identifier (ID) of the attack.

    *)
}

The details of a DDoS attack.

type nonrec describe_attack_response = {
  1. attack : attack_detail option;
    (*

    The attack that you requested.

    *)
}
type nonrec describe_attack_request = {
  1. attack_id : attack_id;
    (*

    The unique identifier (ID) for the attack.

    *)
}
type nonrec access_denied_exception = {
  1. message : error_message option;
}

Exception that indicates the specified AttackId does not exist, or the requester does not have the appropriate permissions to access the AttackId.

type nonrec delete_subscription_response = unit
type nonrec delete_subscription_request = unit
type nonrec delete_protection_response = unit
type nonrec delete_protection_request = {
  1. protection_id : protection_id;
    (*

    The unique identifier (ID) for the Protection object to be deleted.

    *)
}
type nonrec delete_protection_group_response = unit
type nonrec delete_protection_group_request = {
  1. protection_group_id : protection_group_id;
    (*

    The name of the protection group. You use this to identify the protection group in lists and to manage the protection group, for example to update, delete, or describe it.

    *)
}
type nonrec create_subscription_response = unit
type nonrec create_subscription_request = unit
type nonrec create_protection_response = {
  1. protection_id : protection_id option;
    (*

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

    *)
}
type nonrec create_protection_request = {
  1. tags : tag_list option;
    (*

    One or more tag key-value pairs for the Protection object that is created.

    *)
  2. resource_arn : resource_arn;
    (*

    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:{i region}:{i account-id}:loadbalancer/app/{i load-balancer-name}/{i load-balancer-id} 
    • For an Elastic Load Balancer (Classic Load Balancer):

      arn:aws:elasticloadbalancing:{i region}:{i account-id}:loadbalancer/{i load-balancer-name} 
    • For an Amazon CloudFront distribution:

      arn:aws:cloudfront::{i account-id}:distribution/{i distribution-id} 
    • For an Global Accelerator standard accelerator:

      arn:aws:globalaccelerator::{i account-id}:accelerator/{i accelerator-id} 
    • For Amazon Route 53:

      arn:aws:route53:::hostedzone/{i hosted-zone-id} 
    • For an Elastic IP address:

      arn:aws:ec2:{i region}:{i account-id}:eip-allocation/{i allocation-id} 
    *)
  3. name : protection_name;
    (*

    Friendly name for the Protection you are creating.

    *)
}
type nonrec create_protection_group_response = unit
type nonrec create_protection_group_request = {
  1. tags : tag_list option;
    (*

    One or more tag key-value pairs for the protection group.

    *)
  2. members : protection_group_members option;
    (*

    The Amazon Resource Names (ARNs) of the resources to include in the protection group. You must set this when you set Pattern to ARBITRARY and you must not set it for any other Pattern setting.

    *)
  3. resource_type : protected_resource_type option;
    (*

    The resource type to include in the protection group. All protected resources of this type are included in the protection group. Newly protected resources of this type are automatically added to the group. You must set this when you set Pattern to BY_RESOURCE_TYPE and you must not set it for any other Pattern setting.

    *)
  4. pattern : protection_group_pattern;
    (*

    The criteria to use to choose the protected resources for inclusion in the group. You can include all resources that have protections, provide a list of resource Amazon Resource Names (ARNs), or include all resources of a specified resource type.

    *)
  5. aggregation : protection_group_aggregation;
    (*

    Defines how Shield combines resource data for the group in order to detect, mitigate, and report events.

    • Sum - Use the total traffic across the group. This is a good choice for most cases. Examples include Elastic IP addresses for EC2 instances that scale manually or automatically.
    • Mean - Use the average of the traffic across the group. This is a good choice for resources that share traffic uniformly. Examples include accelerators and load balancers.
    • Max - Use the highest traffic from each resource. This is useful for resources that don't share traffic and for resources that share that traffic in a non-uniform way. Examples include Amazon CloudFront and origin resources for CloudFront distributions.
    *)
  6. protection_group_id : protection_group_id;
    (*

    The name of the protection group. You use this to identify the protection group in lists and to manage the protection group, for example to update, delete, or describe it.

    *)
}
type nonrec associate_proactive_engagement_details_response = unit
type nonrec associate_proactive_engagement_details_request = {
  1. emergency_contact_list : emergency_contact_list;
    (*

    A list of email addresses and phone numbers that the Shield Response Team (SRT) can use to contact you for escalations to the SRT and to initiate proactive customer support.

    To enable proactive engagement, the contact list must include at least one phone number.

    The contacts that you provide here replace any contacts that were already defined. If you already have contacts defined and want to use them, retrieve the list using DescribeEmergencyContactSettings and then provide it here.

    *)
}
type nonrec associate_health_check_response = unit
type nonrec associate_health_check_request = {
  1. health_check_arn : health_check_arn;
    (*

    The Amazon Resource Name (ARN) of the health check to associate with the protection.

    *)
  2. protection_id : protection_id;
    (*

    The unique identifier (ID) for the Protection object to add the health check association to.

    *)
}
type nonrec associate_drt_role_response = unit
type nonrec associate_drt_role_request = {
  1. role_arn : role_arn;
    (*

    The Amazon Resource Name (ARN) of the role the SRT will use to access your Amazon Web Services account.

    Prior to making the AssociateDRTRole request, you must attach the AWSShieldDRTAccessPolicy managed policy to this role. For more information see Attaching and Detaching IAM Policies.

    *)
}
type nonrec associate_drt_log_bucket_response = unit
type nonrec associate_drt_log_bucket_request = {
  1. log_bucket : log_bucket;
    (*

    The Amazon S3 bucket that contains the logs that you want to share.

    *)
}