1. Packages
  2. Packages
  3. Akeyless Provider
  4. API Docs
  5. TargetGke
Viewing docs for akeyless 2.0.1
published on Monday, Apr 27, 2026 by akeyless-community
Viewing docs for akeyless 2.0.1
published on Monday, Apr 27, 2026 by akeyless-community

    GKE Target resource

    Create TargetGke Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new TargetGke(name: string, args?: TargetGkeArgs, opts?: CustomResourceOptions);
    @overload
    def TargetGke(resource_name: str,
                  args: Optional[TargetGkeArgs] = None,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def TargetGke(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  description: Optional[str] = None,
                  gke_account_key: Optional[str] = None,
                  gke_cluster_cert: Optional[str] = None,
                  gke_cluster_endpoint: Optional[str] = None,
                  gke_cluster_name: Optional[str] = None,
                  gke_service_account_email: Optional[str] = None,
                  keep_prev_version: Optional[str] = None,
                  key: Optional[str] = None,
                  max_versions: Optional[str] = None,
                  name: Optional[str] = None,
                  target_gke_id: Optional[str] = None,
                  use_gw_cloud_identity: Optional[bool] = None)
    func NewTargetGke(ctx *Context, name string, args *TargetGkeArgs, opts ...ResourceOption) (*TargetGke, error)
    public TargetGke(string name, TargetGkeArgs? args = null, CustomResourceOptions? opts = null)
    public TargetGke(String name, TargetGkeArgs args)
    public TargetGke(String name, TargetGkeArgs args, CustomResourceOptions options)
    
    type: akeyless:TargetGke
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args TargetGkeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args TargetGkeArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args TargetGkeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TargetGkeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TargetGkeArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var targetGkeResource = new Akeyless.TargetGke("targetGkeResource", new()
    {
        Description = "string",
        GkeAccountKey = "string",
        GkeClusterCert = "string",
        GkeClusterEndpoint = "string",
        GkeClusterName = "string",
        GkeServiceAccountEmail = "string",
        KeepPrevVersion = "string",
        Key = "string",
        MaxVersions = "string",
        Name = "string",
        TargetGkeId = "string",
        UseGwCloudIdentity = false,
    });
    
    example, err := akeyless.NewTargetGke(ctx, "targetGkeResource", &akeyless.TargetGkeArgs{
    	Description:            pulumi.String("string"),
    	GkeAccountKey:          pulumi.String("string"),
    	GkeClusterCert:         pulumi.String("string"),
    	GkeClusterEndpoint:     pulumi.String("string"),
    	GkeClusterName:         pulumi.String("string"),
    	GkeServiceAccountEmail: pulumi.String("string"),
    	KeepPrevVersion:        pulumi.String("string"),
    	Key:                    pulumi.String("string"),
    	MaxVersions:            pulumi.String("string"),
    	Name:                   pulumi.String("string"),
    	TargetGkeId:            pulumi.String("string"),
    	UseGwCloudIdentity:     pulumi.Bool(false),
    })
    
    var targetGkeResource = new TargetGke("targetGkeResource", TargetGkeArgs.builder()
        .description("string")
        .gkeAccountKey("string")
        .gkeClusterCert("string")
        .gkeClusterEndpoint("string")
        .gkeClusterName("string")
        .gkeServiceAccountEmail("string")
        .keepPrevVersion("string")
        .key("string")
        .maxVersions("string")
        .name("string")
        .targetGkeId("string")
        .useGwCloudIdentity(false)
        .build());
    
    target_gke_resource = akeyless.TargetGke("targetGkeResource",
        description="string",
        gke_account_key="string",
        gke_cluster_cert="string",
        gke_cluster_endpoint="string",
        gke_cluster_name="string",
        gke_service_account_email="string",
        keep_prev_version="string",
        key="string",
        max_versions="string",
        name="string",
        target_gke_id="string",
        use_gw_cloud_identity=False)
    
    const targetGkeResource = new akeyless.TargetGke("targetGkeResource", {
        description: "string",
        gkeAccountKey: "string",
        gkeClusterCert: "string",
        gkeClusterEndpoint: "string",
        gkeClusterName: "string",
        gkeServiceAccountEmail: "string",
        keepPrevVersion: "string",
        key: "string",
        maxVersions: "string",
        name: "string",
        targetGkeId: "string",
        useGwCloudIdentity: false,
    });
    
    type: akeyless:TargetGke
    properties:
        description: string
        gkeAccountKey: string
        gkeClusterCert: string
        gkeClusterEndpoint: string
        gkeClusterName: string
        gkeServiceAccountEmail: string
        keepPrevVersion: string
        key: string
        maxVersions: string
        name: string
        targetGkeId: string
        useGwCloudIdentity: false
    

    TargetGke Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The TargetGke resource accepts the following input properties:

    Description string
    Description of the object
    GkeAccountKey string
    GKE Service Account key file path
    GkeClusterCert string
    GKE cluster CA certificate
    GkeClusterEndpoint string
    GKE cluster URL endpoint
    GkeClusterName string
    GKE cluster name
    GkeServiceAccountEmail string
    GKE service account email
    KeepPrevVersion string
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    Key string
    The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
    MaxVersions string
    Set the maximum number of versions, limited by the account settings defaults.
    Name string
    Target name
    TargetGkeId string
    The ID of this resource.
    UseGwCloudIdentity bool
    Use the GW's Cloud IAM
    Description string
    Description of the object
    GkeAccountKey string
    GKE Service Account key file path
    GkeClusterCert string
    GKE cluster CA certificate
    GkeClusterEndpoint string
    GKE cluster URL endpoint
    GkeClusterName string
    GKE cluster name
    GkeServiceAccountEmail string
    GKE service account email
    KeepPrevVersion string
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    Key string
    The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
    MaxVersions string
    Set the maximum number of versions, limited by the account settings defaults.
    Name string
    Target name
    TargetGkeId string
    The ID of this resource.
    UseGwCloudIdentity bool
    Use the GW's Cloud IAM
    description String
    Description of the object
    gkeAccountKey String
    GKE Service Account key file path
    gkeClusterCert String
    GKE cluster CA certificate
    gkeClusterEndpoint String
    GKE cluster URL endpoint
    gkeClusterName String
    GKE cluster name
    gkeServiceAccountEmail String
    GKE service account email
    keepPrevVersion String
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    key String
    The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
    maxVersions String
    Set the maximum number of versions, limited by the account settings defaults.
    name String
    Target name
    targetGkeId String
    The ID of this resource.
    useGwCloudIdentity Boolean
    Use the GW's Cloud IAM
    description string
    Description of the object
    gkeAccountKey string
    GKE Service Account key file path
    gkeClusterCert string
    GKE cluster CA certificate
    gkeClusterEndpoint string
    GKE cluster URL endpoint
    gkeClusterName string
    GKE cluster name
    gkeServiceAccountEmail string
    GKE service account email
    keepPrevVersion string
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    key string
    The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
    maxVersions string
    Set the maximum number of versions, limited by the account settings defaults.
    name string
    Target name
    targetGkeId string
    The ID of this resource.
    useGwCloudIdentity boolean
    Use the GW's Cloud IAM
    description str
    Description of the object
    gke_account_key str
    GKE Service Account key file path
    gke_cluster_cert str
    GKE cluster CA certificate
    gke_cluster_endpoint str
    GKE cluster URL endpoint
    gke_cluster_name str
    GKE cluster name
    gke_service_account_email str
    GKE service account email
    keep_prev_version str
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    key str
    The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
    max_versions str
    Set the maximum number of versions, limited by the account settings defaults.
    name str
    Target name
    target_gke_id str
    The ID of this resource.
    use_gw_cloud_identity bool
    Use the GW's Cloud IAM
    description String
    Description of the object
    gkeAccountKey String
    GKE Service Account key file path
    gkeClusterCert String
    GKE cluster CA certificate
    gkeClusterEndpoint String
    GKE cluster URL endpoint
    gkeClusterName String
    GKE cluster name
    gkeServiceAccountEmail String
    GKE service account email
    keepPrevVersion String
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    key String
    The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
    maxVersions String
    Set the maximum number of versions, limited by the account settings defaults.
    name String
    Target name
    targetGkeId String
    The ID of this resource.
    useGwCloudIdentity Boolean
    Use the GW's Cloud IAM

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TargetGke resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing TargetGke Resource

    Get an existing TargetGke resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: TargetGkeState, opts?: CustomResourceOptions): TargetGke
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            gke_account_key: Optional[str] = None,
            gke_cluster_cert: Optional[str] = None,
            gke_cluster_endpoint: Optional[str] = None,
            gke_cluster_name: Optional[str] = None,
            gke_service_account_email: Optional[str] = None,
            keep_prev_version: Optional[str] = None,
            key: Optional[str] = None,
            max_versions: Optional[str] = None,
            name: Optional[str] = None,
            target_gke_id: Optional[str] = None,
            use_gw_cloud_identity: Optional[bool] = None) -> TargetGke
    func GetTargetGke(ctx *Context, name string, id IDInput, state *TargetGkeState, opts ...ResourceOption) (*TargetGke, error)
    public static TargetGke Get(string name, Input<string> id, TargetGkeState? state, CustomResourceOptions? opts = null)
    public static TargetGke get(String name, Output<String> id, TargetGkeState state, CustomResourceOptions options)
    resources:  _:    type: akeyless:TargetGke    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Description string
    Description of the object
    GkeAccountKey string
    GKE Service Account key file path
    GkeClusterCert string
    GKE cluster CA certificate
    GkeClusterEndpoint string
    GKE cluster URL endpoint
    GkeClusterName string
    GKE cluster name
    GkeServiceAccountEmail string
    GKE service account email
    KeepPrevVersion string
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    Key string
    The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
    MaxVersions string
    Set the maximum number of versions, limited by the account settings defaults.
    Name string
    Target name
    TargetGkeId string
    The ID of this resource.
    UseGwCloudIdentity bool
    Use the GW's Cloud IAM
    Description string
    Description of the object
    GkeAccountKey string
    GKE Service Account key file path
    GkeClusterCert string
    GKE cluster CA certificate
    GkeClusterEndpoint string
    GKE cluster URL endpoint
    GkeClusterName string
    GKE cluster name
    GkeServiceAccountEmail string
    GKE service account email
    KeepPrevVersion string
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    Key string
    The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
    MaxVersions string
    Set the maximum number of versions, limited by the account settings defaults.
    Name string
    Target name
    TargetGkeId string
    The ID of this resource.
    UseGwCloudIdentity bool
    Use the GW's Cloud IAM
    description String
    Description of the object
    gkeAccountKey String
    GKE Service Account key file path
    gkeClusterCert String
    GKE cluster CA certificate
    gkeClusterEndpoint String
    GKE cluster URL endpoint
    gkeClusterName String
    GKE cluster name
    gkeServiceAccountEmail String
    GKE service account email
    keepPrevVersion String
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    key String
    The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
    maxVersions String
    Set the maximum number of versions, limited by the account settings defaults.
    name String
    Target name
    targetGkeId String
    The ID of this resource.
    useGwCloudIdentity Boolean
    Use the GW's Cloud IAM
    description string
    Description of the object
    gkeAccountKey string
    GKE Service Account key file path
    gkeClusterCert string
    GKE cluster CA certificate
    gkeClusterEndpoint string
    GKE cluster URL endpoint
    gkeClusterName string
    GKE cluster name
    gkeServiceAccountEmail string
    GKE service account email
    keepPrevVersion string
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    key string
    The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
    maxVersions string
    Set the maximum number of versions, limited by the account settings defaults.
    name string
    Target name
    targetGkeId string
    The ID of this resource.
    useGwCloudIdentity boolean
    Use the GW's Cloud IAM
    description str
    Description of the object
    gke_account_key str
    GKE Service Account key file path
    gke_cluster_cert str
    GKE cluster CA certificate
    gke_cluster_endpoint str
    GKE cluster URL endpoint
    gke_cluster_name str
    GKE cluster name
    gke_service_account_email str
    GKE service account email
    keep_prev_version str
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    key str
    The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
    max_versions str
    Set the maximum number of versions, limited by the account settings defaults.
    name str
    Target name
    target_gke_id str
    The ID of this resource.
    use_gw_cloud_identity bool
    Use the GW's Cloud IAM
    description String
    Description of the object
    gkeAccountKey String
    GKE Service Account key file path
    gkeClusterCert String
    GKE cluster CA certificate
    gkeClusterEndpoint String
    GKE cluster URL endpoint
    gkeClusterName String
    GKE cluster name
    gkeServiceAccountEmail String
    GKE service account email
    keepPrevVersion String
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    key String
    The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
    maxVersions String
    Set the maximum number of versions, limited by the account settings defaults.
    name String
    Target name
    targetGkeId String
    The ID of this resource.
    useGwCloudIdentity Boolean
    Use the GW's Cloud IAM

    Package Details

    Repository
    akeyless akeyless-community/terraform-provider-akeyless
    License
    Notes
    This Pulumi package is based on the akeyless Terraform Provider.
    Viewing docs for akeyless 2.0.1
    published on Monday, Apr 27, 2026 by akeyless-community
      Try Pulumi Cloud free. Your team will thank you.