@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:37.036Z") public class CfnVehicle extends CfnResource implements IInspectable
Creates a vehicle, which is an instance of a vehicle model (model manifest). Vehicles created from the same vehicle model consist of the same signals inherited from the vehicle model.
If you have an existing AWS IoT Thing, you can use AWS IoT FleetWise to create a vehicle and collect data from your thing.
For more information, see Create a vehicle (CLI) in the AWS IoT FleetWise Developer Guide .
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.iotfleetwise.*; CfnVehicle cfnVehicle = CfnVehicle.Builder.create(this, "MyCfnVehicle") .decoderManifestArn("decoderManifestArn") .modelManifestArn("modelManifestArn") .name("name") // the properties below are optional .associationBehavior("associationBehavior") .attributes(Map.of( "attributesKey", "attributes")) .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnVehicle.Builder
A fluent builder for
CfnVehicle . |
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 |
---|---|
|
CfnVehicle(Construct scope,
java.lang.String id,
CfnVehicleProps props)
Create a new `AWS::IoTFleetWise::Vehicle`.
|
protected |
CfnVehicle(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnVehicle(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAssociationBehavior()
An option to create a new AWS IoT thing when creating a vehicle, or to validate an existing thing as a vehicle.
|
java.lang.String |
getAttrArn() |
java.lang.String |
getAttrCreationTime() |
java.lang.Object |
getAttributes()
Static information about a vehicle in a key-value pair.
|
java.lang.String |
getAttrLastModificationTime() |
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getDecoderManifestArn()
The Amazon Resource Name (ARN) of a decoder manifest associated with the vehicle to create.
|
java.lang.String |
getModelManifestArn()
The ARN of the vehicle model (model manifest) to create the vehicle from.
|
java.lang.String |
getName()
`AWS::IoTFleetWise::Vehicle.Name`.
|
TagManager |
getTags()
Metadata which can be used to manage the vehicle.
|
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 |
setAssociationBehavior(java.lang.String value)
An option to create a new AWS IoT thing when creating a vehicle, or to validate an existing thing as a vehicle.
|
void |
setAttributes(IResolvable value)
Static information about a vehicle in a key-value pair.
|
void |
setAttributes(java.util.Map<java.lang.String,java.lang.String> value)
Static information about a vehicle in a key-value pair.
|
void |
setDecoderManifestArn(java.lang.String value)
The Amazon Resource Name (ARN) of a decoder manifest associated with the vehicle to create.
|
void |
setModelManifestArn(java.lang.String value)
The ARN of the vehicle model (model manifest) to create the vehicle from.
|
void |
setName(java.lang.String value)
`AWS::IoTFleetWise::Vehicle.Name`.
|
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 CfnVehicle(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnVehicle(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnVehicle(Construct scope, java.lang.String id, CfnVehicleProps 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()
public java.lang.String getAttrCreationTime()
public java.lang.String getAttrLastModificationTime()
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public TagManager getTags()
public java.lang.String getDecoderManifestArn()
public void setDecoderManifestArn(java.lang.String value)
public java.lang.String getModelManifestArn()
public void setModelManifestArn(java.lang.String value)
public java.lang.String getName()
public void setName(java.lang.String value)
public java.lang.String getAssociationBehavior()
public void setAssociationBehavior(java.lang.String value)
public java.lang.Object getAttributes()
For example: "engine Type"
: "v6"
public void setAttributes(IResolvable value)
For example: "engine Type"
: "v6"
public void setAttributes(java.util.Map<java.lang.String,java.lang.String> value)
For example: "engine Type"
: "v6"