com.pulumi.aws.chimesdkmediapipelines.MediaInsightsPipelineConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
The newest version!
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.chimesdkmediapipelines;
import com.pulumi.aws.Utilities;
import com.pulumi.aws.chimesdkmediapipelines.MediaInsightsPipelineConfigurationArgs;
import com.pulumi.aws.chimesdkmediapipelines.inputs.MediaInsightsPipelineConfigurationState;
import com.pulumi.aws.chimesdkmediapipelines.outputs.MediaInsightsPipelineConfigurationElement;
import com.pulumi.aws.chimesdkmediapipelines.outputs.MediaInsightsPipelineConfigurationRealTimeAlertConfiguration;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Resource for managing an AWS Chime SDK Media Pipelines Media Insights Pipeline Configuration.
* Consult the [Call analytics developer guide](https://docs.aws.amazon.com/chime-sdk/latest/dg/call-analytics.html) for more detailed information about usage.
*
* ## Example Usage
*
* ### Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.kinesis.Stream;
* import com.pulumi.aws.kinesis.StreamArgs;
* 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.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 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 Stream("example", StreamArgs.builder()
* .name("example")
* .shardCount(2)
* .build());
*
* final var mediaPipelinesAssumeRole = 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 callAnalyticsRole = new Role("callAnalyticsRole", RoleArgs.builder()
* .name("CallAnalyticsRole")
* .assumeRolePolicy(mediaPipelinesAssumeRole.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json()))
* .build());
*
* var myConfiguration = new MediaInsightsPipelineConfiguration("myConfiguration", MediaInsightsPipelineConfigurationArgs.builder()
* .name("MyBasicConfiguration")
* .resourceAccessRoleArn(callAnalyticsRole.arn())
* .elements(
* MediaInsightsPipelineConfigurationElementArgs.builder()
* .type("AmazonTranscribeCallAnalyticsProcessor")
* .amazonTranscribeCallAnalyticsProcessorConfiguration(MediaInsightsPipelineConfigurationElementAmazonTranscribeCallAnalyticsProcessorConfigurationArgs.builder()
* .languageCode("en-US")
* .build())
* .build(),
* MediaInsightsPipelineConfigurationElementArgs.builder()
* .type("KinesisDataStreamSink")
* .kinesisDataStreamSinkConfiguration(MediaInsightsPipelineConfigurationElementKinesisDataStreamSinkConfigurationArgs.builder()
* .insightsTarget(example.arn())
* .build())
* .build())
* .tags(Map.ofEntries(
* Map.entry("Key1", "Value1"),
* Map.entry("Key2", "Value2")
* ))
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* - The required policies on `call_analytics_role` will vary based on the selected processors. See [Call analytics resource access role](https://docs.aws.amazon.com/chime-sdk/latest/dg/ca-resource-access-role.html) for directions on choosing appropriate policies.
*
* ### Transcribe Call Analytics processor usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* 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.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.MediaInsightsPipelineConfigurationElementAmazonTranscribeCallAnalyticsProcessorConfigurationPostCallAnalyticsSettingsArgs;
* import com.pulumi.aws.chimesdkmediapipelines.inputs.MediaInsightsPipelineConfigurationElementKinesisDataStreamSinkConfigurationArgs;
* 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) {
* final var transcribeAssumeRole = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder()
* .statements(GetPolicyDocumentStatementArgs.builder()
* .effect("Allow")
* .principals(GetPolicyDocumentStatementPrincipalArgs.builder()
* .type("Service")
* .identifiers("transcribe.amazonaws.com")
* .build())
* .actions("sts:AssumeRole")
* .build())
* .build());
*
* var postCallRole = new Role("postCallRole", RoleArgs.builder()
* .name("PostCallAccessRole")
* .assumeRolePolicy(transcribeAssumeRole.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json()))
* .build());
*
* var myConfiguration = new MediaInsightsPipelineConfiguration("myConfiguration", MediaInsightsPipelineConfigurationArgs.builder()
* .name("MyCallAnalyticsConfiguration")
* .resourceAccessRoleArn(exampleAwsIamRole.arn())
* .elements(
* MediaInsightsPipelineConfigurationElementArgs.builder()
* .type("AmazonTranscribeCallAnalyticsProcessor")
* .amazonTranscribeCallAnalyticsProcessorConfiguration(MediaInsightsPipelineConfigurationElementAmazonTranscribeCallAnalyticsProcessorConfigurationArgs.builder()
* .callAnalyticsStreamCategories(
* "category_1",
* "category_2")
* .contentRedactionType("PII")
* .enablePartialResultsStabilization(true)
* .filterPartialResults(true)
* .languageCode("en-US")
* .languageModelName("MyLanguageModel")
* .partialResultsStability("high")
* .piiEntityTypes("ADDRESS,BANK_ACCOUNT_NUMBER")
* .postCallAnalyticsSettings(MediaInsightsPipelineConfigurationElementAmazonTranscribeCallAnalyticsProcessorConfigurationPostCallAnalyticsSettingsArgs.builder()
* .contentRedactionOutput("redacted")
* .dataAccessRoleArn(postCallRole.arn())
* .outputEncryptionKmsKeyId("MyKmsKeyId")
* .outputLocation("s3://MyBucket")
* .build())
* .vocabularyFilterMethod("mask")
* .vocabularyFilterName("MyVocabularyFilter")
* .vocabularyName("MyVocabulary")
* .build())
* .build(),
* MediaInsightsPipelineConfigurationElementArgs.builder()
* .type("KinesisDataStreamSink")
* .kinesisDataStreamSinkConfiguration(MediaInsightsPipelineConfigurationElementKinesisDataStreamSinkConfigurationArgs.builder()
* .insightsTarget(example.arn())
* .build())
* .build())
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ### Real time alerts usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* 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.chimesdkmediapipelines.inputs.MediaInsightsPipelineConfigurationRealTimeAlertConfigurationArgs;
* 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 myConfiguration = new MediaInsightsPipelineConfiguration("myConfiguration", MediaInsightsPipelineConfigurationArgs.builder()
* .name("MyRealTimeAlertConfiguration")
* .resourceAccessRoleArn(callAnalyticsRole.arn())
* .elements(
* MediaInsightsPipelineConfigurationElementArgs.builder()
* .type("AmazonTranscribeCallAnalyticsProcessor")
* .amazonTranscribeCallAnalyticsProcessorConfiguration(MediaInsightsPipelineConfigurationElementAmazonTranscribeCallAnalyticsProcessorConfigurationArgs.builder()
* .languageCode("en-US")
* .build())
* .build(),
* MediaInsightsPipelineConfigurationElementArgs.builder()
* .type("KinesisDataStreamSink")
* .kinesisDataStreamSinkConfiguration(MediaInsightsPipelineConfigurationElementKinesisDataStreamSinkConfigurationArgs.builder()
* .insightsTarget(example.arn())
* .build())
* .build())
* .realTimeAlertConfiguration(MediaInsightsPipelineConfigurationRealTimeAlertConfigurationArgs.builder()
* .disabled(false)
* .rules(
* MediaInsightsPipelineConfigurationRealTimeAlertConfigurationRuleArgs.builder()
* .type("IssueDetection")
* .issueDetectionConfiguration(MediaInsightsPipelineConfigurationRealTimeAlertConfigurationRuleIssueDetectionConfigurationArgs.builder()
* .ruleName("MyIssueDetectionRule")
* .build())
* .build(),
* MediaInsightsPipelineConfigurationRealTimeAlertConfigurationRuleArgs.builder()
* .type("KeywordMatch")
* .keywordMatchConfiguration(MediaInsightsPipelineConfigurationRealTimeAlertConfigurationRuleKeywordMatchConfigurationArgs.builder()
* .keywords(
* "keyword1",
* "keyword2")
* .negate(false)
* .ruleName("MyKeywordMatchRule")
* .build())
* .build(),
* MediaInsightsPipelineConfigurationRealTimeAlertConfigurationRuleArgs.builder()
* .type("Sentiment")
* .sentimentConfiguration(MediaInsightsPipelineConfigurationRealTimeAlertConfigurationRuleSentimentConfigurationArgs.builder()
* .ruleName("MySentimentRule")
* .sentimentType("NEGATIVE")
* .timePeriod(60)
* .build())
* .build())
* .build())
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ### Transcribe processor usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* 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.MediaInsightsPipelineConfigurationElementAmazonTranscribeProcessorConfigurationArgs;
* import com.pulumi.aws.chimesdkmediapipelines.inputs.MediaInsightsPipelineConfigurationElementKinesisDataStreamSinkConfigurationArgs;
* 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 myConfiguration = new MediaInsightsPipelineConfiguration("myConfiguration", MediaInsightsPipelineConfigurationArgs.builder()
* .name("MyTranscribeConfiguration")
* .resourceAccessRoleArn(exampleAwsIamRole.arn())
* .elements(
* MediaInsightsPipelineConfigurationElementArgs.builder()
* .type("AmazonTranscribeProcessor")
* .amazonTranscribeProcessorConfiguration(MediaInsightsPipelineConfigurationElementAmazonTranscribeProcessorConfigurationArgs.builder()
* .contentIdentificationType("PII")
* .enablePartialResultsStabilization(true)
* .filterPartialResults(true)
* .languageCode("en-US")
* .languageModelName("MyLanguageModel")
* .partialResultsStability("high")
* .piiEntityTypes("ADDRESS,BANK_ACCOUNT_NUMBER")
* .showSpeakerLabel(true)
* .vocabularyFilterMethod("mask")
* .vocabularyFilterName("MyVocabularyFilter")
* .vocabularyName("MyVocabulary")
* .build())
* .build(),
* MediaInsightsPipelineConfigurationElementArgs.builder()
* .type("KinesisDataStreamSink")
* .kinesisDataStreamSinkConfiguration(MediaInsightsPipelineConfigurationElementKinesisDataStreamSinkConfigurationArgs.builder()
* .insightsTarget(example.arn())
* .build())
* .build())
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ### Voice analytics processor usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* 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.MediaInsightsPipelineConfigurationElementVoiceAnalyticsProcessorConfigurationArgs;
* import com.pulumi.aws.chimesdkmediapipelines.inputs.MediaInsightsPipelineConfigurationElementLambdaFunctionSinkConfigurationArgs;
* import com.pulumi.aws.chimesdkmediapipelines.inputs.MediaInsightsPipelineConfigurationElementSnsTopicSinkConfigurationArgs;
* import com.pulumi.aws.chimesdkmediapipelines.inputs.MediaInsightsPipelineConfigurationElementSqsQueueSinkConfigurationArgs;
* import com.pulumi.aws.chimesdkmediapipelines.inputs.MediaInsightsPipelineConfigurationElementKinesisDataStreamSinkConfigurationArgs;
* 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 myConfiguration = new MediaInsightsPipelineConfiguration("myConfiguration", MediaInsightsPipelineConfigurationArgs.builder()
* .name("MyVoiceAnalyticsConfiguration")
* .resourceAccessRoleArn(example.arn())
* .elements(
* MediaInsightsPipelineConfigurationElementArgs.builder()
* .type("VoiceAnalyticsProcessor")
* .voiceAnalyticsProcessorConfiguration(MediaInsightsPipelineConfigurationElementVoiceAnalyticsProcessorConfigurationArgs.builder()
* .speakerSearchStatus("Enabled")
* .voiceToneAnalysisStatus("Enabled")
* .build())
* .build(),
* MediaInsightsPipelineConfigurationElementArgs.builder()
* .type("LambdaFunctionSink")
* .lambdaFunctionSinkConfiguration(MediaInsightsPipelineConfigurationElementLambdaFunctionSinkConfigurationArgs.builder()
* .insightsTarget("arn:aws:lambda:us-west-2:1111111111:function:MyFunction")
* .build())
* .build(),
* MediaInsightsPipelineConfigurationElementArgs.builder()
* .type("SnsTopicSink")
* .snsTopicSinkConfiguration(MediaInsightsPipelineConfigurationElementSnsTopicSinkConfigurationArgs.builder()
* .insightsTarget("arn:aws:sns:us-west-2:1111111111:topic/MyTopic")
* .build())
* .build(),
* MediaInsightsPipelineConfigurationElementArgs.builder()
* .type("SqsQueueSink")
* .sqsQueueSinkConfiguration(MediaInsightsPipelineConfigurationElementSqsQueueSinkConfigurationArgs.builder()
* .insightsTarget("arn:aws:sqs:us-west-2:1111111111:queue/MyQueue")
* .build())
* .build(),
* MediaInsightsPipelineConfigurationElementArgs.builder()
* .type("KinesisDataStreamSink")
* .kinesisDataStreamSinkConfiguration(MediaInsightsPipelineConfigurationElementKinesisDataStreamSinkConfigurationArgs.builder()
* .insightsTarget(test.arn())
* .build())
* .build())
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ### S3 Recording sink usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* 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.MediaInsightsPipelineConfigurationElementS3RecordingSinkConfigurationArgs;
* 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 myConfiguration = new MediaInsightsPipelineConfiguration("myConfiguration", MediaInsightsPipelineConfigurationArgs.builder()
* .name("MyS3RecordingConfiguration")
* .resourceAccessRoleArn(example.arn())
* .elements(MediaInsightsPipelineConfigurationElementArgs.builder()
* .type("S3RecordingSink")
* .s3RecordingSinkConfiguration(MediaInsightsPipelineConfigurationElementS3RecordingSinkConfigurationArgs.builder()
* .destination("arn:aws:s3:::MyBucket")
* .build())
* .build())
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* Using `pulumi import`, import Chime SDK Media Pipelines Media Insights Pipeline Configuration using the `id`. For example:
*
* ```sh
* $ pulumi import aws:chimesdkmediapipelines/mediaInsightsPipelineConfiguration:MediaInsightsPipelineConfiguration example abcdef123456
* ```
*
*/
@ResourceType(type="aws:chimesdkmediapipelines/mediaInsightsPipelineConfiguration:MediaInsightsPipelineConfiguration")
public class MediaInsightsPipelineConfiguration extends com.pulumi.resources.CustomResource {
/**
* ARN of the Media Insights Pipeline Configuration.
*
*/
@Export(name="arn", refs={String.class}, tree="[0]")
private Output arn;
/**
* @return ARN of the Media Insights Pipeline Configuration.
*
*/
public Output arn() {
return this.arn;
}
/**
* Collection of processors and sinks to transform media and deliver data.
*
*/
@Export(name="elements", refs={List.class,MediaInsightsPipelineConfigurationElement.class}, tree="[0,1]")
private Output> elements;
/**
* @return Collection of processors and sinks to transform media and deliver data.
*
*/
public Output> elements() {
return this.elements;
}
/**
* Configuration name.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return Configuration name.
*
*/
public Output name() {
return this.name;
}
/**
* Configuration for real-time alert rules to send EventBridge notifications when certain conditions are met.
*
*/
@Export(name="realTimeAlertConfiguration", refs={MediaInsightsPipelineConfigurationRealTimeAlertConfiguration.class}, tree="[0]")
private Output* @Nullable */ MediaInsightsPipelineConfigurationRealTimeAlertConfiguration> realTimeAlertConfiguration;
/**
* @return Configuration for real-time alert rules to send EventBridge notifications when certain conditions are met.
*
*/
public Output> realTimeAlertConfiguration() {
return Codegen.optional(this.realTimeAlertConfiguration);
}
/**
* ARN of IAM Role used by service to invoke processors and sinks specified by configuration elements.
*
*/
@Export(name="resourceAccessRoleArn", refs={String.class}, tree="[0]")
private Output resourceAccessRoleArn;
/**
* @return ARN of IAM Role used by service to invoke processors and sinks specified by configuration elements.
*
*/
public Output resourceAccessRoleArn() {
return this.resourceAccessRoleArn;
}
/**
* Key-value map of tags for the resource.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return Key-value map of tags for the resource.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
@Export(name="tagsAll", refs={Map.class,String.class}, tree="[0,1,1]")
private Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy