Class CfnResourceDefinition.SecretsManagerSecretResourceDataProperty
Settings for a secret resource, which references a secret from AWS Secrets Manager .
Inheritance
Namespace: Amazon.CDK.AWS.Greengrass
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class SecretsManagerSecretResourceDataProperty : Object, CfnResourceDefinition.ISecretsManagerSecretResourceDataProperty
Syntax (vb)
Public Class SecretsManagerSecretResourceDataProperty
Inherits Object
Implements CfnResourceDefinition.ISecretsManagerSecretResourceDataProperty
Remarks
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.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Greengrass;
var secretsManagerSecretResourceDataProperty = new SecretsManagerSecretResourceDataProperty {
Arn = "arn",
// the properties below are optional
AdditionalStagingLabelsToDownload = new [] { "additionalStagingLabelsToDownload" }
};
Synopsis
Constructors
SecretsManagerSecretResourceDataProperty() |
Properties
AdditionalStagingLabelsToDownload | The staging labels whose values you want to make available on the core, in addition to |
Arn | The Amazon Resource Name (ARN) of the Secrets Manager secret to make available on the core. |
Constructors
SecretsManagerSecretResourceDataProperty()
public SecretsManagerSecretResourceDataProperty()
Properties
AdditionalStagingLabelsToDownload
The staging labels whose values you want to make available on the core, in addition to AWSCURRENT
.
public string[] AdditionalStagingLabelsToDownload { get; set; }
Property Value
System.String[]
Remarks
Arn
The Amazon Resource Name (ARN) of the Secrets Manager secret to make available on the core.
public string Arn { get; set; }
Property Value
System.String
Remarks
The value of the secret's latest version (represented by the AWSCURRENT
staging label) is included by default.