Show / Hide Table of Contents

Class CfnLoggerDefinition

A CloudFormation AWS::Greengrass::LoggerDefinition.

Inheritance
System.Object
Construct
CfnElement
CfnRefElement
CfnResource
CfnLoggerDefinition
Implements
IConstruct
Constructs.IConstruct
IDependable
IInspectable
Inherited Members
CfnResource.IsCfnResource(IConstruct)
CfnResource.AddDeletionOverride(String)
CfnResource.AddDependsOn(CfnResource)
CfnResource.AddMetadata(String, Object)
CfnResource.AddOverride(String, Object)
CfnResource.AddPropertyDeletionOverride(String)
CfnResource.AddPropertyOverride(String, Object)
CfnResource.ApplyRemovalPolicy(Nullable<RemovalPolicy>, IRemovalPolicyOptions)
CfnResource.GetAtt(String)
CfnResource.GetMetadata(String)
CfnResource.ShouldSynthesize()
CfnResource.ToString()
CfnResource.ValidateProperties(Object)
CfnResource.CfnOptions
CfnResource.CfnResourceType
CfnResource.UpdatedProperites
CfnRefElement.Ref
CfnElement.IsCfnElement(Object)
CfnElement.OverrideLogicalId(String)
CfnElement.CreationStack
CfnElement.LogicalId
CfnElement.Stack
Construct.IsConstruct(Object)
Construct.OnPrepare()
Construct.OnSynthesize(ISynthesisSession)
Construct.OnValidate()
Construct.Prepare()
Construct.Synthesize(ISynthesisSession)
Construct.Validate()
Construct.Node
Namespace: Amazon.CDK.AWS.Greengrass
Assembly: Amazon.CDK.AWS.Greengrass.dll
Syntax (csharp)
public class CfnLoggerDefinition : CfnResource, IConstruct, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnLoggerDefinition
    Inherits CfnResource
    Implements IConstruct, IConstruct, IDependable, IInspectable
Remarks

The AWS::Greengrass::LoggerDefinition resource represents a logger definition for AWS IoT Greengrass . Logger definitions are used to organize your logger definition versions.

Logger definitions can reference multiple logger definition versions. All logger definition versions must be associated with a logger definition. Each logger definition version can contain one or more loggers.

When you create a logger definition, you can optionally include an initial logger definition version. To associate a logger definition version later, create an AWS::Greengrass::LoggerDefinitionVersion resource and specify the ID of this logger definition.

After you create the 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::LoggerDefinition

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-loggerdefinition.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.Greengrass;

var tags;

CfnLoggerDefinition cfnLoggerDefinition = new CfnLoggerDefinition(this, "MyCfnLoggerDefinition", new CfnLoggerDefinitionProps {
    Name = "name",

    // the properties below are optional
    InitialVersion = new LoggerDefinitionVersionProperty {
        Loggers = new [] { new LoggerProperty {
            Component = "component",
            Id = "id",
            Level = "level",
            Type = "type",

            // the properties below are optional
            Space = 123
        } }
    },
    Tags = tags
});

Synopsis

Constructors

CfnLoggerDefinition(Construct, String, ICfnLoggerDefinitionProps)

Create a new AWS::Greengrass::LoggerDefinition.

CfnLoggerDefinition(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

CfnLoggerDefinition(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

Properties

AttrArn

The Amazon Resource Name (ARN) of the LoggerDefinition , such as arn:aws:greengrass:us-east-1: :/greengrass/definition/loggers/1234a5b6-78cd-901e-2fgh-3i45j6k178l9 .

AttrId

The ID of the LoggerDefinition , such as 1234a5b6-78cd-901e-2fgh-3i45j6k178l9 .

AttrLatestVersionArn

The ARN of the last LoggerDefinitionVersion that was added to the LoggerDefinition , such as arn:aws:greengrass:us-east-1: :/greengrass/definition/loggers/1234a5b6-78cd-901e-2fgh-3i45j6k178l9/versions/9876ac30-4bdb-4f9d-95af-b5fdb66be1a2 .

AttrName

The name of the LoggerDefinition , such as MyLoggerDefinition .

CFN_RESOURCE_TYPE_NAME

The CloudFormation resource type name for this resource class.

CfnProperties
InitialVersion

The logger definition version to include when the logger definition is created.

Name

The name of the logger definition.

Tags

Application-specific metadata to attach to the logger definition.

Methods

Inspect(TreeInspector)

Examines the CloudFormation resource and discloses attributes.

RenderProperties(IDictionary<String, Object>)

Constructors

CfnLoggerDefinition(Construct, String, ICfnLoggerDefinitionProps)

Create a new AWS::Greengrass::LoggerDefinition.

public CfnLoggerDefinition(Construct scope, string id, ICfnLoggerDefinitionProps props)
Parameters
scope Construct
  • scope in which this resource is defined.
id System.String
  • scoped id of the resource.
props ICfnLoggerDefinitionProps
  • resource properties.

CfnLoggerDefinition(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

protected CfnLoggerDefinition(ByRefValue reference)
Parameters
reference Amazon.JSII.Runtime.Deputy.ByRefValue

The Javascript-owned object reference

CfnLoggerDefinition(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

protected CfnLoggerDefinition(DeputyBase.DeputyProps props)
Parameters
props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps

The deputy props

Properties

AttrArn

The Amazon Resource Name (ARN) of the LoggerDefinition , such as arn:aws:greengrass:us-east-1: :/greengrass/definition/loggers/1234a5b6-78cd-901e-2fgh-3i45j6k178l9 .

public virtual string AttrArn { get; }
Property Value

System.String

Remarks

CloudformationAttribute: Arn

AttrId

The ID of the LoggerDefinition , such as 1234a5b6-78cd-901e-2fgh-3i45j6k178l9 .

public virtual string AttrId { get; }
Property Value

System.String

Remarks

CloudformationAttribute: Id

AttrLatestVersionArn

The ARN of the last LoggerDefinitionVersion that was added to the LoggerDefinition , such as arn:aws:greengrass:us-east-1: :/greengrass/definition/loggers/1234a5b6-78cd-901e-2fgh-3i45j6k178l9/versions/9876ac30-4bdb-4f9d-95af-b5fdb66be1a2 .

public virtual string AttrLatestVersionArn { get; }
Property Value

System.String

Remarks

CloudformationAttribute: LatestVersionArn

AttrName

The name of the LoggerDefinition , such as MyLoggerDefinition .

public virtual string AttrName { get; }
Property Value

System.String

Remarks

CloudformationAttribute: Name

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
CfnResource.CfnProperties

InitialVersion

The logger definition version to include when the logger definition is created.

public virtual object InitialVersion { get; set; }
Property Value

System.Object

Remarks

A logger definition version contains a list of logger property types.

To associate a logger definition version after the logger definition is created, create an AWS::Greengrass::LoggerDefinitionVersion resource and specify the ID of this logger definition.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-loggerdefinition.html#cfn-greengrass-loggerdefinition-initialversion

Name

The name of the logger definition.

public virtual string Name { get; set; }
Property Value

System.String

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-loggerdefinition.html#cfn-greengrass-loggerdefinition-name

Tags

Application-specific metadata to attach to the logger definition.

public virtual TagManager Tags { get; }
Property Value

TagManager

Remarks

You can use tags in IAM policies to control access to AWS IoT Greengrass resources. You can also use tags to categorize your resources. For more information, see Tagging Your AWS IoT Greengrass Resources in the Developer Guide .

This Json property type is processed as a map of key-value pairs. It uses the following format, which is different from most Tags implementations in AWS CloudFormation templates.

"Tags": { "KeyName0": "value", "KeyName1": "value", "KeyName2": "value"
}

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-loggerdefinition.html#cfn-greengrass-loggerdefinition-tags

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>

Overrides
CfnResource.RenderProperties(IDictionary<String, Object>)

Implements

IConstruct
Constructs.IConstruct
IDependable
IInspectable
Back to top Generated by DocFX