com.pulumi.aws.ssoadmin.Application 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.
The 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.ApplicationArgs;
import com.pulumi.aws.ssoadmin.inputs.ApplicationState;
import com.pulumi.aws.ssoadmin.outputs.ApplicationPortalOptions;
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 java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Resource for managing an AWS SSO Admin Application.
*
* > The `CreateApplication` API only supports custom OAuth 2.0 applications.
* Creation of 3rd party SAML or OAuth 2.0 applications require setup to be done through the associated app service or AWS console.
* See this issue for additional context.
*
* ## 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.SsoadminFunctions;
* import com.pulumi.aws.ssoadmin.Application;
* import com.pulumi.aws.ssoadmin.ApplicationArgs;
* 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) {
* final var example = SsoadminFunctions.getInstances();
*
* var exampleApplication = new Application("exampleApplication", ApplicationArgs.builder()
* .name("example")
* .applicationProviderArn("arn:aws:sso::aws:applicationProvider/custom")
* .instanceArn(example.applyValue(getInstancesResult -> getInstancesResult.arns()[0]))
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ### With Portal Options
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.ssoadmin.SsoadminFunctions;
* import com.pulumi.aws.ssoadmin.Application;
* import com.pulumi.aws.ssoadmin.ApplicationArgs;
* import com.pulumi.aws.ssoadmin.inputs.ApplicationPortalOptionsArgs;
* import com.pulumi.aws.ssoadmin.inputs.ApplicationPortalOptionsSignInOptionsArgs;
* 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) {
* final var example = SsoadminFunctions.getInstances();
*
* var exampleApplication = new Application("exampleApplication", ApplicationArgs.builder()
* .name("example")
* .applicationProviderArn("arn:aws:sso::aws:applicationProvider/custom")
* .instanceArn(example.applyValue(getInstancesResult -> getInstancesResult.arns()[0]))
* .portalOptions(ApplicationPortalOptionsArgs.builder()
* .visibility("ENABLED")
* .signInOptions(ApplicationPortalOptionsSignInOptionsArgs.builder()
* .applicationUrl("http://example.com")
* .origin("APPLICATION")
* .build())
* .build())
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* Using `pulumi import`, import SSO Admin Application using the `id`. For example:
*
* ```sh
* $ pulumi import aws:ssoadmin/application:Application example arn:aws:sso::123456789012:application/id-12345678
* ```
*
*/
@ResourceType(type="aws:ssoadmin/application:Application")
public class Application extends com.pulumi.resources.CustomResource {
/**
* AWS account ID.
*
*/
@Export(name="applicationAccount", refs={String.class}, tree="[0]")
private Output applicationAccount;
/**
* @return AWS account ID.
*
*/
public Output applicationAccount() {
return this.applicationAccount;
}
/**
* 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;
}
/**
* ARN of the application provider.
*
*/
@Export(name="applicationProviderArn", refs={String.class}, tree="[0]")
private Output applicationProviderArn;
/**
* @return ARN of the application provider.
*
*/
public Output applicationProviderArn() {
return this.applicationProviderArn;
}
/**
* A unique, case-sensitive ID that you provide to ensure the idempotency of the request. AWS generates a random value when not provided.
*
*/
@Export(name="clientToken", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> clientToken;
/**
* @return A unique, case-sensitive ID that you provide to ensure the idempotency of the request. AWS generates a random value when not provided.
*
*/
public Output> clientToken() {
return Codegen.optional(this.clientToken);
}
/**
* Description of the application.
*
*/
@Export(name="description", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> description;
/**
* @return Description of the application.
*
*/
public Output> description() {
return Codegen.optional(this.description);
}
/**
* ARN of the instance of IAM Identity Center.
*
*/
@Export(name="instanceArn", refs={String.class}, tree="[0]")
private Output instanceArn;
/**
* @return ARN of the instance of IAM Identity Center.
*
*/
public Output instanceArn() {
return this.instanceArn;
}
/**
* Name of the application.
*
* The following arguments are optional:
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return Name of the application.
*
* The following arguments are optional:
*
*/
public Output name() {
return this.name;
}
/**
* Options for the portal associated with an application. See `portal_options` below.
*
*/
@Export(name="portalOptions", refs={ApplicationPortalOptions.class}, tree="[0]")
private Output* @Nullable */ ApplicationPortalOptions> portalOptions;
/**
* @return Options for the portal associated with an application. See `portal_options` below.
*
*/
public Output> portalOptions() {
return Codegen.optional(this.portalOptions);
}
/**
* Status of the application. Valid values are `ENABLED` and `DISABLED`.
*
*/
@Export(name="status", refs={String.class}, tree="[0]")
private Output status;
/**
* @return Status of the application. Valid values are `ENABLED` and `DISABLED`.
*
*/
public Output status() {
return this.status;
}
/**
* Key-value mapping of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return Key-value mapping of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* Map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
*
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
@Export(name="tagsAll", refs={Map.class,String.class}, tree="[0,1,1]")
private Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy