aws-native logo
AWS Native v0.54.0, Mar 21 23

aws-native.iotanalytics.Channel

Resource Type definition for AWS::IoTAnalytics::Channel

Example Usage

Example

using System.Collections.Generic;
using Pulumi;
using AwsNative = Pulumi.AwsNative;

return await Deployment.RunAsync(() => 
{
    var channel = new AwsNative.IoTAnalytics.Channel("channel", new()
    {
        ChannelName = "SimpleChannel",
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/iotanalytics"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := iotanalytics.NewChannel(ctx, "channel", &iotanalytics.ChannelArgs{
			ChannelName: pulumi.String("SimpleChannel"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_aws_native as aws_native

channel = aws_native.iotanalytics.Channel("channel", channel_name="SimpleChannel")
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";

const channel = new aws_native.iotanalytics.Channel("channel", {channelName: "SimpleChannel"});

Coming soon!

Example

using System.Collections.Generic;
using Pulumi;
using AwsNative = Pulumi.AwsNative;

return await Deployment.RunAsync(() => 
{
    var channel = new AwsNative.IoTAnalytics.Channel("channel", new()
    {
        ChannelName = "SimpleChannel",
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/iotanalytics"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := iotanalytics.NewChannel(ctx, "channel", &iotanalytics.ChannelArgs{
			ChannelName: pulumi.String("SimpleChannel"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_aws_native as aws_native

channel = aws_native.iotanalytics.Channel("channel", channel_name="SimpleChannel")
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";

const channel = new aws_native.iotanalytics.Channel("channel", {channelName: "SimpleChannel"});

Coming soon!

Example

using System.Collections.Generic;
using Pulumi;
using AwsNative = Pulumi.AwsNative;

return await Deployment.RunAsync(() => 
{
    var channel = new AwsNative.IoTAnalytics.Channel("channel", new()
    {
        ChannelName = "ComplexChannel",
        RetentionPeriod = new AwsNative.IoTAnalytics.Inputs.ChannelRetentionPeriodArgs
        {
            Unlimited = false,
            NumberOfDays = 10,
        },
        Tags = new[]
        {
            new AwsNative.IoTAnalytics.Inputs.ChannelTagArgs
            {
                Key = "keyname1",
                Value = "value1",
            },
            new AwsNative.IoTAnalytics.Inputs.ChannelTagArgs
            {
                Key = "keyname2",
                Value = "value2",
            },
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/iotanalytics"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := iotanalytics.NewChannel(ctx, "channel", &iotanalytics.ChannelArgs{
			ChannelName: pulumi.String("ComplexChannel"),
			RetentionPeriod: &iotanalytics.ChannelRetentionPeriodArgs{
				Unlimited:    pulumi.Bool(false),
				NumberOfDays: pulumi.Int(10),
			},
			Tags: []iotanalytics.ChannelTagArgs{
				{
					Key:   pulumi.String("keyname1"),
					Value: pulumi.String("value1"),
				},
				{
					Key:   pulumi.String("keyname2"),
					Value: pulumi.String("value2"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_aws_native as aws_native

channel = aws_native.iotanalytics.Channel("channel",
    channel_name="ComplexChannel",
    retention_period=aws_native.iotanalytics.ChannelRetentionPeriodArgs(
        unlimited=False,
        number_of_days=10,
    ),
    tags=[
        aws_native.iotanalytics.ChannelTagArgs(
            key="keyname1",
            value="value1",
        ),
        aws_native.iotanalytics.ChannelTagArgs(
            key="keyname2",
            value="value2",
        ),
    ])
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";

const channel = new aws_native.iotanalytics.Channel("channel", {
    channelName: "ComplexChannel",
    retentionPeriod: {
        unlimited: false,
        numberOfDays: 10,
    },
    tags: [
        {
            key: "keyname1",
            value: "value1",
        },
        {
            key: "keyname2",
            value: "value2",
        },
    ],
});

Coming soon!

Example

using System.Collections.Generic;
using Pulumi;
using AwsNative = Pulumi.AwsNative;

return await Deployment.RunAsync(() => 
{
    var channel = new AwsNative.IoTAnalytics.Channel("channel", new()
    {
        ChannelName = "ComplexChannel",
        RetentionPeriod = new AwsNative.IoTAnalytics.Inputs.ChannelRetentionPeriodArgs
        {
            Unlimited = false,
            NumberOfDays = 10,
        },
        Tags = new[]
        {
            new AwsNative.IoTAnalytics.Inputs.ChannelTagArgs
            {
                Key = "keyname1",
                Value = "value1",
            },
            new AwsNative.IoTAnalytics.Inputs.ChannelTagArgs
            {
                Key = "keyname2",
                Value = "value2",
            },
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/iotanalytics"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := iotanalytics.NewChannel(ctx, "channel", &iotanalytics.ChannelArgs{
			ChannelName: pulumi.String("ComplexChannel"),
			RetentionPeriod: &iotanalytics.ChannelRetentionPeriodArgs{
				Unlimited:    pulumi.Bool(false),
				NumberOfDays: pulumi.Int(10),
			},
			Tags: []iotanalytics.ChannelTagArgs{
				{
					Key:   pulumi.String("keyname1"),
					Value: pulumi.String("value1"),
				},
				{
					Key:   pulumi.String("keyname2"),
					Value: pulumi.String("value2"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_aws_native as aws_native

channel = aws_native.iotanalytics.Channel("channel",
    channel_name="ComplexChannel",
    retention_period=aws_native.iotanalytics.ChannelRetentionPeriodArgs(
        unlimited=False,
        number_of_days=10,
    ),
    tags=[
        aws_native.iotanalytics.ChannelTagArgs(
            key="keyname1",
            value="value1",
        ),
        aws_native.iotanalytics.ChannelTagArgs(
            key="keyname2",
            value="value2",
        ),
    ])
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";

const channel = new aws_native.iotanalytics.Channel("channel", {
    channelName: "ComplexChannel",
    retentionPeriod: {
        unlimited: false,
        numberOfDays: 10,
    },
    tags: [
        {
            key: "keyname1",
            value: "value1",
        },
        {
            key: "keyname2",
            value: "value2",
        },
    ],
});

Coming soon!

Create Channel Resource

new Channel(name: string, args?: ChannelArgs, opts?: CustomResourceOptions);
@overload
def Channel(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            channel_name: Optional[str] = None,
            channel_storage: Optional[ChannelStorageArgs] = None,
            retention_period: Optional[ChannelRetentionPeriodArgs] = None,
            tags: Optional[Sequence[ChannelTagArgs]] = None)
@overload
def Channel(resource_name: str,
            args: Optional[ChannelArgs] = None,
            opts: Optional[ResourceOptions] = None)
func NewChannel(ctx *Context, name string, args *ChannelArgs, opts ...ResourceOption) (*Channel, error)
public Channel(string name, ChannelArgs? args = null, CustomResourceOptions? opts = null)
public Channel(String name, ChannelArgs args)
public Channel(String name, ChannelArgs args, CustomResourceOptions options)
type: aws-native:iotanalytics:Channel
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ChannelArgs
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 ChannelArgs
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 ChannelArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ChannelArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ChannelArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Channel 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 Channel resource accepts the following input properties:

Outputs

All input properties are implicitly available as output properties. Additionally, the Channel resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Supporting Types

ChannelCustomerManagedS3

Bucket string
RoleArn string
KeyPrefix string
Bucket string
RoleArn string
KeyPrefix string
bucket String
roleArn String
keyPrefix String
bucket string
roleArn string
keyPrefix string
bucket String
roleArn String
keyPrefix String

ChannelRetentionPeriod

numberOfDays Integer
unlimited Boolean
numberOfDays number
unlimited boolean
numberOfDays Number
unlimited Boolean

ChannelStorage

ChannelTag

Key string
Value string
Key string
Value string
key String
value String
key string
value string
key str
value str
key String
value String

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0