A CDK Construct for creating an AWS IoT Core thing with a certificate.
import { ThingWithCert } from 'cdk-iot-core-certificates-v3'
new ThingWithCert(scope: Construct, id: string, props: ThingWithCertProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
ThingWithCertProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: ThingWithCertProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
public toString(): string
Returns a string representation of this construct.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { ThingWithCert } from 'cdk-iot-core-certificates-v3'
ThingWithCert.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
certId |
string |
The ID of the certificate. |
certPem |
string |
The certificate PEM. |
privKey |
string |
The private key. |
thingArn |
string |
The ARN of the thing. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly certId: string;
- Type: string
The ID of the certificate.
public readonly certPem: string;
- Type: string
The certificate PEM.
public readonly privKey: string;
- Type: string
The private key.
public readonly thingArn: string;
- Type: string
The ARN of the thing.
Properties of ThingWithCert construct.
import { ThingWithCertProps } from 'cdk-iot-core-certificates-v3'
const thingWithCertProps: ThingWithCertProps = { ... }
Name | Type | Description |
---|---|---|
account |
string |
The AWS account ID this resource belongs to. |
environmentFromArn |
string |
ARN to deduce region and account from. |
physicalName |
string |
The value passed in by users to the physical name prop of the resource. |
region |
string |
The AWS region this resource belongs to. |
thingName |
string |
The name of the thing. |
paramPrefix |
string |
The prefix for the parameter store path. |
saveFileBucket |
aws-cdk-lib.aws_s3.IBucket |
The bucket to save the certificate and private key files. |
saveToParamStore |
boolean |
Whether to save the certificate and private key to AWS Systems Manager Parameter Store. |
public readonly account: string;
- Type: string
- Default: the resource is in the same account as the stack it belongs to
The AWS account ID this resource belongs to.
public readonly environmentFromArn: string;
- Type: string
- Default: take environment from
account
,region
parameters, or use Stack environment.
ARN to deduce region and account from.
The ARN is parsed and the account and region are taken from the ARN. This should be used for imported resources.
Cannot be supplied together with either account
or region
.
public readonly physicalName: string;
- Type: string
- Default: The physical name will be allocated by CloudFormation at deployment time
The value passed in by users to the physical name prop of the resource.
undefined
implies that a physical name will be allocated by
CloudFormation during deployment.
- a concrete value implies a specific physical name
PhysicalName.GENERATE_IF_NEEDED
is a marker that indicates that a physical will only be generated by the CDK if it is needed for cross-environment references. Otherwise, it will be allocated by CloudFormation.
public readonly region: string;
- Type: string
- Default: the resource is in the same region as the stack it belongs to
The AWS region this resource belongs to.
public readonly thingName: string;
- Type: string
The name of the thing.
public readonly paramPrefix: string;
- Type: string
The prefix for the parameter store path.
public readonly saveFileBucket: IBucket;
- Type: aws-cdk-lib.aws_s3.IBucket
- Default: do not save the files
The bucket to save the certificate and private key files.
public readonly saveToParamStore: boolean;
- Type: boolean
Whether to save the certificate and private key to AWS Systems Manager Parameter Store.