We recommend new projects start with resources from the AWS provider.
aws-native.iot.Dimension
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
A dimension can be used to limit the scope of a metric used in a security profile for AWS IoT Device Defender.
Example Usage
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var topicFilterForAuthMessagesDimension = new AwsNative.IoT.Dimension("topicFilterForAuthMessagesDimension", new()
{
Name = "TopicFilterForAuthMessages",
Type = AwsNative.IoT.DimensionType.TopicFilter,
StringValues = new[]
{
"device/+/auth",
},
Tags = new[]
{
new AwsNative.Inputs.TagArgs
{
Key = "Application",
Value = "SmartHome",
},
},
});
});
package main
import (
awsnative "github.com/pulumi/pulumi-aws-native/sdk/go/aws"
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/iot"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := iot.NewDimension(ctx, "topicFilterForAuthMessagesDimension", &iot.DimensionArgs{
Name: pulumi.String("TopicFilterForAuthMessages"),
Type: iot.DimensionTypeTopicFilter,
StringValues: pulumi.StringArray{
pulumi.String("device/+/auth"),
},
Tags: aws.TagArray{
&aws.TagArgs{
Key: pulumi.String("Application"),
Value: pulumi.String("SmartHome"),
},
},
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
topic_filter_for_auth_messages_dimension = aws_native.iot.Dimension("topicFilterForAuthMessagesDimension",
name="TopicFilterForAuthMessages",
type=aws_native.iot.DimensionType.TOPIC_FILTER,
string_values=["device/+/auth"],
tags=[{
"key": "Application",
"value": "SmartHome",
}])
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const topicFilterForAuthMessagesDimension = new aws_native.iot.Dimension("topicFilterForAuthMessagesDimension", {
name: "TopicFilterForAuthMessages",
type: aws_native.iot.DimensionType.TopicFilter,
stringValues: ["device/+/auth"],
tags: [{
key: "Application",
value: "SmartHome",
}],
});
Coming soon!
Create Dimension Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Dimension(name: string, args: DimensionArgs, opts?: CustomResourceOptions);
@overload
def Dimension(resource_name: str,
args: DimensionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Dimension(resource_name: str,
opts: Optional[ResourceOptions] = None,
string_values: Optional[Sequence[str]] = None,
type: Optional[DimensionType] = None,
name: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
func NewDimension(ctx *Context, name string, args DimensionArgs, opts ...ResourceOption) (*Dimension, error)
public Dimension(string name, DimensionArgs args, CustomResourceOptions? opts = null)
public Dimension(String name, DimensionArgs args)
public Dimension(String name, DimensionArgs args, CustomResourceOptions options)
type: aws-native:iot:Dimension
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DimensionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DimensionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DimensionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DimensionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DimensionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Dimension Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Dimension resource accepts the following input properties:
- String
Values List<string> - Specifies the value or list of values for the dimension.
- Type
Pulumi.
Aws Native. Io T. Dimension Type - Specifies the type of the dimension.
- Name string
- A unique identifier for the dimension.
- List<Pulumi.
Aws Native. Inputs. Tag> - Metadata that can be used to manage the dimension.
- String
Values []string - Specifies the value or list of values for the dimension.
- Type
Dimension
Type - Specifies the type of the dimension.
- Name string
- A unique identifier for the dimension.
- Tag
Args - Metadata that can be used to manage the dimension.
- string
Values List<String> - Specifies the value or list of values for the dimension.
- type
Dimension
Type - Specifies the type of the dimension.
- name String
- A unique identifier for the dimension.
- List<Tag>
- Metadata that can be used to manage the dimension.
- string
Values string[] - Specifies the value or list of values for the dimension.
- type
Dimension
Type - Specifies the type of the dimension.
- name string
- A unique identifier for the dimension.
- Tag[]
- Metadata that can be used to manage the dimension.
- string_
values Sequence[str] - Specifies the value or list of values for the dimension.
- type
Dimension
Type - Specifies the type of the dimension.
- name str
- A unique identifier for the dimension.
- Sequence[Tag
Args] - Metadata that can be used to manage the dimension.
- string
Values List<String> - Specifies the value or list of values for the dimension.
- type "TOPIC_FILTER"
- Specifies the type of the dimension.
- name String
- A unique identifier for the dimension.
- List<Property Map>
- Metadata that can be used to manage the dimension.
Outputs
All input properties are implicitly available as output properties. Additionally, the Dimension resource produces the following output properties:
Supporting Types
DimensionType, DimensionTypeArgs
- Topic
Filter - TOPIC_FILTER
- Dimension
Type Topic Filter - TOPIC_FILTER
- Topic
Filter - TOPIC_FILTER
- Topic
Filter - TOPIC_FILTER
- TOPIC_FILTER
- TOPIC_FILTER
- "TOPIC_FILTER"
- TOPIC_FILTER
Tag, TagArgs
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.