Class IamWorkloadIdentityPoolProviderOidc.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.iam_workload_identity_pool_provider.IamWorkloadIdentityPoolProviderOidc.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<IamWorkloadIdentityPoolProviderOidc>
- Enclosing interface:
- IamWorkloadIdentityPoolProviderOidc
@Stability(Stable) public static final class IamWorkloadIdentityPoolProviderOidc.Builder extends Object implements software.amazon.jsii.Builder<IamWorkloadIdentityPoolProviderOidc>
A builder forIamWorkloadIdentityPoolProviderOidc
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IamWorkloadIdentityPoolProviderOidc.BuilderallowedAudiences(List<String> allowedAudiences)Sets the value ofIamWorkloadIdentityPoolProviderOidc.getAllowedAudiences()IamWorkloadIdentityPoolProviderOidcbuild()Builds the configured instance.IamWorkloadIdentityPoolProviderOidc.BuilderissuerUri(String issuerUri)Sets the value ofIamWorkloadIdentityPoolProviderOidc.getIssuerUri()IamWorkloadIdentityPoolProviderOidc.BuilderjwksJson(String jwksJson)Sets the value ofIamWorkloadIdentityPoolProviderOidc.getJwksJson()
-
-
-
Method Detail
-
issuerUri
@Stability(Stable) public IamWorkloadIdentityPoolProviderOidc.Builder issuerUri(String issuerUri)
Sets the value ofIamWorkloadIdentityPoolProviderOidc.getIssuerUri()- Parameters:
issuerUri- The OIDC issuer URL. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/iam_workload_identity_pool_provider#issuer_uri IamWorkloadIdentityPoolProvider#issuer_uri}- Returns:
this
-
allowedAudiences
@Stability(Stable) public IamWorkloadIdentityPoolProviderOidc.Builder allowedAudiences(List<String> allowedAudiences)
Sets the value ofIamWorkloadIdentityPoolProviderOidc.getAllowedAudiences()- Parameters:
allowedAudiences- Acceptable values for the 'aud' field (audience) in the OIDC token. Token exchange requests are rejected if the token audience does not match one of the configured values. Each audience may be at most 256 characters. A maximum of 10 audiences may be configured. If this list is empty, the OIDC token audience must be equal to the full canonical resource name of the WorkloadIdentityPoolProvider, with or without the HTTPS prefix. For example: ``` //iam.googleapis.com/projects//locations/ /workloadIdentityPools/ /providers/ https://iam.googleapis.com/projects/ /locations/ /workloadIdentityPools/ /providers/ ``` Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/iam_workload_identity_pool_provider#allowed_audiences IamWorkloadIdentityPoolProvider#allowed_audiences} - Returns:
this
-
jwksJson
@Stability(Stable) public IamWorkloadIdentityPoolProviderOidc.Builder jwksJson(String jwksJson)
Sets the value ofIamWorkloadIdentityPoolProviderOidc.getJwksJson()- Parameters:
jwksJson- OIDC JWKs in JSON String format. For details on definition of a JWK, see https:tools.ietf.org/html/rfc7517. If not set, then we use the 'jwks_uri' from the discovery document fetched from the .well-known path for the 'issuer_uri'. Currently, RSA and EC asymmetric keys are supported. The JWK must use following format and include only the following fields: ``` { "keys": [ { "kty": "RSA/EC", "alg": "", "use": "sig", "kid": " ", "n": "", "e": "", "x": "", "y": "", "crv": "" } ] } ``` Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/iam_workload_identity_pool_provider#jwks_json IamWorkloadIdentityPoolProvider#jwks_json} - Returns:
this
-
build
@Stability(Stable) public IamWorkloadIdentityPoolProviderOidc build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<IamWorkloadIdentityPoolProviderOidc>- Returns:
- a new instance of
IamWorkloadIdentityPoolProviderOidc - Throws:
NullPointerException- if any required attribute was not provided
-
-