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

com.pulumi.aws.controltower.LandingZone 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.controltower;

import com.pulumi.aws.Utilities;
import com.pulumi.aws.controltower.LandingZoneArgs;
import com.pulumi.aws.controltower.inputs.LandingZoneState;
import com.pulumi.aws.controltower.outputs.LandingZoneDriftStatus;
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.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Creates a new landing zone using Control Tower. For more information on usage, please see the
 * [AWS Control Tower Landing Zone User Guide](https://docs.aws.amazon.com/controltower/latest/userguide/how-control-tower-works.html).
 * 
 * ## Import
 * 
 * Using `pulumi import`, import a Control Tower Landing Zone using the `id`. For example:
 * 
 * ```sh
 * $ pulumi import aws:controltower/landingZone:LandingZone example 1A2B3C4D5E6F7G8H
 * ```
 * 
 */
@ResourceType(type="aws:controltower/landingZone:LandingZone")
public class LandingZone extends com.pulumi.resources.CustomResource {
    /**
     * The ARN of the landing zone.
     * 
     */
    @Export(name="arn", refs={String.class}, tree="[0]")
    private Output arn;

    /**
     * @return The ARN of the landing zone.
     * 
     */
    public Output arn() {
        return this.arn;
    }
    /**
     * The drift status summary of the landing zone.
     * 
     */
    @Export(name="driftStatuses", refs={List.class,LandingZoneDriftStatus.class}, tree="[0,1]")
    private Output> driftStatuses;

    /**
     * @return The drift status summary of the landing zone.
     * 
     */
    public Output> driftStatuses() {
        return this.driftStatuses;
    }
    /**
     * The latest available version of the landing zone.
     * 
     */
    @Export(name="latestAvailableVersion", refs={String.class}, tree="[0]")
    private Output latestAvailableVersion;

    /**
     * @return The latest available version of the landing zone.
     * 
     */
    public Output latestAvailableVersion() {
        return this.latestAvailableVersion;
    }
    /**
     * The manifest JSON file is a text file that describes your AWS resources. For examples, review [Launch your landing zone](https://docs.aws.amazon.com/controltower/latest/userguide/lz-api-launch).
     * 
     */
    @Export(name="manifestJson", refs={String.class}, tree="[0]")
    private Output manifestJson;

    /**
     * @return The manifest JSON file is a text file that describes your AWS resources. For examples, review [Launch your landing zone](https://docs.aws.amazon.com/controltower/latest/userguide/lz-api-launch).
     * 
     */
    public Output manifestJson() {
        return this.manifestJson;
    }
    /**
     * Tags to apply to the landing zone. 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> tags;

    /**
     * @return Tags to apply to the landing zone. 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);
    }
    /**
     * A map of tags assigned to the landing zone, 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> tagsAll;

    /**
     * @return A map of tags assigned to the landing zone, including those inherited from the provider `default_tags` configuration block.
     * 
     */
    public Output> tagsAll() {
        return this.tagsAll;
    }
    /**
     * The landing zone version.
     * 
     */
    @Export(name="version", refs={String.class}, tree="[0]")
    private Output version;

    /**
     * @return The landing zone version.
     * 
     */
    public Output version() {
        return this.version;
    }

    /**
     *
     * @param name The _unique_ name of the resulting resource.
     */
    public LandingZone(java.lang.String name) {
        this(name, LandingZoneArgs.Empty);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     */
    public LandingZone(java.lang.String name, LandingZoneArgs 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 LandingZone(java.lang.String name, LandingZoneArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("aws:controltower/landingZone:LandingZone", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
    }

    private LandingZone(java.lang.String name, Output id, @Nullable LandingZoneState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("aws:controltower/landingZone:LandingZone", name, state, makeResourceOptions(options, id), false);
    }

    private static LandingZoneArgs makeArgs(LandingZoneArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        if (options != null && options.getUrn().isPresent()) {
            return null;
        }
        return args == null ? LandingZoneArgs.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 LandingZone get(java.lang.String name, Output id, @Nullable LandingZoneState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        return new LandingZone(name, id, state, options);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy