@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSShieldClient extends AmazonWebServiceClient implements AWSShield
This is the AWS Shield Advanced API Reference. This guide is for developers who need detailed information about the AWS Shield Advanced API actions, data types, and errors. For detailed information about AWS WAF and AWS Shield Advanced features and an overview of how to use the AWS WAF and AWS Shield Advanced APIs, see the AWS WAF and AWS Shield Developer Guide.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Constructor and Description |
---|
AWSShieldClient()
Deprecated.
|
AWSShieldClient(AWSCredentials awsCredentials)
Deprecated.
use
AwsClientBuilder.withCredentials(AWSCredentialsProvider) for example:
AWSShieldClientBuilder.standard().withCredentials(new AWSStaticCredentialsProvider(awsCredentials)).build(); |
AWSShieldClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration)
|
AWSShieldClient(AWSCredentialsProvider awsCredentialsProvider)
Deprecated.
|
AWSShieldClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
|
AWSShieldClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
RequestMetricCollector requestMetricCollector)
|
AWSShieldClient(ClientConfiguration clientConfiguration)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static AWSShieldClientBuilder |
builder() |
CreateProtectionResult |
createProtection(CreateProtectionRequest request)
Enables AWS Shield Advanced for a specific AWS resource.
|
CreateSubscriptionResult |
createSubscription(CreateSubscriptionRequest request)
Activates AWS Shield Advanced for an account.
|
DeleteProtectionResult |
deleteProtection(DeleteProtectionRequest request)
Deletes an AWS Shield Advanced Protection.
|
DeleteSubscriptionResult |
deleteSubscription(DeleteSubscriptionRequest request)
Removes AWS Shield Advanced from an account.
|
DescribeAttackResult |
describeAttack(DescribeAttackRequest request)
Describes the details of a DDoS attack.
|
DescribeProtectionResult |
describeProtection(DescribeProtectionRequest request)
Lists the details of a Protection object.
|
DescribeSubscriptionResult |
describeSubscription(DescribeSubscriptionRequest request)
Provides details about the AWS Shield Advanced subscription for an account.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful, request, typically used for debugging issues
where a service isn't acting as expected.
|
GetSubscriptionStateResult |
getSubscriptionState(GetSubscriptionStateRequest request)
Returns the
SubscriptionState , either Active or Inactive . |
ListAttacksResult |
listAttacks(ListAttacksRequest request)
Returns all ongoing DDoS attacks or all DDoS attacks during a specified time period.
|
ListProtectionsResult |
listProtections(ListProtectionsRequest request)
Lists all Protection objects for the account.
|
addRequestHandler, addRequestHandler, configureRegion, getEndpointPrefix, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shutdown, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setEndpoint, setRegion, shutdown
@Deprecated public AWSShieldClient()
AWSShieldClientBuilder.defaultClient()
All service calls made using this new client object are blocking, and will not return until the service call completes.
DefaultAWSCredentialsProviderChain
@Deprecated public AWSShieldClient(ClientConfiguration clientConfiguration)
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
clientConfiguration
- The client configuration options controlling how this client connects to AWS Shield (ex: proxy settings,
retry counts, etc.).DefaultAWSCredentialsProviderChain
@Deprecated public AWSShieldClient(AWSCredentials awsCredentials)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
for example:
AWSShieldClientBuilder.standard().withCredentials(new AWSStaticCredentialsProvider(awsCredentials)).build();
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.@Deprecated public AWSShieldClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.clientConfiguration
- The client configuration options controlling how this client connects to AWS Shield (ex: proxy settings,
retry counts, etc.).@Deprecated public AWSShieldClient(AWSCredentialsProvider awsCredentialsProvider)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.@Deprecated public AWSShieldClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration
- The client configuration options controlling how this client connects to AWS Shield (ex: proxy settings,
retry counts, etc.).@Deprecated public AWSShieldClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, RequestMetricCollector requestMetricCollector)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
and
AwsClientBuilder.withMetricsCollector(RequestMetricCollector)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration
- The client configuration options controlling how this client connects to AWS Shield (ex: proxy settings,
retry counts, etc.).requestMetricCollector
- optional request metric collectorpublic static AWSShieldClientBuilder builder()
public CreateProtectionResult createProtection(CreateProtectionRequest request)
Enables AWS Shield Advanced for a specific AWS resource. The resource can be an Amazon CloudFront distribution, Elastic Load Balancing load balancer, Elastic IP Address, or an Amazon Route 53 hosted zone.
createProtection
in interface AWSShield
createProtectionRequest
- InternalErrorException
- Exception that indicates that a problem occurred with the service infrastructure. You can retry the
request.InvalidResourceException
- Exception that indicates that the resource is invalid. You might not have access to the resource, or the
resource might not exist.InvalidOperationException
- Exception that indicates that the operation would not cause any change to occur.LimitsExceededException
- Exception that indicates that the operation would exceed a limit.
Type
is the type of limit that would be exceeded.
Limit
is the threshold that would be exceeded.
ResourceAlreadyExistsException
- Exception indicating the specified resource already exists.OptimisticLockException
- Exception that indicates that the protection state has been modified by another client. You can retry the
request.ResourceNotFoundException
- Exception indicating the specified resource does not exist.public CreateSubscriptionResult createSubscription(CreateSubscriptionRequest request)
Activates AWS Shield Advanced for an account.
createSubscription
in interface AWSShield
createSubscriptionRequest
- InternalErrorException
- Exception that indicates that a problem occurred with the service infrastructure. You can retry the
request.ResourceAlreadyExistsException
- Exception indicating the specified resource already exists.public DeleteProtectionResult deleteProtection(DeleteProtectionRequest request)
Deletes an AWS Shield Advanced Protection.
deleteProtection
in interface AWSShield
deleteProtectionRequest
- InternalErrorException
- Exception that indicates that a problem occurred with the service infrastructure. You can retry the
request.ResourceNotFoundException
- Exception indicating the specified resource does not exist.OptimisticLockException
- Exception that indicates that the protection state has been modified by another client. You can retry the
request.public DeleteSubscriptionResult deleteSubscription(DeleteSubscriptionRequest request)
Removes AWS Shield Advanced from an account. AWS Shield Advanced requires a 1-year subscription commitment. You cannot delete a subscription prior to the completion of that commitment.
deleteSubscription
in interface AWSShield
deleteSubscriptionRequest
- InternalErrorException
- Exception that indicates that a problem occurred with the service infrastructure. You can retry the
request.LockedSubscriptionException
- Exception that indicates that the subscription you are trying to delete has not yet completed the 1-year
commitment. You cannot delete this subscription.ResourceNotFoundException
- Exception indicating the specified resource does not exist.public DescribeAttackResult describeAttack(DescribeAttackRequest request)
Describes the details of a DDoS attack.
describeAttack
in interface AWSShield
describeAttackRequest
- InternalErrorException
- Exception that indicates that a problem occurred with the service infrastructure. You can retry the
request.InvalidParameterException
- Exception that indicates that the parameters passed to the API are invalid.public DescribeProtectionResult describeProtection(DescribeProtectionRequest request)
Lists the details of a Protection object.
describeProtection
in interface AWSShield
describeProtectionRequest
- InternalErrorException
- Exception that indicates that a problem occurred with the service infrastructure. You can retry the
request.ResourceNotFoundException
- Exception indicating the specified resource does not exist.public DescribeSubscriptionResult describeSubscription(DescribeSubscriptionRequest request)
Provides details about the AWS Shield Advanced subscription for an account.
describeSubscription
in interface AWSShield
describeSubscriptionRequest
- InternalErrorException
- Exception that indicates that a problem occurred with the service infrastructure. You can retry the
request.ResourceNotFoundException
- Exception indicating the specified resource does not exist.public GetSubscriptionStateResult getSubscriptionState(GetSubscriptionStateRequest request)
Returns the SubscriptionState
, either Active
or Inactive
.
getSubscriptionState
in interface AWSShield
getSubscriptionStateRequest
- InternalErrorException
- Exception that indicates that a problem occurred with the service infrastructure. You can retry the
request.public ListAttacksResult listAttacks(ListAttacksRequest request)
Returns all ongoing DDoS attacks or all DDoS attacks during a specified time period.
listAttacks
in interface AWSShield
listAttacksRequest
- InternalErrorException
- Exception that indicates that a problem occurred with the service infrastructure. You can retry the
request.InvalidParameterException
- Exception that indicates that the parameters passed to the API are invalid.InvalidOperationException
- Exception that indicates that the operation would not cause any change to occur.public ListProtectionsResult listProtections(ListProtectionsRequest request)
Lists all Protection objects for the account.
listProtections
in interface AWSShield
listProtectionsRequest
- InternalErrorException
- Exception that indicates that a problem occurred with the service infrastructure. You can retry the
request.ResourceNotFoundException
- Exception indicating the specified resource does not exist.public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata
in interface AWSShield
request
- The originally executed requestCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.