Interface CfnStage.IAccessLogSettingsProperty
Settings for logging access in a stage.
Namespace: Amazon.CDK.AWS.APIGatewayv2
Assembly: Amazon.CDK.AWS.APIGatewayv2.dll
Syntax (csharp)
public interface IAccessLogSettingsProperty
Syntax (vb)
Public Interface IAccessLogSettingsProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.APIGatewayv2;
var accessLogSettingsProperty = new AccessLogSettingsProperty {
DestinationArn = "destinationArn",
Format = "format"
};
Synopsis
Properties
DestinationArn | The ARN of the CloudWatch Logs log group to receive access logs. |
Format | A single line format of the access logs of data, as specified by selected $context variables. |
Properties
DestinationArn
The ARN of the CloudWatch Logs log group to receive access logs.
virtual string DestinationArn { get; }
Property Value
System.String
Remarks
This parameter is required to enable access logging.
Format
A single line format of the access logs of data, as specified by selected $context variables.
virtual string Format { get; }
Property Value
System.String
Remarks
The format must include at least $context.requestId. This parameter is required to enable access logging.