Class CfnSessionLogger

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, ITaggableV2, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)", date="2025-08-20T12:34:53.459Z") @Stability(Stable) public class CfnSessionLogger extends CfnResource implements IInspectable, ITaggableV2
Definition of AWS::WorkSpacesWeb::SessionLogger Resource Type.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.workspacesweb.*;
 Object all;
 CfnSessionLogger cfnSessionLogger = CfnSessionLogger.Builder.create(this, "MyCfnSessionLogger")
         .eventFilter(EventFilterProperty.builder()
                 .all(all)
                 .include(List.of("include"))
                 .build())
         .logConfiguration(LogConfigurationProperty.builder()
                 .s3(S3LogConfigurationProperty.builder()
                         .bucket("bucket")
                         .folderStructure("folderStructure")
                         .logFileFormat("logFileFormat")
                         // the properties below are optional
                         .bucketOwner("bucketOwner")
                         .keyPrefix("keyPrefix")
                         .build())
                 .build())
         // the properties below are optional
         .additionalEncryptionContext(Map.of(
                 "additionalEncryptionContextKey", "additionalEncryptionContext"))
         .customerManagedKey("customerManagedKey")
         .displayName("displayName")
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnSessionLogger

      protected CfnSessionLogger(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnSessionLogger

      protected CfnSessionLogger(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnSessionLogger

      @Stability(Stable) public CfnSessionLogger(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnSessionLoggerProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrAssociatedPortalArns

      @Stability(Stable) @NotNull public List<String> getAttrAssociatedPortalArns()
    • getAttrCreationDate

      @Stability(Stable) @NotNull public String getAttrCreationDate()
    • getAttrSessionLoggerArn

      @Stability(Stable) @NotNull public String getAttrSessionLoggerArn()
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getEventFilter

      @Stability(Stable) @NotNull public Object getEventFilter()
    • setEventFilter

      @Stability(Stable) public void setEventFilter(@NotNull IResolvable value)
    • setEventFilter

      @Stability(Stable) public void setEventFilter(@NotNull CfnSessionLogger.EventFilterProperty value)
    • getLogConfiguration

      @Stability(Stable) @NotNull public Object getLogConfiguration()
    • setLogConfiguration

      @Stability(Stable) public void setLogConfiguration(@NotNull IResolvable value)
    • setLogConfiguration

      @Stability(Stable) public void setLogConfiguration(@NotNull CfnSessionLogger.LogConfigurationProperty value)
    • getAdditionalEncryptionContext

      @Stability(Stable) @Nullable public Object getAdditionalEncryptionContext()
    • setAdditionalEncryptionContext

      @Stability(Stable) public void setAdditionalEncryptionContext(@Nullable Map<String,String> value)
    • setAdditionalEncryptionContext

      @Stability(Stable) public void setAdditionalEncryptionContext(@Nullable IResolvable value)
    • getCustomerManagedKey

      @Stability(Stable) @Nullable public String getCustomerManagedKey()
    • setCustomerManagedKey

      @Stability(Stable) public void setCustomerManagedKey(@Nullable String value)
    • getDisplayName

      @Stability(Stable) @Nullable public String getDisplayName()
    • setDisplayName

      @Stability(Stable) public void setDisplayName(@Nullable String value)
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)