Class Cloudfunctions2FunctionServiceConfigSecretVolumes.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloudfunctions2_function.Cloudfunctions2FunctionServiceConfigSecretVolumes.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<Cloudfunctions2FunctionServiceConfigSecretVolumes>
- Enclosing interface:
- Cloudfunctions2FunctionServiceConfigSecretVolumes
@Stability(Stable) public static final class Cloudfunctions2FunctionServiceConfigSecretVolumes.Builder extends Object implements software.amazon.jsii.Builder<Cloudfunctions2FunctionServiceConfigSecretVolumes>
A builder forCloudfunctions2FunctionServiceConfigSecretVolumes
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
mountPath
@Stability(Stable) public Cloudfunctions2FunctionServiceConfigSecretVolumes.Builder mountPath(String mountPath)
Sets the value ofCloudfunctions2FunctionServiceConfigSecretVolumes.getMountPath()- Parameters:
mountPath- The path within the container to mount the secret volume. This parameter is required. For example, setting the mountPath as /etc/secrets would mount the secret value files under the /etc/secrets directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount path: /etc/secrets Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#mount_path Cloudfunctions2Function#mount_path}- Returns:
this
-
projectId
@Stability(Stable) public Cloudfunctions2FunctionServiceConfigSecretVolumes.Builder projectId(String projectId)
Sets the value ofCloudfunctions2FunctionServiceConfigSecretVolumes.getProjectId()- Parameters:
projectId- Project identifier (preferrably project number but can also be the project ID) of the project that contains the secret. This parameter is required. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#project_id Cloudfunctions2Function#project_id}- Returns:
this
-
secret
@Stability(Stable) public Cloudfunctions2FunctionServiceConfigSecretVolumes.Builder secret(String secret)
Sets the value ofCloudfunctions2FunctionServiceConfigSecretVolumes.getSecret()- Parameters:
secret- Name of the secret in secret manager (not the full resource name). This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#secret Cloudfunctions2Function#secret}- Returns:
this
-
versions
@Stability(Stable) public Cloudfunctions2FunctionServiceConfigSecretVolumes.Builder versions(com.hashicorp.cdktf.IResolvable versions)
Sets the value ofCloudfunctions2FunctionServiceConfigSecretVolumes.getVersions()- Parameters:
versions- versions block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#versions Cloudfunctions2Function#versions}- Returns:
this
-
versions
@Stability(Stable) public Cloudfunctions2FunctionServiceConfigSecretVolumes.Builder versions(List<? extends Cloudfunctions2FunctionServiceConfigSecretVolumesVersions> versions)
Sets the value ofCloudfunctions2FunctionServiceConfigSecretVolumes.getVersions()- Parameters:
versions- versions block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#versions Cloudfunctions2Function#versions}- Returns:
this
-
build
@Stability(Stable) public Cloudfunctions2FunctionServiceConfigSecretVolumes build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<Cloudfunctions2FunctionServiceConfigSecretVolumes>- Returns:
- a new instance of
Cloudfunctions2FunctionServiceConfigSecretVolumes - Throws:
NullPointerException- if any required attribute was not provided
-
-