All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.ssoadmin.ApplicationAssignment Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
Show newest version
// *** 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.ssoadmin;

import com.pulumi.aws.Utilities;
import com.pulumi.aws.ssoadmin.ApplicationAssignmentArgs;
import com.pulumi.aws.ssoadmin.inputs.ApplicationAssignmentState;
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;

/**
 * Resource for managing an AWS SSO Admin Application Assignment.
 * 
 * ## Example Usage
 * 
 * ### Basic Usage
 * 
 * <!--Start PulumiCodeChooser -->
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.aws.ssoadmin.ApplicationAssignment;
 * import com.pulumi.aws.ssoadmin.ApplicationAssignmentArgs;
 * 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 ApplicationAssignment("example", ApplicationAssignmentArgs.builder()
 *             .applicationArn(exampleAwsSsoadminApplication.applicationArn())
 *             .principalId(exampleAwsIdentitystoreUser.userId())
 *             .principalType("USER")
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ### Group Type * * <!--Start PulumiCodeChooser --> *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.aws.ssoadmin.ApplicationAssignment;
 * import com.pulumi.aws.ssoadmin.ApplicationAssignmentArgs;
 * 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 ApplicationAssignment("example", ApplicationAssignmentArgs.builder()
 *             .applicationArn(exampleAwsSsoadminApplication.applicationArn())
 *             .principalId(exampleAwsIdentitystoreGroup.groupId())
 *             .principalType("GROUP")
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ## Import * * Using `pulumi import`, import SSO Admin Application Assignment using the `id`. For example: * * ```sh * $ pulumi import aws:ssoadmin/applicationAssignment:ApplicationAssignment example arn:aws:sso::012345678901:application/id-12345678,abcd1234,USER * ``` * */ @ResourceType(type="aws:ssoadmin/applicationAssignment:ApplicationAssignment") public class ApplicationAssignment extends com.pulumi.resources.CustomResource { /** * ARN of the application. * */ @Export(name="applicationArn", refs={String.class}, tree="[0]") private Output applicationArn; /** * @return ARN of the application. * */ public Output applicationArn() { return this.applicationArn; } /** * An identifier for an object in IAM Identity Center, such as a user or group. * */ @Export(name="principalId", refs={String.class}, tree="[0]") private Output principalId; /** * @return An identifier for an object in IAM Identity Center, such as a user or group. * */ public Output principalId() { return this.principalId; } /** * Entity type for which the assignment will be created. Valid values are `USER` or `GROUP`. * */ @Export(name="principalType", refs={String.class}, tree="[0]") private Output principalType; /** * @return Entity type for which the assignment will be created. Valid values are `USER` or `GROUP`. * */ public Output principalType() { return this.principalType; } /** * * @param name The _unique_ name of the resulting resource. */ public ApplicationAssignment(java.lang.String name) { this(name, ApplicationAssignmentArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public ApplicationAssignment(java.lang.String name, ApplicationAssignmentArgs 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 ApplicationAssignment(java.lang.String name, ApplicationAssignmentArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("aws:ssoadmin/applicationAssignment:ApplicationAssignment", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private ApplicationAssignment(java.lang.String name, Output id, @Nullable ApplicationAssignmentState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("aws:ssoadmin/applicationAssignment:ApplicationAssignment", name, state, makeResourceOptions(options, id), false); } private static ApplicationAssignmentArgs makeArgs(ApplicationAssignmentArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? ApplicationAssignmentArgs.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 ApplicationAssignment get(java.lang.String name, Output id, @Nullable ApplicationAssignmentState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ApplicationAssignment(name, id, state, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy