1. Packages
  2. AWS
  3. API Docs
  4. chime
  5. VoiceConnectorStreaming
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.chime.VoiceConnectorStreaming

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Adds a streaming configuration for the specified Amazon Chime Voice Connector. The streaming configuration specifies whether media streaming is enabled for sending to Amazon Kinesis. It also sets the retention period, in hours, for the Amazon Kinesis data.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const _default = new aws.chime.VoiceConnector("default", {
        name: "vc-name-test",
        requireEncryption: true,
    });
    const defaultVoiceConnectorStreaming = new aws.chime.VoiceConnectorStreaming("default", {
        disabled: false,
        voiceConnectorId: _default.id,
        dataRetention: 7,
        streamingNotificationTargets: ["SQS"],
    });
    
    import pulumi
    import pulumi_aws as aws
    
    default = aws.chime.VoiceConnector("default",
        name="vc-name-test",
        require_encryption=True)
    default_voice_connector_streaming = aws.chime.VoiceConnectorStreaming("default",
        disabled=False,
        voice_connector_id=default.id,
        data_retention=7,
        streaming_notification_targets=["SQS"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/chime"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := chime.NewVoiceConnector(ctx, "default", &chime.VoiceConnectorArgs{
    			Name:              pulumi.String("vc-name-test"),
    			RequireEncryption: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = chime.NewVoiceConnectorStreaming(ctx, "default", &chime.VoiceConnectorStreamingArgs{
    			Disabled:         pulumi.Bool(false),
    			VoiceConnectorId: _default.ID(),
    			DataRetention:    pulumi.Int(7),
    			StreamingNotificationTargets: pulumi.StringArray{
    				pulumi.String("SQS"),
    			},
    		})
    		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 @default = new Aws.Chime.VoiceConnector("default", new()
        {
            Name = "vc-name-test",
            RequireEncryption = true,
        });
    
        var defaultVoiceConnectorStreaming = new Aws.Chime.VoiceConnectorStreaming("default", new()
        {
            Disabled = false,
            VoiceConnectorId = @default.Id,
            DataRetention = 7,
            StreamingNotificationTargets = new[]
            {
                "SQS",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.chime.VoiceConnector;
    import com.pulumi.aws.chime.VoiceConnectorArgs;
    import com.pulumi.aws.chime.VoiceConnectorStreaming;
    import com.pulumi.aws.chime.VoiceConnectorStreamingArgs;
    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 default_ = new VoiceConnector("default", VoiceConnectorArgs.builder()
                .name("vc-name-test")
                .requireEncryption(true)
                .build());
    
            var defaultVoiceConnectorStreaming = new VoiceConnectorStreaming("defaultVoiceConnectorStreaming", VoiceConnectorStreamingArgs.builder()
                .disabled(false)
                .voiceConnectorId(default_.id())
                .dataRetention(7)
                .streamingNotificationTargets("SQS")
                .build());
    
        }
    }
    
    resources:
      default:
        type: aws:chime:VoiceConnector
        properties:
          name: vc-name-test
          requireEncryption: true
      defaultVoiceConnectorStreaming:
        type: aws:chime:VoiceConnectorStreaming
        name: default
        properties:
          disabled: false
          voiceConnectorId: ${default.id}
          dataRetention: 7
          streamingNotificationTargets:
            - SQS
    

    Example Usage With Media Insights

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const _default = new aws.chime.VoiceConnector("default", {
        name: "vc-name-test",
        requireEncryption: true,
    });
    const assumeRole = aws.iam.getPolicyDocument({
        statements: [{
            effect: "Allow",
            principals: [{
                type: "Service",
                identifiers: ["mediapipelines.chime.amazonaws.com"],
            }],
            actions: ["sts:AssumeRole"],
        }],
    });
    const exampleRole = new aws.iam.Role("example", {
        name: "ExampleResourceAccessRole",
        assumeRolePolicy: assumeRole.then(assumeRole => assumeRole.json),
    });
    const exampleStream = new aws.kinesis.Stream("example", {
        name: "ExampleStream",
        shardCount: 2,
    });
    const example = new aws.chimesdkmediapipelines.MediaInsightsPipelineConfiguration("example", {
        name: "ExampleConfig",
        resourceAccessRoleArn: exampleRole.arn,
        elements: [
            {
                type: "AmazonTranscribeCallAnalyticsProcessor",
                amazonTranscribeCallAnalyticsProcessorConfiguration: {
                    languageCode: "en-US",
                },
            },
            {
                type: "KinesisDataStreamSink",
                kinesisDataStreamSinkConfiguration: {
                    insightsTarget: exampleStream.arn,
                },
            },
        ],
    });
    const defaultVoiceConnectorStreaming = new aws.chime.VoiceConnectorStreaming("default", {
        disabled: false,
        voiceConnectorId: _default.id,
        dataRetention: 7,
        streamingNotificationTargets: ["SQS"],
        mediaInsightsConfiguration: {
            disabled: false,
            configurationArn: example.arn,
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    default = aws.chime.VoiceConnector("default",
        name="vc-name-test",
        require_encryption=True)
    assume_role = aws.iam.get_policy_document(statements=[{
        "effect": "Allow",
        "principals": [{
            "type": "Service",
            "identifiers": ["mediapipelines.chime.amazonaws.com"],
        }],
        "actions": ["sts:AssumeRole"],
    }])
    example_role = aws.iam.Role("example",
        name="ExampleResourceAccessRole",
        assume_role_policy=assume_role.json)
    example_stream = aws.kinesis.Stream("example",
        name="ExampleStream",
        shard_count=2)
    example = aws.chimesdkmediapipelines.MediaInsightsPipelineConfiguration("example",
        name="ExampleConfig",
        resource_access_role_arn=example_role.arn,
        elements=[
            {
                "type": "AmazonTranscribeCallAnalyticsProcessor",
                "amazon_transcribe_call_analytics_processor_configuration": {
                    "language_code": "en-US",
                },
            },
            {
                "type": "KinesisDataStreamSink",
                "kinesis_data_stream_sink_configuration": {
                    "insights_target": example_stream.arn,
                },
            },
        ])
    default_voice_connector_streaming = aws.chime.VoiceConnectorStreaming("default",
        disabled=False,
        voice_connector_id=default.id,
        data_retention=7,
        streaming_notification_targets=["SQS"],
        media_insights_configuration={
            "disabled": False,
            "configuration_arn": example.arn,
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/chime"
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/chimesdkmediapipelines"
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam"
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/kinesis"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := chime.NewVoiceConnector(ctx, "default", &chime.VoiceConnectorArgs{
    			Name:              pulumi.String("vc-name-test"),
    			RequireEncryption: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		assumeRole, err := iam.GetPolicyDocument(ctx, &iam.GetPolicyDocumentArgs{
    			Statements: []iam.GetPolicyDocumentStatement{
    				{
    					Effect: pulumi.StringRef("Allow"),
    					Principals: []iam.GetPolicyDocumentStatementPrincipal{
    						{
    							Type: "Service",
    							Identifiers: []string{
    								"mediapipelines.chime.amazonaws.com",
    							},
    						},
    					},
    					Actions: []string{
    						"sts:AssumeRole",
    					},
    				},
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		exampleRole, err := iam.NewRole(ctx, "example", &iam.RoleArgs{
    			Name:             pulumi.String("ExampleResourceAccessRole"),
    			AssumeRolePolicy: pulumi.String(assumeRole.Json),
    		})
    		if err != nil {
    			return err
    		}
    		exampleStream, err := kinesis.NewStream(ctx, "example", &kinesis.StreamArgs{
    			Name:       pulumi.String("ExampleStream"),
    			ShardCount: pulumi.Int(2),
    		})
    		if err != nil {
    			return err
    		}
    		example, err := chimesdkmediapipelines.NewMediaInsightsPipelineConfiguration(ctx, "example", &chimesdkmediapipelines.MediaInsightsPipelineConfigurationArgs{
    			Name:                  pulumi.String("ExampleConfig"),
    			ResourceAccessRoleArn: exampleRole.Arn,
    			Elements: chimesdkmediapipelines.MediaInsightsPipelineConfigurationElementArray{
    				&chimesdkmediapipelines.MediaInsightsPipelineConfigurationElementArgs{
    					Type: pulumi.String("AmazonTranscribeCallAnalyticsProcessor"),
    					AmazonTranscribeCallAnalyticsProcessorConfiguration: &chimesdkmediapipelines.MediaInsightsPipelineConfigurationElementAmazonTranscribeCallAnalyticsProcessorConfigurationArgs{
    						LanguageCode: pulumi.String("en-US"),
    					},
    				},
    				&chimesdkmediapipelines.MediaInsightsPipelineConfigurationElementArgs{
    					Type: pulumi.String("KinesisDataStreamSink"),
    					KinesisDataStreamSinkConfiguration: &chimesdkmediapipelines.MediaInsightsPipelineConfigurationElementKinesisDataStreamSinkConfigurationArgs{
    						InsightsTarget: exampleStream.Arn,
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = chime.NewVoiceConnectorStreaming(ctx, "default", &chime.VoiceConnectorStreamingArgs{
    			Disabled:         pulumi.Bool(false),
    			VoiceConnectorId: _default.ID(),
    			DataRetention:    pulumi.Int(7),
    			StreamingNotificationTargets: pulumi.StringArray{
    				pulumi.String("SQS"),
    			},
    			MediaInsightsConfiguration: &chime.VoiceConnectorStreamingMediaInsightsConfigurationArgs{
    				Disabled:         pulumi.Bool(false),
    				ConfigurationArn: example.Arn,
    			},
    		})
    		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 @default = new Aws.Chime.VoiceConnector("default", new()
        {
            Name = "vc-name-test",
            RequireEncryption = true,
        });
    
        var assumeRole = Aws.Iam.GetPolicyDocument.Invoke(new()
        {
            Statements = new[]
            {
                new Aws.Iam.Inputs.GetPolicyDocumentStatementInputArgs
                {
                    Effect = "Allow",
                    Principals = new[]
                    {
                        new Aws.Iam.Inputs.GetPolicyDocumentStatementPrincipalInputArgs
                        {
                            Type = "Service",
                            Identifiers = new[]
                            {
                                "mediapipelines.chime.amazonaws.com",
                            },
                        },
                    },
                    Actions = new[]
                    {
                        "sts:AssumeRole",
                    },
                },
            },
        });
    
        var exampleRole = new Aws.Iam.Role("example", new()
        {
            Name = "ExampleResourceAccessRole",
            AssumeRolePolicy = assumeRole.Apply(getPolicyDocumentResult => getPolicyDocumentResult.Json),
        });
    
        var exampleStream = new Aws.Kinesis.Stream("example", new()
        {
            Name = "ExampleStream",
            ShardCount = 2,
        });
    
        var example = new Aws.ChimeSDKMediaPipelines.MediaInsightsPipelineConfiguration("example", new()
        {
            Name = "ExampleConfig",
            ResourceAccessRoleArn = exampleRole.Arn,
            Elements = new[]
            {
                new Aws.ChimeSDKMediaPipelines.Inputs.MediaInsightsPipelineConfigurationElementArgs
                {
                    Type = "AmazonTranscribeCallAnalyticsProcessor",
                    AmazonTranscribeCallAnalyticsProcessorConfiguration = new Aws.ChimeSDKMediaPipelines.Inputs.MediaInsightsPipelineConfigurationElementAmazonTranscribeCallAnalyticsProcessorConfigurationArgs
                    {
                        LanguageCode = "en-US",
                    },
                },
                new Aws.ChimeSDKMediaPipelines.Inputs.MediaInsightsPipelineConfigurationElementArgs
                {
                    Type = "KinesisDataStreamSink",
                    KinesisDataStreamSinkConfiguration = new Aws.ChimeSDKMediaPipelines.Inputs.MediaInsightsPipelineConfigurationElementKinesisDataStreamSinkConfigurationArgs
                    {
                        InsightsTarget = exampleStream.Arn,
                    },
                },
            },
        });
    
        var defaultVoiceConnectorStreaming = new Aws.Chime.VoiceConnectorStreaming("default", new()
        {
            Disabled = false,
            VoiceConnectorId = @default.Id,
            DataRetention = 7,
            StreamingNotificationTargets = new[]
            {
                "SQS",
            },
            MediaInsightsConfiguration = new Aws.Chime.Inputs.VoiceConnectorStreamingMediaInsightsConfigurationArgs
            {
                Disabled = false,
                ConfigurationArn = example.Arn,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.chime.VoiceConnector;
    import com.pulumi.aws.chime.VoiceConnectorArgs;
    import com.pulumi.aws.iam.IamFunctions;
    import com.pulumi.aws.iam.inputs.GetPolicyDocumentArgs;
    import com.pulumi.aws.iam.Role;
    import com.pulumi.aws.iam.RoleArgs;
    import com.pulumi.aws.kinesis.Stream;
    import com.pulumi.aws.kinesis.StreamArgs;
    import com.pulumi.aws.chimesdkmediapipelines.MediaInsightsPipelineConfiguration;
    import com.pulumi.aws.chimesdkmediapipelines.MediaInsightsPipelineConfigurationArgs;
    import com.pulumi.aws.chimesdkmediapipelines.inputs.MediaInsightsPipelineConfigurationElementArgs;
    import com.pulumi.aws.chimesdkmediapipelines.inputs.MediaInsightsPipelineConfigurationElementAmazonTranscribeCallAnalyticsProcessorConfigurationArgs;
    import com.pulumi.aws.chimesdkmediapipelines.inputs.MediaInsightsPipelineConfigurationElementKinesisDataStreamSinkConfigurationArgs;
    import com.pulumi.aws.chime.VoiceConnectorStreaming;
    import com.pulumi.aws.chime.VoiceConnectorStreamingArgs;
    import com.pulumi.aws.chime.inputs.VoiceConnectorStreamingMediaInsightsConfigurationArgs;
    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 default_ = new VoiceConnector("default", VoiceConnectorArgs.builder()
                .name("vc-name-test")
                .requireEncryption(true)
                .build());
    
            final var assumeRole = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder()
                .statements(GetPolicyDocumentStatementArgs.builder()
                    .effect("Allow")
                    .principals(GetPolicyDocumentStatementPrincipalArgs.builder()
                        .type("Service")
                        .identifiers("mediapipelines.chime.amazonaws.com")
                        .build())
                    .actions("sts:AssumeRole")
                    .build())
                .build());
    
            var exampleRole = new Role("exampleRole", RoleArgs.builder()
                .name("ExampleResourceAccessRole")
                .assumeRolePolicy(assumeRole.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json()))
                .build());
    
            var exampleStream = new Stream("exampleStream", StreamArgs.builder()
                .name("ExampleStream")
                .shardCount(2)
                .build());
    
            var example = new MediaInsightsPipelineConfiguration("example", MediaInsightsPipelineConfigurationArgs.builder()
                .name("ExampleConfig")
                .resourceAccessRoleArn(exampleRole.arn())
                .elements(            
                    MediaInsightsPipelineConfigurationElementArgs.builder()
                        .type("AmazonTranscribeCallAnalyticsProcessor")
                        .amazonTranscribeCallAnalyticsProcessorConfiguration(MediaInsightsPipelineConfigurationElementAmazonTranscribeCallAnalyticsProcessorConfigurationArgs.builder()
                            .languageCode("en-US")
                            .build())
                        .build(),
                    MediaInsightsPipelineConfigurationElementArgs.builder()
                        .type("KinesisDataStreamSink")
                        .kinesisDataStreamSinkConfiguration(MediaInsightsPipelineConfigurationElementKinesisDataStreamSinkConfigurationArgs.builder()
                            .insightsTarget(exampleStream.arn())
                            .build())
                        .build())
                .build());
    
            var defaultVoiceConnectorStreaming = new VoiceConnectorStreaming("defaultVoiceConnectorStreaming", VoiceConnectorStreamingArgs.builder()
                .disabled(false)
                .voiceConnectorId(default_.id())
                .dataRetention(7)
                .streamingNotificationTargets("SQS")
                .mediaInsightsConfiguration(VoiceConnectorStreamingMediaInsightsConfigurationArgs.builder()
                    .disabled(false)
                    .configurationArn(example.arn())
                    .build())
                .build());
    
        }
    }
    
    resources:
      default:
        type: aws:chime:VoiceConnector
        properties:
          name: vc-name-test
          requireEncryption: true
      defaultVoiceConnectorStreaming:
        type: aws:chime:VoiceConnectorStreaming
        name: default
        properties:
          disabled: false
          voiceConnectorId: ${default.id}
          dataRetention: 7
          streamingNotificationTargets:
            - SQS
          mediaInsightsConfiguration:
            disabled: false
            configurationArn: ${example.arn}
      example:
        type: aws:chimesdkmediapipelines:MediaInsightsPipelineConfiguration
        properties:
          name: ExampleConfig
          resourceAccessRoleArn: ${exampleRole.arn}
          elements:
            - type: AmazonTranscribeCallAnalyticsProcessor
              amazonTranscribeCallAnalyticsProcessorConfiguration:
                languageCode: en-US
            - type: KinesisDataStreamSink
              kinesisDataStreamSinkConfiguration:
                insightsTarget: ${exampleStream.arn}
      exampleRole:
        type: aws:iam:Role
        name: example
        properties:
          name: ExampleResourceAccessRole
          assumeRolePolicy: ${assumeRole.json}
      exampleStream:
        type: aws:kinesis:Stream
        name: example
        properties:
          name: ExampleStream
          shardCount: 2
    variables:
      assumeRole:
        fn::invoke:
          Function: aws:iam:getPolicyDocument
          Arguments:
            statements:
              - effect: Allow
                principals:
                  - type: Service
                    identifiers:
                      - mediapipelines.chime.amazonaws.com
                actions:
                  - sts:AssumeRole
    

    Create VoiceConnectorStreaming Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VoiceConnectorStreaming(name: string, args: VoiceConnectorStreamingArgs, opts?: CustomResourceOptions);
    @overload
    def VoiceConnectorStreaming(resource_name: str,
                                args: VoiceConnectorStreamingArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def VoiceConnectorStreaming(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                data_retention: Optional[int] = None,
                                voice_connector_id: Optional[str] = None,
                                disabled: Optional[bool] = None,
                                media_insights_configuration: Optional[VoiceConnectorStreamingMediaInsightsConfigurationArgs] = None,
                                streaming_notification_targets: Optional[Sequence[str]] = None)
    func NewVoiceConnectorStreaming(ctx *Context, name string, args VoiceConnectorStreamingArgs, opts ...ResourceOption) (*VoiceConnectorStreaming, error)
    public VoiceConnectorStreaming(string name, VoiceConnectorStreamingArgs args, CustomResourceOptions? opts = null)
    public VoiceConnectorStreaming(String name, VoiceConnectorStreamingArgs args)
    public VoiceConnectorStreaming(String name, VoiceConnectorStreamingArgs args, CustomResourceOptions options)
    
    type: aws:chime:VoiceConnectorStreaming
    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 VoiceConnectorStreamingArgs
    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 VoiceConnectorStreamingArgs
    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 VoiceConnectorStreamingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VoiceConnectorStreamingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VoiceConnectorStreamingArgs
    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 voiceConnectorStreamingResource = new Aws.Chime.VoiceConnectorStreaming("voiceConnectorStreamingResource", new()
    {
        DataRetention = 0,
        VoiceConnectorId = "string",
        Disabled = false,
        MediaInsightsConfiguration = new Aws.Chime.Inputs.VoiceConnectorStreamingMediaInsightsConfigurationArgs
        {
            ConfigurationArn = "string",
            Disabled = false,
        },
        StreamingNotificationTargets = new[]
        {
            "string",
        },
    });
    
    example, err := chime.NewVoiceConnectorStreaming(ctx, "voiceConnectorStreamingResource", &chime.VoiceConnectorStreamingArgs{
    	DataRetention:    pulumi.Int(0),
    	VoiceConnectorId: pulumi.String("string"),
    	Disabled:         pulumi.Bool(false),
    	MediaInsightsConfiguration: &chime.VoiceConnectorStreamingMediaInsightsConfigurationArgs{
    		ConfigurationArn: pulumi.String("string"),
    		Disabled:         pulumi.Bool(false),
    	},
    	StreamingNotificationTargets: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var voiceConnectorStreamingResource = new VoiceConnectorStreaming("voiceConnectorStreamingResource", VoiceConnectorStreamingArgs.builder()
        .dataRetention(0)
        .voiceConnectorId("string")
        .disabled(false)
        .mediaInsightsConfiguration(VoiceConnectorStreamingMediaInsightsConfigurationArgs.builder()
            .configurationArn("string")
            .disabled(false)
            .build())
        .streamingNotificationTargets("string")
        .build());
    
    voice_connector_streaming_resource = aws.chime.VoiceConnectorStreaming("voiceConnectorStreamingResource",
        data_retention=0,
        voice_connector_id="string",
        disabled=False,
        media_insights_configuration={
            "configuration_arn": "string",
            "disabled": False,
        },
        streaming_notification_targets=["string"])
    
    const voiceConnectorStreamingResource = new aws.chime.VoiceConnectorStreaming("voiceConnectorStreamingResource", {
        dataRetention: 0,
        voiceConnectorId: "string",
        disabled: false,
        mediaInsightsConfiguration: {
            configurationArn: "string",
            disabled: false,
        },
        streamingNotificationTargets: ["string"],
    });
    
    type: aws:chime:VoiceConnectorStreaming
    properties:
        dataRetention: 0
        disabled: false
        mediaInsightsConfiguration:
            configurationArn: string
            disabled: false
        streamingNotificationTargets:
            - string
        voiceConnectorId: string
    

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

    DataRetention int
    The retention period, in hours, for the Amazon Kinesis data.
    VoiceConnectorId string
    The Amazon Chime Voice Connector ID.
    Disabled bool
    When true, media streaming to Amazon Kinesis is turned off. Default: false
    MediaInsightsConfiguration VoiceConnectorStreamingMediaInsightsConfiguration
    The media insights configuration. See media_insights_configuration.
    StreamingNotificationTargets List<string>
    The streaming notification targets. Valid Values: EventBridge | SNS | SQS
    DataRetention int
    The retention period, in hours, for the Amazon Kinesis data.
    VoiceConnectorId string
    The Amazon Chime Voice Connector ID.
    Disabled bool
    When true, media streaming to Amazon Kinesis is turned off. Default: false
    MediaInsightsConfiguration VoiceConnectorStreamingMediaInsightsConfigurationArgs
    The media insights configuration. See media_insights_configuration.
    StreamingNotificationTargets []string
    The streaming notification targets. Valid Values: EventBridge | SNS | SQS
    dataRetention Integer
    The retention period, in hours, for the Amazon Kinesis data.
    voiceConnectorId String
    The Amazon Chime Voice Connector ID.
    disabled Boolean
    When true, media streaming to Amazon Kinesis is turned off. Default: false
    mediaInsightsConfiguration VoiceConnectorStreamingMediaInsightsConfiguration
    The media insights configuration. See media_insights_configuration.
    streamingNotificationTargets List<String>
    The streaming notification targets. Valid Values: EventBridge | SNS | SQS
    dataRetention number
    The retention period, in hours, for the Amazon Kinesis data.
    voiceConnectorId string
    The Amazon Chime Voice Connector ID.
    disabled boolean
    When true, media streaming to Amazon Kinesis is turned off. Default: false
    mediaInsightsConfiguration VoiceConnectorStreamingMediaInsightsConfiguration
    The media insights configuration. See media_insights_configuration.
    streamingNotificationTargets string[]
    The streaming notification targets. Valid Values: EventBridge | SNS | SQS
    data_retention int
    The retention period, in hours, for the Amazon Kinesis data.
    voice_connector_id str
    The Amazon Chime Voice Connector ID.
    disabled bool
    When true, media streaming to Amazon Kinesis is turned off. Default: false
    media_insights_configuration VoiceConnectorStreamingMediaInsightsConfigurationArgs
    The media insights configuration. See media_insights_configuration.
    streaming_notification_targets Sequence[str]
    The streaming notification targets. Valid Values: EventBridge | SNS | SQS
    dataRetention Number
    The retention period, in hours, for the Amazon Kinesis data.
    voiceConnectorId String
    The Amazon Chime Voice Connector ID.
    disabled Boolean
    When true, media streaming to Amazon Kinesis is turned off. Default: false
    mediaInsightsConfiguration Property Map
    The media insights configuration. See media_insights_configuration.
    streamingNotificationTargets List<String>
    The streaming notification targets. Valid Values: EventBridge | SNS | SQS

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VoiceConnectorStreaming 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.

    Look up Existing VoiceConnectorStreaming Resource

    Get an existing VoiceConnectorStreaming 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?: VoiceConnectorStreamingState, opts?: CustomResourceOptions): VoiceConnectorStreaming
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            data_retention: Optional[int] = None,
            disabled: Optional[bool] = None,
            media_insights_configuration: Optional[VoiceConnectorStreamingMediaInsightsConfigurationArgs] = None,
            streaming_notification_targets: Optional[Sequence[str]] = None,
            voice_connector_id: Optional[str] = None) -> VoiceConnectorStreaming
    func GetVoiceConnectorStreaming(ctx *Context, name string, id IDInput, state *VoiceConnectorStreamingState, opts ...ResourceOption) (*VoiceConnectorStreaming, error)
    public static VoiceConnectorStreaming Get(string name, Input<string> id, VoiceConnectorStreamingState? state, CustomResourceOptions? opts = null)
    public static VoiceConnectorStreaming get(String name, Output<String> id, VoiceConnectorStreamingState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    DataRetention int
    The retention period, in hours, for the Amazon Kinesis data.
    Disabled bool
    When true, media streaming to Amazon Kinesis is turned off. Default: false
    MediaInsightsConfiguration VoiceConnectorStreamingMediaInsightsConfiguration
    The media insights configuration. See media_insights_configuration.
    StreamingNotificationTargets List<string>
    The streaming notification targets. Valid Values: EventBridge | SNS | SQS
    VoiceConnectorId string
    The Amazon Chime Voice Connector ID.
    DataRetention int
    The retention period, in hours, for the Amazon Kinesis data.
    Disabled bool
    When true, media streaming to Amazon Kinesis is turned off. Default: false
    MediaInsightsConfiguration VoiceConnectorStreamingMediaInsightsConfigurationArgs
    The media insights configuration. See media_insights_configuration.
    StreamingNotificationTargets []string
    The streaming notification targets. Valid Values: EventBridge | SNS | SQS
    VoiceConnectorId string
    The Amazon Chime Voice Connector ID.
    dataRetention Integer
    The retention period, in hours, for the Amazon Kinesis data.
    disabled Boolean
    When true, media streaming to Amazon Kinesis is turned off. Default: false
    mediaInsightsConfiguration VoiceConnectorStreamingMediaInsightsConfiguration
    The media insights configuration. See media_insights_configuration.
    streamingNotificationTargets List<String>
    The streaming notification targets. Valid Values: EventBridge | SNS | SQS
    voiceConnectorId String
    The Amazon Chime Voice Connector ID.
    dataRetention number
    The retention period, in hours, for the Amazon Kinesis data.
    disabled boolean
    When true, media streaming to Amazon Kinesis is turned off. Default: false
    mediaInsightsConfiguration VoiceConnectorStreamingMediaInsightsConfiguration
    The media insights configuration. See media_insights_configuration.
    streamingNotificationTargets string[]
    The streaming notification targets. Valid Values: EventBridge | SNS | SQS
    voiceConnectorId string
    The Amazon Chime Voice Connector ID.
    data_retention int
    The retention period, in hours, for the Amazon Kinesis data.
    disabled bool
    When true, media streaming to Amazon Kinesis is turned off. Default: false
    media_insights_configuration VoiceConnectorStreamingMediaInsightsConfigurationArgs
    The media insights configuration. See media_insights_configuration.
    streaming_notification_targets Sequence[str]
    The streaming notification targets. Valid Values: EventBridge | SNS | SQS
    voice_connector_id str
    The Amazon Chime Voice Connector ID.
    dataRetention Number
    The retention period, in hours, for the Amazon Kinesis data.
    disabled Boolean
    When true, media streaming to Amazon Kinesis is turned off. Default: false
    mediaInsightsConfiguration Property Map
    The media insights configuration. See media_insights_configuration.
    streamingNotificationTargets List<String>
    The streaming notification targets. Valid Values: EventBridge | SNS | SQS
    voiceConnectorId String
    The Amazon Chime Voice Connector ID.

    Supporting Types

    VoiceConnectorStreamingMediaInsightsConfiguration, VoiceConnectorStreamingMediaInsightsConfigurationArgs

    ConfigurationArn string
    The media insights configuration that will be invoked by the Voice Connector.
    Disabled bool
    When true, the media insights configuration is not enabled. Defaults to false.
    ConfigurationArn string
    The media insights configuration that will be invoked by the Voice Connector.
    Disabled bool
    When true, the media insights configuration is not enabled. Defaults to false.
    configurationArn String
    The media insights configuration that will be invoked by the Voice Connector.
    disabled Boolean
    When true, the media insights configuration is not enabled. Defaults to false.
    configurationArn string
    The media insights configuration that will be invoked by the Voice Connector.
    disabled boolean
    When true, the media insights configuration is not enabled. Defaults to false.
    configuration_arn str
    The media insights configuration that will be invoked by the Voice Connector.
    disabled bool
    When true, the media insights configuration is not enabled. Defaults to false.
    configurationArn String
    The media insights configuration that will be invoked by the Voice Connector.
    disabled Boolean
    When true, the media insights configuration is not enabled. Defaults to false.

    Import

    Using pulumi import, import Chime Voice Connector Streaming using the voice_connector_id. For example:

    $ pulumi import aws:chime/voiceConnectorStreaming:VoiceConnectorStreaming default abcdef1ghij2klmno3pqr4
    

    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 aws Terraform Provider.
    aws logo
    AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi