Class CfnMonitoringSubscription
A CloudFormation AWS::CloudFront::MonitoringSubscription
.
Inherited Members
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.AWS.CloudFront.dll
Syntax (csharp)
public class CfnMonitoringSubscription : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnMonitoringSubscription
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
A monitoring subscription. This structure contains information about whether additional CloudWatch metrics are enabled for a given CloudFront distribution.
CloudformationResource: AWS::CloudFront::MonitoringSubscription
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;
var cfnMonitoringSubscription = new CfnMonitoringSubscription(this, "MyCfnMonitoringSubscription", new CfnMonitoringSubscriptionProps {
DistributionId = "distributionId",
MonitoringSubscription = new MonitoringSubscriptionProperty {
RealtimeMetricsSubscriptionConfig = new RealtimeMetricsSubscriptionConfigProperty {
RealtimeMetricsSubscriptionStatus = "realtimeMetricsSubscriptionStatus"
}
}
});
Synopsis
Constructors
CfnMonitoringSubscription(Construct, String, ICfnMonitoringSubscriptionProps) | Create a new |
CfnMonitoringSubscription(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnMonitoringSubscription(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
DistributionId | The ID of the distribution that you are enabling metrics for. |
MonitoringSubscription | A subscription configuration for additional CloudWatch metrics. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnMonitoringSubscription(Construct, String, ICfnMonitoringSubscriptionProps)
Create a new AWS::CloudFront::MonitoringSubscription
.
public CfnMonitoringSubscription(Construct scope, string id, ICfnMonitoringSubscriptionProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnMonitoringSubscriptionProps
- resource properties.
CfnMonitoringSubscription(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnMonitoringSubscription(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnMonitoringSubscription(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnMonitoringSubscription(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
DistributionId
The ID of the distribution that you are enabling metrics for.
public virtual string DistributionId { get; set; }
Property Value
System.String
Remarks
MonitoringSubscription
A subscription configuration for additional CloudWatch metrics.
public virtual object MonitoringSubscription { get; set; }
Property Value
System.Object
Remarks
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
- tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>