Skip to content

Resource: awsEmrStudioSessionMapping

Provides an Elastic MapReduce Studio Session Mapping.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.emrStudioSessionMapping.EmrStudioSessionMapping(this, "example", {
  identityId: "example",
  identityType: "USER",
  sessionPolicyArn: "${aws_iam_policy.example.arn}",
  studioId: "${aws_emr_studio.example.id}",
});

Argument Reference

The following arguments are required:

  • identityId- (Optional) The globally unique identifier (GUID) of the user or group from the Amazon Web Services SSO Identity Store.
  • identityName - (Optional) The name of the user or group from the Amazon Web Services SSO Identity Store.
  • identityType - (Required) Specifies whether the identity to map to the Amazon EMR Studio is a user or a group.
  • sessionPolicyArn - (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 your user role.
  • studioId - (Required) The ID of the Amazon EMR Studio to which the user or group will be mapped.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • id- The id of the Elastic MapReduce Studio Session Mapping.

Import

EMR studio session mappings can be imported using the id, e.g., studioId:identityType:identityId

$ terraform import aws_emr_studio_session_mapping.example es-xxxxx:USER:xxxxx-xxx-xxx