aws-cdk-lib.aws_greengrass.CfnResourceDefinitionVersion.SecretsManagerSecretResourceDataProperty

interface SecretsManagerSecretResourceDataProperty

LanguageType name
.NETAmazon.CDK.AWS.Greengrass.CfnResourceDefinitionVersion.SecretsManagerSecretResourceDataProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsgreengrass#CfnResourceDefinitionVersion_SecretsManagerSecretResourceDataProperty
Javasoftware.amazon.awscdk.services.greengrass.CfnResourceDefinitionVersion.SecretsManagerSecretResourceDataProperty
Pythonaws_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

NameTypeDescription
arnstringThe Amazon Resource Name (ARN) of the Secrets Manager secret to make available on the core.
additionalStagingLabelsToDownload?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 .