1. Packages
  2. Exoscale
  3. API Docs
  4. SksKubeconfig
Exoscale v0.59.0 published on Monday, May 20, 2024 by Pulumiverse

exoscale.SksKubeconfig

Explore with Pulumi AI

exoscale logo
Exoscale v0.59.0 published on Monday, May 20, 2024 by Pulumiverse

    Create SksKubeconfig Resource

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

    Constructor syntax

    new SksKubeconfig(name: string, args: SksKubeconfigArgs, opts?: CustomResourceOptions);
    @overload
    def SksKubeconfig(resource_name: str,
                      args: SksKubeconfigArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def SksKubeconfig(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      cluster_id: Optional[str] = None,
                      groups: Optional[Sequence[str]] = None,
                      user: Optional[str] = None,
                      zone: Optional[str] = None,
                      early_renewal_seconds: Optional[int] = None,
                      ttl_seconds: Optional[float] = None)
    func NewSksKubeconfig(ctx *Context, name string, args SksKubeconfigArgs, opts ...ResourceOption) (*SksKubeconfig, error)
    public SksKubeconfig(string name, SksKubeconfigArgs args, CustomResourceOptions? opts = null)
    public SksKubeconfig(String name, SksKubeconfigArgs args)
    public SksKubeconfig(String name, SksKubeconfigArgs args, CustomResourceOptions options)
    
    type: exoscale:SksKubeconfig
    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 SksKubeconfigArgs
    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 SksKubeconfigArgs
    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 SksKubeconfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SksKubeconfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SksKubeconfigArgs
    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 sksKubeconfigResource = new Exoscale.SksKubeconfig("sksKubeconfigResource", new()
    {
        ClusterId = "string",
        Groups = new[]
        {
            "string",
        },
        User = "string",
        Zone = "string",
        EarlyRenewalSeconds = 0,
        TtlSeconds = 0,
    });
    
    example, err := exoscale.NewSksKubeconfig(ctx, "sksKubeconfigResource", &exoscale.SksKubeconfigArgs{
    	ClusterId: pulumi.String("string"),
    	Groups: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	User:                pulumi.String("string"),
    	Zone:                pulumi.String("string"),
    	EarlyRenewalSeconds: pulumi.Int(0),
    	TtlSeconds:          pulumi.Float64(0),
    })
    
    var sksKubeconfigResource = new SksKubeconfig("sksKubeconfigResource", SksKubeconfigArgs.builder()
        .clusterId("string")
        .groups("string")
        .user("string")
        .zone("string")
        .earlyRenewalSeconds(0)
        .ttlSeconds(0)
        .build());
    
    sks_kubeconfig_resource = exoscale.SksKubeconfig("sksKubeconfigResource",
        cluster_id="string",
        groups=["string"],
        user="string",
        zone="string",
        early_renewal_seconds=0,
        ttl_seconds=0)
    
    const sksKubeconfigResource = new exoscale.SksKubeconfig("sksKubeconfigResource", {
        clusterId: "string",
        groups: ["string"],
        user: "string",
        zone: "string",
        earlyRenewalSeconds: 0,
        ttlSeconds: 0,
    });
    
    type: exoscale:SksKubeconfig
    properties:
        clusterId: string
        earlyRenewalSeconds: 0
        groups:
            - string
        ttlSeconds: 0
        user: string
        zone: string
    

    SksKubeconfig Resource Properties

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

    Inputs

    The SksKubeconfig resource accepts the following input properties:

    ClusterId string
    ❗ The parent exoscaleskscluster ID.
    Groups List<string>
    ❗ Group names in the generated Kubeconfig. The certificate present in the Kubeconfig will have these roles set in the Organization field.
    User string
    ❗ User name in the generated Kubeconfig. The certificate present in the Kubeconfig will also have this name set for the CN field.
    Zone string
    ❗ The Exoscale Zone name.
    EarlyRenewalSeconds int
    TtlSeconds double
    ❗ The Time-to-Live of the Kubeconfig, after which it will expire / become invalid (seconds; default: 2592000 = 30 days).
    ClusterId string
    ❗ The parent exoscaleskscluster ID.
    Groups []string
    ❗ Group names in the generated Kubeconfig. The certificate present in the Kubeconfig will have these roles set in the Organization field.
    User string
    ❗ User name in the generated Kubeconfig. The certificate present in the Kubeconfig will also have this name set for the CN field.
    Zone string
    ❗ The Exoscale Zone name.
    EarlyRenewalSeconds int
    TtlSeconds float64
    ❗ The Time-to-Live of the Kubeconfig, after which it will expire / become invalid (seconds; default: 2592000 = 30 days).
    clusterId String
    ❗ The parent exoscaleskscluster ID.
    groups List<String>
    ❗ Group names in the generated Kubeconfig. The certificate present in the Kubeconfig will have these roles set in the Organization field.
    user String
    ❗ User name in the generated Kubeconfig. The certificate present in the Kubeconfig will also have this name set for the CN field.
    zone String
    ❗ The Exoscale Zone name.
    earlyRenewalSeconds Integer
    ttlSeconds Double
    ❗ The Time-to-Live of the Kubeconfig, after which it will expire / become invalid (seconds; default: 2592000 = 30 days).
    clusterId string
    ❗ The parent exoscaleskscluster ID.
    groups string[]
    ❗ Group names in the generated Kubeconfig. The certificate present in the Kubeconfig will have these roles set in the Organization field.
    user string
    ❗ User name in the generated Kubeconfig. The certificate present in the Kubeconfig will also have this name set for the CN field.
    zone string
    ❗ The Exoscale Zone name.
    earlyRenewalSeconds number
    ttlSeconds number
    ❗ The Time-to-Live of the Kubeconfig, after which it will expire / become invalid (seconds; default: 2592000 = 30 days).
    cluster_id str
    ❗ The parent exoscaleskscluster ID.
    groups Sequence[str]
    ❗ Group names in the generated Kubeconfig. The certificate present in the Kubeconfig will have these roles set in the Organization field.
    user str
    ❗ User name in the generated Kubeconfig. The certificate present in the Kubeconfig will also have this name set for the CN field.
    zone str
    ❗ The Exoscale Zone name.
    early_renewal_seconds int
    ttl_seconds float
    ❗ The Time-to-Live of the Kubeconfig, after which it will expire / become invalid (seconds; default: 2592000 = 30 days).
    clusterId String
    ❗ The parent exoscaleskscluster ID.
    groups List<String>
    ❗ Group names in the generated Kubeconfig. The certificate present in the Kubeconfig will have these roles set in the Organization field.
    user String
    ❗ User name in the generated Kubeconfig. The certificate present in the Kubeconfig will also have this name set for the CN field.
    zone String
    ❗ The Exoscale Zone name.
    earlyRenewalSeconds Number
    ttlSeconds Number
    ❗ The Time-to-Live of the Kubeconfig, after which it will expire / become invalid (seconds; default: 2592000 = 30 days).

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Kubeconfig string
    The generated Kubeconfig (YAML content).
    ReadyForRenewal bool
    Id string
    The provider-assigned unique ID for this managed resource.
    Kubeconfig string
    The generated Kubeconfig (YAML content).
    ReadyForRenewal bool
    id String
    The provider-assigned unique ID for this managed resource.
    kubeconfig String
    The generated Kubeconfig (YAML content).
    readyForRenewal Boolean
    id string
    The provider-assigned unique ID for this managed resource.
    kubeconfig string
    The generated Kubeconfig (YAML content).
    readyForRenewal boolean
    id str
    The provider-assigned unique ID for this managed resource.
    kubeconfig str
    The generated Kubeconfig (YAML content).
    ready_for_renewal bool
    id String
    The provider-assigned unique ID for this managed resource.
    kubeconfig String
    The generated Kubeconfig (YAML content).
    readyForRenewal Boolean

    Look up Existing SksKubeconfig Resource

    Get an existing SksKubeconfig 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?: SksKubeconfigState, opts?: CustomResourceOptions): SksKubeconfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cluster_id: Optional[str] = None,
            early_renewal_seconds: Optional[int] = None,
            groups: Optional[Sequence[str]] = None,
            kubeconfig: Optional[str] = None,
            ready_for_renewal: Optional[bool] = None,
            ttl_seconds: Optional[float] = None,
            user: Optional[str] = None,
            zone: Optional[str] = None) -> SksKubeconfig
    func GetSksKubeconfig(ctx *Context, name string, id IDInput, state *SksKubeconfigState, opts ...ResourceOption) (*SksKubeconfig, error)
    public static SksKubeconfig Get(string name, Input<string> id, SksKubeconfigState? state, CustomResourceOptions? opts = null)
    public static SksKubeconfig get(String name, Output<String> id, SksKubeconfigState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    ClusterId string
    ❗ The parent exoscaleskscluster ID.
    EarlyRenewalSeconds int
    Groups List<string>
    ❗ Group names in the generated Kubeconfig. The certificate present in the Kubeconfig will have these roles set in the Organization field.
    Kubeconfig string
    The generated Kubeconfig (YAML content).
    ReadyForRenewal bool
    TtlSeconds double
    ❗ The Time-to-Live of the Kubeconfig, after which it will expire / become invalid (seconds; default: 2592000 = 30 days).
    User string
    ❗ User name in the generated Kubeconfig. The certificate present in the Kubeconfig will also have this name set for the CN field.
    Zone string
    ❗ The Exoscale Zone name.
    ClusterId string
    ❗ The parent exoscaleskscluster ID.
    EarlyRenewalSeconds int
    Groups []string
    ❗ Group names in the generated Kubeconfig. The certificate present in the Kubeconfig will have these roles set in the Organization field.
    Kubeconfig string
    The generated Kubeconfig (YAML content).
    ReadyForRenewal bool
    TtlSeconds float64
    ❗ The Time-to-Live of the Kubeconfig, after which it will expire / become invalid (seconds; default: 2592000 = 30 days).
    User string
    ❗ User name in the generated Kubeconfig. The certificate present in the Kubeconfig will also have this name set for the CN field.
    Zone string
    ❗ The Exoscale Zone name.
    clusterId String
    ❗ The parent exoscaleskscluster ID.
    earlyRenewalSeconds Integer
    groups List<String>
    ❗ Group names in the generated Kubeconfig. The certificate present in the Kubeconfig will have these roles set in the Organization field.
    kubeconfig String
    The generated Kubeconfig (YAML content).
    readyForRenewal Boolean
    ttlSeconds Double
    ❗ The Time-to-Live of the Kubeconfig, after which it will expire / become invalid (seconds; default: 2592000 = 30 days).
    user String
    ❗ User name in the generated Kubeconfig. The certificate present in the Kubeconfig will also have this name set for the CN field.
    zone String
    ❗ The Exoscale Zone name.
    clusterId string
    ❗ The parent exoscaleskscluster ID.
    earlyRenewalSeconds number
    groups string[]
    ❗ Group names in the generated Kubeconfig. The certificate present in the Kubeconfig will have these roles set in the Organization field.
    kubeconfig string
    The generated Kubeconfig (YAML content).
    readyForRenewal boolean
    ttlSeconds number
    ❗ The Time-to-Live of the Kubeconfig, after which it will expire / become invalid (seconds; default: 2592000 = 30 days).
    user string
    ❗ User name in the generated Kubeconfig. The certificate present in the Kubeconfig will also have this name set for the CN field.
    zone string
    ❗ The Exoscale Zone name.
    cluster_id str
    ❗ The parent exoscaleskscluster ID.
    early_renewal_seconds int
    groups Sequence[str]
    ❗ Group names in the generated Kubeconfig. The certificate present in the Kubeconfig will have these roles set in the Organization field.
    kubeconfig str
    The generated Kubeconfig (YAML content).
    ready_for_renewal bool
    ttl_seconds float
    ❗ The Time-to-Live of the Kubeconfig, after which it will expire / become invalid (seconds; default: 2592000 = 30 days).
    user str
    ❗ User name in the generated Kubeconfig. The certificate present in the Kubeconfig will also have this name set for the CN field.
    zone str
    ❗ The Exoscale Zone name.
    clusterId String
    ❗ The parent exoscaleskscluster ID.
    earlyRenewalSeconds Number
    groups List<String>
    ❗ Group names in the generated Kubeconfig. The certificate present in the Kubeconfig will have these roles set in the Organization field.
    kubeconfig String
    The generated Kubeconfig (YAML content).
    readyForRenewal Boolean
    ttlSeconds Number
    ❗ The Time-to-Live of the Kubeconfig, after which it will expire / become invalid (seconds; default: 2592000 = 30 days).
    user String
    ❗ User name in the generated Kubeconfig. The certificate present in the Kubeconfig will also have this name set for the CN field.
    zone String
    ❗ The Exoscale Zone name.

    Package Details

    Repository
    exoscale pulumiverse/pulumi-exoscale
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the exoscale Terraform Provider.
    exoscale logo
    Exoscale v0.59.0 published on Monday, May 20, 2024 by Pulumiverse