Class CloudfunctionsFunctionSecretVolumes.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloudfunctions_function.CloudfunctionsFunctionSecretVolumes.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudfunctionsFunctionSecretVolumes>
- Enclosing interface:
- CloudfunctionsFunctionSecretVolumes
@Stability(Stable) public static final class CloudfunctionsFunctionSecretVolumes.Builder extends Object implements software.amazon.jsii.Builder<CloudfunctionsFunctionSecretVolumes>
A builder forCloudfunctionsFunctionSecretVolumes
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudfunctionsFunctionSecretVolumesbuild()Builds the configured instance.CloudfunctionsFunctionSecretVolumes.BuildermountPath(String mountPath)Sets the value ofCloudfunctionsFunctionSecretVolumes.getMountPath()CloudfunctionsFunctionSecretVolumes.BuilderprojectId(String projectId)Sets the value ofCloudfunctionsFunctionSecretVolumes.getProjectId()CloudfunctionsFunctionSecretVolumes.Buildersecret(String secret)Sets the value ofCloudfunctionsFunctionSecretVolumes.getSecret()CloudfunctionsFunctionSecretVolumes.Builderversions(com.hashicorp.cdktf.IResolvable versions)Sets the value ofCloudfunctionsFunctionSecretVolumes.getVersions()CloudfunctionsFunctionSecretVolumes.Builderversions(List<? extends CloudfunctionsFunctionSecretVolumesVersions> versions)Sets the value ofCloudfunctionsFunctionSecretVolumes.getVersions()
-
-
-
Method Detail
-
mountPath
@Stability(Stable) public CloudfunctionsFunctionSecretVolumes.Builder mountPath(String mountPath)
Sets the value ofCloudfunctionsFunctionSecretVolumes.getMountPath()- Parameters:
mountPath- The path within the container to mount the secret volume. This parameter is required. For example, setting the mount_path 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 paths: "/etc/secrets" Restricted mount paths: "/cloudsql", "/dev/log", "/pod", "/proc", "/var/log". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions_function#mount_path CloudfunctionsFunction#mount_path}- Returns:
this
-
secret
@Stability(Stable) public CloudfunctionsFunctionSecretVolumes.Builder secret(String secret)
Sets the value ofCloudfunctionsFunctionSecretVolumes.getSecret()- Parameters:
secret- ID 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/cloudfunctions_function#secret CloudfunctionsFunction#secret}- Returns:
this
-
projectId
@Stability(Stable) public CloudfunctionsFunctionSecretVolumes.Builder projectId(String projectId)
Sets the value ofCloudfunctionsFunctionSecretVolumes.getProjectId()- Parameters:
projectId- Project identifier (due to a known limitation, only project number is supported by this field) of the project that contains the secret. 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/cloudfunctions_function#project_id CloudfunctionsFunction#project_id}- Returns:
this
-
versions
@Stability(Stable) public CloudfunctionsFunctionSecretVolumes.Builder versions(com.hashicorp.cdktf.IResolvable versions)
Sets the value ofCloudfunctionsFunctionSecretVolumes.getVersions()- Parameters:
versions- versions block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions_function#versions CloudfunctionsFunction#versions}- Returns:
this
-
versions
@Stability(Stable) public CloudfunctionsFunctionSecretVolumes.Builder versions(List<? extends CloudfunctionsFunctionSecretVolumesVersions> versions)
Sets the value ofCloudfunctionsFunctionSecretVolumes.getVersions()- Parameters:
versions- versions block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions_function#versions CloudfunctionsFunction#versions}- Returns:
this
-
build
@Stability(Stable) public CloudfunctionsFunctionSecretVolumes build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudfunctionsFunctionSecretVolumes>- Returns:
- a new instance of
CloudfunctionsFunctionSecretVolumes - Throws:
NullPointerException- if any required attribute was not provided
-
-