com.pulumi.aws.emr.StudioSessionMapping Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.emr;
import com.pulumi.aws.Utilities;
import com.pulumi.aws.emr.StudioSessionMappingArgs;
import com.pulumi.aws.emr.inputs.StudioSessionMappingState;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import javax.annotation.Nullable;
/**
* Provides an Elastic MapReduce Studio Session Mapping.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.emr.StudioSessionMapping;
* import com.pulumi.aws.emr.StudioSessionMappingArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* var example = new StudioSessionMapping("example", StudioSessionMappingArgs.builder()
* .studioId(exampleAwsEmrStudio.id())
* .identityType("USER")
* .identityId("example")
* .sessionPolicyArn(exampleAwsIamPolicy.arn())
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* Using `pulumi import`, import EMR studio session mappings using `studio-id:identity-type:identity-id`. For example:
*
* ```sh
* $ pulumi import aws:emr/studioSessionMapping:StudioSessionMapping example es-xxxxx:USER:xxxxx-xxx-xxx
* ```
*
*/
@ResourceType(type="aws:emr/studioSessionMapping:StudioSessionMapping")
public class StudioSessionMapping extends com.pulumi.resources.CustomResource {
/**
* The globally unique identifier (GUID) of the user or group from the Amazon Web Services SSO Identity Store.
*
*/
@Export(name="identityId", refs={String.class}, tree="[0]")
private Output identityId;
/**
* @return The globally unique identifier (GUID) of the user or group from the Amazon Web Services SSO Identity Store.
*
*/
public Output identityId() {
return this.identityId;
}
/**
* The name of the user or group from the Amazon Web Services SSO Identity Store.
*
*/
@Export(name="identityName", refs={String.class}, tree="[0]")
private Output identityName;
/**
* @return The name of the user or group from the Amazon Web Services SSO Identity Store.
*
*/
public Output identityName() {
return this.identityName;
}
/**
* Specifies whether the identity to map to the Amazon EMR Studio is a `USER` or a `GROUP`.
*
*/
@Export(name="identityType", refs={String.class}, tree="[0]")
private Output identityType;
/**
* @return Specifies whether the identity to map to the Amazon EMR Studio is a `USER` or a `GROUP`.
*
*/
public Output identityType() {
return this.identityType;
}
/**
* 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.
*
*/
@Export(name="sessionPolicyArn", refs={String.class}, tree="[0]")
private Output sessionPolicyArn;
/**
* @return 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.
*
*/
public Output sessionPolicyArn() {
return this.sessionPolicyArn;
}
/**
* The ID of the Amazon EMR Studio to which the user or group will be mapped.
*
*/
@Export(name="studioId", refs={String.class}, tree="[0]")
private Output studioId;
/**
* @return The ID of the Amazon EMR Studio to which the user or group will be mapped.
*
*/
public Output studioId() {
return this.studioId;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public StudioSessionMapping(java.lang.String name) {
this(name, StudioSessionMappingArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public StudioSessionMapping(java.lang.String name, StudioSessionMappingArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public StudioSessionMapping(java.lang.String name, StudioSessionMappingArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("aws:emr/studioSessionMapping:StudioSessionMapping", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private StudioSessionMapping(java.lang.String name, Output id, @Nullable StudioSessionMappingState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("aws:emr/studioSessionMapping:StudioSessionMapping", name, state, makeResourceOptions(options, id), false);
}
private static StudioSessionMappingArgs makeArgs(StudioSessionMappingArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? StudioSessionMappingArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static StudioSessionMapping get(java.lang.String name, Output id, @Nullable StudioSessionMappingState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new StudioSessionMapping(name, id, state, options);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy