Class IndexingConfiguration


  • public class IndexingConfiguration
    extends com.pulumi.resources.CustomResource
    Managing [IoT Thing indexing](https://docs.aws.amazon.com/iot/latest/developerguide/managing-index.html). ## Example Usage
     
     package generated_program;
     
     import com.pulumi.Context;
     import com.pulumi.Pulumi;
     import com.pulumi.core.Output;
     import com.pulumi.aws.iot.IndexingConfiguration;
     import com.pulumi.aws.iot.IndexingConfigurationArgs;
     import com.pulumi.aws.iot.inputs.IndexingConfigurationThingIndexingConfigurationArgs;
     import com.pulumi.aws.iot.inputs.IndexingConfigurationThingIndexingConfigurationFilterArgs;
     import com.pulumi.aws.iot.inputs.IndexingConfigurationThingIndexingConfigurationCustomFieldArgs;
     import java.util.ArrayList;
     import java.util.Arrays;
     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 IndexingConfiguration("example", IndexingConfigurationArgs.builder()
                 .thingIndexingConfiguration(IndexingConfigurationThingIndexingConfigurationArgs.builder()
                     .filter(IndexingConfigurationThingIndexingConfigurationFilterArgs.builder()
                         .namedShadowNames("thing1shadow")
                         .build())
                     .customFields(                
                         IndexingConfigurationThingIndexingConfigurationCustomFieldArgs.builder()
                             .name("shadow.desired.power")
                             .type("Boolean")
                             .build(),
                         IndexingConfigurationThingIndexingConfigurationCustomFieldArgs.builder()
                             .name("attributes.version")
                             .type("Number")
                             .build(),
                         IndexingConfigurationThingIndexingConfigurationCustomFieldArgs.builder()
                             .name("shadow.name.thing1shadow.desired.DefaultDesired")
                             .type("String")
                             .build(),
                         IndexingConfigurationThingIndexingConfigurationCustomFieldArgs.builder()
                             .name("deviceDefender.securityProfile1.NUMBER_VALUE_BEHAVIOR.lastViolationValue.number")
                             .type("Number")
                             .build())
                     .thingIndexingMode("REGISTRY_AND_SHADOW")
                     .thingConnectivityIndexingMode("STATUS")
                     .deviceDefenderIndexingMode("VIOLATIONS")
                     .namedShadowIndexingMode("ON")
                     .build())
                 .build());
     
         }
     }
     
     
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Constructor Detail

      • IndexingConfiguration

        public IndexingConfiguration​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • IndexingConfiguration

        public IndexingConfiguration​(java.lang.String name,
                                     @Nullable
                                     IndexingConfigurationArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • IndexingConfiguration

        public IndexingConfiguration​(java.lang.String name,
                                     @Nullable
                                     IndexingConfigurationArgs args,
                                     @Nullable
                                     com.pulumi.resources.CustomResourceOptions options)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
        options - A bag of options that control this resource's behavior.
    • Method Detail

      • region

        public com.pulumi.core.Output<java.lang.String> region()
        Returns:
        Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
      • get

        public static IndexingConfiguration get​(java.lang.String name,
                                                com.pulumi.core.Output<java.lang.String> id,
                                                @Nullable
                                                IndexingConfigurationState state,
                                                @Nullable
                                                com.pulumi.resources.CustomResourceOptions options)
        Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
        Parameters:
        name - The _unique_ name of the resulting resource.
        id - The _unique_ provider ID of the resource to lookup.
        state -
        options - Optional settings to control the behavior of the CustomResource.