Class CfnLinkMixinProps
Properties for CfnLinkPropsMixin.
Implements
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.Oam.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnLinkMixinProps : ICfnLinkMixinProps
Syntax (vb)
Public Class CfnLinkMixinProps Implements ICfnLinkMixinProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-oam-link.html
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.Mixins.Preview.AWS.Oam.Mixins;
var cfnLinkMixinProps = new CfnLinkMixinProps {
LabelTemplate = "labelTemplate",
LinkConfiguration = new LinkConfigurationProperty {
LogGroupConfiguration = new LinkFilterProperty {
Filter = "filter"
},
MetricConfiguration = new LinkFilterProperty {
Filter = "filter"
}
},
ResourceTypes = new [] { "resourceTypes" },
SinkIdentifier = "sinkIdentifier",
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
}
};
Synopsis
Constructors
| CfnLinkMixinProps() | Properties for CfnLinkPropsMixin. |
Properties
| LabelTemplate | Specify a friendly human-readable name to use to identify this source account when you are viewing data from it in the monitoring account. |
| LinkConfiguration | Use this structure to optionally create filters that specify that only some metric namespaces or log groups are to be shared from the source account to the monitoring account. |
| ResourceTypes | An array of strings that define which types of data that the source account shares with the monitoring account. |
| SinkIdentifier | The ARN of the sink in the monitoring account that you want to link to. |
| Tags | An array of key-value pairs to apply to the link. |
Constructors
CfnLinkMixinProps()
Properties for CfnLinkPropsMixin.
public CfnLinkMixinProps()
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-oam-link.html
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.Mixins.Preview.AWS.Oam.Mixins;
var cfnLinkMixinProps = new CfnLinkMixinProps {
LabelTemplate = "labelTemplate",
LinkConfiguration = new LinkConfigurationProperty {
LogGroupConfiguration = new LinkFilterProperty {
Filter = "filter"
},
MetricConfiguration = new LinkFilterProperty {
Filter = "filter"
}
},
ResourceTypes = new [] { "resourceTypes" },
SinkIdentifier = "sinkIdentifier",
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
}
};
Properties
LabelTemplate
Specify a friendly human-readable name to use to identify this source account when you are viewing data from it in the monitoring account.
public string? LabelTemplate { get; set; }
Property Value
Remarks
You can include the following variables in your template:
In the and Regions, the only supported option is to use custom labels, and the <code>$AccountName</code> , <code>$AccountEmail</code> , and <code>$AccountEmailNoDomain</code> variables all resolve as <em>account-id</em> instead of the specified variable.
LinkConfiguration
Use this structure to optionally create filters that specify that only some metric namespaces or log groups are to be shared from the source account to the monitoring account.
public object? LinkConfiguration { get; set; }
Property Value
Remarks
ResourceTypes
An array of strings that define which types of data that the source account shares with the monitoring account.
public string[]? ResourceTypes { get; set; }
Property Value
string[]
Remarks
Valid values are AWS::CloudWatch::Metric | AWS::Logs::LogGroup | AWS::XRay::Trace | AWS::ApplicationInsights::Application | AWS::InternetMonitor::Monitor .
SinkIdentifier
The ARN of the sink in the monitoring account that you want to link to.
public string? SinkIdentifier { get; set; }
Property Value
Remarks
You can use ListSinks to find the ARNs of sinks.
Tags
An array of key-value pairs to apply to the link.
public IDictionary<string, string>? Tags { get; set; }
Property Value
Remarks
For more information, see Tag .