Class CfnCommand
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.iot.CfnCommand
- All Implemented Interfaces:
IInspectable,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.110.0 (build 336b265)",
date="2025-04-22T23:08:14.628Z")
@Stability(Stable)
public class CfnCommand
extends CfnResource
implements IInspectable, ITaggableV2
Represents the resource definition of AWS IoT Command.
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.*;
CfnCommand cfnCommand = CfnCommand.Builder.create(this, "MyCfnCommand")
.commandId("commandId")
// the properties below are optional
.createdAt("createdAt")
.deprecated(false)
.description("description")
.displayName("displayName")
.lastUpdatedAt("lastUpdatedAt")
.mandatoryParameters(List.of(CommandParameterProperty.builder()
.name("name")
// the properties below are optional
.defaultValue(CommandParameterValueProperty.builder()
.b(false)
.bin("bin")
.d(123)
.i(123)
.l("l")
.s("s")
.ul("ul")
.build())
.description("description")
.value(CommandParameterValueProperty.builder()
.b(false)
.bin("bin")
.d(123)
.i(123)
.l("l")
.s("s")
.ul("ul")
.build())
.build()))
.namespace("namespace")
.payload(CommandPayloadProperty.builder()
.content("content")
.contentType("contentType")
.build())
.pendingDeletion(false)
.roleArn("roleArn")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnCommand.static interfaceExample:static interfaceExample:static interfaceExample:Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnCommand(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnCommand(software.amazon.jsii.JsiiObjectRef objRef) CfnCommand(software.constructs.Construct scope, String id, CfnCommandProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the command.Tag Manager which manages the tags for this resource.The unique identifier of the command.The timestamp, when the command was created.Indicates whether the command has been deprecated.The description of the command parameter.The display name of the command.The timestamp, when the command was last updated.The namespace to which the command belongs.Indicates whether the command is pending deletion.The customer role associated with the command.getTags()The tags to be associated with the command.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetCommandId(String value) The unique identifier of the command.voidsetCreatedAt(String value) The timestamp, when the command was created.voidsetDeprecated(Boolean value) Indicates whether the command has been deprecated.voidsetDeprecated(IResolvable value) Indicates whether the command has been deprecated.voidsetDescription(String value) The description of the command parameter.voidsetDisplayName(String value) The display name of the command.voidsetLastUpdatedAt(String value) The timestamp, when the command was last updated.voidsetMandatoryParameters(List<Object> value) voidvoidsetNamespace(String value) The namespace to which the command belongs.voidsetPayload(IResolvable value) voidvoidsetPendingDeletion(Boolean value) Indicates whether the command is pending deletion.voidsetPendingDeletion(IResolvable value) Indicates whether the command is pending deletion.voidsetRoleArn(String value) The customer role associated with the command.voidThe tags to be associated with the command.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnCommand
protected CfnCommand(software.amazon.jsii.JsiiObjectRef objRef) -
CfnCommand
protected CfnCommand(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnCommand
@Stability(Stable) public CfnCommand(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnCommandProps props) - 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.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrCommandArn
The Amazon Resource Name (ARN) of the command. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCommandId
The unique identifier of the command. -
setCommandId
The unique identifier of the command. -
getCreatedAt
The timestamp, when the command was created. -
setCreatedAt
The timestamp, when the command was created. -
getDeprecated
Indicates whether the command has been deprecated. -
setDeprecated
Indicates whether the command has been deprecated. -
setDeprecated
Indicates whether the command has been deprecated. -
getDescription
The description of the command parameter. -
setDescription
The description of the command parameter. -
getDisplayName
The display name of the command. -
setDisplayName
The display name of the command. -
getLastUpdatedAt
The timestamp, when the command was last updated. -
setLastUpdatedAt
The timestamp, when the command was last updated. -
getMandatoryParameters
-
setMandatoryParameters
-
setMandatoryParameters
-
getNamespace
The namespace to which the command belongs. -
setNamespace
The namespace to which the command belongs. -
getPayload
-
setPayload
-
setPayload
-
getPendingDeletion
Indicates whether the command is pending deletion. -
setPendingDeletion
Indicates whether the command is pending deletion. -
setPendingDeletion
Indicates whether the command is pending deletion. -
getRoleArn
The customer role associated with the command. -
setRoleArn
The customer role associated with the command. -
getTags
The tags to be associated with the command. -
setTags
The tags to be associated with the command.
-