@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:00:46.006Z") @Stability(value=Experimental) public class AccessLogFormat extends software.amazon.jsii.JsiiObject
| Modifier | Constructor and Description |
|---|---|
protected |
AccessLogFormat(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
AccessLogFormat(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static AccessLogFormat |
clf()
(experimental) Generate Common Log Format.
|
static AccessLogFormat |
custom(String format)
(experimental) Custom log format.
|
static AccessLogFormat |
jsonWithStandardFields()
(experimental) Access log will be produced in the JSON format with a set of fields most useful in the access log.
|
static AccessLogFormat |
jsonWithStandardFields(JsonWithStandardFieldProps fields)
(experimental) Access log will be produced in the JSON format with a set of fields most useful in the access log.
|
String |
toString()
(experimental) Output a format string to be used with CloudFormation.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected AccessLogFormat(software.amazon.jsii.JsiiObjectRef objRef)
protected AccessLogFormat(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) @NotNull public static AccessLogFormat clf()
@Stability(value=Experimental) @NotNull public static AccessLogFormat custom(@NotNull String format)
You can create any log format string. You can easily get the $ context variable by using the methods of AccessLogField.
Example:
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 custom(JSON.stringify(Map.of( "requestId", AccessLogField.contextRequestId(), "sourceIp", AccessLogField.contextIdentitySourceIp(), "method", AccessLogFiled.contextHttpMethod(), "userContext", Map.of( "sub", AccessLogField.contextAuthorizerClaims("sub"), "email", AccessLogField.contextAuthorizerClaims("email")))));
format - This parameter is required.@Stability(value=Experimental) @NotNull public static AccessLogFormat jsonWithStandardFields(@Nullable JsonWithStandardFieldProps fields)
All fields are turned on by default with the option to turn off specific fields.
fields - @Stability(value=Experimental) @NotNull public static AccessLogFormat jsonWithStandardFields()
All fields are turned on by default with the option to turn off specific fields.
Copyright © 2021. All rights reserved.