Class ServiceAccountKey

  • All Implemented Interfaces:
    com.hashicorp.cdktf.IInterpolatingParent, com.hashicorp.cdktf.ITerraformAddressable, com.hashicorp.cdktf.ITerraformDependable, com.hashicorp.cdktf.ITerraformResource, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

    @Generated(value="jsii-pacmak/1.102.0 (build e354887)",
               date="2024-08-31T03:59:22.719Z")
    @Stability(Stable)
    public class ServiceAccountKey
    extends com.hashicorp.cdktf.TerraformResource
    Represents a {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_account_key google_service_account_key}.
    • Field Detail

      • TF_RESOURCE_TYPE

        @Stability(Stable)
        public static final String TF_RESOURCE_TYPE
    • Constructor Detail

      • ServiceAccountKey

        protected ServiceAccountKey​(software.amazon.jsii.JsiiObjectRef objRef)
      • ServiceAccountKey

        protected ServiceAccountKey​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
      • ServiceAccountKey

        @Stability(Stable)
        public ServiceAccountKey​(@NotNull
                                 software.constructs.Construct scope,
                                 @NotNull
                                 String id,
                                 @NotNull
                                 ServiceAccountKeyConfig config)
        Create a new {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_account_key google_service_account_key} Resource.

        Parameters:
        scope - The scope in which to define this construct. This parameter is required.
        id - The scoped construct ID. This parameter is required.
        config - This parameter is required.
    • Method Detail

      • generateConfigForImport

        @Stability(Stable)
        @NotNull
        public static com.hashicorp.cdktf.ImportableResource generateConfigForImport​(@NotNull
                                                                                     software.constructs.Construct scope,
                                                                                     @NotNull
                                                                                     String importToId,
                                                                                     @NotNull
                                                                                     String importFromId,
                                                                                     @Nullable
                                                                                     com.hashicorp.cdktf.TerraformProvider provider)
        Generates CDKTF code for importing a ServiceAccountKey resource upon running "cdktf plan ".

        Parameters:
        scope - The scope in which to define this construct. This parameter is required.
        importToId - The construct id used in the generated config for the ServiceAccountKey to import. This parameter is required.
        importFromId - The id of the existing ServiceAccountKey that should be imported. This parameter is required.
        provider - ? Optional instance of the provider where the ServiceAccountKey to import is found.
      • generateConfigForImport

        @Stability(Stable)
        @NotNull
        public static com.hashicorp.cdktf.ImportableResource generateConfigForImport​(@NotNull
                                                                                     software.constructs.Construct scope,
                                                                                     @NotNull
                                                                                     String importToId,
                                                                                     @NotNull
                                                                                     String importFromId)
        Generates CDKTF code for importing a ServiceAccountKey resource upon running "cdktf plan ".

        Parameters:
        scope - The scope in which to define this construct. This parameter is required.
        importToId - The construct id used in the generated config for the ServiceAccountKey to import. This parameter is required.
        importFromId - The id of the existing ServiceAccountKey that should be imported. This parameter is required.
      • resetId

        @Stability(Stable)
        public void resetId()
      • resetKeepers

        @Stability(Stable)
        public void resetKeepers()
      • resetKeyAlgorithm

        @Stability(Stable)
        public void resetKeyAlgorithm()
      • resetPrivateKeyType

        @Stability(Stable)
        public void resetPrivateKeyType()
      • resetPublicKeyData

        @Stability(Stable)
        public void resetPublicKeyData()
      • resetPublicKeyType

        @Stability(Stable)
        public void resetPublicKeyType()
      • synthesizeAttributes

        @Stability(Stable)
        @NotNull
        protected Map<String,​Object> synthesizeAttributes()
        Overrides:
        synthesizeAttributes in class com.hashicorp.cdktf.TerraformResource
      • synthesizeHclAttributes

        @Stability(Stable)
        @NotNull
        protected Map<String,​Object> synthesizeHclAttributes()
        Overrides:
        synthesizeHclAttributes in class com.hashicorp.cdktf.TerraformResource
      • getName

        @Stability(Stable)
        @NotNull
        public String getName()
      • getPrivateKey

        @Stability(Stable)
        @NotNull
        public String getPrivateKey()
      • getPublicKey

        @Stability(Stable)
        @NotNull
        public String getPublicKey()
      • getValidAfter

        @Stability(Stable)
        @NotNull
        public String getValidAfter()
      • getValidBefore

        @Stability(Stable)
        @NotNull
        public String getValidBefore()
      • getIdInput

        @Stability(Stable)
        @Nullable
        public String getIdInput()
      • getKeepersInput

        @Stability(Stable)
        @Nullable
        public Map<String,​String> getKeepersInput()
      • getKeyAlgorithmInput

        @Stability(Stable)
        @Nullable
        public String getKeyAlgorithmInput()
      • getPrivateKeyTypeInput

        @Stability(Stable)
        @Nullable
        public String getPrivateKeyTypeInput()
      • getPublicKeyDataInput

        @Stability(Stable)
        @Nullable
        public String getPublicKeyDataInput()
      • getPublicKeyTypeInput

        @Stability(Stable)
        @Nullable
        public String getPublicKeyTypeInput()
      • getServiceAccountIdInput

        @Stability(Stable)
        @Nullable
        public String getServiceAccountIdInput()
      • getId

        @Stability(Stable)
        @NotNull
        public String getId()
      • setId

        @Stability(Stable)
        public void setId​(@NotNull
                          String value)
      • getKeepers

        @Stability(Stable)
        @NotNull
        public Map<String,​String> getKeepers()
      • setKeepers

        @Stability(Stable)
        public void setKeepers​(@NotNull
                               Map<String,​String> value)
      • getKeyAlgorithm

        @Stability(Stable)
        @NotNull
        public String getKeyAlgorithm()
      • setKeyAlgorithm

        @Stability(Stable)
        public void setKeyAlgorithm​(@NotNull
                                    String value)
      • getPrivateKeyType

        @Stability(Stable)
        @NotNull
        public String getPrivateKeyType()
      • setPrivateKeyType

        @Stability(Stable)
        public void setPrivateKeyType​(@NotNull
                                      String value)
      • getPublicKeyData

        @Stability(Stable)
        @NotNull
        public String getPublicKeyData()
      • setPublicKeyData

        @Stability(Stable)
        public void setPublicKeyData​(@NotNull
                                     String value)
      • getPublicKeyType

        @Stability(Stable)
        @NotNull
        public String getPublicKeyType()
      • setPublicKeyType

        @Stability(Stable)
        public void setPublicKeyType​(@NotNull
                                     String value)
      • getServiceAccountId

        @Stability(Stable)
        @NotNull
        public String getServiceAccountId()
      • setServiceAccountId

        @Stability(Stable)
        public void setServiceAccountId​(@NotNull
                                        String value)