-
Notifications
You must be signed in to change notification settings - Fork 17
/
awscdk_SecretsManagerSecretOptions.go
36 lines (33 loc) · 1.37 KB
/
awscdk_SecretsManagerSecretOptions.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// An experiment to bundle the entire CDK into a single module
package awscdk
// Options for referencing a secret value from Secrets Manager.
//
// Example:
// codebuild.NewBitBucketSourceCredentials(this, jsii.String("CodeBuildBitBucketCreds"), &bitBucketSourceCredentialsProps{
// username: awscdk.SecretValue.secretsManager(jsii.String("my-bitbucket-creds"), &secretsManagerSecretOptions{
// jsonField: jsii.String("username"),
// }),
// password: awscdk.SecretValue.secretsManager(jsii.String("my-bitbucket-creds"), &secretsManagerSecretOptions{
// jsonField: jsii.String("password"),
// }),
// })
//
// Experimental.
type SecretsManagerSecretOptions struct {
// The key of a JSON field to retrieve.
//
// This can only be used if the secret
// stores a JSON object.
// Experimental.
JsonField *string `field:"optional" json:"jsonField" yaml:"jsonField"`
// Specifies the unique identifier of the version of the secret you want to use.
//
// Can specify at most one of `versionId` and `versionStage`.
// Experimental.
VersionId *string `field:"optional" json:"versionId" yaml:"versionId"`
// Specifies the secret version that you want to retrieve by the staging label attached to the version.
//
// Can specify at most one of `versionId` and `versionStage`.
// Experimental.
VersionStage *string `field:"optional" json:"versionStage" yaml:"versionStage"`
}