Definition of AWS::MediaLive::CloudWatchAlarmTemplate Resource Type
Create CloudWatchAlarmTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
@overload
def CloudWatchAlarmTemplate(resource_name: str,
args: CloudWatchAlarmTemplateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CloudWatchAlarmTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
statistic: Optional[CloudWatchAlarmTemplateStatistic] = None,
treat_missing_data: Optional[CloudWatchAlarmTemplateTreatMissingData] = None,
threshold: Optional[float] = None,
evaluation_periods: Optional[float] = None,
target_resource_type: Optional[CloudWatchAlarmTemplateTargetResourceType] = None,
metric_name: Optional[str] = None,
comparison_operator: Optional[CloudWatchAlarmTemplateComparisonOperator] = None,
period: Optional[float] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
group_identifier: Optional[str] = None,
description: Optional[str] = None,
datapoints_to_alarm: Optional[float] = None)
type: aws-native:medialive:CloudWatchAlarmTemplate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_medialive_cloud_watch_alarm_template" "name" {
# resource properties
}
Parameters
- name
String
- The unique name of the resource.
- args
CloudWatchAlarmTemplateArgs
- The arguments to resource properties.
- options
CustomResourceOptions
- Bag of options to control resource's behavior.
CloudWatchAlarmTemplate Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CloudWatchAlarmTemplate resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the CloudWatchAlarmTemplate resource produces the following output properties:
- Arn
string
- A cloudwatch alarm template's ARN (Amazon Resource Name)
- AwsId
string
- A cloudwatch alarm template's id. AWS provided templates have ids that start with
aws- - CreatedAt
string
- The date and time of resource creation.
- GroupId
string
- A cloudwatch alarm template group's id. AWS provided template groups have ids that start with
aws- - Id
string
- The provider-assigned unique ID for this managed resource.
- Identifier
string
- ModifiedAt
string
- The date and time of latest resource modification.
- Arn
string
- A cloudwatch alarm template's ARN (Amazon Resource Name)
- AwsId
string
- A cloudwatch alarm template's id. AWS provided templates have ids that start with
aws- - CreatedAt
string
- The date and time of resource creation.
- GroupId
string
- A cloudwatch alarm template group's id. AWS provided template groups have ids that start with
aws- - Id
string
- The provider-assigned unique ID for this managed resource.
- Identifier
string
- ModifiedAt
string
- The date and time of latest resource modification.
- arn
string
- A cloudwatch alarm template's ARN (Amazon Resource Name)
- aws_id
string
- A cloudwatch alarm template's id. AWS provided templates have ids that start with
aws- - created_at
string
- The date and time of resource creation.
- group_id
string
- A cloudwatch alarm template group's id. AWS provided template groups have ids that start with
aws- - id
string
- The provider-assigned unique ID for this managed resource.
- identifier
string
- modified_at
string
- The date and time of latest resource modification.
- arn
String
- A cloudwatch alarm template's ARN (Amazon Resource Name)
- awsId
String
- A cloudwatch alarm template's id. AWS provided templates have ids that start with
aws- - createdAt
String
- The date and time of resource creation.
- groupId
String
- A cloudwatch alarm template group's id. AWS provided template groups have ids that start with
aws- - id
String
- The provider-assigned unique ID for this managed resource.
- identifier
String
- modifiedAt
String
- The date and time of latest resource modification.
- arn
string
- A cloudwatch alarm template's ARN (Amazon Resource Name)
- awsId
string
- A cloudwatch alarm template's id. AWS provided templates have ids that start with
aws- - createdAt
string
- The date and time of resource creation.
- groupId
string
- A cloudwatch alarm template group's id. AWS provided template groups have ids that start with
aws- - id
string
- The provider-assigned unique ID for this managed resource.
- identifier
string
- modifiedAt
string
- The date and time of latest resource modification.
- arn
str
- A cloudwatch alarm template's ARN (Amazon Resource Name)
- aws_id
str
- A cloudwatch alarm template's id. AWS provided templates have ids that start with
aws- - created_at
str
- The date and time of resource creation.
- group_id
str
- A cloudwatch alarm template group's id. AWS provided template groups have ids that start with
aws- - id
str
- The provider-assigned unique ID for this managed resource.
- identifier
str
- modified_at
str
- The date and time of latest resource modification.
- arn
String
- A cloudwatch alarm template's ARN (Amazon Resource Name)
- awsId
String
- A cloudwatch alarm template's id. AWS provided templates have ids that start with
aws- - createdAt
String
- The date and time of resource creation.
- groupId
String
- A cloudwatch alarm template group's id. AWS provided template groups have ids that start with
aws- - id
String
- The provider-assigned unique ID for this managed resource.
- identifier
String
- modifiedAt
String
- The date and time of latest resource modification.
Look up Existing CloudWatchAlarmTemplate Resource
Get an existing CloudWatchAlarmTemplate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
func GetCloudWatchAlarmTemplate(ctx *Context, name string, id IDInput, state *CloudWatchAlarmTemplateState, opts ...ResourceOption) (*CloudWatchAlarmTemplate, error)
public static CloudWatchAlarmTemplate get(String name, Output<String> id, CustomResourceOptions options)
resources: existingCloudWatchAlarmTemplate: type: aws-native:medialive:CloudWatchAlarmTemplate get: id: ${id}
import {
to = aws-native_medialive_cloud_watch_alarm_template.example
id = "${id}"
}
- name
string
- The unique name of the resulting resource.
- id
Input<ID>
- The unique provider ID of the resource to look up.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
str
- The unique name of the resulting resource.
- id
str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id
IDInput
- The unique provider ID of the resource to look up.
- state
CloudWatchAlarmTemplateState
- Pass nil. This resource has no state arguments.
- opts
ResourceOption
- Bag of options to control resource's behavior.
- name
string
- The unique name of the resulting resource.
- id
Input<string>
- The unique provider ID of the resource to look up.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- name
String
- The unique name of the resulting resource.
- id
Output<String>
- The unique provider ID of the resource to look up.
- options
CustomResourceOptions
- Bag of options to control resource's behavior.
Supporting Types
CloudWatchAlarmTemplateComparisonOperator
The comparison operator used to compare the specified statistic and the threshold.
| Name | Value |
|---|
| GreaterThanOrEqualToThreshold | GreaterThanOrEqualToThreshold |
| GreaterThanThreshold | GreaterThanThreshold |
| LessThanThreshold | LessThanThreshold |
| LessThanOrEqualToThreshold | LessThanOrEqualToThreshold |
| Name | Value |
|---|
| CloudWatchAlarmTemplateComparisonOperatorGreaterThanOrEqualToThreshold | GreaterThanOrEqualToThreshold |
| CloudWatchAlarmTemplateComparisonOperatorGreaterThanThreshold | GreaterThanThreshold |
| CloudWatchAlarmTemplateComparisonOperatorLessThanThreshold | LessThanThreshold |
| CloudWatchAlarmTemplateComparisonOperatorLessThanOrEqualToThreshold | LessThanOrEqualToThreshold |
| Value |
|---|
GreaterThanOrEqualToThreshold |
GreaterThanThreshold |
LessThanThreshold |
LessThanOrEqualToThreshold |
| Name | Value |
|---|
| GreaterThanOrEqualToThreshold | GreaterThanOrEqualToThreshold |
| GreaterThanThreshold | GreaterThanThreshold |
| LessThanThreshold | LessThanThreshold |
| LessThanOrEqualToThreshold | LessThanOrEqualToThreshold |
| Name | Value |
|---|
| GreaterThanOrEqualToThreshold | GreaterThanOrEqualToThreshold |
| GreaterThanThreshold | GreaterThanThreshold |
| LessThanThreshold | LessThanThreshold |
| LessThanOrEqualToThreshold | LessThanOrEqualToThreshold |
| Name | Value |
|---|
| GREATER_THAN_OR_EQUAL_TO_THRESHOLD | GreaterThanOrEqualToThreshold |
| GREATER_THAN_THRESHOLD | GreaterThanThreshold |
| LESS_THAN_THRESHOLD | LessThanThreshold |
| LESS_THAN_OR_EQUAL_TO_THRESHOLD | LessThanOrEqualToThreshold |
| Value |
|---|
GreaterThanOrEqualToThreshold |
GreaterThanThreshold |
LessThanThreshold |
LessThanOrEqualToThreshold |
CloudWatchAlarmTemplateStatistic
The statistic to apply to the alarm's metric data.
| Name | Value |
|---|
| SampleCount | SampleCount |
| Average | Average |
| Sum | Sum |
| Minimum | Minimum |
| Maximum | Maximum |
| Name | Value |
|---|
| CloudWatchAlarmTemplateStatisticSampleCount | SampleCount |
| CloudWatchAlarmTemplateStatisticAverage | Average |
| CloudWatchAlarmTemplateStatisticSum | Sum |
| CloudWatchAlarmTemplateStatisticMinimum | Minimum |
| CloudWatchAlarmTemplateStatisticMaximum | Maximum |
| Value |
|---|
SampleCount |
Average |
Sum |
Minimum |
Maximum |
| Name | Value |
|---|
| SampleCount | SampleCount |
| Average | Average |
| Sum | Sum |
| Minimum | Minimum |
| Maximum | Maximum |
| Name | Value |
|---|
| SampleCount | SampleCount |
| Average | Average |
| Sum | Sum |
| Minimum | Minimum |
| Maximum | Maximum |
| Name | Value |
|---|
| SAMPLE_COUNT | SampleCount |
| AVERAGE | Average |
| SUM | Sum |
| MINIMUM | Minimum |
| MAXIMUM | Maximum |
| Value |
|---|
SampleCount |
Average |
Sum |
Minimum |
Maximum |
CloudWatchAlarmTemplateTargetResourceType
The resource type this template should dynamically generate cloudwatch metric alarms for.
| Name | Value |
|---|
| CloudfrontDistribution | CLOUDFRONT_DISTRIBUTION |
| ElementalInferenceFeed | ELEMENTAL_INFERENCE_FEED |
| MedialiveMultiplex | MEDIALIVE_MULTIPLEX |
| MedialiveChannel | MEDIALIVE_CHANNEL |
| MedialiveInputDevice | MEDIALIVE_INPUT_DEVICE |
| MediapackageChannel | MEDIAPACKAGE_CHANNEL |
| MediapackageOriginEndpoint | MEDIAPACKAGE_ORIGIN_ENDPOINT |
| MediaconnectFlow | MEDIACONNECT_FLOW |
| MediatailorPlaybackConfiguration | MEDIATAILOR_PLAYBACK_CONFIGURATION |
| S3Bucket | S3_BUCKET |
| Name | Value |
|---|
| CloudWatchAlarmTemplateTargetResourceTypeCloudfrontDistribution | CLOUDFRONT_DISTRIBUTION |
| CloudWatchAlarmTemplateTargetResourceTypeElementalInferenceFeed | ELEMENTAL_INFERENCE_FEED |
| CloudWatchAlarmTemplateTargetResourceTypeMedialiveMultiplex | MEDIALIVE_MULTIPLEX |
| CloudWatchAlarmTemplateTargetResourceTypeMedialiveChannel | MEDIALIVE_CHANNEL |
| CloudWatchAlarmTemplateTargetResourceTypeMedialiveInputDevice | MEDIALIVE_INPUT_DEVICE |
| CloudWatchAlarmTemplateTargetResourceTypeMediapackageChannel | MEDIAPACKAGE_CHANNEL |
| CloudWatchAlarmTemplateTargetResourceTypeMediapackageOriginEndpoint | MEDIAPACKAGE_ORIGIN_ENDPOINT |
| CloudWatchAlarmTemplateTargetResourceTypeMediaconnectFlow | MEDIACONNECT_FLOW |
| CloudWatchAlarmTemplateTargetResourceTypeMediatailorPlaybackConfiguration | MEDIATAILOR_PLAYBACK_CONFIGURATION |
| CloudWatchAlarmTemplateTargetResourceTypeS3Bucket | S3_BUCKET |
| Value |
|---|
CLOUDFRONT_DISTRIBUTION |
ELEMENTAL_INFERENCE_FEED |
MEDIALIVE_MULTIPLEX |
MEDIALIVE_CHANNEL |
MEDIALIVE_INPUT_DEVICE |
MEDIAPACKAGE_CHANNEL |
MEDIAPACKAGE_ORIGIN_ENDPOINT |
MEDIACONNECT_FLOW |
MEDIATAILOR_PLAYBACK_CONFIGURATION |
S3_BUCKET |
| Name | Value |
|---|
| CloudfrontDistribution | CLOUDFRONT_DISTRIBUTION |
| ElementalInferenceFeed | ELEMENTAL_INFERENCE_FEED |
| MedialiveMultiplex | MEDIALIVE_MULTIPLEX |
| MedialiveChannel | MEDIALIVE_CHANNEL |
| MedialiveInputDevice | MEDIALIVE_INPUT_DEVICE |
| MediapackageChannel | MEDIAPACKAGE_CHANNEL |
| MediapackageOriginEndpoint | MEDIAPACKAGE_ORIGIN_ENDPOINT |
| MediaconnectFlow | MEDIACONNECT_FLOW |
| MediatailorPlaybackConfiguration | MEDIATAILOR_PLAYBACK_CONFIGURATION |
| S3Bucket | S3_BUCKET |
| Name | Value |
|---|
| CloudfrontDistribution | CLOUDFRONT_DISTRIBUTION |
| ElementalInferenceFeed | ELEMENTAL_INFERENCE_FEED |
| MedialiveMultiplex | MEDIALIVE_MULTIPLEX |
| MedialiveChannel | MEDIALIVE_CHANNEL |
| MedialiveInputDevice | MEDIALIVE_INPUT_DEVICE |
| MediapackageChannel | MEDIAPACKAGE_CHANNEL |
| MediapackageOriginEndpoint | MEDIAPACKAGE_ORIGIN_ENDPOINT |
| MediaconnectFlow | MEDIACONNECT_FLOW |
| MediatailorPlaybackConfiguration | MEDIATAILOR_PLAYBACK_CONFIGURATION |
| S3Bucket | S3_BUCKET |
| Name | Value |
|---|
| CLOUDFRONT_DISTRIBUTION | CLOUDFRONT_DISTRIBUTION |
| ELEMENTAL_INFERENCE_FEED | ELEMENTAL_INFERENCE_FEED |
| MEDIALIVE_MULTIPLEX | MEDIALIVE_MULTIPLEX |
| MEDIALIVE_CHANNEL | MEDIALIVE_CHANNEL |
| MEDIALIVE_INPUT_DEVICE | MEDIALIVE_INPUT_DEVICE |
| MEDIAPACKAGE_CHANNEL | MEDIAPACKAGE_CHANNEL |
| MEDIAPACKAGE_ORIGIN_ENDPOINT | MEDIAPACKAGE_ORIGIN_ENDPOINT |
| MEDIACONNECT_FLOW | MEDIACONNECT_FLOW |
| MEDIATAILOR_PLAYBACK_CONFIGURATION | MEDIATAILOR_PLAYBACK_CONFIGURATION |
| S3_BUCKET | S3_BUCKET |
| Value |
|---|
CLOUDFRONT_DISTRIBUTION |
ELEMENTAL_INFERENCE_FEED |
MEDIALIVE_MULTIPLEX |
MEDIALIVE_CHANNEL |
MEDIALIVE_INPUT_DEVICE |
MEDIAPACKAGE_CHANNEL |
MEDIAPACKAGE_ORIGIN_ENDPOINT |
MEDIACONNECT_FLOW |
MEDIATAILOR_PLAYBACK_CONFIGURATION |
S3_BUCKET |
CloudWatchAlarmTemplateTreatMissingData
Specifies how missing data points are treated when evaluating the alarm's condition.
| Name | Value |
|---|
| NotBreaching | notBreaching |
| Breaching | breaching |
| Ignore | ignore |
| Missing | missing |
| Name | Value |
|---|
| CloudWatchAlarmTemplateTreatMissingDataNotBreaching | notBreaching |
| CloudWatchAlarmTemplateTreatMissingDataBreaching | breaching |
| CloudWatchAlarmTemplateTreatMissingDataIgnore | ignore |
| CloudWatchAlarmTemplateTreatMissingDataMissing | missing |
| Value |
|---|
notBreaching |
breaching |
ignore |
missing |
| Name | Value |
|---|
| NotBreaching | notBreaching |
| Breaching | breaching |
| Ignore | ignore |
| Missing | missing |
| Name | Value |
|---|
| NotBreaching | notBreaching |
| Breaching | breaching |
| Ignore | ignore |
| Missing | missing |
| Name | Value |
|---|
| NOT_BREACHING | notBreaching |
| BREACHING | breaching |
| IGNORE | ignore |
| MISSING | missing |
| Value |
|---|
notBreaching |
breaching |
ignore |
missing |
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0