Class ServiceAccountKeyConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • serviceAccountId

        @Stability(Stable)
        public ServiceAccountKeyConfig.Builder serviceAccountId​(String serviceAccountId)
        Parameters:
        serviceAccountId - The ID of the parent service account of the key. This parameter is required. This can be a string in the format {ACCOUNT} or projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}, where {ACCOUNT} is the email address or unique id of the service account. If the {ACCOUNT} syntax is used, the project will be inferred from the provider's configuration. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_account_key#service_account_id ServiceAccountKey#service_account_id}
        Returns:
        this
      • id

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

        @Stability(Stable)
        public ServiceAccountKeyConfig.Builder keepers​(Map<String,​String> keepers)
        Parameters:
        keepers - Arbitrary map of values that, when changed, will trigger recreation of resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_account_key#keepers ServiceAccountKey#keepers}
        Returns:
        this
      • keyAlgorithm

        @Stability(Stable)
        public ServiceAccountKeyConfig.Builder keyAlgorithm​(String keyAlgorithm)
        Parameters:
        keyAlgorithm - The algorithm used to generate the key, used only on create. KEY_ALG_RSA_2048 is the default algorithm. Valid values are: "KEY_ALG_RSA_1024", "KEY_ALG_RSA_2048". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_account_key#key_algorithm ServiceAccountKey#key_algorithm}
        Returns:
        this
      • privateKeyType

        @Stability(Stable)
        public ServiceAccountKeyConfig.Builder privateKeyType​(String privateKeyType)
        Parameters:
        privateKeyType - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_account_key#private_key_type ServiceAccountKey#private_key_type}.
        Returns:
        this
      • publicKeyData

        @Stability(Stable)
        public ServiceAccountKeyConfig.Builder publicKeyData​(String publicKeyData)
        Parameters:
        publicKeyData - A field that allows clients to upload their own public key. If set, use this public key data to create a service account key for given service account. Please note, the expected format for this field is a base64 encoded X509_PEM. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_account_key#public_key_data ServiceAccountKey#public_key_data}
        Returns:
        this
      • publicKeyType

        @Stability(Stable)
        public ServiceAccountKeyConfig.Builder publicKeyType​(String publicKeyType)
        Parameters:
        publicKeyType - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_account_key#public_key_type ServiceAccountKey#public_key_type}.
        Returns:
        this
      • connection

        @Stability(Experimental)
        public ServiceAccountKeyConfig.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 ServiceAccountKeyConfig.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 ServiceAccountKeyConfig.Builder count​(Number count)
        Sets the value of TerraformMetaArguments.getCount()
        Parameters:
        count - the value to be set.
        Returns:
        this
      • count

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