// *** 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.gcp.certificatemanager;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import com.pulumi.gcp.Utilities;
import com.pulumi.gcp.certificatemanager.CertificateMapArgs;
import com.pulumi.gcp.certificatemanager.inputs.CertificateMapState;
import com.pulumi.gcp.certificatemanager.outputs.CertificateMapGclbTarget;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * CertificateMap defines a collection of certificate configurations,
 * which are usable by any associated target proxies
 * 
 * ## Example Usage
 * ### Certificate Manager Certificate Map Basic
 * ```java
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.gcp.certificatemanager.CertificateMap;
 * import com.pulumi.gcp.certificatemanager.CertificateMapArgs;
 * 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 default_ = new CertificateMap(&#34;default&#34;, CertificateMapArgs.builder()        
 *             .description(&#34;My acceptance test certificate map&#34;)
 *             .labels(Map.ofEntries(
 *                 Map.entry(&#34;terraform&#34;, true),
 *                 Map.entry(&#34;acc-test&#34;, true)
 *             ))
 *             .build());
 * 
 *     }
 * }
 * ```
 * 
 * ## Import
 * 
 * CertificateMap can be imported using any of these accepted formats
 * 
 * ```sh
 *  $ pulumi import gcp:certificatemanager/certificateMap:CertificateMap default projects/{{project}}/locations/global/certificateMaps/{{name}}
 * ```
 * 
 * ```sh
 *  $ pulumi import gcp:certificatemanager/certificateMap:CertificateMap default {{project}}/{{name}}
 * ```
 * 
 * ```sh
 *  $ pulumi import gcp:certificatemanager/certificateMap:CertificateMap default {{name}}
 * ```
 * 
 */
@ResourceType(type="gcp:certificatemanager/certificateMap:CertificateMap")
public class CertificateMap extends com.pulumi.resources.CustomResource {
    /**
     * Creation timestamp of a Certificate Map. Timestamp is in RFC3339 UTC &#34;Zulu&#34; format,
     * accurate to nanoseconds with up to nine fractional digits.
     * Examples: &#34;2014-10-02T15:01:23Z&#34; and &#34;2014-10-02T15:01:23.045123456Z&#34;.
     * 
     */
    @Export(name="createTime", type=String.class, parameters={})
    private Output<String> createTime;

    /**
     * @return Creation timestamp of a Certificate Map. Timestamp is in RFC3339 UTC &#34;Zulu&#34; format,
     * accurate to nanoseconds with up to nine fractional digits.
     * Examples: &#34;2014-10-02T15:01:23Z&#34; and &#34;2014-10-02T15:01:23.045123456Z&#34;.
     * 
     */
    public Output<String> createTime() {
        return this.createTime;
    }
    /**
     * A human-readable description of the resource.
     * 
     */
    @Export(name="description", type=String.class, parameters={})
    private Output</* @Nullable */ String> description;

    /**
     * @return A human-readable description of the resource.
     * 
     */
    public Output<Optional<String>> description() {
        return Codegen.optional(this.description);
    }
    /**
     * A list of target proxies that use this Certificate Map
     * Structure is documented below.
     * 
     */
    @Export(name="gclbTargets", type=List.class, parameters={CertificateMapGclbTarget.class})
    private Output<List<CertificateMapGclbTarget>> gclbTargets;

    /**
     * @return A list of target proxies that use this Certificate Map
     * Structure is documented below.
     * 
     */
    public Output<List<CertificateMapGclbTarget>> gclbTargets() {
        return this.gclbTargets;
    }
    /**
     * Set of labels associated with a Certificate Map resource.
     * 
     */
    @Export(name="labels", type=Map.class, parameters={String.class, String.class})
    private Output<Map<String,String>> labels;

    /**
     * @return Set of labels associated with a Certificate Map resource.
     * 
     */
    public Output<Map<String,String>> labels() {
        return this.labels;
    }
    /**
     * A user-defined name of the Certificate Map. Certificate Map names must be unique
     * globally and match the pattern `projects/*{@literal /}locations/*{@literal /}certificateMaps/*`.
     * 
     * ***
     * 
     */
    @Export(name="name", type=String.class, parameters={})
    private Output<String> name;

    /**
     * @return A user-defined name of the Certificate Map. Certificate Map names must be unique
     * globally and match the pattern `projects/*{@literal /}locations/*{@literal /}certificateMaps/*`.
     * 
     * ***
     * 
     */
    public Output<String> name() {
        return this.name;
    }
    /**
     * The ID of the project in which the resource belongs.
     * If it is not provided, the provider project is used.
     * 
     */
    @Export(name="project", type=String.class, parameters={})
    private Output<String> project;

    /**
     * @return The ID of the project in which the resource belongs.
     * If it is not provided, the provider project is used.
     * 
     */
    public Output<String> project() {
        return this.project;
    }
    /**
     * Update timestamp of a Certificate Map. Timestamp is in RFC3339 UTC &#34;Zulu&#34; format,
     * accurate to nanoseconds with up to nine fractional digits.
     * Examples: &#34;2014-10-02T15:01:23Z&#34; and &#34;2014-10-02T15:01:23.045123456Z&#34;.
     * 
     */
    @Export(name="updateTime", type=String.class, parameters={})
    private Output<String> updateTime;

    /**
     * @return Update timestamp of a Certificate Map. Timestamp is in RFC3339 UTC &#34;Zulu&#34; format,
     * accurate to nanoseconds with up to nine fractional digits.
     * Examples: &#34;2014-10-02T15:01:23Z&#34; and &#34;2014-10-02T15:01:23.045123456Z&#34;.
     * 
     */
    public Output<String> updateTime() {
        return this.updateTime;
    }

    /**
     *
     * @param name The _unique_ name of the resulting resource.
     */
    public CertificateMap(String name) {
        this(name, CertificateMapArgs.Empty);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     */
    public CertificateMap(String name, @Nullable CertificateMapArgs 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 CertificateMap(String name, @Nullable CertificateMapArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("gcp:certificatemanager/certificateMap:CertificateMap", name, args == null ? CertificateMapArgs.Empty : args, makeResourceOptions(options, Codegen.empty()));
    }

    private CertificateMap(String name, Output<String> id, @Nullable CertificateMapState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("gcp:certificatemanager/certificateMap:CertificateMap", name, state, makeResourceOptions(options, id));
    }

    private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output<String> 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 CertificateMap get(String name, Output<String> id, @Nullable CertificateMapState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        return new CertificateMap(name, id, state, options);
    }
}
