Class CfnResourceCollection
A collection of AWS resources supported by DevOps Guru.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.DevOpsGuru
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnResourceCollection : CfnResource, IInspectable
Syntax (vb)
Public Class CfnResourceCollection
Inherits CfnResource
Implements IInspectable
Remarks
The one type of AWS resource collection supported is AWS CloudFormation stacks. DevOps Guru can be configured to analyze only the AWS resources that are defined in the stacks.
CloudformationResource: AWS::DevOpsGuru::ResourceCollection
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.DevOpsGuru;
var cfnResourceCollection = new CfnResourceCollection(this, "MyCfnResourceCollection", new CfnResourceCollectionProps {
ResourceCollectionFilter = new ResourceCollectionFilterProperty {
CloudFormation = new CloudFormationCollectionFilterProperty {
StackNames = new [] { "stackNames" }
},
Tags = new [] { new TagCollectionProperty {
AppBoundaryKey = "appBoundaryKey",
TagValues = new [] { "tagValues" }
} }
}
});
Synopsis
Constructors
CfnResourceCollection(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnResourceCollection(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnResourceCollection(Construct, String, ICfnResourceCollectionProps) |
Properties
AttrResourceCollectionType | The type of AWS resource collections to return. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
ResourceCollectionFilter | Information about a filter used to specify which AWS resources are analyzed for anomalous behavior by DevOps Guru. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnResourceCollection(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnResourceCollection(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnResourceCollection(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnResourceCollection(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnResourceCollection(Construct, String, ICfnResourceCollectionProps)
public CfnResourceCollection(Construct scope, string id, ICfnResourceCollectionProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnResourceCollectionProps
Resource properties.
Properties
AttrResourceCollectionType
The type of AWS resource collections to return.
public virtual string AttrResourceCollectionType { get; }
Property Value
System.String
Remarks
The one valid value is CLOUD_FORMATION
for AWS CloudFormation stacks.
CloudformationAttribute: ResourceCollectionType
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
ResourceCollectionFilter
Information about a filter used to specify which AWS resources are analyzed for anomalous behavior by DevOps Guru.
public virtual object ResourceCollectionFilter { get; set; }
Property Value
System.Object
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>