Class IamWorkforcePoolConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • location

        @Stability(Stable)
        public IamWorkforcePoolConfig.Builder location​(String location)
        Parameters:
        location - The location for the resource. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/iam_workforce_pool#location IamWorkforcePool#location}
        Returns:
        this
      • parent

        @Stability(Stable)
        public IamWorkforcePoolConfig.Builder parent​(String parent)
        Parameters:
        parent - Immutable. The resource name of the parent. Format: 'organizations/{org-id}'. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/iam_workforce_pool#parent IamWorkforcePool#parent}
        Returns:
        this
      • workforcePoolId

        @Stability(Stable)
        public IamWorkforcePoolConfig.Builder workforcePoolId​(String workforcePoolId)
        Parameters:
        workforcePoolId - The name of the pool. This parameter is required. The ID must be a globally unique string of 6 to 63 lowercase letters, digits, or hyphens. It must start with a letter, and cannot have a trailing hyphen. The prefix 'gcp-' is reserved for use by Google, and may not be specified. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/iam_workforce_pool#workforce_pool_id IamWorkforcePool#workforce_pool_id}
        Returns:
        this
      • description

        @Stability(Stable)
        public IamWorkforcePoolConfig.Builder description​(String description)
        Parameters:
        description - A user-specified description of the pool. Cannot exceed 256 characters. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/iam_workforce_pool#description IamWorkforcePool#description}
        Returns:
        this
      • disabled

        @Stability(Stable)
        public IamWorkforcePoolConfig.Builder disabled​(Boolean disabled)
        Parameters:
        disabled - Whether the pool is disabled. You cannot use a disabled pool to exchange tokens, or use existing tokens to access resources. If the pool is re-enabled, existing tokens grant access again. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/iam_workforce_pool#disabled IamWorkforcePool#disabled}
        Returns:
        this
      • disabled

        @Stability(Stable)
        public IamWorkforcePoolConfig.Builder disabled​(com.hashicorp.cdktf.IResolvable disabled)
        Parameters:
        disabled - Whether the pool is disabled. You cannot use a disabled pool to exchange tokens, or use existing tokens to access resources. If the pool is re-enabled, existing tokens grant access again. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/iam_workforce_pool#disabled IamWorkforcePool#disabled}
        Returns:
        this
      • displayName

        @Stability(Stable)
        public IamWorkforcePoolConfig.Builder displayName​(String displayName)
        Parameters:
        displayName - A user-specified display name of the pool in Google Cloud Console. Cannot exceed 32 characters. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/iam_workforce_pool#display_name IamWorkforcePool#display_name}
        Returns:
        this
      • id

        @Stability(Stable)
        public IamWorkforcePoolConfig.Builder id​(String id)
        Parameters:
        id - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/iam_workforce_pool#id IamWorkforcePool#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
        Returns:
        this
      • sessionDuration

        @Stability(Stable)
        public IamWorkforcePoolConfig.Builder sessionDuration​(String sessionDuration)
        Parameters:
        sessionDuration - Duration that the Google Cloud access tokens, console sign-in sessions, and 'gcloud' sign-in sessions from this pool are valid. Must be greater than 15 minutes (900s) and less than 12 hours (43200s). If 'sessionDuration' is not configured, minted credentials have a default duration of one hour (3600s). A duration in seconds with up to nine fractional digits, ending with ''s''. Example: "'3.5s'". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/iam_workforce_pool#session_duration IamWorkforcePool#session_duration}
        Returns:
        this
      • connection

        @Stability(Experimental)
        public IamWorkforcePoolConfig.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Sets the value of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • connection

        @Stability(Experimental)
        public IamWorkforcePoolConfig.Builder connection​(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
        Sets the value of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • count

        @Stability(Experimental)
        public IamWorkforcePoolConfig.Builder count​(Number count)
        Sets the value of TerraformMetaArguments.getCount()
        Parameters:
        count - the value to be set.
        Returns:
        this
      • count

        @Stability(Experimental)
        public IamWorkforcePoolConfig.Builder count​(com.hashicorp.cdktf.TerraformCount count)
        Sets the value of TerraformMetaArguments.getCount()
        Parameters:
        count - the value to be set.
        Returns:
        this
      • dependsOn

        @Stability(Experimental)
        public IamWorkforcePoolConfig.Builder dependsOn​(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
        Sets the value of TerraformMetaArguments.getDependsOn()
        Parameters:
        dependsOn - the value to be set.
        Returns:
        this
      • forEach

        @Stability(Experimental)
        public IamWorkforcePoolConfig.Builder forEach​(com.hashicorp.cdktf.ITerraformIterator forEach)
        Sets the value of TerraformMetaArguments.getForEach()
        Parameters:
        forEach - the value to be set.
        Returns:
        this
      • lifecycle

        @Stability(Experimental)
        public IamWorkforcePoolConfig.Builder lifecycle​(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
        Sets the value of TerraformMetaArguments.getLifecycle()
        Parameters:
        lifecycle - the value to be set.
        Returns:
        this
      • provider

        @Stability(Experimental)
        public IamWorkforcePoolConfig.Builder provider​(com.hashicorp.cdktf.TerraformProvider provider)
        Sets the value of TerraformMetaArguments.getProvider()
        Parameters:
        provider - the value to be set.
        Returns:
        this
      • provisioners

        @Stability(Experimental)
        public IamWorkforcePoolConfig.Builder provisioners​(List<? extends Object> provisioners)
        Sets the value of TerraformMetaArguments.getProvisioners()
        Parameters:
        provisioners - the value to be set.
        Returns:
        this