Class CfnSessionLogger
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.workspacesweb.CfnSessionLogger
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,ISessionLoggerRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:32.175Z")
@Stability(Stable)
public class CfnSessionLogger
extends CfnResource
implements IInspectable, ISessionLoggerRef, ITaggableV2
The session logger resource.
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnSessionLogger.static interfaceThe filter that specifies the events to monitor.static interfaceThe configuration of the log.static interfaceThe S3 log configuration.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.workspacesweb.ISessionLoggerRef
ISessionLoggerRef.Jsii$Default, ISessionLoggerRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnSessionLogger(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnSessionLogger(software.amazon.jsii.JsiiObjectRef objRef) CfnSessionLogger(software.constructs.Construct scope, String id, CfnSessionLoggerProps props) Create a newAWS::WorkSpacesWeb::SessionLogger. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForSessionLogger(ISessionLoggerRef resource) The additional encryption context of the session logger.The associated portal ARN.The date the session logger resource was created.The ARN of the session logger resource.Tag Manager which manages the tags for this resource.The custom managed key of the session logger.The human-readable display name.The filter that specifies which events to monitor.The configuration that specifies where logs are fowarded.A reference to a SessionLogger resource.getTags()The tags of the session logger.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidThe additional encryption context of the session logger.voidThe additional encryption context of the session logger.voidsetCustomerManagedKey(String value) The custom managed key of the session logger.voidsetDisplayName(String value) The human-readable display name.voidsetEventFilter(IResolvable value) The filter that specifies which events to monitor.voidThe filter that specifies which events to monitor.voidsetLogConfiguration(IResolvable value) The configuration that specifies where logs are fowarded.voidThe configuration that specifies where logs are fowarded.voidThe tags of the session logger.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
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) Create a newAWS::WorkSpacesWeb::SessionLogger.- 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
-
arnForSessionLogger
@Stability(Stable) @NotNull public static String arnForSessionLogger(@NotNull ISessionLoggerRef resource) - Parameters:
resource- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrAssociatedPortalArns
The associated portal ARN. -
getAttrCreationDate
The date the session logger resource was created. -
getAttrSessionLoggerArn
The ARN of the session logger resource. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getSessionLoggerRef
A reference to a SessionLogger resource.- Specified by:
getSessionLoggerRefin interfaceISessionLoggerRef
-
getEventFilter
The filter that specifies which events to monitor.Returns union: either
IResolvableorCfnSessionLogger.EventFilterProperty -
setEventFilter
The filter that specifies which events to monitor. -
setEventFilter
The filter that specifies which events to monitor. -
getLogConfiguration
The configuration that specifies where logs are fowarded.Returns union: either
IResolvableorCfnSessionLogger.LogConfigurationProperty -
setLogConfiguration
The configuration that specifies where logs are fowarded. -
setLogConfiguration
@Stability(Stable) public void setLogConfiguration(@NotNull CfnSessionLogger.LogConfigurationProperty value) The configuration that specifies where logs are fowarded. -
getAdditionalEncryptionContext
The additional encryption context of the session logger.Returns union: either Mapinvalid input: '<'String,
String> orIResolvable -
setAdditionalEncryptionContext
The additional encryption context of the session logger. -
setAdditionalEncryptionContext
The additional encryption context of the session logger. -
getCustomerManagedKey
The custom managed key of the session logger. -
setCustomerManagedKey
The custom managed key of the session logger. -
getDisplayName
The human-readable display name. -
setDisplayName
The human-readable display name. -
getTags
The tags of the session logger. -
setTags
The tags of the session logger.
-