Class: Aws::Shield::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::Shield::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-shield/client.rb
Overview
An API client for Shield. To construct a client, you need to configure a ‘:region` and `:credentials`.
client = Aws::Shield::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
See #initialize for a full list of supported configuration options.
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#associate_drt_log_bucket(params = {}) ⇒ Struct
Authorizes the Shield Response Team (SRT) to access the specified Amazon S3 bucket containing log data such as Application Load Balancer access logs, CloudFront logs, or logs from third party sources.
-
#associate_drt_role(params = {}) ⇒ Struct
Authorizes the Shield Response Team (SRT) using the specified role, to access your Amazon Web Services account to assist with DDoS attack mitigation during potential attacks.
-
#associate_health_check(params = {}) ⇒ Struct
Adds health-based detection to the Shield Advanced protection for a resource.
-
#associate_proactive_engagement_details(params = {}) ⇒ Struct
Initializes proactive engagement and sets the list of contacts for the Shield Response Team (SRT) to use.
-
#create_protection(params = {}) ⇒ Types::CreateProtectionResponse
Enables Shield Advanced for a specific Amazon Web Services resource.
-
#create_protection_group(params = {}) ⇒ Struct
Creates a grouping of protected resources so they can be handled as a collective.
-
#create_subscription(params = {}) ⇒ Struct
Activates Shield Advanced for an account.
-
#delete_protection(params = {}) ⇒ Struct
Deletes an Shield Advanced Protection.
-
#delete_protection_group(params = {}) ⇒ Struct
Removes the specified protection group.
-
#delete_subscription(params = {}) ⇒ Struct
Removes Shield Advanced from an account.
-
#describe_attack(params = {}) ⇒ Types::DescribeAttackResponse
Describes the details of a DDoS attack.
-
#describe_attack_statistics(params = {}) ⇒ Types::DescribeAttackStatisticsResponse
Provides information about the number and type of attacks Shield has detected in the last year for all resources that belong to your account, regardless of whether you’ve defined Shield protections for them.
-
#describe_drt_access(params = {}) ⇒ Types::DescribeDRTAccessResponse
Returns the current role and list of Amazon S3 log buckets used by the Shield Response Team (SRT) to access your Amazon Web Services account while assisting with attack mitigation.
-
#describe_emergency_contact_settings(params = {}) ⇒ Types::DescribeEmergencyContactSettingsResponse
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.
-
#describe_protection(params = {}) ⇒ Types::DescribeProtectionResponse
Lists the details of a Protection object.
-
#describe_protection_group(params = {}) ⇒ Types::DescribeProtectionGroupResponse
Returns the specification for the specified protection group.
-
#describe_subscription(params = {}) ⇒ Types::DescribeSubscriptionResponse
Provides details about the Shield Advanced subscription for an account.
-
#disable_application_layer_automatic_response(params = {}) ⇒ Struct
Disable the Shield Advanced automatic application layer DDoS mitigation feature for the protected resource.
-
#disable_proactive_engagement(params = {}) ⇒ Struct
Removes authorization from the Shield Response Team (SRT) to notify contacts about escalations to the SRT and to initiate proactive customer support.
-
#disassociate_drt_log_bucket(params = {}) ⇒ Struct
Removes the Shield Response Team’s (SRT) access to the specified Amazon S3 bucket containing the logs that you shared previously.
-
#disassociate_drt_role(params = {}) ⇒ Struct
Removes the Shield Response Team’s (SRT) access to your Amazon Web Services account.
-
#disassociate_health_check(params = {}) ⇒ Struct
Removes health-based detection from the Shield Advanced protection for a resource.
-
#enable_application_layer_automatic_response(params = {}) ⇒ Struct
Enable the Shield Advanced automatic application layer DDoS mitigation for the protected resource.
-
#enable_proactive_engagement(params = {}) ⇒ Struct
Authorizes the Shield Response Team (SRT) to use email and phone to notify contacts about escalations to the SRT and to initiate proactive customer support.
-
#get_subscription_state(params = {}) ⇒ Types::GetSubscriptionStateResponse
Returns the ‘SubscriptionState`, either `Active` or `Inactive`.
-
#list_attacks(params = {}) ⇒ Types::ListAttacksResponse
Returns all ongoing DDoS attacks or all DDoS attacks during a specified time period.
-
#list_protection_groups(params = {}) ⇒ Types::ListProtectionGroupsResponse
Retrieves ProtectionGroup objects for the account.
-
#list_protections(params = {}) ⇒ Types::ListProtectionsResponse
Retrieves Protection objects for the account.
-
#list_resources_in_protection_group(params = {}) ⇒ Types::ListResourcesInProtectionGroupResponse
Retrieves the resources that are included in the protection group.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Gets information about Amazon Web Services tags for a specified Amazon Resource Name (ARN) in Shield.
-
#tag_resource(params = {}) ⇒ Struct
Adds or updates tags for a resource in Shield.
-
#untag_resource(params = {}) ⇒ Struct
Removes tags from a resource in Shield.
-
#update_application_layer_automatic_response(params = {}) ⇒ Struct
Updates an existing Shield Advanced automatic application layer DDoS mitigation configuration for the specified resource.
-
#update_emergency_contact_settings(params = {}) ⇒ Struct
Updates the details of the 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.
-
#update_protection_group(params = {}) ⇒ Struct
Updates an existing protection group.
-
#update_subscription(params = {}) ⇒ Struct
Updates the details of an existing subscription.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
474 475 476 |
# File 'lib/aws-sdk-shield/client.rb', line 474 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
2028 2029 2030 |
# File 'lib/aws-sdk-shield/client.rb', line 2028 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
2031 2032 2033 |
# File 'lib/aws-sdk-shield/client.rb', line 2031 def errors_module Errors end |
Instance Method Details
#associate_drt_log_bucket(params = {}) ⇒ Struct
Authorizes the Shield Response Team (SRT) to access the specified Amazon S3 bucket containing log data such as Application Load Balancer access logs, CloudFront logs, or logs from third party sources. You can associate up to 10 Amazon S3 buckets with your subscription.
To use the services of the SRT and make an ‘AssociateDRTLogBucket` request, you must be subscribed to the [Business Support plan] or the [Enterprise Support plan].
[1]: aws.amazon.com/premiumsupport/business-support/ [2]: aws.amazon.com/premiumsupport/enterprise-support/
509 510 511 512 |
# File 'lib/aws-sdk-shield/client.rb', line 509 def associate_drt_log_bucket(params = {}, = {}) req = build_request(:associate_drt_log_bucket, params) req.send_request() end |
#associate_drt_role(params = {}) ⇒ Struct
Authorizes the Shield Response Team (SRT) using the specified role, to access your Amazon Web Services account to assist with DDoS attack mitigation during potential attacks. This enables the SRT to inspect your WAF configuration and create or update WAF rules and web ACLs.
You can associate only one ‘RoleArn` with your subscription. If you submit an `AssociateDRTRole` request for an account that already has an associated role, the new `RoleArn` will replace the existing `RoleArn`.
Prior to making the ‘AssociateDRTRole` request, you must attach the `AWSShieldDRTAccessPolicy` managed policy to the role that you’ll specify in the request. You can access this policy in the IAM console at [AWSShieldDRTAccessPolicy]. For more information see [Adding and removing IAM identity permissions]. The role must also trust the service principal ‘drt.shield.amazonaws.com`. For more information, see [IAM JSON policy elements: Principal].
The SRT will have access only to your WAF and Shield resources. By submitting this request, you authorize the SRT to inspect your WAF and Shield configuration and create and update WAF rules and web ACLs on your behalf. The SRT takes these actions only if explicitly authorized by you.
You must have the ‘iam:PassRole` permission to make an `AssociateDRTRole` request. For more information, see [Granting a user permissions to pass a role to an Amazon Web Services service].
To use the services of the SRT and make an ‘AssociateDRTRole` request, you must be subscribed to the [Business Support plan] or the [Enterprise Support plan].
[1]: console.aws.amazon.com/iam/home?#/policies/arn:aws:iam::aws:policy/service-role/AWSShieldDRTAccessPolicy [2]: docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_manage-attach-detach.html [3]: docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html [4]: docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html [5]: aws.amazon.com/premiumsupport/business-support/ [6]: aws.amazon.com/premiumsupport/enterprise-support/
580 581 582 583 |
# File 'lib/aws-sdk-shield/client.rb', line 580 def associate_drt_role(params = {}, = {}) req = build_request(:associate_drt_role, params) req.send_request() end |
#associate_health_check(params = {}) ⇒ Struct
Adds health-based detection to the Shield Advanced protection for a resource. Shield Advanced health-based detection uses the health of your Amazon Web Services resource to improve responsiveness and accuracy in attack detection and response.
You define the health check in Route 53 and then associate it with your Shield Advanced protection. For more information, see [Shield Advanced Health-Based Detection] in the *WAF Developer Guide*.
[1]: docs.aws.amazon.com/waf/latest/developerguide/ddos-overview.html#ddos-advanced-health-check-option
619 620 621 622 |
# File 'lib/aws-sdk-shield/client.rb', line 619 def associate_health_check(params = {}, = {}) req = build_request(:associate_health_check, params) req.send_request() end |
#associate_proactive_engagement_details(params = {}) ⇒ Struct
Initializes proactive engagement and sets the list of contacts for the Shield Response Team (SRT) to use. You must provide at least one phone number in the emergency contact list.
After you have initialized proactive engagement using this call, to disable or enable proactive engagement, use the calls ‘DisableProactiveEngagement` and `EnableProactiveEngagement`.
<note markdown=“1”> This call defines the list of email addresses and phone numbers that the SRT can use to contact you for escalations to the SRT and to initiate proactive customer support.
The contacts that you provide in the request 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 to this call.
</note>
676 677 678 679 |
# File 'lib/aws-sdk-shield/client.rb', line 676 def associate_proactive_engagement_details(params = {}, = {}) req = build_request(:associate_proactive_engagement_details, params) req.send_request() end |
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 |
# File 'lib/aws-sdk-shield/client.rb', line 2001 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) tracer = config.telemetry_provider.tracer_provider.tracer( Aws::Telemetry.module_to_tracer_name('Aws::Shield') ) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config, tracer: tracer ) context[:gem_name] = 'aws-sdk-shield' context[:gem_version] = '1.77.0' Seahorse::Client::Request.new(handlers, context) end |
#create_protection(params = {}) ⇒ Types::CreateProtectionResponse
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 [console.aws.amazon.com/wafv2/shieldv2#/][1]. For more information see [Getting Started with Shield Advanced] and [Adding Shield Advanced protection to Amazon Web Services resources].
[1]: console.aws.amazon.com/wafv2/shieldv2#/ [2]: docs.aws.amazon.com/waf/latest/developerguide/getting-started-ddos.html [3]: docs.aws.amazon.com/waf/latest/developerguide/configure-new-protection.html
757 758 759 760 |
# File 'lib/aws-sdk-shield/client.rb', line 757 def create_protection(params = {}, = {}) req = build_request(:create_protection, params) req.send_request() end |
#create_protection_group(params = {}) ⇒ Struct
Creates a grouping of protected resources so they can be handled as a collective. This resource grouping improves the accuracy of detection and reduces false positives.
831 832 833 834 |
# File 'lib/aws-sdk-shield/client.rb', line 831 def create_protection_group(params = {}, = {}) req = build_request(:create_protection_group, params) req.send_request() end |
#create_subscription(params = {}) ⇒ Struct
Activates Shield Advanced for an account.
<note markdown=“1”> For accounts that are members of an Organizations organization, Shield Advanced subscriptions are billed against the organization’s payer account, regardless of whether the payer account itself is subscribed.
</note>
When you initially create a subscription, your subscription is set to be automatically renewed at the end of the existing subscription period. You can change this by submitting an ‘UpdateSubscription` request.
855 856 857 858 |
# File 'lib/aws-sdk-shield/client.rb', line 855 def create_subscription(params = {}, = {}) req = build_request(:create_subscription, params) req.send_request() end |
#delete_protection(params = {}) ⇒ Struct
Deletes an Shield Advanced Protection.
877 878 879 880 |
# File 'lib/aws-sdk-shield/client.rb', line 877 def delete_protection(params = {}, = {}) req = build_request(:delete_protection, params) req.send_request() end |
#delete_protection_group(params = {}) ⇒ Struct
Removes the specified protection group.
901 902 903 904 |
# File 'lib/aws-sdk-shield/client.rb', line 901 def delete_protection_group(params = {}, = {}) req = build_request(:delete_protection_group, params) req.send_request() end |
#delete_subscription(params = {}) ⇒ Struct
Removes Shield Advanced from an account. Shield Advanced requires a 1-year subscription commitment. You cannot delete a subscription prior to the completion of that commitment.
916 917 918 919 |
# File 'lib/aws-sdk-shield/client.rb', line 916 def delete_subscription(params = {}, = {}) req = build_request(:delete_subscription, params) req.send_request() end |
#describe_attack(params = {}) ⇒ Types::DescribeAttackResponse
Describes the details of a DDoS attack.
983 984 985 986 |
# File 'lib/aws-sdk-shield/client.rb', line 983 def describe_attack(params = {}, = {}) req = build_request(:describe_attack, params) req.send_request() end |
#describe_attack_statistics(params = {}) ⇒ Types::DescribeAttackStatisticsResponse
Provides information about the number and type of attacks Shield has detected in the last year for all resources that belong to your account, regardless of whether you’ve defined Shield protections for them. This operation is available to Shield customers as well as to Shield Advanced customers.
The operation returns data for the time range of midnight UTC, one year ago, to midnight UTC, today. For example, if the current time is ‘2020-10-26 15:39:32 PDT`, equal to `2020-10-26 22:39:32 UTC`, then the time range for the attack data returned is from `2019-10-26 00:00:00 UTC` to `2020-10-26 00:00:00 UTC`.
The time range indicates the period covered by the attack statistics data items.
1022 1023 1024 1025 |
# File 'lib/aws-sdk-shield/client.rb', line 1022 def describe_attack_statistics(params = {}, = {}) req = build_request(:describe_attack_statistics, params) req.send_request() end |
#describe_drt_access(params = {}) ⇒ Types::DescribeDRTAccessResponse
Returns the current role and list of Amazon S3 log buckets used by the Shield Response Team (SRT) to access your Amazon Web Services account while assisting with attack mitigation.
1046 1047 1048 1049 |
# File 'lib/aws-sdk-shield/client.rb', line 1046 def describe_drt_access(params = {}, = {}) req = build_request(:describe_drt_access, params) req.send_request() end |
#describe_emergency_contact_settings(params = {}) ⇒ Types::DescribeEmergencyContactSettingsResponse
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.
1071 1072 1073 1074 |
# File 'lib/aws-sdk-shield/client.rb', line 1071 def describe_emergency_contact_settings(params = {}, = {}) req = build_request(:describe_emergency_contact_settings, params) req.send_request() end |
#describe_protection(params = {}) ⇒ Types::DescribeProtectionResponse
Lists the details of a Protection object.
1113 1114 1115 1116 |
# File 'lib/aws-sdk-shield/client.rb', line 1113 def describe_protection(params = {}, = {}) req = build_request(:describe_protection, params) req.send_request() end |
#describe_protection_group(params = {}) ⇒ Types::DescribeProtectionGroupResponse
Returns the specification for the specified protection group.
1149 1150 1151 1152 |
# File 'lib/aws-sdk-shield/client.rb', line 1149 def describe_protection_group(params = {}, = {}) req = build_request(:describe_protection_group, params) req.send_request() end |
#describe_subscription(params = {}) ⇒ Types::DescribeSubscriptionResponse
Provides details about the Shield Advanced subscription for an account.
1182 1183 1184 1185 |
# File 'lib/aws-sdk-shield/client.rb', line 1182 def describe_subscription(params = {}, = {}) req = build_request(:describe_subscription, params) req.send_request() end |
#disable_application_layer_automatic_response(params = {}) ⇒ Struct
Disable the Shield Advanced automatic application layer DDoS mitigation feature for the protected resource. This stops Shield Advanced from creating, verifying, and applying WAF rules for attacks that it detects for the resource.
1207 1208 1209 1210 |
# File 'lib/aws-sdk-shield/client.rb', line 1207 def disable_application_layer_automatic_response(params = {}, = {}) req = build_request(:disable_application_layer_automatic_response, params) req.send_request() end |
#disable_proactive_engagement(params = {}) ⇒ Struct
Removes authorization from the Shield Response Team (SRT) to notify contacts about escalations to the SRT and to initiate proactive customer support.
1222 1223 1224 1225 |
# File 'lib/aws-sdk-shield/client.rb', line 1222 def disable_proactive_engagement(params = {}, = {}) req = build_request(:disable_proactive_engagement, params) req.send_request() end |
#disassociate_drt_log_bucket(params = {}) ⇒ Struct
Removes the Shield Response Team’s (SRT) access to the specified Amazon S3 bucket containing the logs that you shared previously.
1245 1246 1247 1248 |
# File 'lib/aws-sdk-shield/client.rb', line 1245 def disassociate_drt_log_bucket(params = {}, = {}) req = build_request(:disassociate_drt_log_bucket, params) req.send_request() end |
#disassociate_drt_role(params = {}) ⇒ Struct
Removes the Shield Response Team’s (SRT) access to your Amazon Web Services account.
1259 1260 1261 1262 |
# File 'lib/aws-sdk-shield/client.rb', line 1259 def disassociate_drt_role(params = {}, = {}) req = build_request(:disassociate_drt_role, params) req.send_request() end |
#disassociate_health_check(params = {}) ⇒ Struct
Removes health-based detection from the Shield Advanced protection for a resource. Shield Advanced health-based detection uses the health of your Amazon Web Services resource to improve responsiveness and accuracy in attack detection and response.
You define the health check in Route 53 and then associate or disassociate it with your Shield Advanced protection. For more information, see [Shield Advanced Health-Based Detection] in the *WAF Developer Guide*.
[1]: docs.aws.amazon.com/waf/latest/developerguide/ddos-overview.html#ddos-advanced-health-check-option
1299 1300 1301 1302 |
# File 'lib/aws-sdk-shield/client.rb', line 1299 def disassociate_health_check(params = {}, = {}) req = build_request(:disassociate_health_check, params) req.send_request() end |
#enable_application_layer_automatic_response(params = {}) ⇒ Struct
Enable the Shield Advanced automatic application layer DDoS mitigation for the protected resource.
<note markdown=“1”> This feature is available for Amazon CloudFront distributions and Application Load Balancers only.
</note>
This causes Shield Advanced to create, verify, and apply WAF rules for DDoS attacks that it detects for the resource. Shield Advanced applies the rules in a Shield rule group inside the web ACL that you’ve associated with the resource. For information about how automatic mitigation works and the requirements for using it, see [Shield Advanced automatic application layer DDoS mitigation].
<note markdown=“1”> Don’t use this action to make changes to automatic mitigation settings when it’s already enabled for a resource. Instead, use UpdateApplicationLayerAutomaticResponse.
</note>
To use this feature, you must associate a web ACL with the protected resource. The web ACL must be created using the latest version of WAF (v2). You can associate the web ACL through the Shield Advanced console at [console.aws.amazon.com/wafv2/shieldv2#/][2]. For more information, see [Getting Started with Shield Advanced]. You can also associate the web ACL to the resource through the WAF console or the WAF API, but you must manage Shield Advanced automatic mitigation through Shield Advanced. For information about WAF, see [WAF Developer Guide].
[1]: docs.aws.amazon.com/waf/latest/developerguide/ddos-advanced-automatic-app-layer-response.html [2]: console.aws.amazon.com/wafv2/shieldv2#/ [3]: docs.aws.amazon.com/waf/latest/developerguide/getting-started-ddos.html [4]: docs.aws.amazon.com/waf/latest/developerguide/
1372 1373 1374 1375 |
# File 'lib/aws-sdk-shield/client.rb', line 1372 def enable_application_layer_automatic_response(params = {}, = {}) req = build_request(:enable_application_layer_automatic_response, params) req.send_request() end |
#enable_proactive_engagement(params = {}) ⇒ Struct
Authorizes the Shield Response Team (SRT) to use email and phone to notify contacts about escalations to the SRT and to initiate proactive customer support.
1387 1388 1389 1390 |
# File 'lib/aws-sdk-shield/client.rb', line 1387 def enable_proactive_engagement(params = {}, = {}) req = build_request(:enable_proactive_engagement, params) req.send_request() end |
#get_subscription_state(params = {}) ⇒ Types::GetSubscriptionStateResponse
Returns the ‘SubscriptionState`, either `Active` or `Inactive`.
1406 1407 1408 1409 |
# File 'lib/aws-sdk-shield/client.rb', line 1406 def get_subscription_state(params = {}, = {}) req = build_request(:get_subscription_state, params) req.send_request() end |
#list_attacks(params = {}) ⇒ Types::ListAttacksResponse
Returns all ongoing DDoS attacks or all DDoS attacks during a specified time period.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1504 1505 1506 1507 |
# File 'lib/aws-sdk-shield/client.rb', line 1504 def list_attacks(params = {}, = {}) req = build_request(:list_attacks, params) req.send_request() end |
#list_protection_groups(params = {}) ⇒ Types::ListProtectionGroupsResponse
Retrieves ProtectionGroup objects for the account. You can retrieve all protection groups or you can provide filtering criteria and retrieve just the subset of protection groups that match the criteria.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1584 1585 1586 1587 |
# File 'lib/aws-sdk-shield/client.rb', line 1584 def list_protection_groups(params = {}, = {}) req = build_request(:list_protection_groups, params) req.send_request() end |
#list_protections(params = {}) ⇒ Types::ListProtectionsResponse
Retrieves Protection objects for the account. You can retrieve all protections or you can provide filtering criteria and retrieve just the subset of protections that match the criteria.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1663 1664 1665 1666 |
# File 'lib/aws-sdk-shield/client.rb', line 1663 def list_protections(params = {}, = {}) req = build_request(:list_protections, params) req.send_request() end |
#list_resources_in_protection_group(params = {}) ⇒ Types::ListResourcesInProtectionGroupResponse
Retrieves the resources that are included in the protection group.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1727 1728 1729 1730 |
# File 'lib/aws-sdk-shield/client.rb', line 1727 def list_resources_in_protection_group(params = {}, = {}) req = build_request(:list_resources_in_protection_group, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Gets information about Amazon Web Services tags for a specified Amazon Resource Name (ARN) in Shield.
1758 1759 1760 1761 |
# File 'lib/aws-sdk-shield/client.rb', line 1758 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Adds or updates tags for a resource in Shield.
1790 1791 1792 1793 |
# File 'lib/aws-sdk-shield/client.rb', line 1790 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes tags from a resource in Shield.
1817 1818 1819 1820 |
# File 'lib/aws-sdk-shield/client.rb', line 1817 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_application_layer_automatic_response(params = {}) ⇒ Struct
Updates an existing Shield Advanced automatic application layer DDoS mitigation configuration for the specified resource.
1855 1856 1857 1858 |
# File 'lib/aws-sdk-shield/client.rb', line 1855 def update_application_layer_automatic_response(params = {}, = {}) req = build_request(:update_application_layer_automatic_response, params) req.send_request() end |
#update_emergency_contact_settings(params = {}) ⇒ Struct
Updates the details of the 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.
1892 1893 1894 1895 |
# File 'lib/aws-sdk-shield/client.rb', line 1892 def update_emergency_contact_settings(params = {}, = {}) req = build_request(:update_emergency_contact_settings, params) req.send_request() end |
#update_protection_group(params = {}) ⇒ Struct
Updates an existing protection group. A protection group is a grouping of protected resources so they can be handled as a collective. This resource grouping improves the accuracy of detection and reduces false positives.
1958 1959 1960 1961 |
# File 'lib/aws-sdk-shield/client.rb', line 1958 def update_protection_group(params = {}, = {}) req = build_request(:update_protection_group, params) req.send_request() end |
#update_subscription(params = {}) ⇒ Struct
Updates the details of an existing subscription. Only enter values for parameters you want to change. Empty parameters are not updated.
<note markdown=“1”> For accounts that are members of an Organizations organization, Shield Advanced subscriptions are billed against the organization’s payer account, regardless of whether the payer account itself is subscribed.
</note>
1992 1993 1994 1995 |
# File 'lib/aws-sdk-shield/client.rb', line 1992 def update_subscription(params = {}, = {}) req = build_request(:update_subscription, params) req.send_request() end |
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
2021 2022 2023 |
# File 'lib/aws-sdk-shield/client.rb', line 2021 def waiter_names [] end |