@Generated(value="jsii-pacmak/1.43.0 (build b69a797)", date="2021-11-15T00:20:48.975Z") @Stability(value=Stable) public class ConfigMap extends Resource implements IConfigMap
| Modifier and Type | Class and Description |
|---|---|
static class |
ConfigMap.Builder
A fluent builder for
ConfigMap. |
software.amazon.jsii.JsiiObject.InitializationModeIConfigMap.Jsii$Default, IConfigMap.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
ConfigMap(software.constructs.Construct scope,
String id) |
|
ConfigMap(software.constructs.Construct scope,
String id,
ConfigMapProps props) |
protected |
ConfigMap(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ConfigMap(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBinaryData(String key,
String value)
Adds a binary data entry to the config map.
|
void |
addData(String key,
String value)
Adds a data entry to the config map.
|
void |
addDirectory(String localDir)
Adds a directory to the ConfigMap.
|
void |
addDirectory(String localDir,
AddDirectoryOptions options)
Adds a directory to the ConfigMap.
|
void |
addFile(String localFile)
Adds a file to the ConfigMap.
|
void |
addFile(String localFile,
String key)
Adds a file to the ConfigMap.
|
static IConfigMap |
fromConfigMapName(String name)
Represents a ConfigMap created elsewhere.
|
protected org.cdk8s.ApiObject |
getApiObject()
The underlying cdk8s API object.
|
Map<String,String> |
getBinaryData()
The binary data associated with this config map.
|
Map<String,String> |
getData()
The data associated with this config map.
|
getMetadata, getNameonPrepare, onSynthesize, onValidate, toStringjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected ConfigMap(software.amazon.jsii.JsiiObjectRef objRef)
protected ConfigMap(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public ConfigMap(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
ConfigMapProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Stable)
public ConfigMap(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Stable) @NotNull public static IConfigMap fromConfigMapName(@NotNull String name)
name - The name of the config map to import. This parameter is required.@Stability(value=Stable)
public void addBinaryData(@NotNull
String key,
@NotNull
String value)
BinaryData can contain byte sequences that are not in the UTF-8 range.
key - The key. This parameter is required.value - The value. This parameter is required.@Stability(value=Stable)
public void addData(@NotNull
String key,
@NotNull
String value)
key - The key. This parameter is required.value - The value. This parameter is required.@Stability(value=Stable)
public void addDirectory(@NotNull
String localDir,
@Nullable
AddDirectoryOptions options)
localDir - A path to a local directory. This parameter is required.options - Options.@Stability(value=Stable)
public void addDirectory(@NotNull
String localDir)
localDir - A path to a local directory. This parameter is required.@Stability(value=Stable)
public void addFile(@NotNull
String localFile,
@Nullable
String key)
localFile - The path to the local file. This parameter is required.key - The ConfigMap key (default to the file name).@Stability(value=Stable)
public void addFile(@NotNull
String localFile)
localFile - The path to the local file. This parameter is required.@Stability(value=Stable) @NotNull protected org.cdk8s.ApiObject getApiObject()
getApiObject in class Resourcebase.Resource.apiObject@Stability(value=Stable) @NotNull public Map<String,String> getBinaryData()
Returns a copy. To add data records, use addBinaryData() or addData().
Copyright © 2021. All rights reserved.