SubscribedPrincipal

sealed class SubscribedPrincipal

The principal that has the subscription grant for the asset.

Inheritors

Types

Link copied to clipboard
data class Group(val value: SubscribedGroup) : SubscribedPrincipal

The subscribed group.

Link copied to clipboard

The project that has the subscription grant.

Link copied to clipboard
Link copied to clipboard
data class User(val value: SubscribedUser) : SubscribedPrincipal

The subscribed user.

Functions

Link copied to clipboard

Casts this SubscribedPrincipal as a Group and retrieves its aws.sdk.kotlin.services.datazone.model.SubscribedGroup value. Throws an exception if the SubscribedPrincipal is not a Group.

Link copied to clipboard
Link copied to clipboard

Casts this SubscribedPrincipal as a Project and retrieves its aws.sdk.kotlin.services.datazone.model.SubscribedProject value. Throws an exception if the SubscribedPrincipal is not a Project.

Link copied to clipboard
Link copied to clipboard

Casts this SubscribedPrincipal as a User and retrieves its aws.sdk.kotlin.services.datazone.model.SubscribedUser value. Throws an exception if the SubscribedPrincipal is not a User.

Link copied to clipboard

Casts this SubscribedPrincipal as a User and retrieves its aws.sdk.kotlin.services.datazone.model.SubscribedUser value. Returns null if the SubscribedPrincipal is not a User.