1. Packages
  2. Akeyless Provider
  3. API Docs
  4. TargetK8s
akeyless 1.9.0 published on Monday, Apr 14, 2025 by akeyless-community

akeyless.TargetK8s

Explore with Pulumi AI

K8S Target resource

Create TargetK8s Resource

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

Constructor syntax

new TargetK8s(name: string, args: TargetK8sArgs, opts?: CustomResourceOptions);
@overload
def TargetK8s(resource_name: str,
              args: TargetK8sArgs,
              opts: Optional[ResourceOptions] = None)

@overload
def TargetK8s(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              k8s_cluster_ca_cert: Optional[str] = None,
              k8s_cluster_endpoint: Optional[str] = None,
              k8s_cluster_token: Optional[str] = None,
              description: Optional[str] = None,
              key: Optional[str] = None,
              name: Optional[str] = None,
              target_k8s_id: Optional[str] = None)
func NewTargetK8s(ctx *Context, name string, args TargetK8sArgs, opts ...ResourceOption) (*TargetK8s, error)
public TargetK8s(string name, TargetK8sArgs args, CustomResourceOptions? opts = null)
public TargetK8s(String name, TargetK8sArgs args)
public TargetK8s(String name, TargetK8sArgs args, CustomResourceOptions options)
type: akeyless:TargetK8s
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. TargetK8sArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. TargetK8sArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. TargetK8sArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. TargetK8sArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. TargetK8sArgs
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 targetK8sResource = new Akeyless.TargetK8s("targetK8sResource", new()
{
    K8sClusterCaCert = "string",
    K8sClusterEndpoint = "string",
    K8sClusterToken = "string",
    Description = "string",
    Key = "string",
    Name = "string",
    TargetK8sId = "string",
});
Copy
example, err := akeyless.NewTargetK8s(ctx, "targetK8sResource", &akeyless.TargetK8sArgs{
K8sClusterCaCert: pulumi.String("string"),
K8sClusterEndpoint: pulumi.String("string"),
K8sClusterToken: pulumi.String("string"),
Description: pulumi.String("string"),
Key: pulumi.String("string"),
Name: pulumi.String("string"),
TargetK8sId: pulumi.String("string"),
})
Copy
var targetK8sResource = new TargetK8s("targetK8sResource", TargetK8sArgs.builder()
    .k8sClusterCaCert("string")
    .k8sClusterEndpoint("string")
    .k8sClusterToken("string")
    .description("string")
    .key("string")
    .name("string")
    .targetK8sId("string")
    .build());
Copy
target_k8s_resource = akeyless.TargetK8s("targetK8sResource",
    k8s_cluster_ca_cert="string",
    k8s_cluster_endpoint="string",
    k8s_cluster_token="string",
    description="string",
    key="string",
    name="string",
    target_k8s_id="string")
Copy
const targetK8sResource = new akeyless.TargetK8s("targetK8sResource", {
    k8sClusterCaCert: "string",
    k8sClusterEndpoint: "string",
    k8sClusterToken: "string",
    description: "string",
    key: "string",
    name: "string",
    targetK8sId: "string",
});
Copy
type: akeyless:TargetK8s
properties:
    description: string
    k8sClusterCaCert: string
    k8sClusterEndpoint: string
    k8sClusterToken: string
    key: string
    name: string
    targetK8sId: string
Copy

TargetK8s 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 TargetK8s resource accepts the following input properties:

K8sClusterCaCert This property is required. string
K8S Cluster certificate. Base 64 encoded certificate.
K8sClusterEndpoint This property is required. string
K8S Cluster endpoint. https:// , \n\n of the cluster.
K8sClusterToken This property is required. string
K8S Cluster authentication token.
Description string
Description of the object
Key string
Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used.
Name string
Target name
TargetK8sId string
The ID of this resource.
K8sClusterCaCert This property is required. string
K8S Cluster certificate. Base 64 encoded certificate.
K8sClusterEndpoint This property is required. string
K8S Cluster endpoint. https:// , \n\n of the cluster.
K8sClusterToken This property is required. string
K8S Cluster authentication token.
Description string
Description of the object
Key string
Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used.
Name string
Target name
TargetK8sId string
The ID of this resource.
k8sClusterCaCert This property is required. String
K8S Cluster certificate. Base 64 encoded certificate.
k8sClusterEndpoint This property is required. String
K8S Cluster endpoint. https:// , \n\n of the cluster.
k8sClusterToken This property is required. String
K8S Cluster authentication token.
description String
Description of the object
key String
Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used.
name String
Target name
targetK8sId String
The ID of this resource.
k8sClusterCaCert This property is required. string
K8S Cluster certificate. Base 64 encoded certificate.
k8sClusterEndpoint This property is required. string
K8S Cluster endpoint. https:// , \n\n of the cluster.
k8sClusterToken This property is required. string
K8S Cluster authentication token.
description string
Description of the object
key string
Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used.
name string
Target name
targetK8sId string
The ID of this resource.
k8s_cluster_ca_cert This property is required. str
K8S Cluster certificate. Base 64 encoded certificate.
k8s_cluster_endpoint This property is required. str
K8S Cluster endpoint. https:// , \n\n of the cluster.
k8s_cluster_token This property is required. str
K8S Cluster authentication token.
description str
Description of the object
key str
Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used.
name str
Target name
target_k8s_id str
The ID of this resource.
k8sClusterCaCert This property is required. String
K8S Cluster certificate. Base 64 encoded certificate.
k8sClusterEndpoint This property is required. String
K8S Cluster endpoint. https:// , \n\n of the cluster.
k8sClusterToken This property is required. String
K8S Cluster authentication token.
description String
Description of the object
key String
Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used.
name String
Target name
targetK8sId String
The ID of this resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the TargetK8s 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 TargetK8s Resource

Get an existing TargetK8s 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?: TargetK8sState, opts?: CustomResourceOptions): TargetK8s
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        k8s_cluster_ca_cert: Optional[str] = None,
        k8s_cluster_endpoint: Optional[str] = None,
        k8s_cluster_token: Optional[str] = None,
        key: Optional[str] = None,
        name: Optional[str] = None,
        target_k8s_id: Optional[str] = None) -> TargetK8s
func GetTargetK8s(ctx *Context, name string, id IDInput, state *TargetK8sState, opts ...ResourceOption) (*TargetK8s, error)
public static TargetK8s Get(string name, Input<string> id, TargetK8sState? state, CustomResourceOptions? opts = null)
public static TargetK8s get(String name, Output<String> id, TargetK8sState state, CustomResourceOptions options)
resources:  _:    type: akeyless:TargetK8s    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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
K8sClusterCaCert string
K8S Cluster certificate. Base 64 encoded certificate.
K8sClusterEndpoint string
K8S Cluster endpoint. https:// , \n\n of the cluster.
K8sClusterToken string
K8S Cluster authentication token.
Key string
Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used.
Name string
Target name
TargetK8sId string
The ID of this resource.
Description string
Description of the object
K8sClusterCaCert string
K8S Cluster certificate. Base 64 encoded certificate.
K8sClusterEndpoint string
K8S Cluster endpoint. https:// , \n\n of the cluster.
K8sClusterToken string
K8S Cluster authentication token.
Key string
Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used.
Name string
Target name
TargetK8sId string
The ID of this resource.
description String
Description of the object
k8sClusterCaCert String
K8S Cluster certificate. Base 64 encoded certificate.
k8sClusterEndpoint String
K8S Cluster endpoint. https:// , \n\n of the cluster.
k8sClusterToken String
K8S Cluster authentication token.
key String
Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used.
name String
Target name
targetK8sId String
The ID of this resource.
description string
Description of the object
k8sClusterCaCert string
K8S Cluster certificate. Base 64 encoded certificate.
k8sClusterEndpoint string
K8S Cluster endpoint. https:// , \n\n of the cluster.
k8sClusterToken string
K8S Cluster authentication token.
key string
Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used.
name string
Target name
targetK8sId string
The ID of this resource.
description str
Description of the object
k8s_cluster_ca_cert str
K8S Cluster certificate. Base 64 encoded certificate.
k8s_cluster_endpoint str
K8S Cluster endpoint. https:// , \n\n of the cluster.
k8s_cluster_token str
K8S Cluster authentication token.
key str
Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used.
name str
Target name
target_k8s_id str
The ID of this resource.
description String
Description of the object
k8sClusterCaCert String
K8S Cluster certificate. Base 64 encoded certificate.
k8sClusterEndpoint String
K8S Cluster endpoint. https:// , \n\n of the cluster.
k8sClusterToken String
K8S Cluster authentication token.
key String
Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used.
name String
Target name
targetK8sId String
The ID of this resource.

Package Details

Repository
akeyless akeyless-community/terraform-provider-akeyless
License
Notes
This Pulumi package is based on the akeyless Terraform Provider.