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

com.pulumi.aws.servicecatalog.AppregistryApplication Maven / Gradle / Ivy

Go to download

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.servicecatalog;

import com.pulumi.aws.Utilities;
import com.pulumi.aws.servicecatalog.AppregistryApplicationArgs;
import com.pulumi.aws.servicecatalog.inputs.AppregistryApplicationState;
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 Service Catalog AppRegistry Application.
 * 
 * > An AWS Service Catalog AppRegistry Application is displayed in the AWS Console under "MyApplications".
 * 
 * ## 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.servicecatalog.AppregistryApplication;
 * import com.pulumi.aws.servicecatalog.AppregistryApplicationArgs;
 * 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 AppregistryApplication("example", AppregistryApplicationArgs.builder()
 *             .name("example-app")
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ### Connecting Resources * * <!--Start PulumiCodeChooser --> *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.aws.servicecatalog.AppregistryApplication;
 * import com.pulumi.aws.servicecatalog.AppregistryApplicationArgs;
 * import com.pulumi.aws.s3.BucketV2;
 * import com.pulumi.aws.s3.BucketV2Args;
 * 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 AppregistryApplication("example", AppregistryApplicationArgs.builder()
 *             .name("example-app")
 *             .build());
 * 
 *         var bucket = new BucketV2("bucket", BucketV2Args.builder()
 *             .bucket("example-bucket")
 *             .tags(example.applicationTag())
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ## Import * * Using `pulumi import`, import AWS Service Catalog AppRegistry Application using the `id`. For example: * * ```sh * $ pulumi import aws:servicecatalog/appregistryApplication:AppregistryApplication example application-id-12345678 * ``` * */ @ResourceType(type="aws:servicecatalog/appregistryApplication:AppregistryApplication") public class AppregistryApplication extends com.pulumi.resources.CustomResource { /** * A map with a single tag key-value pair used to associate resources with the application. This attribute can be passed directly into the `tags` argument of another resource, or merged into a map of existing tags. * */ @Export(name="applicationTag", refs={Map.class,String.class}, tree="[0,1,1]") private Output> applicationTag; /** * @return A map with a single tag key-value pair used to associate resources with the application. This attribute can be passed directly into the `tags` argument of another resource, or merged into a map of existing tags. * */ public Output> applicationTag() { return this.applicationTag; } /** * ARN (Amazon Resource Name) of the application. * */ @Export(name="arn", refs={String.class}, tree="[0]") private Output arn; /** * @return ARN (Amazon Resource Name) of the application. * */ public Output arn() { return this.arn; } /** * Description of the application. * */ @Export(name="description", refs={String.class}, tree="[0]") private Output description; /** * @return Description of the application. * */ public Output> description() { return Codegen.optional(this.description); } /** * Name of the application. The name must be unique within an AWS region. * * The following arguments are optional: * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return Name of the application. The name must be unique within an AWS region. * * The following arguments are optional: * */ public Output name() { return this.name; } /** * * @param name The _unique_ name of the resulting resource. */ public AppregistryApplication(java.lang.String name) { this(name, AppregistryApplicationArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public AppregistryApplication(java.lang.String name, @Nullable AppregistryApplicationArgs 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 AppregistryApplication(java.lang.String name, @Nullable AppregistryApplicationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("aws:servicecatalog/appregistryApplication:AppregistryApplication", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private AppregistryApplication(java.lang.String name, Output id, @Nullable AppregistryApplicationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("aws:servicecatalog/appregistryApplication:AppregistryApplication", name, state, makeResourceOptions(options, id), false); } private static AppregistryApplicationArgs makeArgs(@Nullable AppregistryApplicationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? AppregistryApplicationArgs.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 AppregistryApplication get(java.lang.String name, Output id, @Nullable AppregistryApplicationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new AppregistryApplication(name, id, state, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy