Class CfnLinkProps
Properties for defining a CfnLink
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Oam
Assembly: Amazon.CDK.AWS.Oam.dll
Syntax (csharp)
public class CfnLinkProps : Object, ICfnLinkProps
Syntax (vb)
Public Class CfnLinkProps
Inherits Object
Implements ICfnLinkProps
Remarks
Link: 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.AWS.Oam;
var cfnLinkProps = new CfnLinkProps {
ResourceTypes = new [] { "resourceTypes" },
SinkIdentifier = "sinkIdentifier",
// the properties below are optional
LabelTemplate = "labelTemplate",
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
}
};
Synopsis
Constructors
CfnLinkProps() |
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. |
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
CfnLinkProps()
public CfnLinkProps()
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
System.String
Remarks
You can include the following variables in your template:
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
System.String[]
Remarks
Valid values are AWS::CloudWatch::Metric | AWS::Logs::LogGroup | AWS::XRay::Trace
.
SinkIdentifier
The ARN of the sink in the monitoring account that you want to link to.
public string SinkIdentifier { get; set; }
Property Value
System.String
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
System.Collections.Generic.IDictionary<System.String, System.String>
Remarks
For more information, see Tag .