interface SecretsManagerSecretResourceDataProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Greengrass.CfnResourceDefinitionVersion.SecretsManagerSecretResourceDataProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsgreengrass#CfnResourceDefinitionVersion_SecretsManagerSecretResourceDataProperty |
Java | software.amazon.awscdk.services.greengrass.CfnResourceDefinitionVersion.SecretsManagerSecretResourceDataProperty |
Python | aws_cdk.aws_greengrass.CfnResourceDefinitionVersion.SecretsManagerSecretResourceDataProperty |
TypeScript | aws-cdk-lib » aws_greengrass » CfnResourceDefinitionVersion » SecretsManagerSecretResourceDataProperty |
Settings for a secret resource, which references a secret from AWS Secrets Manager .
AWS IoT Greengrass stores a local, encrypted copy of the secret on the Greengrass core, where it can be securely accessed by connectors and Lambda functions. For more information, see Deploy Secrets to the AWS IoT Greengrass Core in the Developer Guide .
In an AWS CloudFormation template, SecretsManagerSecretResourceData
can be used in the ResourceDataContainer
property type.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_greengrass as greengrass } from 'aws-cdk-lib';
const secretsManagerSecretResourceDataProperty: greengrass.CfnResourceDefinitionVersion.SecretsManagerSecretResourceDataProperty = {
arn: 'arn',
// the properties below are optional
additionalStagingLabelsToDownload: ['additionalStagingLabelsToDownload'],
};
Properties
Name | Type | Description |
---|---|---|
arn | string | The Amazon Resource Name (ARN) of the Secrets Manager secret to make available on the core. |
additional | string[] | The staging labels whose values you want to make available on the core, in addition to AWSCURRENT . |
arn
Type:
string
The Amazon Resource Name (ARN) of the Secrets Manager secret to make available on the core.
The value of the secret's latest version (represented by the AWSCURRENT
staging label) is included by default.
additionalStagingLabelsToDownload?
Type:
string[]
(optional)
The staging labels whose values you want to make available on the core, in addition to AWSCURRENT
.