Class CfnSessionLogger
The session logger resource.
Inherited Members
Namespace: Amazon.CDK.AWS.WorkSpacesWeb
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnSessionLogger : CfnResource, IInspectable, ISessionLoggerRef, IConstruct, IDependable, IEnvironmentAware, ITaggableV2
Syntax (vb)
Public Class CfnSessionLogger Inherits CfnResource Implements IInspectable, ISessionLoggerRef, IConstruct, IDependable, IEnvironmentAware, ITaggableV2
Remarks
CloudformationResource: AWS::WorkSpacesWeb::SessionLogger
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.WorkSpacesWeb;
var all;
var cfnSessionLogger = new CfnSessionLogger(this, "MyCfnSessionLogger", new CfnSessionLoggerProps {
EventFilter = new EventFilterProperty {
All = all,
Include = new [] { "include" }
},
LogConfiguration = new LogConfigurationProperty {
S3 = new S3LogConfigurationProperty {
Bucket = "bucket",
FolderStructure = "folderStructure",
LogFileFormat = "logFileFormat",
// the properties below are optional
BucketOwner = "bucketOwner",
KeyPrefix = "keyPrefix"
}
},
// the properties below are optional
AdditionalEncryptionContext = new Dictionary<string, string> {
{ "additionalEncryptionContextKey", "additionalEncryptionContext" }
},
CustomerManagedKey = "customerManagedKey",
DisplayName = "displayName",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
| CfnSessionLogger(Construct, string, ICfnSessionLoggerProps) | Create a new |
Properties
| AdditionalEncryptionContext | The additional encryption context of the session logger. |
| AttrAssociatedPortalArns | The associated portal ARN. |
| AttrCreationDate | The date the session logger resource was created. |
| AttrSessionLoggerArn | The ARN of the session logger resource. |
| CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
| CdkTagManager | Tag Manager which manages the tags for this resource. |
| CfnProperties | The session logger resource. |
| CustomerManagedKey | The custom managed key of the session logger. |
| DisplayName | The human-readable display name. |
| EventFilter | The filter that specifies which events to monitor. |
| LogConfiguration | The configuration that specifies where logs are fowarded. |
| SessionLoggerRef | A reference to a SessionLogger resource. |
| Tags | The tags of the session logger. |
Methods
| ArnForSessionLogger(ISessionLoggerRef) | The session logger resource. |
| Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
| IsCfnSessionLogger(object) | Checks whether the given object is a CfnSessionLogger. |
| RenderProperties(IDictionary<string, object>) | The session logger resource. |
Constructors
CfnSessionLogger(Construct, string, ICfnSessionLoggerProps)
Create a new AWS::WorkSpacesWeb::SessionLogger.
public CfnSessionLogger(Construct scope, string id, ICfnSessionLoggerProps props)
Parameters
- scope Construct
Scope in which this resource is defined.
- id string
Construct identifier for this resource (unique in its scope).
- props ICfnSessionLoggerProps
Resource properties.
Remarks
CloudformationResource: AWS::WorkSpacesWeb::SessionLogger
ExampleMetadata: fixture=_generated
Properties
AdditionalEncryptionContext
The additional encryption context of the session logger.
public virtual object? AdditionalEncryptionContext { get; set; }
Property Value
Remarks
Type union: either Dictionary<string, string> or IResolvable
AttrAssociatedPortalArns
The associated portal ARN.
public virtual string[] AttrAssociatedPortalArns { get; }
Property Value
string[]
Remarks
CloudformationAttribute: AssociatedPortalArns
AttrCreationDate
The date the session logger resource was created.
public virtual string AttrCreationDate { get; }
Property Value
Remarks
CloudformationAttribute: CreationDate
AttrSessionLoggerArn
The ARN of the session logger resource.
public virtual string AttrSessionLoggerArn { get; }
Property Value
Remarks
CloudformationAttribute: SessionLoggerArn
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
Remarks
CloudformationResource: AWS::WorkSpacesWeb::SessionLogger
ExampleMetadata: fixture=_generated
CdkTagManager
Tag Manager which manages the tags for this resource.
public virtual TagManager CdkTagManager { get; }
Property Value
Remarks
CloudformationResource: AWS::WorkSpacesWeb::SessionLogger
ExampleMetadata: fixture=_generated
CfnProperties
The session logger resource.
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
Overrides
Remarks
CloudformationResource: AWS::WorkSpacesWeb::SessionLogger
ExampleMetadata: fixture=_generated
CustomerManagedKey
The custom managed key of the session logger.
public virtual string? CustomerManagedKey { get; set; }
Property Value
Remarks
CloudformationResource: AWS::WorkSpacesWeb::SessionLogger
ExampleMetadata: fixture=_generated
DisplayName
The human-readable display name.
public virtual string? DisplayName { get; set; }
Property Value
Remarks
CloudformationResource: AWS::WorkSpacesWeb::SessionLogger
ExampleMetadata: fixture=_generated
EventFilter
The filter that specifies which events to monitor.
public virtual object EventFilter { get; set; }
Property Value
Remarks
Type union: either IResolvable or CfnSessionLogger.IEventFilterProperty
LogConfiguration
The configuration that specifies where logs are fowarded.
public virtual object LogConfiguration { get; set; }
Property Value
Remarks
Type union: either IResolvable or CfnSessionLogger.ILogConfigurationProperty
SessionLoggerRef
A reference to a SessionLogger resource.
public virtual ISessionLoggerReference SessionLoggerRef { get; }
Property Value
Remarks
CloudformationResource: AWS::WorkSpacesWeb::SessionLogger
ExampleMetadata: fixture=_generated
Tags
The tags of the session logger.
public virtual ICfnTag[]? Tags { get; set; }
Property Value
ICfnTag[]
Remarks
CloudformationResource: AWS::WorkSpacesWeb::SessionLogger
ExampleMetadata: fixture=_generated
Methods
ArnForSessionLogger(ISessionLoggerRef)
The session logger resource.
public static string ArnForSessionLogger(ISessionLoggerRef resource)
Parameters
- resource ISessionLoggerRef
Returns
Remarks
CloudformationResource: AWS::WorkSpacesWeb::SessionLogger
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.WorkSpacesWeb;
var all;
var cfnSessionLogger = new CfnSessionLogger(this, "MyCfnSessionLogger", new CfnSessionLoggerProps {
EventFilter = new EventFilterProperty {
All = all,
Include = new [] { "include" }
},
LogConfiguration = new LogConfigurationProperty {
S3 = new S3LogConfigurationProperty {
Bucket = "bucket",
FolderStructure = "folderStructure",
LogFileFormat = "logFileFormat",
// the properties below are optional
BucketOwner = "bucketOwner",
KeyPrefix = "keyPrefix"
}
},
// the properties below are optional
AdditionalEncryptionContext = new Dictionary<string, string> {
{ "additionalEncryptionContextKey", "additionalEncryptionContext" }
},
CustomerManagedKey = "customerManagedKey",
DisplayName = "displayName",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
Remarks
CloudformationResource: AWS::WorkSpacesWeb::SessionLogger
ExampleMetadata: fixture=_generated
IsCfnSessionLogger(object)
Checks whether the given object is a CfnSessionLogger.
public static bool IsCfnSessionLogger(object x)
Parameters
- x object
Returns
Remarks
CloudformationResource: AWS::WorkSpacesWeb::SessionLogger
ExampleMetadata: fixture=_generated
RenderProperties(IDictionary<string, object>)
The session logger resource.
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props IDictionary<string, object>
Returns
Overrides
Remarks
CloudformationResource: AWS::WorkSpacesWeb::SessionLogger
ExampleMetadata: fixture=_generated