Class ServiceAccount.Builder

    • Method Detail

      • create

        @Stability(Stable)
        public static ServiceAccount.Builder create​(software.constructs.Construct scope,
                                                    String id)
        Parameters:
        scope - The scope in which to define this construct. This parameter is required.
        id - The scoped construct ID. This parameter is required.
        Returns:
        a new instance of ServiceAccount.Builder.
      • connection

        @Stability(Experimental)
        public ServiceAccount.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • connection

        @Stability(Experimental)
        public ServiceAccount.Builder connection​(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • count

        @Stability(Experimental)
        public ServiceAccount.Builder count​(Number count)
        Parameters:
        count - This parameter is required.
        Returns:
        this
      • count

        @Stability(Experimental)
        public ServiceAccount.Builder count​(com.hashicorp.cdktf.TerraformCount count)
        Parameters:
        count - This parameter is required.
        Returns:
        this
      • dependsOn

        @Stability(Experimental)
        public ServiceAccount.Builder dependsOn​(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
        Parameters:
        dependsOn - This parameter is required.
        Returns:
        this
      • forEach

        @Stability(Experimental)
        public ServiceAccount.Builder forEach​(com.hashicorp.cdktf.ITerraformIterator forEach)
        Parameters:
        forEach - This parameter is required.
        Returns:
        this
      • lifecycle

        @Stability(Experimental)
        public ServiceAccount.Builder lifecycle​(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
        Parameters:
        lifecycle - This parameter is required.
        Returns:
        this
      • provider

        @Stability(Experimental)
        public ServiceAccount.Builder provider​(com.hashicorp.cdktf.TerraformProvider provider)
        Parameters:
        provider - This parameter is required.
        Returns:
        this
      • provisioners

        @Stability(Experimental)
        public ServiceAccount.Builder provisioners​(List<? extends Object> provisioners)
        Parameters:
        provisioners - This parameter is required.
        Returns:
        this
      • accountId

        @Stability(Stable)
        public ServiceAccount.Builder accountId​(String accountId)
        The account id that is used to generate the service account email address and a stable unique id.

        It is unique within a project, must be 6-30 characters long, and match the regular expression [a-z](%5B-a-z0-9%5D*%5Ba-z0-9%5D) to comply with RFC1035. Changing this forces a new service account to be created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_account#account_id ServiceAccount#account_id}

        Parameters:
        accountId - The account id that is used to generate the service account email address and a stable unique id. This parameter is required.
        Returns:
        this
      • createIgnoreAlreadyExists

        @Stability(Stable)
        public ServiceAccount.Builder createIgnoreAlreadyExists​(Boolean createIgnoreAlreadyExists)
        If set to true, skip service account creation if a service account with the same email already exists.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_account#create_ignore_already_exists ServiceAccount#create_ignore_already_exists}

        Parameters:
        createIgnoreAlreadyExists - If set to true, skip service account creation if a service account with the same email already exists. This parameter is required.
        Returns:
        this
      • createIgnoreAlreadyExists

        @Stability(Stable)
        public ServiceAccount.Builder createIgnoreAlreadyExists​(com.hashicorp.cdktf.IResolvable createIgnoreAlreadyExists)
        If set to true, skip service account creation if a service account with the same email already exists.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_account#create_ignore_already_exists ServiceAccount#create_ignore_already_exists}

        Parameters:
        createIgnoreAlreadyExists - If set to true, skip service account creation if a service account with the same email already exists. This parameter is required.
        Returns:
        this
      • description

        @Stability(Stable)
        public ServiceAccount.Builder description​(String description)
        A text description of the service account. Must be less than or equal to 256 UTF-8 bytes.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_account#description ServiceAccount#description}

        Parameters:
        description - A text description of the service account. Must be less than or equal to 256 UTF-8 bytes. This parameter is required.
        Returns:
        this
      • disabled

        @Stability(Stable)
        public ServiceAccount.Builder disabled​(Boolean disabled)
        Whether the service account is disabled. Defaults to false.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_account#disabled ServiceAccount#disabled}

        Parameters:
        disabled - Whether the service account is disabled. Defaults to false. This parameter is required.
        Returns:
        this
      • disabled

        @Stability(Stable)
        public ServiceAccount.Builder disabled​(com.hashicorp.cdktf.IResolvable disabled)
        Whether the service account is disabled. Defaults to false.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_account#disabled ServiceAccount#disabled}

        Parameters:
        disabled - Whether the service account is disabled. Defaults to false. This parameter is required.
        Returns:
        this
      • displayName

        @Stability(Stable)
        public ServiceAccount.Builder displayName​(String displayName)
        The display name for the service account. Can be updated without creating a new resource.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_account#display_name ServiceAccount#display_name}

        Parameters:
        displayName - The display name for the service account. Can be updated without creating a new resource. This parameter is required.
        Returns:
        this
      • id

        @Stability(Stable)
        public ServiceAccount.Builder id​(String id)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_account#id ServiceAccount#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.

        Parameters:
        id - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_account#id ServiceAccount#id}. This parameter is required.
        Returns:
        this
      • project

        @Stability(Stable)
        public ServiceAccount.Builder project​(String project)
        The ID of the project that the service account will be created in. Defaults to the provider project configuration.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_account#project ServiceAccount#project}

        Parameters:
        project - The ID of the project that the service account will be created in. Defaults to the provider project configuration. This parameter is required.
        Returns:
        this
      • timeouts

        @Stability(Stable)
        public ServiceAccount.Builder timeouts​(ServiceAccountTimeouts timeouts)
        timeouts block.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_account#timeouts ServiceAccount#timeouts}

        Parameters:
        timeouts - timeouts block. This parameter is required.
        Returns:
        this