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

import com.pulumi.aws.Utilities;
import com.pulumi.aws.backup.GlobalSettingsArgs;
import com.pulumi.aws.backup.inputs.GlobalSettingsState;
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 javax.annotation.Nullable;

/**
 * Provides an AWS Backup Global Settings resource.
 * 
 * ## Example Usage
 * ```java
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.aws.backup.GlobalSettings;
 * import com.pulumi.aws.backup.GlobalSettingsArgs;
 * 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 test = new GlobalSettings(&#34;test&#34;, GlobalSettingsArgs.builder()        
 *             .globalSettings(Map.of(&#34;isCrossAccountBackupEnabled&#34;, &#34;true&#34;))
 *             .build());
 * 
 *     }
 * }
 * ```
 * 
 * ## Import
 * 
 * Backup Global Settings can be imported using the `id`, e.g.,
 * 
 * ```sh
 *  $ pulumi import aws:backup/globalSettings:GlobalSettings example 123456789012
 * ```
 * 
 */
@ResourceType(type="aws:backup/globalSettings:GlobalSettings")
public class GlobalSettings extends com.pulumi.resources.CustomResource {
    /**
     * A list of resources along with the opt-in preferences for the account.
     * 
     */
    @Export(name="globalSettings", refs={Map.class,String.class}, tree="[0,1,1]")
    private Output<Map<String,String>> globalSettings;

    /**
     * @return A list of resources along with the opt-in preferences for the account.
     * 
     */
    public Output<Map<String,String>> globalSettings() {
        return this.globalSettings;
    }

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

    private GlobalSettings(String name, Output<String> id, @Nullable GlobalSettingsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("aws:backup/globalSettings:GlobalSettings", 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 GlobalSettings get(String name, Output<String> id, @Nullable GlobalSettingsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        return new GlobalSettings(name, id, state, options);
    }
}
