@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:36:47.040Z") 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 . |
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnDimension(Construct scope,
java.lang.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 |
---|---|
java.lang.String |
getAttrArn()
The Amazon Resource Name (ARN) of the dimension.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getName()
A unique identifier for the dimension.
|
java.util.List<java.lang.String> |
getStringValues()
Specifies the value or list of values for the dimension.
|
TagManager |
getTags()
Metadata that can be used to manage the dimension.
|
java.lang.String |
getType()
Specifies the type of dimension.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setName(java.lang.String value)
A unique identifier for the dimension.
|
void |
setStringValues(java.util.List<java.lang.String> value)
Specifies the value or list of values for the dimension.
|
void |
setType(java.lang.String value)
Specifies the type of dimension.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnDimension(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnDimension(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnDimension(Construct scope, java.lang.String id, 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.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrArn()
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public TagManager getTags()
public java.util.List<java.lang.String> getStringValues()
For TOPIC_FILTER
dimensions, this is a pattern used to match the MQTT topic (for example, "admin/#").
public void setStringValues(java.util.List<java.lang.String> value)
For TOPIC_FILTER
dimensions, this is a pattern used to match the MQTT topic (for example, "admin/#").
public java.lang.String getType()
Supported types: TOPIC_FILTER.
public void setType(java.lang.String value)
Supported types: TOPIC_FILTER.
public java.lang.String getName()
public void setName(java.lang.String value)