@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:35.190Z") @Stability(value=Stable) public class CfnLoggerDefinitionVersion extends CfnResource implements IInspectable
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.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.greengrass.*;
CfnLoggerDefinitionVersion cfnLoggerDefinitionVersion = CfnLoggerDefinitionVersion.Builder.create(this, "MyCfnLoggerDefinitionVersion")
.loggerDefinitionId("loggerDefinitionId")
.loggers(List.of(LoggerProperty.builder()
.component("component")
.id("id")
.level("level")
.type("type")
// the properties below are optional
.space(123)
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnLoggerDefinitionVersion.Builder
A fluent builder for
CfnLoggerDefinitionVersion. |
static interface |
CfnLoggerDefinitionVersion.LoggerProperty
A logger represents logging settings for the AWS IoT Greengrass group, which can be stored in CloudWatch and the local file system of your core device.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$ProxyIConstruct.Jsii$Default| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnLoggerDefinitionVersion(Construct scope,
String id,
CfnLoggerDefinitionVersionProps props)
Create a new `AWS::Greengrass::LoggerDefinitionVersion`.
|
protected |
CfnLoggerDefinitionVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnLoggerDefinitionVersion(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
getCfnProperties() |
String |
getLoggerDefinitionId()
The ID of the logger definition associated with this version.
|
Object |
getLoggers()
The loggers in this version.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setLoggerDefinitionId(String value)
The ID of the logger definition associated with this version.
|
void |
setLoggers(IResolvable value)
The loggers in this version.
|
void |
setLoggers(List<Object> value)
The loggers in this version.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnLoggerDefinitionVersion(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnLoggerDefinitionVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnLoggerDefinitionVersion(@NotNull
Construct scope,
@NotNull
String id,
@NotNull
CfnLoggerDefinitionVersionProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getLoggerDefinitionId()
This value is a GUID.
@Stability(value=Stable)
public void setLoggerDefinitionId(@NotNull
String value)
This value is a GUID.
@Stability(value=Stable) @NotNull public Object getLoggers()
@Stability(value=Stable)
public void setLoggers(@NotNull
IResolvable value)
Copyright © 2022. All rights reserved.