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.

Sets the logging configuration for the specified firewall.

To change the logging configuration, retrieve the LoggingConfiguration by calling DescribeLoggingConfiguration, then change it and provide the modified object to this update call. You must change the logging configuration one LogDestinationConfig at a time inside the retrieved LoggingConfiguration object.

You can perform only one of the following actions in any call to UpdateLoggingConfiguration:

You can't change the LogDestinationType or LogType in a LogDestinationConfig. To change these settings, delete the existing LogDestinationConfig object and create a new one, using two separate calls to this update operation.

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 BeginUpdateLoggingConfiguration and EndUpdateLoggingConfiguration.

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

Syntax

C#
public abstract Task<UpdateLoggingConfigurationResponse> UpdateLoggingConfigurationAsync(
         UpdateLoggingConfigurationRequest request,
         CancellationToken cancellationToken
)

Parameters

request
Type: Amazon.NetworkFirewall.Model.UpdateLoggingConfigurationRequest

Container for the necessary parameters to execute the UpdateLoggingConfiguration 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 UpdateLoggingConfiguration service method, as returned by NetworkFirewall.

Exceptions

ExceptionCondition
InternalServerErrorException Your request is valid, but Network Firewall couldn't perform the operation because of a system problem. Retry your request.
InvalidRequestException The operation failed because of a problem with your request. Examples include: You specified an unsupported parameter name or value. You tried to update a property with a value that isn't among the available types. Your request references an ARN that is malformed, or corresponds to a resource that isn't valid in the context of the request.
InvalidTokenException The token you provided is stale or isn't valid for the operation.
LogDestinationPermissionException Unable to send logs to a configured logging destination.
ResourceNotFoundException Unable to locate a resource using the parameters that you provided.
ThrottlingException Unable to process the request due to throttling limitations.

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