@Generated(value="jsii-pacmak/1.13.0 (build 385c325)", date="2020-10-21T06:58:44.689Z") @Stability(value=Experimental) public class Secret extends Resource implements ISecret
Storing confidential information in a Secret is safer and more flexible than putting it verbatim in a Pod definition or in a container image.
https://kubernetes.io/docs/concepts/configuration/secret| Modifier and Type | Class and Description |
|---|---|
static class |
Secret.Builder
(experimental) A fluent builder for
Secret. |
software.amazon.jsii.JsiiObject.InitializationModeISecret.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
Secret(software.constructs.Construct scope,
String id) |
|
Secret(software.constructs.Construct scope,
String id,
SecretProps props) |
protected |
Secret(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Secret(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
addStringData(String key,
String value)
(experimental) Adds a string data field to the secert.
|
static ISecret |
fromSecretName(String name)
(experimental) Imports a secret from the cluster as a reference.
|
protected ApiObject |
getApiObject()
(experimental) The underlying cdk8s API object.
|
String |
getStringData(String key)
(experimental) Gets a string data by key or undefined.
|
getMetadata, getNameonPrepare, onSynthesize, onValidate, toStringjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSetprotected Secret(software.amazon.jsii.JsiiObjectRef objRef)
protected Secret(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public Secret(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
SecretProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Experimental)
public Secret(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Experimental) @NotNull public static ISecret fromSecretName(@NotNull String name)
name - The name of the secret to reference. This parameter is required.@Stability(value=Experimental)
public void addStringData(@NotNull
String key,
@NotNull
String value)
key - Key. This parameter is required.value - Value. This parameter is required.@Stability(value=Experimental) @Nullable public String getStringData(@NotNull String key)
key - Key. This parameter is required.@Stability(value=Experimental) @NotNull protected ApiObject getApiObject()
getApiObject in class Resourcebase.Resource.apiObjectCopyright © 2020. All rights reserved.