commonMain.aws.sdk.kotlin.services.shield.ShieldClient.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.shield
import aws.sdk.kotlin.runtime.auth.credentials.DefaultChainCredentialsProvider
import aws.sdk.kotlin.runtime.auth.credentials.internal.borrow
import aws.sdk.kotlin.runtime.endpoint.AwsEndpointResolver
import aws.sdk.kotlin.runtime.region.resolveRegion
import aws.sdk.kotlin.services.shield.internal.DefaultEndpointResolver
import aws.sdk.kotlin.services.shield.model.*
import aws.smithy.kotlin.runtime.SdkClient
import aws.smithy.kotlin.runtime.auth.awscredentials.CredentialsProvider
import aws.smithy.kotlin.runtime.auth.awssigning.AwsSigner
import aws.smithy.kotlin.runtime.auth.awssigning.DefaultAwsSigner
import aws.smithy.kotlin.runtime.client.SdkLogMode
import aws.smithy.kotlin.runtime.config.SdkClientConfig
import aws.smithy.kotlin.runtime.http.config.HttpClientConfig
import aws.smithy.kotlin.runtime.http.endpoints.EndpointResolver
import aws.smithy.kotlin.runtime.http.engine.HttpClientEngine
import aws.smithy.kotlin.runtime.retries.RetryStrategy
import aws.smithy.kotlin.runtime.retries.StandardRetryStrategy
/**
* # Shield Advanced
* This is the *Shield Advanced API Reference*. This guide is for developers who need detailed information about the Shield Advanced API actions, data types, and errors. For detailed information about WAF and Shield Advanced features and an overview of how to use the WAF and Shield Advanced APIs, see the [WAF and Shield Developer Guide](https://docs.aws.amazon.com/waf/latest/developerguide/).
*/
interface ShieldClient : SdkClient {
override val serviceName: String
get() = "Shield"
/**
* ShieldClient's configuration
*/
val config: Config
companion object {
operator fun invoke(block: Config.Builder.() -> Unit): ShieldClient {
val config = Config.Builder().apply(block).build()
return DefaultShieldClient(config)
}
operator fun invoke(config: Config): ShieldClient = DefaultShieldClient(config)
/**
* Construct a [ShieldClient] by resolving the configuration from the current environment.
*/
suspend fun fromEnvironment(block: (Config.Builder.() -> Unit)? = null): ShieldClient {
val builder = Config.Builder()
if (block != null) builder.apply(block)
builder.region = builder.region ?: resolveRegion()
return DefaultShieldClient(builder.build())
}
}
class Config private constructor(builder: Builder): HttpClientConfig, SdkClientConfig {
val credentialsProvider: CredentialsProvider = builder.credentialsProvider?.borrow() ?: DefaultChainCredentialsProvider()
val endpointResolver: AwsEndpointResolver = builder.endpointResolver ?: DefaultEndpointResolver()
override val httpClientEngine: HttpClientEngine? = builder.httpClientEngine
val region: String = requireNotNull(builder.region) { "region is a required configuration property" }
val retryStrategy: RetryStrategy = StandardRetryStrategy()
override val sdkLogMode: SdkLogMode = builder.sdkLogMode
val signer: AwsSigner = builder.signer ?: DefaultAwsSigner
companion object {
inline operator fun invoke(block: Builder.() -> kotlin.Unit): Config = Builder().apply(block).build()
}
class Builder {
/**
* The AWS credentials provider to use for authenticating requests. If not provided a
* [aws.sdk.kotlin.runtime.auth.credentials.DefaultChainCredentialsProvider] instance will be used.
* NOTE: The caller is responsible for managing the lifetime of the provider when set. The SDK
* client will not close it when the client is closed.
*/
var credentialsProvider: CredentialsProvider? = null
/**
* Determines the endpoint (hostname) to make requests to. When not provided a default
* resolver is configured automatically. This is an advanced client option.
*/
var endpointResolver: AwsEndpointResolver? = null
/**
* Override the default HTTP client engine used to make SDK requests (e.g. configure proxy behavior, timeouts, concurrency, etc).
* NOTE: The caller is responsible for managing the lifetime of the engine when set. The SDK
* client will not close it when the client is closed.
*/
var httpClientEngine: HttpClientEngine? = null
/**
* AWS region to make requests to
*/
var region: String? = null
/**
* Configure events that will be logged. By default clients will not output
* raw requests or responses. Use this setting to opt-in to additional debug logging.
*
* This can be used to configure logging of requests, responses, retries, etc of SDK clients.
*
* **NOTE**: Logging of raw requests or responses may leak sensitive information! It may also have
* performance considerations when dumping the request/response body. This is primarily a tool for
* debug purposes.
*/
var sdkLogMode: SdkLogMode = SdkLogMode.Default
/**
* The implementation of AWS signer to use for signing requests
*/
var signer: AwsSigner? = null
@PublishedApi
internal fun build(): Config = Config(this)
}
}
/**
* 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](https://docs.aws.amazon.com/premiumsupport/business-support/) or the [Enterprise Support plan](https://docs.aws.amazon.com/premiumsupport/enterprise-support/).
*/
suspend fun associateDrtLogBucket(input: AssociateDrtLogBucketRequest): AssociateDrtLogBucketResponse
/**
* 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](https://docs.aws.amazon.com/premiumsupport/business-support/) or the [Enterprise Support plan](https://docs.aws.amazon.com/premiumsupport/enterprise-support/).
*/
suspend fun associateDrtLogBucket(block: AssociateDrtLogBucketRequest.Builder.() -> Unit) = associateDrtLogBucket(AssociateDrtLogBucketRequest.Builder().apply(block).build())
/**
* 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](https://console.aws.amazon.com/iam/home?#/policies/arn:aws:iam::aws:policy/service-role/AWSShieldDRTAccessPolicy). For more information see [Adding and removing IAM identity permissions](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_manage-attach-detach.html). The role must also trust the service principal `drt.shield.amazonaws.com`. For more information, see [IAM JSON policy elements: Principal](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html).
*
* 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](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html).
*
* To use the services of the SRT and make an `AssociateDRTRole` request, you must be subscribed to the [Business Support plan](https://docs.aws.amazon.com/premiumsupport/business-support/) or the [Enterprise Support plan](https://docs.aws.amazon.com/premiumsupport/enterprise-support/).
*/
suspend fun associateDrtRole(input: AssociateDrtRoleRequest): AssociateDrtRoleResponse
/**
* 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](https://console.aws.amazon.com/iam/home?#/policies/arn:aws:iam::aws:policy/service-role/AWSShieldDRTAccessPolicy). For more information see [Adding and removing IAM identity permissions](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_manage-attach-detach.html). The role must also trust the service principal `drt.shield.amazonaws.com`. For more information, see [IAM JSON policy elements: Principal](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html).
*
* 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](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html).
*
* To use the services of the SRT and make an `AssociateDRTRole` request, you must be subscribed to the [Business Support plan](https://docs.aws.amazon.com/premiumsupport/business-support/) or the [Enterprise Support plan](https://docs.aws.amazon.com/premiumsupport/enterprise-support/).
*/
suspend fun associateDrtRole(block: AssociateDrtRoleRequest.Builder.() -> Unit) = associateDrtRole(AssociateDrtRoleRequest.Builder().apply(block).build())
/**
* 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](https://docs.aws.amazon.com/waf/latest/developerguide/ddos-overview.html#ddos-advanced-health-check-option) in the *WAF Developer Guide*.
*/
suspend fun associateHealthCheck(input: AssociateHealthCheckRequest): AssociateHealthCheckResponse
/**
* 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](https://docs.aws.amazon.com/waf/latest/developerguide/ddos-overview.html#ddos-advanced-health-check-option) in the *WAF Developer Guide*.
*/
suspend fun associateHealthCheck(block: AssociateHealthCheckRequest.Builder.() -> Unit) = associateHealthCheck(AssociateHealthCheckRequest.Builder().apply(block).build())
/**
* 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`.
*
* 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.
*/
suspend fun associateProactiveEngagementDetails(input: AssociateProactiveEngagementDetailsRequest): AssociateProactiveEngagementDetailsResponse
/**
* 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`.
*
* 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.
*/
suspend fun associateProactiveEngagementDetails(block: AssociateProactiveEngagementDetailsRequest.Builder.() -> Unit) = associateProactiveEngagementDetails(AssociateProactiveEngagementDetailsRequest.Builder().apply(block).build())
/**
* Enables Shield Advanced for a specific Amazon Web Services resource. The resource can be an Amazon CloudFront distribution, Elastic Load Balancing load balancer, Global Accelerator accelerator, Elastic IP Address, or an Amazon Route 53 hosted zone.
*
* 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#/](https://console.aws.amazon.com/wafv2/shieldv2#/). For more information see [Getting Started with Shield Advanced](https://docs.aws.amazon.com/waf/latest/developerguide/getting-started-ddos.html) and [Adding Shield Advanced protection to Amazon Web Services resources](https://docs.aws.amazon.com/waf/latest/developerguide/configure-new-protection.html).
*/
suspend fun createProtection(input: CreateProtectionRequest): CreateProtectionResponse
/**
* Enables Shield Advanced for a specific Amazon Web Services resource. The resource can be an Amazon CloudFront distribution, Elastic Load Balancing load balancer, Global Accelerator accelerator, Elastic IP Address, or an Amazon Route 53 hosted zone.
*
* 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#/](https://console.aws.amazon.com/wafv2/shieldv2#/). For more information see [Getting Started with Shield Advanced](https://docs.aws.amazon.com/waf/latest/developerguide/getting-started-ddos.html) and [Adding Shield Advanced protection to Amazon Web Services resources](https://docs.aws.amazon.com/waf/latest/developerguide/configure-new-protection.html).
*/
suspend fun createProtection(block: CreateProtectionRequest.Builder.() -> Unit) = createProtection(CreateProtectionRequest.Builder().apply(block).build())
/**
* 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.
*/
suspend fun createProtectionGroup(input: CreateProtectionGroupRequest): CreateProtectionGroupResponse
/**
* 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.
*/
suspend fun createProtectionGroup(block: CreateProtectionGroupRequest.Builder.() -> Unit) = createProtectionGroup(CreateProtectionGroupRequest.Builder().apply(block).build())
/**
* Activates Shield Advanced for an account.
*
* When you initally 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.
*/
suspend fun createSubscription(input: CreateSubscriptionRequest = CreateSubscriptionRequest {}): CreateSubscriptionResponse
/**
* Activates Shield Advanced for an account.
*
* When you initally 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.
*/
suspend fun createSubscription(block: CreateSubscriptionRequest.Builder.() -> Unit) = createSubscription(CreateSubscriptionRequest.Builder().apply(block).build())
/**
* Deletes an Shield Advanced Protection.
*/
suspend fun deleteProtection(input: DeleteProtectionRequest): DeleteProtectionResponse
/**
* Deletes an Shield Advanced Protection.
*/
suspend fun deleteProtection(block: DeleteProtectionRequest.Builder.() -> Unit) = deleteProtection(DeleteProtectionRequest.Builder().apply(block).build())
/**
* Removes the specified protection group.
*/
suspend fun deleteProtectionGroup(input: DeleteProtectionGroupRequest): DeleteProtectionGroupResponse
/**
* Removes the specified protection group.
*/
suspend fun deleteProtectionGroup(block: DeleteProtectionGroupRequest.Builder.() -> Unit) = deleteProtectionGroup(DeleteProtectionGroupRequest.Builder().apply(block).build())
/**
* 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.
*/
@Deprecated("No longer recommended for use. See AWS API documentation for more details.")
suspend fun deleteSubscription(input: DeleteSubscriptionRequest = DeleteSubscriptionRequest {}): DeleteSubscriptionResponse
/**
* 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.
*/
@Deprecated("No longer recommended for use. See AWS API documentation for more details.")
suspend fun deleteSubscription(block: DeleteSubscriptionRequest.Builder.() -> Unit) = deleteSubscription(DeleteSubscriptionRequest.Builder().apply(block).build())
/**
* Describes the details of a DDoS attack.
*/
suspend fun describeAttack(input: DescribeAttackRequest): DescribeAttackResponse
/**
* Describes the details of a DDoS attack.
*/
suspend fun describeAttack(block: DescribeAttackRequest.Builder.() -> Unit) = describeAttack(DescribeAttackRequest.Builder().apply(block).build())
/**
* 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.
*/
suspend fun describeAttackStatistics(input: DescribeAttackStatisticsRequest = DescribeAttackStatisticsRequest {}): 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.
*/
suspend fun describeAttackStatistics(block: DescribeAttackStatisticsRequest.Builder.() -> Unit) = describeAttackStatistics(DescribeAttackStatisticsRequest.Builder().apply(block).build())
/**
* 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.
*/
suspend fun describeDrtAccess(input: DescribeDrtAccessRequest = DescribeDrtAccessRequest {}): 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.
*/
suspend fun describeDrtAccess(block: DescribeDrtAccessRequest.Builder.() -> Unit) = describeDrtAccess(DescribeDrtAccessRequest.Builder().apply(block).build())
/**
* 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.
*/
suspend fun describeEmergencyContactSettings(input: DescribeEmergencyContactSettingsRequest = DescribeEmergencyContactSettingsRequest {}): 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.
*/
suspend fun describeEmergencyContactSettings(block: DescribeEmergencyContactSettingsRequest.Builder.() -> Unit) = describeEmergencyContactSettings(DescribeEmergencyContactSettingsRequest.Builder().apply(block).build())
/**
* Lists the details of a Protection object.
*/
suspend fun describeProtection(input: DescribeProtectionRequest = DescribeProtectionRequest {}): DescribeProtectionResponse
/**
* Lists the details of a Protection object.
*/
suspend fun describeProtection(block: DescribeProtectionRequest.Builder.() -> Unit) = describeProtection(DescribeProtectionRequest.Builder().apply(block).build())
/**
* Returns the specification for the specified protection group.
*/
suspend fun describeProtectionGroup(input: DescribeProtectionGroupRequest): DescribeProtectionGroupResponse
/**
* Returns the specification for the specified protection group.
*/
suspend fun describeProtectionGroup(block: DescribeProtectionGroupRequest.Builder.() -> Unit) = describeProtectionGroup(DescribeProtectionGroupRequest.Builder().apply(block).build())
/**
* Provides details about the Shield Advanced subscription for an account.
*/
suspend fun describeSubscription(input: DescribeSubscriptionRequest = DescribeSubscriptionRequest {}): DescribeSubscriptionResponse
/**
* Provides details about the Shield Advanced subscription for an account.
*/
suspend fun describeSubscription(block: DescribeSubscriptionRequest.Builder.() -> Unit) = describeSubscription(DescribeSubscriptionRequest.Builder().apply(block).build())
/**
* Disable the Shield Advanced automatic application layer DDoS mitigation feature for the resource. This stops Shield Advanced from creating, verifying, and applying WAF rules for attacks that it detects for the resource.
*/
suspend fun disableApplicationLayerAutomaticResponse(input: DisableApplicationLayerAutomaticResponseRequest): DisableApplicationLayerAutomaticResponseResponse
/**
* Disable the Shield Advanced automatic application layer DDoS mitigation feature for the resource. This stops Shield Advanced from creating, verifying, and applying WAF rules for attacks that it detects for the resource.
*/
suspend fun disableApplicationLayerAutomaticResponse(block: DisableApplicationLayerAutomaticResponseRequest.Builder.() -> Unit) = disableApplicationLayerAutomaticResponse(DisableApplicationLayerAutomaticResponseRequest.Builder().apply(block).build())
/**
* Removes authorization from the Shield Response Team (SRT) to notify contacts about escalations to the SRT and to initiate proactive customer support.
*/
suspend fun disableProactiveEngagement(input: DisableProactiveEngagementRequest = DisableProactiveEngagementRequest {}): DisableProactiveEngagementResponse
/**
* Removes authorization from the Shield Response Team (SRT) to notify contacts about escalations to the SRT and to initiate proactive customer support.
*/
suspend fun disableProactiveEngagement(block: DisableProactiveEngagementRequest.Builder.() -> Unit) = disableProactiveEngagement(DisableProactiveEngagementRequest.Builder().apply(block).build())
/**
* Removes the Shield Response Team's (SRT) access to the specified Amazon S3 bucket containing the logs that you shared previously.
*/
suspend fun disassociateDrtLogBucket(input: DisassociateDrtLogBucketRequest): DisassociateDrtLogBucketResponse
/**
* Removes the Shield Response Team's (SRT) access to the specified Amazon S3 bucket containing the logs that you shared previously.
*/
suspend fun disassociateDrtLogBucket(block: DisassociateDrtLogBucketRequest.Builder.() -> Unit) = disassociateDrtLogBucket(DisassociateDrtLogBucketRequest.Builder().apply(block).build())
/**
* Removes the Shield Response Team's (SRT) access to your Amazon Web Services account.
*/
suspend fun disassociateDrtRole(input: DisassociateDrtRoleRequest = DisassociateDrtRoleRequest {}): DisassociateDrtRoleResponse
/**
* Removes the Shield Response Team's (SRT) access to your Amazon Web Services account.
*/
suspend fun disassociateDrtRole(block: DisassociateDrtRoleRequest.Builder.() -> Unit) = disassociateDrtRole(DisassociateDrtRoleRequest.Builder().apply(block).build())
/**
* 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](https://docs.aws.amazon.com/waf/latest/developerguide/ddos-overview.html#ddos-advanced-health-check-option) in the *WAF Developer Guide*.
*/
suspend fun disassociateHealthCheck(input: DisassociateHealthCheckRequest): DisassociateHealthCheckResponse
/**
* 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](https://docs.aws.amazon.com/waf/latest/developerguide/ddos-overview.html#ddos-advanced-health-check-option) in the *WAF Developer Guide*.
*/
suspend fun disassociateHealthCheck(block: DisassociateHealthCheckRequest.Builder.() -> Unit) = disassociateHealthCheck(DisassociateHealthCheckRequest.Builder().apply(block).build())
/**
* Enable the Shield Advanced automatic application layer DDoS mitigation for the resource.
*
* This feature is available for Amazon CloudFront distributions only.
*
* 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](https://docs.aws.amazon.com/waf/latest/developerguide/ddos-advanced-automatic-app-layer-response.html).
*
* Don't use this action to make changes to automatic mitigation settings when it's already enabled for a resource. Instead, use UpdateApplicationLayerAutomaticResponse.
*
* 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 [https://console.aws.amazon.com/wafv2/shieldv2#/](https://console.aws.amazon.com/wafv2/shieldv2#/). For more information, see [Getting Started with Shield Advanced](https://docs.aws.amazon.com/waf/latest/developerguide/getting-started-ddos.html).
*
* You can also do this 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](https://docs.aws.amazon.com/waf/latest/developerguide/).
*/
suspend fun enableApplicationLayerAutomaticResponse(input: EnableApplicationLayerAutomaticResponseRequest): EnableApplicationLayerAutomaticResponseResponse
/**
* Enable the Shield Advanced automatic application layer DDoS mitigation for the resource.
*
* This feature is available for Amazon CloudFront distributions only.
*
* 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](https://docs.aws.amazon.com/waf/latest/developerguide/ddos-advanced-automatic-app-layer-response.html).
*
* Don't use this action to make changes to automatic mitigation settings when it's already enabled for a resource. Instead, use UpdateApplicationLayerAutomaticResponse.
*
* 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 [https://console.aws.amazon.com/wafv2/shieldv2#/](https://console.aws.amazon.com/wafv2/shieldv2#/). For more information, see [Getting Started with Shield Advanced](https://docs.aws.amazon.com/waf/latest/developerguide/getting-started-ddos.html).
*
* You can also do this 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](https://docs.aws.amazon.com/waf/latest/developerguide/).
*/
suspend fun enableApplicationLayerAutomaticResponse(block: EnableApplicationLayerAutomaticResponseRequest.Builder.() -> Unit) = enableApplicationLayerAutomaticResponse(EnableApplicationLayerAutomaticResponseRequest.Builder().apply(block).build())
/**
* 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.
*/
suspend fun enableProactiveEngagement(input: EnableProactiveEngagementRequest = EnableProactiveEngagementRequest {}): EnableProactiveEngagementResponse
/**
* 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.
*/
suspend fun enableProactiveEngagement(block: EnableProactiveEngagementRequest.Builder.() -> Unit) = enableProactiveEngagement(EnableProactiveEngagementRequest.Builder().apply(block).build())
/**
* Returns the `SubscriptionState`, either `Active` or `Inactive`.
*/
suspend fun getSubscriptionState(input: GetSubscriptionStateRequest = GetSubscriptionStateRequest {}): GetSubscriptionStateResponse
/**
* Returns the `SubscriptionState`, either `Active` or `Inactive`.
*/
suspend fun getSubscriptionState(block: GetSubscriptionStateRequest.Builder.() -> Unit) = getSubscriptionState(GetSubscriptionStateRequest.Builder().apply(block).build())
/**
* Returns all ongoing DDoS attacks or all DDoS attacks during a specified time period.
*/
suspend fun listAttacks(input: ListAttacksRequest = ListAttacksRequest {}): ListAttacksResponse
/**
* Returns all ongoing DDoS attacks or all DDoS attacks during a specified time period.
*/
suspend fun listAttacks(block: ListAttacksRequest.Builder.() -> Unit) = listAttacks(ListAttacksRequest.Builder().apply(block).build())
/**
* Retrieves the ProtectionGroup objects for the account.
*/
suspend fun listProtectionGroups(input: ListProtectionGroupsRequest = ListProtectionGroupsRequest {}): ListProtectionGroupsResponse
/**
* Retrieves the ProtectionGroup objects for the account.
*/
suspend fun listProtectionGroups(block: ListProtectionGroupsRequest.Builder.() -> Unit) = listProtectionGroups(ListProtectionGroupsRequest.Builder().apply(block).build())
/**
* Lists all Protection objects for the account.
*/
suspend fun listProtections(input: ListProtectionsRequest = ListProtectionsRequest {}): ListProtectionsResponse
/**
* Lists all Protection objects for the account.
*/
suspend fun listProtections(block: ListProtectionsRequest.Builder.() -> Unit) = listProtections(ListProtectionsRequest.Builder().apply(block).build())
/**
* Retrieves the resources that are included in the protection group.
*/
suspend fun listResourcesInProtectionGroup(input: ListResourcesInProtectionGroupRequest): ListResourcesInProtectionGroupResponse
/**
* Retrieves the resources that are included in the protection group.
*/
suspend fun listResourcesInProtectionGroup(block: ListResourcesInProtectionGroupRequest.Builder.() -> Unit) = listResourcesInProtectionGroup(ListResourcesInProtectionGroupRequest.Builder().apply(block).build())
/**
* Gets information about Amazon Web Services tags for a specified Amazon Resource Name (ARN) in Shield.
*/
suspend fun listTagsForResource(input: ListTagsForResourceRequest): ListTagsForResourceResponse
/**
* Gets information about Amazon Web Services tags for a specified Amazon Resource Name (ARN) in Shield.
*/
suspend fun listTagsForResource(block: ListTagsForResourceRequest.Builder.() -> Unit) = listTagsForResource(ListTagsForResourceRequest.Builder().apply(block).build())
/**
* Adds or updates tags for a resource in Shield.
*/
suspend fun tagResource(input: TagResourceRequest): TagResourceResponse
/**
* Adds or updates tags for a resource in Shield.
*/
suspend fun tagResource(block: TagResourceRequest.Builder.() -> Unit) = tagResource(TagResourceRequest.Builder().apply(block).build())
/**
* Removes tags from a resource in Shield.
*/
suspend fun untagResource(input: UntagResourceRequest): UntagResourceResponse
/**
* Removes tags from a resource in Shield.
*/
suspend fun untagResource(block: UntagResourceRequest.Builder.() -> Unit) = untagResource(UntagResourceRequest.Builder().apply(block).build())
/**
* Updates an existing Shield Advanced automatic application layer DDoS mitigation configuration for the specified resource.
*/
suspend fun updateApplicationLayerAutomaticResponse(input: UpdateApplicationLayerAutomaticResponseRequest): UpdateApplicationLayerAutomaticResponseResponse
/**
* Updates an existing Shield Advanced automatic application layer DDoS mitigation configuration for the specified resource.
*/
suspend fun updateApplicationLayerAutomaticResponse(block: UpdateApplicationLayerAutomaticResponseRequest.Builder.() -> Unit) = updateApplicationLayerAutomaticResponse(UpdateApplicationLayerAutomaticResponseRequest.Builder().apply(block).build())
/**
* 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.
*/
suspend fun updateEmergencyContactSettings(input: UpdateEmergencyContactSettingsRequest = UpdateEmergencyContactSettingsRequest {}): UpdateEmergencyContactSettingsResponse
/**
* 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.
*/
suspend fun updateEmergencyContactSettings(block: UpdateEmergencyContactSettingsRequest.Builder.() -> Unit) = updateEmergencyContactSettings(UpdateEmergencyContactSettingsRequest.Builder().apply(block).build())
/**
* 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.
*/
suspend fun updateProtectionGroup(input: UpdateProtectionGroupRequest): UpdateProtectionGroupResponse
/**
* 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.
*/
suspend fun updateProtectionGroup(block: UpdateProtectionGroupRequest.Builder.() -> Unit) = updateProtectionGroup(UpdateProtectionGroupRequest.Builder().apply(block).build())
/**
* Updates the details of an existing subscription. Only enter values for parameters you want to change. Empty parameters are not updated.
*/
suspend fun updateSubscription(input: UpdateSubscriptionRequest = UpdateSubscriptionRequest {}): UpdateSubscriptionResponse
/**
* Updates the details of an existing subscription. Only enter values for parameters you want to change. Empty parameters are not updated.
*/
suspend fun updateSubscription(block: UpdateSubscriptionRequest.Builder.() -> Unit) = updateSubscription(UpdateSubscriptionRequest.Builder().apply(block).build())
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy