@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.854Z") @Stability(value=Stable) public class CfnDimension extends CfnResource implements IInspectable
Use the AWS::IoT::Dimension to limit the scope of a metric used in a security profile for AWS IoT Device Defender . For example, using a TOPIC_FILTER dimension, you can narrow down the scope of the metric to only MQTT topics where the name matches the pattern specified in the dimension. For API reference, see CreateDimension and for general information, see Scoping metrics in security profiles using dimensions .
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.iot.*;
CfnDimension cfnDimension = CfnDimension.Builder.create(this, "MyCfnDimension")
.stringValues(List.of("stringValues"))
.type("type")
// the properties below are optional
.name("name")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnDimension.Builder
A fluent builder for
CfnDimension. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| 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 |
|---|---|
|
CfnDimension(software.constructs.Construct scope,
String id,
CfnDimensionProps props)
Create a new `AWS::IoT::Dimension`.
|
protected |
CfnDimension(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnDimension(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrArn()
The Amazon Resource Name (ARN) of the dimension.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getName()
A unique identifier for the dimension.
|
List<String> |
getStringValues()
Specifies the value or list of values for the dimension.
|
TagManager |
getTags()
Metadata that can be used to manage the dimension.
|
String |
getType()
Specifies the type of dimension.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setName(String value)
A unique identifier for the dimension.
|
void |
setStringValues(List<String> value)
Specifies the value or list of values for the dimension.
|
void |
setType(String value)
Specifies the type of dimension.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnDimension(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnDimension(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnDimension(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnDimensionProps 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 public String getAttrArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public List<String> getStringValues()
For TOPIC_FILTER dimensions, this is a pattern used to match the MQTT topic (for example, "admin/#").
@Stability(value=Stable)
public void setStringValues(@NotNull
List<String> value)
For TOPIC_FILTER dimensions, this is a pattern used to match the MQTT topic (for example, "admin/#").
@Stability(value=Stable) @NotNull public String getType()
Supported types: TOPIC_FILTER.
@Stability(value=Stable)
public void setType(@NotNull
String value)
Supported types: TOPIC_FILTER.
@Stability(value=Stable) @Nullable public String getName()
@Stability(value=Stable)
public void setName(@Nullable
String value)
Copyright © 2022. All rights reserved.