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

com.pulumi.aws.redshift.AuthenticationProfile Maven / Gradle / Ivy

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

import com.pulumi.aws.Utilities;
import com.pulumi.aws.redshift.AuthenticationProfileArgs;
import com.pulumi.aws.redshift.inputs.AuthenticationProfileState;
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 javax.annotation.Nullable;

/**
 * Creates a Redshift authentication profile
 * 
 * ## Example Usage
 * 
 * <!--Start PulumiCodeChooser -->
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.aws.redshift.AuthenticationProfile;
 * import com.pulumi.aws.redshift.AuthenticationProfileArgs;
 * import static com.pulumi.codegen.internal.Serialization.*;
 * 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 AuthenticationProfile("example", AuthenticationProfileArgs.builder()
 *             .authenticationProfileName("example")
 *             .authenticationProfileContent(serializeJson(
 *                 jsonObject(
 *                     jsonProperty("AllowDBUserOverride", "1"),
 *                     jsonProperty("Client_ID", "ExampleClientID"),
 *                     jsonProperty("App_ID", "example")
 *                 )))
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ## Import * * Using `pulumi import`, import Redshift Authentication by `authentication_profile_name`. For example: * * ```sh * $ pulumi import aws:redshift/authenticationProfile:AuthenticationProfile test example * ``` * */ @ResourceType(type="aws:redshift/authenticationProfile:AuthenticationProfile") public class AuthenticationProfile extends com.pulumi.resources.CustomResource { /** * The content of the authentication profile in JSON format. The maximum length of the JSON string is determined by a quota for your account. * */ @Export(name="authenticationProfileContent", refs={String.class}, tree="[0]") private Output authenticationProfileContent; /** * @return The content of the authentication profile in JSON format. The maximum length of the JSON string is determined by a quota for your account. * */ public Output authenticationProfileContent() { return this.authenticationProfileContent; } /** * The name of the authentication profile. * */ @Export(name="authenticationProfileName", refs={String.class}, tree="[0]") private Output authenticationProfileName; /** * @return The name of the authentication profile. * */ public Output authenticationProfileName() { return this.authenticationProfileName; } /** * * @param name The _unique_ name of the resulting resource. */ public AuthenticationProfile(java.lang.String name) { this(name, AuthenticationProfileArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public AuthenticationProfile(java.lang.String name, AuthenticationProfileArgs 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 AuthenticationProfile(java.lang.String name, AuthenticationProfileArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("aws:redshift/authenticationProfile:AuthenticationProfile", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private AuthenticationProfile(java.lang.String name, Output id, @Nullable AuthenticationProfileState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("aws:redshift/authenticationProfile:AuthenticationProfile", name, state, makeResourceOptions(options, id), false); } private static AuthenticationProfileArgs makeArgs(AuthenticationProfileArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? AuthenticationProfileArgs.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 AuthenticationProfile get(java.lang.String name, Output id, @Nullable AuthenticationProfileState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new AuthenticationProfile(name, id, state, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy