AWS Fundamentals Logo
AWS Fundamentals
AWS::CloudWatch::MetricStream

CloudWatch MetricStream

Resource Type definition for Metric Stream

Properties

9 configurable properties. Click a row to see details.

Filter:
PropertyTypeFlags
ExcludeFilters
Array<MetricStreamFilter>
FirehoseArn
string
IncludeFilters
Array<MetricStreamFilter>
IncludeLinkedAccountsMetrics
boolean
Name
string
Create-only
OutputFormat
string
RoleArn
string
StatisticsConfigurations
Array<MetricStreamStatisticsConfiguration>
Tags
Array<Tag>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
ArnstringAmazon Resource Name of the metric stream.
CreationDateAny | AnyThe date of creation of the metric stream.
LastUpdateDateAny | AnyThe date of the last update of the metric stream.
StatestringDisplays the state of the Metric Stream.

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::CloudWatch::MetricStream

Resources:
  MyResource:
    Type: AWS::CloudWatch::MetricStream
    Properties:
      Tags:
        - Key: Environment
          Value: Production
      Name: !Ref "AWS::StackName"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

cloudwatch:PutMetricStreamcloudwatch:GetMetricStreamcloudwatch:TagResourceiam:PassRole

update

cloudwatch:PutMetricStreamcloudwatch:GetMetricStreamcloudwatch:TagResourcecloudwatch:UntagResourceiam:PassRole

delete

cloudwatch:DeleteMetricStreamcloudwatch:GetMetricStream

list

cloudwatch:ListMetricStreams

read

cloudwatch:GetMetricStreamcloudwatch:ListTagsForResource

Get the CloudWatch Cheat Sheet

Everything you need to know about CloudWatch on one page. HD quality, print-friendly.

Download Free Infographic

Quick Facts

ServiceCloudWatch
Properties13
Required0
TaggingSupported
Primary IDName

Supported Operations

CreateUpdateDeleteListRead

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

Name

External Links