CreatedByInfo

sealed class CreatedByInfo

Information on the identity that created the file.

Inheritors

Types

Link copied to clipboard
data class AwsIdentityArn(val value: String) : CreatedByInfo

STS or IAM ARN representing the identity of API Caller. SDK users cannot populate this and this value is calculated automatically if ConnectUserArn is not provided.

Link copied to clipboard
data class ConnectUserArn(val value: String) : CreatedByInfo

An agent ARN representing a connect user.

Link copied to clipboard

Functions

Link copied to clipboard

Casts this CreatedByInfo as a AwsIdentityArn and retrieves its kotlin.String value. Throws an exception if the CreatedByInfo is not a AwsIdentityArn.

Link copied to clipboard

Casts this CreatedByInfo as a AwsIdentityArn and retrieves its kotlin.String value. Returns null if the CreatedByInfo is not a AwsIdentityArn.

Link copied to clipboard

Casts this CreatedByInfo as a ConnectUserArn and retrieves its kotlin.String value. Throws an exception if the CreatedByInfo is not a ConnectUserArn.

Link copied to clipboard

Casts this CreatedByInfo as a ConnectUserArn and retrieves its kotlin.String value. Returns null if the CreatedByInfo is not a ConnectUserArn.