Class CfnResourceSet
A CloudFormation AWS::FMS::ResourceSet
.
Inherited Members
Namespace: Amazon.CDK.AWS.FMS
Assembly: Amazon.CDK.AWS.FMS.dll
Syntax (csharp)
public class CfnResourceSet : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnResourceSet
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
A set of resources to include in a policy.
CloudformationResource: AWS::FMS::ResourceSet
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-fms-resourceset.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.FMS;
var cfnResourceSet = new CfnResourceSet(this, "MyCfnResourceSet", new CfnResourceSetProps {
Name = "name",
ResourceTypeList = new [] { "resourceTypeList" },
// the properties below are optional
Description = "description",
Resources = new [] { "resources" },
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
CfnResourceSet(Construct, String, ICfnResourceSetProps) | Create a new |
CfnResourceSet(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnResourceSet(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
AttrId | The ID of the resource set. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
Description | A description of the resource set. |
Name | The descriptive name of the resource set. |
Resources | The resources included in the resource set. |
ResourceTypeList | Determines the resources that can be associated to the resource set. |
Tags | A collection of key:value pairs associated with a resource set. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnResourceSet(Construct, String, ICfnResourceSetProps)
Create a new AWS::FMS::ResourceSet
.
public CfnResourceSet(Construct scope, string id, ICfnResourceSetProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnResourceSetProps
- resource properties.
CfnResourceSet(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnResourceSet(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnResourceSet(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnResourceSet(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
AttrId
The ID of the resource set.
public virtual string AttrId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Id
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
Description
A description of the resource set.
public virtual string Description { get; set; }
Property Value
System.String
Remarks
Name
The descriptive name of the resource set.
public virtual string Name { get; set; }
Property Value
System.String
Remarks
You can't change the name of a resource set after you create it.
Resources
The resources included in the resource set.
public virtual string[] Resources { get; set; }
Property Value
System.String[]
Remarks
ResourceTypeList
Determines the resources that can be associated to the resource set.
public virtual string[] ResourceTypeList { get; set; }
Property Value
System.String[]
Remarks
Depending on your setting for max results and the number of resource sets, a single call might not return the full list.
Tags
A collection of key:value pairs associated with a resource set.
public virtual TagManager Tags { get; }
Property Value
Remarks
The key:value pair can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each AWS resource.
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>