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

com.pulumi.okta.TemplateSms Maven / Gradle / Ivy

There is a newer version: 4.13.0-alpha.1732774005
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.okta;

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.okta.TemplateSmsArgs;
import com.pulumi.okta.Utilities;
import com.pulumi.okta.inputs.TemplateSmsState;
import com.pulumi.okta.outputs.TemplateSmsTranslation;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Creates an Okta SMS Template. This resource allows you to create and configure an Okta SMS Template.
 * 
 * ## Example Usage
 * 
 * <!--Start PulumiCodeChooser -->
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.okta.TemplateSms;
 * import com.pulumi.okta.TemplateSmsArgs;
 * import com.pulumi.okta.inputs.TemplateSmsTranslationArgs;
 * 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 TemplateSms("example", TemplateSmsArgs.builder()
 *             .type("SMS_VERIFY_CODE")
 *             .template("Your ${org.name} code is: ${code}")
 *             .translations(            
 *                 TemplateSmsTranslationArgs.builder()
 *                     .language("en")
 *                     .template("Your ${org.name} code is: ${code}")
 *                     .build(),
 *                 TemplateSmsTranslationArgs.builder()
 *                     .language("es")
 *                     .template("Tu código de ${org.name} es: ${code}.")
 *                     .build())
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ## Import * * ```sh * $ pulumi import okta:index/templateSms:TemplateSms example <template_type> * ``` * */ @ResourceType(type="okta:index/templateSms:TemplateSms") public class TemplateSms extends com.pulumi.resources.CustomResource { /** * SMS default template * */ @Export(name="template", refs={String.class}, tree="[0]") private Output template; /** * @return SMS default template * */ public Output template() { return this.template; } /** * Set of translations for a particular template. * */ @Export(name="translations", refs={List.class,TemplateSmsTranslation.class}, tree="[0,1]") private Output> translations; /** * @return Set of translations for a particular template. * */ public Output>> translations() { return Codegen.optional(this.translations); } /** * SMS template type * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return SMS template type * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public TemplateSms(java.lang.String name) { this(name, TemplateSmsArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public TemplateSms(java.lang.String name, TemplateSmsArgs 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 TemplateSms(java.lang.String name, TemplateSmsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("okta:index/templateSms:TemplateSms", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private TemplateSms(java.lang.String name, Output id, @Nullable TemplateSmsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("okta:index/templateSms:TemplateSms", name, state, makeResourceOptions(options, id), false); } private static TemplateSmsArgs makeArgs(TemplateSmsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? TemplateSmsArgs.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 TemplateSms get(java.lang.String name, Output id, @Nullable TemplateSmsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new TemplateSms(name, id, state, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy