@Internal public static final class ISecretTargetAttachment.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ISecretTargetAttachment.Jsii$Default
software.amazon.jsii.JsiiObject.InitializationMode
ISecretTargetAttachment.Jsii$Default, ISecretTargetAttachment.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
RotationSchedule |
addRotationSchedule(String id,
RotationScheduleOptions options)
(experimental) Adds a rotation schedule to the secret.
|
AddToResourcePolicyResult |
addToResourcePolicy(PolicyStatement statement)
(experimental) Adds a statement to the IAM resource policy associated with this secret.
|
ISecret |
attach(ISecretAttachmentTarget target)
(experimental) Attach a target to this secret.
|
void |
denyAccountRootDelete()
(experimental) Denies the `DeleteSecret` action to all principals within the current account.
|
IKey |
getEncryptionKey()
(experimental) The customer-managed encryption key that is used to encrypt this secret, if any.
|
ResourceEnvironment |
getEnv()
(experimental) The environment this resource belongs to.
|
software.constructs.Node |
getNode()
The tree node.
|
String |
getSecretArn()
(experimental) The ARN of the secret in AWS Secrets Manager.
|
String |
getSecretFullArn()
(experimental) The full ARN of the secret in AWS Secrets Manager, which is the ARN including the Secrets Manager-supplied 6-character suffix.
|
String |
getSecretName()
(experimental) The name of the secret.
|
String |
getSecretTargetAttachmentSecretArn()
(experimental) Same as `secretArn`.
|
SecretValue |
getSecretValue()
(experimental) Retrieve the value of the stored secret as a `SecretValue`.
|
Stack |
getStack()
(experimental) The stack in which this resource is defined.
|
Grant |
grantRead(IGrantable grantee)
(experimental) Grants reading the secret value to some role.
|
Grant |
grantRead(IGrantable grantee,
List<String> versionStages)
(experimental) Grants reading the secret value to some role.
|
Grant |
grantWrite(IGrantable grantee)
(experimental) Grants writing and updating the secret value to some role.
|
SecretValue |
secretValueFromJson(String key)
(experimental) Interpret the secret as a JSON object and return a field's value from it as a `SecretValue`.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
@Stability(value=Stable) @NotNull public final software.constructs.Node getNode()
getNode
in interface IResource.Jsii$Default
getNode
in interface ISecret.Jsii$Default
getNode
in interface ISecretTargetAttachment.Jsii$Default
getNode
in interface software.constructs.IConstruct
getNode
in interface software.constructs.IConstruct.Jsii$Default
@Stability(value=Experimental) @NotNull public final ResourceEnvironment getEnv()
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
getEnv
in interface IResource
getEnv
in interface IResource.Jsii$Default
getEnv
in interface ISecret.Jsii$Default
getEnv
in interface ISecretTargetAttachment.Jsii$Default
@Stability(value=Experimental) @NotNull public final Stack getStack()
getStack
in interface IResource
getStack
in interface IResource.Jsii$Default
getStack
in interface ISecret.Jsii$Default
getStack
in interface ISecretTargetAttachment.Jsii$Default
@Stability(value=Experimental) @NotNull public final String getSecretArn()
Will return the full ARN if available, otherwise a partial arn.
For secrets imported by the deprecated fromSecretName
, it will return the secretName
.
getSecretArn
in interface ISecret
getSecretArn
in interface ISecret.Jsii$Default
getSecretArn
in interface ISecretTargetAttachment.Jsii$Default
@Stability(value=Experimental) @NotNull public final String getSecretName()
For "owned" secrets, this will be the full resource name (secret name + suffix), unless the '@aws-cdk/aws-secretsmanager:parseOwnedSecretName' feature flag is set.
getSecretName
in interface ISecret
getSecretName
in interface ISecret.Jsii$Default
getSecretName
in interface ISecretTargetAttachment.Jsii$Default
@Stability(value=Experimental) @NotNull public final SecretValue getSecretValue()
getSecretValue
in interface ISecret
getSecretValue
in interface ISecret.Jsii$Default
getSecretValue
in interface ISecretTargetAttachment.Jsii$Default
@Stability(value=Experimental) @Nullable public final IKey getEncryptionKey()
When not specified, the default KMS key for the account and region is being used.
getEncryptionKey
in interface ISecret
getEncryptionKey
in interface ISecret.Jsii$Default
getEncryptionKey
in interface ISecretTargetAttachment.Jsii$Default
@Stability(value=Experimental) @Nullable public final String getSecretFullArn()
This is equal to secretArn
in most cases, but is undefined when a full ARN is not available (e.g., secrets imported by name).
getSecretFullArn
in interface ISecret
getSecretFullArn
in interface ISecret.Jsii$Default
getSecretFullArn
in interface ISecretTargetAttachment.Jsii$Default
@Stability(value=Experimental) @NotNull public final String getSecretTargetAttachmentSecretArn()
getSecretTargetAttachmentSecretArn
in interface ISecretTargetAttachment
getSecretTargetAttachmentSecretArn
in interface ISecretTargetAttachment.Jsii$Default
@Stability(value=Experimental) @NotNull public final RotationSchedule addRotationSchedule(@NotNull String id, @NotNull RotationScheduleOptions options)
addRotationSchedule
in interface ISecret
addRotationSchedule
in interface ISecret.Jsii$Default
addRotationSchedule
in interface ISecretTargetAttachment.Jsii$Default
id
- This parameter is required.options
- This parameter is required.@Stability(value=Experimental) @NotNull public final AddToResourcePolicyResult addToResourcePolicy(@NotNull PolicyStatement statement)
If this secret was created in this stack, a resource policy will be
automatically created upon the first call to addToResourcePolicy
. If
the secret is imported, then this is a no-op.
addToResourcePolicy
in interface ISecret
addToResourcePolicy
in interface ISecret.Jsii$Default
addToResourcePolicy
in interface ISecretTargetAttachment.Jsii$Default
statement
- This parameter is required.@Stability(value=Experimental) @NotNull public final ISecret attach(@NotNull ISecretAttachmentTarget target)
attach
in interface ISecret
attach
in interface ISecret.Jsii$Default
attach
in interface ISecretTargetAttachment.Jsii$Default
target
- The target to attach. This parameter is required.@Stability(value=Experimental) public final void denyAccountRootDelete()
denyAccountRootDelete
in interface ISecret
denyAccountRootDelete
in interface ISecret.Jsii$Default
denyAccountRootDelete
in interface ISecretTargetAttachment.Jsii$Default
@Stability(value=Experimental) @NotNull public final Grant grantRead(@NotNull IGrantable grantee, @Nullable List<String> versionStages)
grantRead
in interface ISecret
grantRead
in interface ISecret.Jsii$Default
grantRead
in interface ISecretTargetAttachment.Jsii$Default
grantee
- the principal being granted permission. This parameter is required.versionStages
- the version stages the grant is limited to.@Stability(value=Experimental) @NotNull public final Grant grantRead(@NotNull IGrantable grantee)
@Stability(value=Experimental) @NotNull public final Grant grantWrite(@NotNull IGrantable grantee)
grantWrite
in interface ISecret
grantWrite
in interface ISecret.Jsii$Default
grantWrite
in interface ISecretTargetAttachment.Jsii$Default
grantee
- the principal being granted permission. This parameter is required.@Stability(value=Experimental) @NotNull public final SecretValue secretValueFromJson(@NotNull String key)
secretValueFromJson
in interface ISecret
secretValueFromJson
in interface ISecret.Jsii$Default
secretValueFromJson
in interface ISecretTargetAttachment.Jsii$Default
key
- This parameter is required.Copyright © 2021. All rights reserved.