@Internal public static final class ISecretTargetAttachment.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ISecretTargetAttachment.Jsii$Default
software.amazon.jsii.JsiiObject.InitializationModeISecretTargetAttachment.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)
Adds a rotation schedule to the secret.
|
AddToResourcePolicyResult |
addToResourcePolicy(PolicyStatement statement)
Adds a statement to the IAM resource policy associated with this secret.
|
void |
applyRemovalPolicy(RemovalPolicy policy)
Apply the given removal policy to this resource.
|
ISecret |
attach(ISecretAttachmentTarget target)
Attach a target to this secret.
|
void |
denyAccountRootDelete()
Denies the `DeleteSecret` action to all principals within the current account.
|
IKey |
getEncryptionKey()
The customer-managed encryption key that is used to encrypt this secret, if any.
|
ResourceEnvironment |
getEnv()
The environment this resource belongs to.
|
software.constructs.Node |
getNode()
The tree node.
|
String |
getSecretArn()
The ARN of the secret in AWS Secrets Manager.
|
String |
getSecretFullArn()
The full ARN of the secret in AWS Secrets Manager, which is the ARN including the Secrets Manager-supplied 6-character suffix.
|
String |
getSecretName()
The name of the secret.
|
String |
getSecretTargetAttachmentSecretArn()
Same as `secretArn`.
|
SecretValue |
getSecretValue()
Retrieve the value of the stored secret as a `SecretValue`.
|
Stack |
getStack()
The stack in which this resource is defined.
|
Grant |
grantRead(IGrantable grantee)
Grants reading the secret value to some role.
|
Grant |
grantRead(IGrantable grantee,
List<String> versionStages)
Grants reading the secret value to some role.
|
Grant |
grantWrite(IGrantable grantee)
Grants writing and updating the secret value to some role.
|
SecretValue |
secretValueFromJson(String key)
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$DefaultgetNode in interface ISecret.Jsii$DefaultgetNode in interface ISecretTargetAttachment.Jsii$DefaultgetNode in interface software.constructs.IConstructgetNode in interface software.constructs.IConstruct.Jsii$Default@Stability(value=Stable) @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 IResourcegetEnv in interface IResource.Jsii$DefaultgetEnv in interface ISecret.Jsii$DefaultgetEnv in interface ISecretTargetAttachment.Jsii$Default@Stability(value=Stable) @NotNull public final Stack getStack()
getStack in interface IResourcegetStack in interface IResource.Jsii$DefaultgetStack in interface ISecret.Jsii$DefaultgetStack in interface ISecretTargetAttachment.Jsii$Default@Stability(value=Stable) @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 ISecretgetSecretArn in interface ISecret.Jsii$DefaultgetSecretArn in interface ISecretTargetAttachment.Jsii$Default@Stability(value=Stable) @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 ISecretgetSecretName in interface ISecret.Jsii$DefaultgetSecretName in interface ISecretTargetAttachment.Jsii$Default@Stability(value=Stable) @NotNull public final SecretValue getSecretValue()
getSecretValue in interface ISecretgetSecretValue in interface ISecret.Jsii$DefaultgetSecretValue in interface ISecretTargetAttachment.Jsii$Default@Stability(value=Stable) @Nullable public final IKey getEncryptionKey()
When not specified, the default KMS key for the account and region is being used.
getEncryptionKey in interface ISecretgetEncryptionKey in interface ISecret.Jsii$DefaultgetEncryptionKey in interface ISecretTargetAttachment.Jsii$Default@Stability(value=Stable) @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 ISecretgetSecretFullArn in interface ISecret.Jsii$DefaultgetSecretFullArn in interface ISecretTargetAttachment.Jsii$Default@Stability(value=Stable) @NotNull public final String getSecretTargetAttachmentSecretArn()
getSecretTargetAttachmentSecretArn in interface ISecretTargetAttachmentgetSecretTargetAttachmentSecretArn in interface ISecretTargetAttachment.Jsii$Default@Stability(value=Stable)
public final void applyRemovalPolicy(@NotNull
RemovalPolicy policy)
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN).
applyRemovalPolicy in interface IResourceapplyRemovalPolicy in interface IResource.Jsii$DefaultapplyRemovalPolicy in interface ISecret.Jsii$DefaultapplyRemovalPolicy in interface ISecretTargetAttachment.Jsii$Defaultpolicy - This parameter is required.@Stability(value=Stable) @NotNull public final RotationSchedule addRotationSchedule(@NotNull String id, @NotNull RotationScheduleOptions options)
addRotationSchedule in interface ISecretaddRotationSchedule in interface ISecret.Jsii$DefaultaddRotationSchedule in interface ISecretTargetAttachment.Jsii$Defaultid - This parameter is required.options - This parameter is required.@Stability(value=Stable) @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 ISecretaddToResourcePolicy in interface ISecret.Jsii$DefaultaddToResourcePolicy in interface ISecretTargetAttachment.Jsii$Defaultstatement - This parameter is required.@Stability(value=Stable) @NotNull public final ISecret attach(@NotNull ISecretAttachmentTarget target)
attach in interface ISecretattach in interface ISecret.Jsii$Defaultattach in interface ISecretTargetAttachment.Jsii$Defaulttarget - The target to attach. This parameter is required.@Stability(value=Stable) public final void denyAccountRootDelete()
denyAccountRootDelete in interface ISecretdenyAccountRootDelete in interface ISecret.Jsii$DefaultdenyAccountRootDelete in interface ISecretTargetAttachment.Jsii$Default@Stability(value=Stable) @NotNull public final Grant grantRead(@NotNull IGrantable grantee, @Nullable List<String> versionStages)
grantRead in interface ISecretgrantRead in interface ISecret.Jsii$DefaultgrantRead in interface ISecretTargetAttachment.Jsii$Defaultgrantee - the principal being granted permission. This parameter is required.versionStages - the version stages the grant is limited to.@Stability(value=Stable) @NotNull public final Grant grantRead(@NotNull IGrantable grantee)
@Stability(value=Stable) @NotNull public final Grant grantWrite(@NotNull IGrantable grantee)
grantWrite in interface ISecretgrantWrite in interface ISecret.Jsii$DefaultgrantWrite in interface ISecretTargetAttachment.Jsii$Defaultgrantee - the principal being granted permission. This parameter is required.@Stability(value=Stable) @NotNull public final SecretValue secretValueFromJson(@NotNull String key)
secretValueFromJson in interface ISecretsecretValueFromJson in interface ISecret.Jsii$DefaultsecretValueFromJson in interface ISecretTargetAttachment.Jsii$Defaultkey - This parameter is required.Copyright © 2022. All rights reserved.