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

com.pulumi.scm.AddressGroup 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.scm;

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.scm.AddressGroupArgs;
import com.pulumi.scm.Utilities;
import com.pulumi.scm.inputs.AddressGroupState;
import com.pulumi.scm.outputs.AddressGroupDynamicValue;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Retrieves a config item.
 * 
 * ## Example Usage
 * 
 * <!--Start PulumiCodeChooser -->
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.scm.AddressObject;
 * import com.pulumi.scm.AddressObjectArgs;
 * import com.pulumi.scm.AddressGroup;
 * import com.pulumi.scm.AddressGroupArgs;
 * 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 x = new AddressObject("x", AddressObjectArgs.builder()
 *             .folder("Shared")
 *             .name("foo")
 *             .description("Made by Pulumi")
 *             .fqdn("www.example.com")
 *             .build());
 * 
 *         var example = new AddressGroup("example", AddressGroupArgs.builder()
 *             .folder("Shared")
 *             .name("example")
 *             .staticLists(x.name())
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * */ @ResourceType(type="scm:index/addressGroup:AddressGroup") public class AddressGroup extends com.pulumi.resources.CustomResource { /** * The Description param. String length must not exceed 1023 characters. * */ @Export(name="description", refs={String.class}, tree="[0]") private Output description; /** * @return The Description param. String length must not exceed 1023 characters. * */ public Output> description() { return Codegen.optional(this.description); } /** * The Device param. * */ @Export(name="device", refs={String.class}, tree="[0]") private Output device; /** * @return The Device param. * */ public Output> device() { return Codegen.optional(this.device); } /** * The DynamicValue param. Ensure that only one of the following is specified: `dynamic`, `static` * */ @Export(name="dynamicValue", refs={AddressGroupDynamicValue.class}, tree="[0]") private Output dynamicValue; /** * @return The DynamicValue param. Ensure that only one of the following is specified: `dynamic`, `static` * */ public Output> dynamicValue() { return Codegen.optional(this.dynamicValue); } /** * The Folder param. * */ @Export(name="folder", refs={String.class}, tree="[0]") private Output folder; /** * @return The Folder param. * */ public Output> folder() { return Codegen.optional(this.folder); } /** * Alphanumeric string [ 0-9a-zA-Z._-]. String length must not exceed 63 characters. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return Alphanumeric string [ 0-9a-zA-Z._-]. String length must not exceed 63 characters. * */ public Output name() { return this.name; } /** * The Snippet param. * */ @Export(name="snippet", refs={String.class}, tree="[0]") private Output snippet; /** * @return The Snippet param. * */ public Output> snippet() { return Codegen.optional(this.snippet); } /** * The StaticList param. Individual elements in this list are subject to additional validation. String length must not exceed 63 characters. Ensure that only one of the following is specified: `dynamic`, `static` * */ @Export(name="staticLists", refs={List.class,String.class}, tree="[0,1]") private Output> staticLists; /** * @return The StaticList param. Individual elements in this list are subject to additional validation. String length must not exceed 63 characters. Ensure that only one of the following is specified: `dynamic`, `static` * */ public Output>> staticLists() { return Codegen.optional(this.staticLists); } /** * Tags for address group object. List must contain at most 64 elements. Individual elements in this list are subject to additional validation. String length must not exceed 127 characters. * */ @Export(name="tags", refs={List.class,String.class}, tree="[0,1]") private Output> tags; /** * @return Tags for address group object. List must contain at most 64 elements. Individual elements in this list are subject to additional validation. String length must not exceed 127 characters. * */ public Output>> tags() { return Codegen.optional(this.tags); } @Export(name="tfid", refs={String.class}, tree="[0]") private Output tfid; public Output tfid() { return this.tfid; } /** * * @param name The _unique_ name of the resulting resource. */ public AddressGroup(java.lang.String name) { this(name, AddressGroupArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public AddressGroup(java.lang.String name, @Nullable AddressGroupArgs 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 AddressGroup(java.lang.String name, @Nullable AddressGroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("scm:index/addressGroup:AddressGroup", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private AddressGroup(java.lang.String name, Output id, @Nullable AddressGroupState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("scm:index/addressGroup:AddressGroup", name, state, makeResourceOptions(options, id), false); } private static AddressGroupArgs makeArgs(@Nullable AddressGroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? AddressGroupArgs.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 AddressGroup get(java.lang.String name, Output id, @Nullable AddressGroupState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new AddressGroup(name, id, state, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy