Class CfnLoggerDefinitionVersion
A CloudFormation AWS::Greengrass::LoggerDefinitionVersion
.
Inherited Members
Namespace: Amazon.CDK.AWS.Greengrass
Assembly: Amazon.CDK.AWS.Greengrass.dll
Syntax (csharp)
public class CfnLoggerDefinitionVersion : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnLoggerDefinitionVersion
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
The AWS::Greengrass::LoggerDefinitionVersion
resource represents a logger definition version for AWS IoT Greengrass . A logger definition version contains a list of loggers.
To create a logger definition version, you must specify the ID of the logger definition that you want to associate with the version. For information about creating a logger definition, see AWS::Greengrass::LoggerDefinition
.
After you create a logger definition version that contains the loggers you want to deploy, you must add it to your group version. For more information, see AWS::Greengrass::Group
.
CloudformationResource: AWS::Greengrass::LoggerDefinitionVersion
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.Greengrass;
var cfnLoggerDefinitionVersion = new CfnLoggerDefinitionVersion(this, "MyCfnLoggerDefinitionVersion", new CfnLoggerDefinitionVersionProps {
LoggerDefinitionId = "loggerDefinitionId",
Loggers = new [] { new LoggerProperty {
Component = "component",
Id = "id",
Level = "level",
Type = "type",
// the properties below are optional
Space = 123
} }
});
Synopsis
Constructors
CfnLoggerDefinitionVersion(Construct, String, ICfnLoggerDefinitionVersionProps) | Create a new |
CfnLoggerDefinitionVersion(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnLoggerDefinitionVersion(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 | |
LoggerDefinitionId | The ID of the logger definition associated with this version. |
Loggers | The loggers in this version. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnLoggerDefinitionVersion(Construct, String, ICfnLoggerDefinitionVersionProps)
Create a new AWS::Greengrass::LoggerDefinitionVersion
.
public CfnLoggerDefinitionVersion(Construct scope, string id, ICfnLoggerDefinitionVersionProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnLoggerDefinitionVersionProps
- resource properties.
CfnLoggerDefinitionVersion(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnLoggerDefinitionVersion(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnLoggerDefinitionVersion(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnLoggerDefinitionVersion(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
LoggerDefinitionId
The ID of the logger definition associated with this version.
public virtual string LoggerDefinitionId { get; set; }
Property Value
System.String
Remarks
Loggers
The loggers in this version.
public virtual object Loggers { 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>