CfnMetricStreamPropsMixin Mixin
Creates or updates a metric stream.
Metrics streams can automatically stream CloudWatch metrics to AWS destinations including Amazon S3 and to many third-party solutions. For more information, see Metric streams .
To create a metric stream, you must be logged on to an account that has the iam:PassRole permission and either the CloudWatchFullAccess policy or the cloudwatch:PutMetricStream permission.
When you create or update a metric stream, you choose one of the following:
- Stream metrics from all metric namespaces in the account.
- Stream metrics from all metric namespaces in the account, except for the namespaces that you list in
ExcludeFilters. - Stream metrics from only the metric namespaces that you list in
IncludeFilters.
When you create a metric stream, the stream is created in the running state. If you update an existing metric stream, the state does not change.
If you create a metric stream in an account that has been set up as a monitoring account in CloudWatch cross-account observability, you can choose whether to include metrics from linked source accounts in the metric stream.
Initializer
new CfnMetricStreamPropsMixin(props: CfnMetricStreamMixinProps, options?: CfnPropertyMixinOptions)
CfnMetricStreamPropsMixin(props: CfnMetricStreamMixinProps, options: typing.Optional[CfnPropertyMixinOptions] = None)
new CfnMetricStreamPropsMixin(CfnMetricStreamMixinProps props, CfnPropertyMixinOptions options)
new CfnMetricStreamPropsMixin(CfnMetricStreamMixinProps props, CfnPropertyMixinOptions? options = null)
NewCfnMetricStreamPropsMixin(Props CfnMetricStreamMixinProps, Options CfnPropertyMixinOptions)
Methods
applyTo(construct: IConstruct): voiddef apply_to(self, construct: IConstruct) -> Nonepublic void applyTo(IConstruct construct)public void ApplyTo(IConstruct construct)func ApplyTo(Construct IConstruct)#isMixin(x: any): boolean@staticmethod def is_mixin(x: Any) -> boolpublic static Boolean isMixin(Object x)public static bool IsMixin(object x)func IsMixin(X interface{}) *boolstatic#1 parameter · returns
Parameters
xxxxX— Any object.
Returns: true if x is an object created from a class which extends Mixin.
supports(construct: IConstruct): booleandef supports(self, construct: IConstruct) -> boolpublic Boolean supports(IConstruct construct)public bool Supports(IConstruct construct)func Supports(Construct IConstruct) *bool#