Class ServiceAccountKey.Builder

    • Method Detail

      • create

        @Stability(Stable)
        public static ServiceAccountKey.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 ServiceAccountKey.Builder.
      • connection

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

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

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

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

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

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

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

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

        @Stability(Stable)
        public ServiceAccountKey.Builder serviceAccountId​(String serviceAccountId)
        The ID of the parent service account of the key.

        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}

        Parameters:
        serviceAccountId - The ID of the parent service account of the key. This parameter is required.
        Returns:
        this
      • id

        @Stability(Stable)
        public ServiceAccountKey.Builder id​(String 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.

        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}. This parameter is required.
        Returns:
        this
      • keepers

        @Stability(Stable)
        public ServiceAccountKey.Builder keepers​(Map<String,​String> 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}

        Parameters:
        keepers - Arbitrary map of values that, when changed, will trigger recreation of resource. This parameter is required.
        Returns:
        this
      • keyAlgorithm

        @Stability(Stable)
        public ServiceAccountKey.Builder keyAlgorithm​(String 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}

        Parameters:
        keyAlgorithm - The algorithm used to generate the key, used only on create. This parameter is required.
        Returns:
        this
      • privateKeyType

        @Stability(Stable)
        public ServiceAccountKey.Builder privateKeyType​(String 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}.

        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}. This parameter is required.
        Returns:
        this
      • publicKeyData

        @Stability(Stable)
        public ServiceAccountKey.Builder publicKeyData​(String 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}

        Parameters:
        publicKeyData - A field that allows clients to upload their own public key. This parameter is required.
        Returns:
        this
      • publicKeyType

        @Stability(Stable)
        public ServiceAccountKey.Builder publicKeyType​(String 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}.

        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}. This parameter is required.
        Returns:
        this