import * as core from "@terrascript/core"; export interface StudioSessionMappingArgs extends core.ResourceArgs { identityId?: string | core.StringOut; /** * (Optional) The name of the user or group from the Amazon Web Services SSO Identity Store. */ identityName?: string | core.StringOut; /** * (Required) Specifies whether the identity to map to the Amazon EMR Studio is a `USER` or a `GROUP`. */ identityType: string | core.StringOut; /** * (Required) The Amazon Resource Name (ARN) for the session policy that will be applied to the user or * group. You should specify the ARN for the session policy that you want to apply, not the ARN of you * r user role. */ sessionPolicyArn: string | core.StringOut; /** * (Required) The ID of the Amazon EMR Studio to which the user or group will be mapped. */ studioId: string | core.StringOut; } export class StudioSessionMapping extends core.Resource { @core.attr(String, { computed: true }) public id!: string | core.StringOut; @core.attr(String, { computed: true }) public identityId?: string | core.StringOut; /** * (Optional) The name of the user or group from the Amazon Web Services SSO Identity Store. */ @core.attr(String, { computed: true }) public identityName?: string | core.StringOut; /** * (Required) Specifies whether the identity to map to the Amazon EMR Studio is a `USER` or a `GROUP`. */ @core.attr(String) public identityType!: string | core.StringOut; /** * (Required) The Amazon Resource Name (ARN) for the session policy that will be applied to the user or * group. You should specify the ARN for the session policy that you want to apply, not the ARN of you * r user role. */ @core.attr(String) public sessionPolicyArn!: string | core.StringOut; /** * (Required) The ID of the Amazon EMR Studio to which the user or group will be mapped. */ @core.attr(String) public studioId!: string | core.StringOut; constructor(name: string, args?: StudioSessionMappingArgs) { super(name, "aws_emr_studio_session_mapping", args); } public override getNamespace(): string { return "aws_emr"; } }