AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Updates an existing subscription for the given Amazon Security Lake account ID. You can update a subscriber by changing the sources that the subscriber consumes data from.

Note:

This is an asynchronous operation using the standard naming convention for .NET 4.5 or higher. For .NET 3.5 the operation is implemented as a pair of methods using the standard naming convention of BeginUpdateSubscriber and EndUpdateSubscriber.

Namespace: Amazon.SecurityLake
Assembly: AWSSDK.SecurityLake.dll
Version: 3.x.y.z

Syntax

C#
public virtual Task<UpdateSubscriberResponse> UpdateSubscriberAsync(
         UpdateSubscriberRequest request,
         CancellationToken cancellationToken
)

Parameters

request
Type: Amazon.SecurityLake.Model.UpdateSubscriberRequest

Container for the necessary parameters to execute the UpdateSubscriber service method.

cancellationToken
Type: System.Threading.CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Return Value


The response from the UpdateSubscriber service method, as returned by SecurityLake.

Exceptions

ExceptionCondition
AccessDeniedException You do not have sufficient access to perform this action. Access denied errors appear when Amazon Security Lake explicitly or implicitly denies an authorization request. An explicit denial occurs when a policy contains a Deny statement for the specific Amazon Web Services action. An implicit denial occurs when there is no applicable Deny statement and also no applicable Allow statement.
BadRequestException The request is malformed or contains an error such as an invalid parameter value or a missing required parameter.
ConflictException Occurs when a conflict with a previous successful write is detected. This generally occurs when the previous write did not have time to propagate to the host serving the current request. A retry (with appropriate backoff logic) is the recommended response to this exception.
InternalServerException Internal service exceptions are sometimes caused by transient issues. Before you start troubleshooting, perform the operation again.
ResourceNotFoundException The resource could not be found.
ThrottlingException The limit on the number of requests per second was exceeded.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer

See Also