Package org.cdk8s.plus24
Class Secret.Builder
- java.lang.Object
-
- org.cdk8s.plus24.Secret.Builder
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Secret
build()
static Secret.Builder
create(software.constructs.Construct scope, String id)
Secret.Builder
immutable(Boolean immutable)
If set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified).Secret.Builder
metadata(org.cdk8s.ApiObjectMetadata metadata)
Metadata that all persisted resources must have, which includes all objects users must create.Secret.Builder
stringData(Map<String,String> stringData)
stringData allows specifying non-binary secret data in string form.Secret.Builder
type(String type)
Optional type associated with the secret.
-
-
-
Method Detail
-
create
@Stability(Stable) public static Secret.Builder create(software.constructs.Construct scope, String id)
- Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
Secret.Builder
.
-
metadata
@Stability(Stable) public Secret.Builder metadata(org.cdk8s.ApiObjectMetadata metadata)
Metadata that all persisted resources must have, which includes all objects users must create.- Parameters:
metadata
- Metadata that all persisted resources must have, which includes all objects users must create. This parameter is required.- Returns:
this
-
immutable
@Stability(Stable) public Secret.Builder immutable(Boolean immutable)
If set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified).If not set to true, the field can be modified at any time.
Default: false
- Parameters:
immutable
- If set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). This parameter is required.- Returns:
this
-
stringData
@Stability(Stable) public Secret.Builder stringData(Map<String,String> stringData)
stringData allows specifying non-binary secret data in string form.It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API.
- Parameters:
stringData
- stringData allows specifying non-binary secret data in string form. This parameter is required.- Returns:
this
-
type
@Stability(Stable) public Secret.Builder type(String type)
Optional type associated with the secret.Used to facilitate programmatic handling of secret data by various controllers.
Default: undefined - Don't set a type.
- Parameters:
type
- Optional type associated with the secret. This parameter is required.- Returns:
this
-
-