Class CfnLoggerDefinition.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLoggerDefinition>
- Enclosing class:
CfnLoggerDefinition
CfnLoggerDefinition
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnLoggerDefinition.Builder
initialVersion
(IResolvable initialVersion) The logger definition version to include when the logger definition is created.initialVersion
(CfnLoggerDefinition.LoggerDefinitionVersionProperty initialVersion) The logger definition version to include when the logger definition is created.The name of the logger definition.Application-specific metadata to attach to the logger definition.
-
Method Details
-
create
@Stability(Stable) public static CfnLoggerDefinition.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnLoggerDefinition.Builder
.
-
name
The name of the logger definition.- Parameters:
name
- The name of the logger definition. This parameter is required.- Returns:
this
- See Also:
-
initialVersion
The logger definition version to include when the logger definition is created.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.- Parameters:
initialVersion
- The logger definition version to include when the logger definition is created. This parameter is required.- Returns:
this
- See Also:
-
initialVersion
@Stability(Stable) public CfnLoggerDefinition.Builder initialVersion(CfnLoggerDefinition.LoggerDefinitionVersionProperty initialVersion) The logger definition version to include when the logger definition is created.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.- Parameters:
initialVersion
- The logger definition version to include when the logger definition is created. This parameter is required.- Returns:
this
- See Also:
-
tags
Application-specific metadata to attach to the logger definition.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 mostTags
implementations in AWS CloudFormation templates."Tags": { "KeyName0": "value", "KeyName1": "value", "KeyName2": "value" }
- Parameters:
tags
- Application-specific metadata to attach to the logger definition. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLoggerDefinition>
- Returns:
- a newly built instance of
CfnLoggerDefinition
.
-