A ChimeSDKVoice SIP Media Application is a managed object that passes values from a SIP rule to a target AWS Lambda function.
resource "aws_chimesdkvoice_sip_media_application" "example" {
aws_region = "us-east-1"
name = "example-sip-media-application"
endpoints {
lambda_arn = aws_lambda_function.test.arn
}
}
The following arguments are required:
aws_region
- (Required) The AWS Region in which the AWS Chime SDK Voice Sip Media Application is created.endpoints
- (Required) List of endpoints (Lambda Amazon Resource Names) specified for the SIP media application. Currently, only one endpoint is supported. See endpoints
.name
- (Required) The name of the AWS Chime SDK Voice Sip Media Application.The following arguments are optional:
tags
- (Optional) Key-value mapping of resource tags. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.endpoints
The endpoint assigned to the SIP media application.
lambda_arn
- (Required) Valid Amazon Resource Name (ARN) of the Lambda function, version, or alias. The function must be created in the same AWS Region as the SIP media application.This resource exports the following attributes in addition to the arguments above:
arn
- ARN (Amazon Resource Name) of the AWS Chime SDK Voice Sip Media Applicationid
- The SIP media application ID.tags_all
- Map of tags assigned to the resource, including those inherited from the provider default_tags
configuration block.In Terraform v1.5.0 and later, use an import
block to import a ChimeSDKVoice SIP Media Application using the id
. For example:
import {
to = aws_chimesdkvoice_sip_media_application.example
id = "abcdef123456"
}
Using terraform import
, import a ChimeSDKVoice SIP Media Application using the id
. For example:
% terraform import aws_chimesdkvoice_sip_media_application.example abcdef123456