@ThreadSafe 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_METRICENDPOINT_PREFIX| Constructor and Description |
|---|
AWSShieldClient()
Constructs a new client to invoke service methods on AWS Shield.
|
AWSShieldClient(AWSCredentials awsCredentials)
Constructs a new client to invoke service methods on AWS Shield using the specified AWS account credentials.
|
AWSShieldClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on AWS Shield using the specified AWS account credentials and
client configuration options.
|
AWSShieldClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new client to invoke service methods on AWS Shield using the specified AWS account credentials
provider.
|
AWSShieldClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on AWS Shield using the specified AWS account credentials
provider and client configuration options.
|
AWSShieldClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
RequestMetricCollector requestMetricCollector)
Constructs a new client to invoke service methods on AWS Shield using the specified AWS account credentials
provider, client configuration options, and request metric collector.
|
AWSShieldClient(ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on AWS Shield.
|
| Modifier and Type | Method and Description |
|---|---|
CreateProtectionResult |
createProtection(CreateProtectionRequest createProtectionRequest)
Enables AWS Shield Advanced for a specific AWS resource.
|
CreateSubscriptionResult |
createSubscription(CreateSubscriptionRequest createSubscriptionRequest)
Activates AWS Shield Advanced for an account.
|
DeleteProtectionResult |
deleteProtection(DeleteProtectionRequest deleteProtectionRequest)
Deletes an AWS Shield Advanced Protection.
|
DeleteSubscriptionResult |
deleteSubscription(DeleteSubscriptionRequest deleteSubscriptionRequest)
Removes AWS Shield Advanced from an account.
|
DescribeAttackResult |
describeAttack(DescribeAttackRequest describeAttackRequest)
Describes the details of a DDoS attack.
|
DescribeProtectionResult |
describeProtection(DescribeProtectionRequest describeProtectionRequest)
Lists the details of a Protection object.
|
DescribeSubscriptionResult |
describeSubscription(DescribeSubscriptionRequest describeSubscriptionRequest)
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.
|
ListAttacksResult |
listAttacks(ListAttacksRequest listAttacksRequest)
Returns all ongoing DDoS attacks or all DDoS attacks during a specified time period.
|
ListProtectionsResult |
listProtections(ListProtectionsRequest listProtectionsRequest)
Lists all Protection objects for the account.
|
addRequestHandler, addRequestHandler, configureRegion, getEndpointPrefix, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shutdown, withEndpoint, withRegion, withRegion, withTimeOffsetequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetEndpoint, setRegion, shutdownpublic AWSShieldClient()
All service calls made using this new client object are blocking, and will not return until the service call completes.
DefaultAWSCredentialsProviderChainpublic AWSShieldClient(ClientConfiguration 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.).DefaultAWSCredentialsProviderChainpublic AWSShieldClient(AWSCredentials awsCredentials)
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.public AWSShieldClient(AWSCredentials awsCredentials, ClientConfiguration 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.).public AWSShieldClient(AWSCredentialsProvider 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.public AWSShieldClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration 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.).public AWSShieldClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, RequestMetricCollector 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 CreateProtectionResult createProtection(CreateProtectionRequest createProtectionRequest)
Enables AWS Shield Advanced for a specific AWS resource. The resource can be an Amazon CloudFront distribution, Elastic Load Balancing load balancer, or an Amazon Route 53 hosted zone.
createProtection in interface AWSShieldcreateProtectionRequest - 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.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 createSubscriptionRequest)
Activates AWS Shield Advanced for an account.
createSubscription in interface AWSShieldcreateSubscriptionRequest - 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 deleteProtectionRequest)
Deletes an AWS Shield Advanced Protection.
deleteProtection in interface AWSShielddeleteProtectionRequest - 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 deleteSubscriptionRequest)
Removes AWS Shield Advanced from an account.
deleteSubscription in interface AWSShielddeleteSubscriptionRequest - InternalErrorException - Exception that indicates that a problem occurred with the service infrastructure. You can retry the
request.LockedSubscriptionException - Exception that indicates that the subscription has been modified by another client. You can retry the
request.ResourceNotFoundException - Exception indicating the specified resource does not exist.public DescribeAttackResult describeAttack(DescribeAttackRequest describeAttackRequest)
Describes the details of a DDoS attack.
describeAttack in interface AWSShielddescribeAttackRequest - 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 describeProtectionRequest)
Lists the details of a Protection object.
describeProtection in interface AWSShielddescribeProtectionRequest - 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 describeSubscriptionRequest)
Provides details about the AWS Shield Advanced subscription for an account.
describeSubscription in interface AWSShielddescribeSubscriptionRequest - 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 ListAttacksResult listAttacks(ListAttacksRequest listAttacksRequest)
Returns all ongoing DDoS attacks or all DDoS attacks during a specified time period.
listAttacks in interface AWSShieldlistAttacksRequest - 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 listProtectionsRequest)
Lists all Protection objects for the account.
listProtections in interface AWSShieldlistProtectionsRequest - 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 AWSShieldrequest - The originally executed requestCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.