com.pulumi.aws.iot.ThingGroup 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.iot;
import com.pulumi.aws.Utilities;
import com.pulumi.aws.iot.ThingGroupArgs;
import com.pulumi.aws.iot.inputs.ThingGroupState;
import com.pulumi.aws.iot.outputs.ThingGroupMetadata;
import com.pulumi.aws.iot.outputs.ThingGroupProperties;
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.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Manages an AWS IoT Thing Group.
*
* ## 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.iot.ThingGroup;
* import com.pulumi.aws.iot.ThingGroupArgs;
* import com.pulumi.aws.iot.inputs.ThingGroupPropertiesArgs;
* import com.pulumi.aws.iot.inputs.ThingGroupPropertiesAttributePayloadArgs;
* 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 parent = new ThingGroup("parent", ThingGroupArgs.builder()
* .name("parent")
* .build());
*
* var example = new ThingGroup("example", ThingGroupArgs.builder()
* .name("example")
* .parentGroupName(parent.name())
* .properties(ThingGroupPropertiesArgs.builder()
* .attributePayload(ThingGroupPropertiesAttributePayloadArgs.builder()
* .attributes(Map.ofEntries(
* Map.entry("One", "11111"),
* Map.entry("Two", "TwoTwo")
* ))
* .build())
* .description("This is my thing group")
* .build())
* .tags(Map.of("managed", "true"))
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* Using `pulumi import`, import IoT Things Groups using the name. For example:
*
* ```sh
* $ pulumi import aws:iot/thingGroup:ThingGroup example example
* ```
*
*/
@ResourceType(type="aws:iot/thingGroup:ThingGroup")
public class ThingGroup extends com.pulumi.resources.CustomResource {
/**
* The ARN of the Thing Group.
*
*/
@Export(name="arn", refs={String.class}, tree="[0]")
private Output arn;
/**
* @return The ARN of the Thing Group.
*
*/
public Output arn() {
return this.arn;
}
@Export(name="metadatas", refs={List.class,ThingGroupMetadata.class}, tree="[0,1]")
private Output> metadatas;
public Output> metadatas() {
return this.metadatas;
}
/**
* The name of the Thing Group.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return The name of the Thing Group.
*
*/
public Output name() {
return this.name;
}
/**
* The name of the parent Thing Group.
*
*/
@Export(name="parentGroupName", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> parentGroupName;
/**
* @return The name of the parent Thing Group.
*
*/
public Output> parentGroupName() {
return Codegen.optional(this.parentGroupName);
}
/**
* The Thing Group properties. Defined below.
*
*/
@Export(name="properties", refs={ThingGroupProperties.class}, tree="[0]")
private Output* @Nullable */ ThingGroupProperties> properties;
/**
* @return The Thing Group properties. Defined below.
*
*/
public Output> properties() {
return Codegen.optional(this.properties);
}
/**
* Key-value mapping of resource tags
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return Key-value mapping of resource tags
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
@Export(name="tagsAll", refs={Map.class,String.class}, tree="[0,1,1]")
private Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy