aws.ivschat.Room
Explore with Pulumi AI
Resource for managing an AWS IVS (Interactive Video) Chat Room.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.ivschat.Room("example", {name: "tf-room"});
import pulumi
import pulumi_aws as aws
example = aws.ivschat.Room("example", name="tf-room")
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ivschat"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ivschat.NewRoom(ctx, "example", &ivschat.RoomArgs{
			Name: pulumi.String("tf-room"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var example = new Aws.IvsChat.Room("example", new()
    {
        Name = "tf-room",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ivschat.Room;
import com.pulumi.aws.ivschat.RoomArgs;
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 example = new Room("example", RoomArgs.builder()
            .name("tf-room")
            .build());
    }
}
resources:
  example:
    type: aws:ivschat:Room
    properties:
      name: tf-room
Create Room Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Room(name: string, args?: RoomArgs, opts?: CustomResourceOptions);@overload
def Room(resource_name: str,
         args: Optional[RoomArgs] = None,
         opts: Optional[ResourceOptions] = None)
@overload
def Room(resource_name: str,
         opts: Optional[ResourceOptions] = None,
         logging_configuration_identifiers: Optional[Sequence[str]] = None,
         maximum_message_length: Optional[int] = None,
         maximum_message_rate_per_second: Optional[int] = None,
         message_review_handler: Optional[RoomMessageReviewHandlerArgs] = None,
         name: Optional[str] = None,
         tags: Optional[Mapping[str, str]] = None)func NewRoom(ctx *Context, name string, args *RoomArgs, opts ...ResourceOption) (*Room, error)public Room(string name, RoomArgs? args = null, CustomResourceOptions? opts = null)type: aws:ivschat:Room
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 RoomArgs
- 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 RoomArgs
- 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 RoomArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RoomArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RoomArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var roomResource = new Aws.IvsChat.Room("roomResource", new()
{
    LoggingConfigurationIdentifiers = new[]
    {
        "string",
    },
    MaximumMessageLength = 0,
    MaximumMessageRatePerSecond = 0,
    MessageReviewHandler = new Aws.IvsChat.Inputs.RoomMessageReviewHandlerArgs
    {
        FallbackResult = "string",
        Uri = "string",
    },
    Name = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
example, err := ivschat.NewRoom(ctx, "roomResource", &ivschat.RoomArgs{
	LoggingConfigurationIdentifiers: pulumi.StringArray{
		pulumi.String("string"),
	},
	MaximumMessageLength:        pulumi.Int(0),
	MaximumMessageRatePerSecond: pulumi.Int(0),
	MessageReviewHandler: &ivschat.RoomMessageReviewHandlerArgs{
		FallbackResult: pulumi.String("string"),
		Uri:            pulumi.String("string"),
	},
	Name: pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
var roomResource = new Room("roomResource", RoomArgs.builder()
    .loggingConfigurationIdentifiers("string")
    .maximumMessageLength(0)
    .maximumMessageRatePerSecond(0)
    .messageReviewHandler(RoomMessageReviewHandlerArgs.builder()
        .fallbackResult("string")
        .uri("string")
        .build())
    .name("string")
    .tags(Map.of("string", "string"))
    .build());
room_resource = aws.ivschat.Room("roomResource",
    logging_configuration_identifiers=["string"],
    maximum_message_length=0,
    maximum_message_rate_per_second=0,
    message_review_handler={
        "fallback_result": "string",
        "uri": "string",
    },
    name="string",
    tags={
        "string": "string",
    })
const roomResource = new aws.ivschat.Room("roomResource", {
    loggingConfigurationIdentifiers: ["string"],
    maximumMessageLength: 0,
    maximumMessageRatePerSecond: 0,
    messageReviewHandler: {
        fallbackResult: "string",
        uri: "string",
    },
    name: "string",
    tags: {
        string: "string",
    },
});
type: aws:ivschat:Room
properties:
    loggingConfigurationIdentifiers:
        - string
    maximumMessageLength: 0
    maximumMessageRatePerSecond: 0
    messageReviewHandler:
        fallbackResult: string
        uri: string
    name: string
    tags:
        string: string
Room Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Room resource accepts the following input properties:
- LoggingConfiguration List<string>Identifiers 
- List of Logging Configuration ARNs to attach to the room.
- MaximumMessage intLength 
- Maximum number of characters in a single message. Messages are expected to be UTF-8 encoded and this limit applies specifically to rune/code-point count, not number of bytes.
- MaximumMessage intRate Per Second 
- Maximum number of messages per second that can be sent to the room (by all clients).
- MessageReview RoomHandler Message Review Handler 
- Configuration information for optional review of messages.
- Name string
- Room name.
- Dictionary<string, string>
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- LoggingConfiguration []stringIdentifiers 
- List of Logging Configuration ARNs to attach to the room.
- MaximumMessage intLength 
- Maximum number of characters in a single message. Messages are expected to be UTF-8 encoded and this limit applies specifically to rune/code-point count, not number of bytes.
- MaximumMessage intRate Per Second 
- Maximum number of messages per second that can be sent to the room (by all clients).
- MessageReview RoomHandler Message Review Handler Args 
- Configuration information for optional review of messages.
- Name string
- Room name.
- map[string]string
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- loggingConfiguration List<String>Identifiers 
- List of Logging Configuration ARNs to attach to the room.
- maximumMessage IntegerLength 
- Maximum number of characters in a single message. Messages are expected to be UTF-8 encoded and this limit applies specifically to rune/code-point count, not number of bytes.
- maximumMessage IntegerRate Per Second 
- Maximum number of messages per second that can be sent to the room (by all clients).
- messageReview RoomHandler Message Review Handler 
- Configuration information for optional review of messages.
- name String
- Room name.
- Map<String,String>
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- loggingConfiguration string[]Identifiers 
- List of Logging Configuration ARNs to attach to the room.
- maximumMessage numberLength 
- Maximum number of characters in a single message. Messages are expected to be UTF-8 encoded and this limit applies specifically to rune/code-point count, not number of bytes.
- maximumMessage numberRate Per Second 
- Maximum number of messages per second that can be sent to the room (by all clients).
- messageReview RoomHandler Message Review Handler 
- Configuration information for optional review of messages.
- name string
- Room name.
- {[key: string]: string}
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- logging_configuration_ Sequence[str]identifiers 
- List of Logging Configuration ARNs to attach to the room.
- maximum_message_ intlength 
- Maximum number of characters in a single message. Messages are expected to be UTF-8 encoded and this limit applies specifically to rune/code-point count, not number of bytes.
- maximum_message_ intrate_ per_ second 
- Maximum number of messages per second that can be sent to the room (by all clients).
- message_review_ Roomhandler Message Review Handler Args 
- Configuration information for optional review of messages.
- name str
- Room name.
- Mapping[str, str]
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- loggingConfiguration List<String>Identifiers 
- List of Logging Configuration ARNs to attach to the room.
- maximumMessage NumberLength 
- Maximum number of characters in a single message. Messages are expected to be UTF-8 encoded and this limit applies specifically to rune/code-point count, not number of bytes.
- maximumMessage NumberRate Per Second 
- Maximum number of messages per second that can be sent to the room (by all clients).
- messageReview Property MapHandler 
- Configuration information for optional review of messages.
- name String
- Room name.
- Map<String>
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
Outputs
All input properties are implicitly available as output properties. Additionally, the Room resource produces the following output properties:
Look up Existing Room Resource
Get an existing Room resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: RoomState, opts?: CustomResourceOptions): Room@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arn: Optional[str] = None,
        logging_configuration_identifiers: Optional[Sequence[str]] = None,
        maximum_message_length: Optional[int] = None,
        maximum_message_rate_per_second: Optional[int] = None,
        message_review_handler: Optional[RoomMessageReviewHandlerArgs] = None,
        name: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None) -> Roomfunc GetRoom(ctx *Context, name string, id IDInput, state *RoomState, opts ...ResourceOption) (*Room, error)public static Room Get(string name, Input<string> id, RoomState? state, CustomResourceOptions? opts = null)public static Room get(String name, Output<String> id, RoomState state, CustomResourceOptions options)resources:  _:    type: aws:ivschat:Room    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
- ARN of the Room.
- LoggingConfiguration List<string>Identifiers 
- List of Logging Configuration ARNs to attach to the room.
- MaximumMessage intLength 
- Maximum number of characters in a single message. Messages are expected to be UTF-8 encoded and this limit applies specifically to rune/code-point count, not number of bytes.
- MaximumMessage intRate Per Second 
- Maximum number of messages per second that can be sent to the room (by all clients).
- MessageReview RoomHandler Message Review Handler 
- Configuration information for optional review of messages.
- Name string
- Room name.
- Dictionary<string, string>
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- Arn string
- ARN of the Room.
- LoggingConfiguration []stringIdentifiers 
- List of Logging Configuration ARNs to attach to the room.
- MaximumMessage intLength 
- Maximum number of characters in a single message. Messages are expected to be UTF-8 encoded and this limit applies specifically to rune/code-point count, not number of bytes.
- MaximumMessage intRate Per Second 
- Maximum number of messages per second that can be sent to the room (by all clients).
- MessageReview RoomHandler Message Review Handler Args 
- Configuration information for optional review of messages.
- Name string
- Room name.
- map[string]string
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- map[string]string
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn String
- ARN of the Room.
- loggingConfiguration List<String>Identifiers 
- List of Logging Configuration ARNs to attach to the room.
- maximumMessage IntegerLength 
- Maximum number of characters in a single message. Messages are expected to be UTF-8 encoded and this limit applies specifically to rune/code-point count, not number of bytes.
- maximumMessage IntegerRate Per Second 
- Maximum number of messages per second that can be sent to the room (by all clients).
- messageReview RoomHandler Message Review Handler 
- Configuration information for optional review of messages.
- name String
- Room name.
- Map<String,String>
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn string
- ARN of the Room.
- loggingConfiguration string[]Identifiers 
- List of Logging Configuration ARNs to attach to the room.
- maximumMessage numberLength 
- Maximum number of characters in a single message. Messages are expected to be UTF-8 encoded and this limit applies specifically to rune/code-point count, not number of bytes.
- maximumMessage numberRate Per Second 
- Maximum number of messages per second that can be sent to the room (by all clients).
- messageReview RoomHandler Message Review Handler 
- Configuration information for optional review of messages.
- name string
- Room name.
- {[key: string]: string}
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn str
- ARN of the Room.
- logging_configuration_ Sequence[str]identifiers 
- List of Logging Configuration ARNs to attach to the room.
- maximum_message_ intlength 
- Maximum number of characters in a single message. Messages are expected to be UTF-8 encoded and this limit applies specifically to rune/code-point count, not number of bytes.
- maximum_message_ intrate_ per_ second 
- Maximum number of messages per second that can be sent to the room (by all clients).
- message_review_ Roomhandler Message Review Handler Args 
- Configuration information for optional review of messages.
- name str
- Room name.
- Mapping[str, str]
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn String
- ARN of the Room.
- loggingConfiguration List<String>Identifiers 
- List of Logging Configuration ARNs to attach to the room.
- maximumMessage NumberLength 
- Maximum number of characters in a single message. Messages are expected to be UTF-8 encoded and this limit applies specifically to rune/code-point count, not number of bytes.
- maximumMessage NumberRate Per Second 
- Maximum number of messages per second that can be sent to the room (by all clients).
- messageReview Property MapHandler 
- Configuration information for optional review of messages.
- name String
- Room name.
- Map<String>
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Map<String>
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
Supporting Types
RoomMessageReviewHandler, RoomMessageReviewHandlerArgs        
- FallbackResult string
- The fallback behavior (whether the message
is allowed or denied) if the handler does not return a valid response,
encounters an error, or times out. Valid values: ALLOW,DENY.
- Uri string
- ARN of the lambda message review handler function.
- FallbackResult string
- The fallback behavior (whether the message
is allowed or denied) if the handler does not return a valid response,
encounters an error, or times out. Valid values: ALLOW,DENY.
- Uri string
- ARN of the lambda message review handler function.
- fallbackResult String
- The fallback behavior (whether the message
is allowed or denied) if the handler does not return a valid response,
encounters an error, or times out. Valid values: ALLOW,DENY.
- uri String
- ARN of the lambda message review handler function.
- fallbackResult string
- The fallback behavior (whether the message
is allowed or denied) if the handler does not return a valid response,
encounters an error, or times out. Valid values: ALLOW,DENY.
- uri string
- ARN of the lambda message review handler function.
- fallback_result str
- The fallback behavior (whether the message
is allowed or denied) if the handler does not return a valid response,
encounters an error, or times out. Valid values: ALLOW,DENY.
- uri str
- ARN of the lambda message review handler function.
- fallbackResult String
- The fallback behavior (whether the message
is allowed or denied) if the handler does not return a valid response,
encounters an error, or times out. Valid values: ALLOW,DENY.
- uri String
- ARN of the lambda message review handler function.
Import
Using pulumi import, import IVS (Interactive Video) Chat Room using the ARN. For example:
$ pulumi import aws:ivschat/room:Room example arn:aws:ivschat:us-west-2:326937407773:room/GoXEXyB4VwHb
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.