1. Packages
  2. Packages
  3. Konnect Provider
  4. API Docs
  5. IdentityAuthServerClientSecret
Viewing docs for konnect 3.21.0
published on Tuesday, Aug 4, 2026 by kong
Viewing docs for konnect 3.21.0
published on Tuesday, Aug 4, 2026 by kong

    IdentityAuthServerClientSecret Resource

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as konnect from "@pulumi/konnect";
    
    const myIdentityauthserverclientsecret = new konnect.IdentityAuthServerClientSecret("my_identityauthserverclientsecret", {
        authServerId: "d32d905a-ed33-46a3-a093-d8f536af9a8a",
        clientId: "kYa9iQFU5xPDSIUH9z1z",
        enabled: true,
        secret: "YAzsyUlNZ5gNGeKS9H3VAdxVPzhPo4ae",
    });
    
    import pulumi
    import pulumi_konnect as konnect
    
    my_identityauthserverclientsecret = konnect.IdentityAuthServerClientSecret("my_identityauthserverclientsecret",
        auth_server_id="d32d905a-ed33-46a3-a093-d8f536af9a8a",
        client_id="kYa9iQFU5xPDSIUH9z1z",
        enabled=True,
        secret="YAzsyUlNZ5gNGeKS9H3VAdxVPzhPo4ae")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/konnect/v3/konnect"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := konnect.NewIdentityAuthServerClientSecret(ctx, "my_identityauthserverclientsecret", &konnect.IdentityAuthServerClientSecretArgs{
    			AuthServerId: pulumi.String("d32d905a-ed33-46a3-a093-d8f536af9a8a"),
    			ClientId:     pulumi.String("kYa9iQFU5xPDSIUH9z1z"),
    			Enabled:      pulumi.Bool(true),
    			Secret:       pulumi.String("YAzsyUlNZ5gNGeKS9H3VAdxVPzhPo4ae"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Konnect = Pulumi.Konnect;
    
    return await Deployment.RunAsync(() => 
    {
        var myIdentityauthserverclientsecret = new Konnect.IdentityAuthServerClientSecret("my_identityauthserverclientsecret", new()
        {
            AuthServerId = "d32d905a-ed33-46a3-a093-d8f536af9a8a",
            ClientId = "kYa9iQFU5xPDSIUH9z1z",
            Enabled = true,
            Secret = "YAzsyUlNZ5gNGeKS9H3VAdxVPzhPo4ae",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.konnect.IdentityAuthServerClientSecret;
    import com.pulumi.konnect.IdentityAuthServerClientSecretArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var myIdentityauthserverclientsecret = new IdentityAuthServerClientSecret("myIdentityauthserverclientsecret", IdentityAuthServerClientSecretArgs.builder()
                .authServerId("d32d905a-ed33-46a3-a093-d8f536af9a8a")
                .clientId("kYa9iQFU5xPDSIUH9z1z")
                .enabled(true)
                .secret("YAzsyUlNZ5gNGeKS9H3VAdxVPzhPo4ae")
                .build());
    
        }
    }
    
    resources:
      myIdentityauthserverclientsecret:
        type: konnect:IdentityAuthServerClientSecret
        name: my_identityauthserverclientsecret
        properties:
          authServerId: d32d905a-ed33-46a3-a093-d8f536af9a8a
          clientId: kYa9iQFU5xPDSIUH9z1z
          enabled: true
          secret: YAzsyUlNZ5gNGeKS9H3VAdxVPzhPo4ae
    
    Example coming soon!
    

    Create IdentityAuthServerClientSecret Resource

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

    Constructor syntax

    new IdentityAuthServerClientSecret(name: string, args: IdentityAuthServerClientSecretArgs, opts?: CustomResourceOptions);
    @overload
    def IdentityAuthServerClientSecret(resource_name: str,
                                       args: IdentityAuthServerClientSecretArgs,
                                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def IdentityAuthServerClientSecret(resource_name: str,
                                       opts: Optional[ResourceOptions] = None,
                                       auth_server_id: Optional[str] = None,
                                       client_id: Optional[str] = None,
                                       enabled: Optional[bool] = None,
                                       secret: Optional[str] = None)
    func NewIdentityAuthServerClientSecret(ctx *Context, name string, args IdentityAuthServerClientSecretArgs, opts ...ResourceOption) (*IdentityAuthServerClientSecret, error)
    public IdentityAuthServerClientSecret(string name, IdentityAuthServerClientSecretArgs args, CustomResourceOptions? opts = null)
    public IdentityAuthServerClientSecret(String name, IdentityAuthServerClientSecretArgs args)
    public IdentityAuthServerClientSecret(String name, IdentityAuthServerClientSecretArgs args, CustomResourceOptions options)
    
    type: konnect:IdentityAuthServerClientSecret
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "konnect_identity_auth_server_client_secret" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args IdentityAuthServerClientSecretArgs
    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 IdentityAuthServerClientSecretArgs
    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 IdentityAuthServerClientSecretArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IdentityAuthServerClientSecretArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IdentityAuthServerClientSecretArgs
    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 identityAuthServerClientSecretResource = new Konnect.IdentityAuthServerClientSecret("identityAuthServerClientSecretResource", new()
    {
        AuthServerId = "string",
        ClientId = "string",
        Enabled = false,
        Secret = "string",
    });
    
    example, err := konnect.NewIdentityAuthServerClientSecret(ctx, "identityAuthServerClientSecretResource", &konnect.IdentityAuthServerClientSecretArgs{
    	AuthServerId: pulumi.String("string"),
    	ClientId:     pulumi.String("string"),
    	Enabled:      pulumi.Bool(false),
    	Secret:       pulumi.String("string"),
    })
    
    resource "konnect_identity_auth_server_client_secret" "identityAuthServerClientSecretResource" {
      lifecycle {
        create_before_destroy = true
      }
      auth_server_id = "string"
      client_id      = "string"
      enabled        = false
      secret         = "string"
    }
    
    var identityAuthServerClientSecretResource = new IdentityAuthServerClientSecret("identityAuthServerClientSecretResource", IdentityAuthServerClientSecretArgs.builder()
        .authServerId("string")
        .clientId("string")
        .enabled(false)
        .secret("string")
        .build());
    
    identity_auth_server_client_secret_resource = konnect.IdentityAuthServerClientSecret("identityAuthServerClientSecretResource",
        auth_server_id="string",
        client_id="string",
        enabled=False,
        secret="string")
    
    const identityAuthServerClientSecretResource = new konnect.IdentityAuthServerClientSecret("identityAuthServerClientSecretResource", {
        authServerId: "string",
        clientId: "string",
        enabled: false,
        secret: "string",
    });
    
    type: konnect:IdentityAuthServerClientSecret
    properties:
        authServerId: string
        clientId: string
        enabled: false
        secret: string
    

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

    AuthServerId string
    The auth server ID
    ClientId string
    The OAuth 2.0 client ID
    Enabled bool
    Specifies whether the secret is enabled. If the secret is not enabled, it will not be usable during authentication phase. Default: true
    Secret string
    The OAuth 2.0 client secret. Requires replacement if changed.
    AuthServerId string
    The auth server ID
    ClientId string
    The OAuth 2.0 client ID
    Enabled bool
    Specifies whether the secret is enabled. If the secret is not enabled, it will not be usable during authentication phase. Default: true
    Secret string
    The OAuth 2.0 client secret. Requires replacement if changed.
    auth_server_id string
    The auth server ID
    client_id string
    The OAuth 2.0 client ID
    enabled bool
    Specifies whether the secret is enabled. If the secret is not enabled, it will not be usable during authentication phase. Default: true
    secret string
    The OAuth 2.0 client secret. Requires replacement if changed.
    authServerId String
    The auth server ID
    clientId String
    The OAuth 2.0 client ID
    enabled Boolean
    Specifies whether the secret is enabled. If the secret is not enabled, it will not be usable during authentication phase. Default: true
    secret String
    The OAuth 2.0 client secret. Requires replacement if changed.
    authServerId string
    The auth server ID
    clientId string
    The OAuth 2.0 client ID
    enabled boolean
    Specifies whether the secret is enabled. If the secret is not enabled, it will not be usable during authentication phase. Default: true
    secret string
    The OAuth 2.0 client secret. Requires replacement if changed.
    auth_server_id str
    The auth server ID
    client_id str
    The OAuth 2.0 client ID
    enabled bool
    Specifies whether the secret is enabled. If the secret is not enabled, it will not be usable during authentication phase. Default: true
    secret str
    The OAuth 2.0 client secret. Requires replacement if changed.
    authServerId String
    The auth server ID
    clientId String
    The OAuth 2.0 client ID
    enabled Boolean
    Specifies whether the secret is enabled. If the secret is not enabled, it will not be usable during authentication phase. Default: true
    secret String
    The OAuth 2.0 client secret. Requires replacement if changed.

    Outputs

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

    CreatedAt string
    An ISO-8601 timestamp representation of entity creation date.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    An ISO-8601 timestamp representation of entity update date.
    CreatedAt string
    An ISO-8601 timestamp representation of entity creation date.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    An ISO-8601 timestamp representation of entity update date.
    created_at string
    An ISO-8601 timestamp representation of entity creation date.
    id string
    The provider-assigned unique ID for this managed resource.
    updated_at string
    An ISO-8601 timestamp representation of entity update date.
    createdAt String
    An ISO-8601 timestamp representation of entity creation date.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    An ISO-8601 timestamp representation of entity update date.
    createdAt string
    An ISO-8601 timestamp representation of entity creation date.
    id string
    The provider-assigned unique ID for this managed resource.
    updatedAt string
    An ISO-8601 timestamp representation of entity update date.
    created_at str
    An ISO-8601 timestamp representation of entity creation date.
    id str
    The provider-assigned unique ID for this managed resource.
    updated_at str
    An ISO-8601 timestamp representation of entity update date.
    createdAt String
    An ISO-8601 timestamp representation of entity creation date.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    An ISO-8601 timestamp representation of entity update date.

    Look up Existing IdentityAuthServerClientSecret Resource

    Get an existing IdentityAuthServerClientSecret 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?: IdentityAuthServerClientSecretState, opts?: CustomResourceOptions): IdentityAuthServerClientSecret
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            auth_server_id: Optional[str] = None,
            client_id: Optional[str] = None,
            created_at: Optional[str] = None,
            enabled: Optional[bool] = None,
            secret: Optional[str] = None,
            updated_at: Optional[str] = None) -> IdentityAuthServerClientSecret
    func GetIdentityAuthServerClientSecret(ctx *Context, name string, id IDInput, state *IdentityAuthServerClientSecretState, opts ...ResourceOption) (*IdentityAuthServerClientSecret, error)
    public static IdentityAuthServerClientSecret Get(string name, Input<string> id, IdentityAuthServerClientSecretState? state, CustomResourceOptions? opts = null)
    public static IdentityAuthServerClientSecret get(String name, Output<String> id, IdentityAuthServerClientSecretState state, CustomResourceOptions options)
    resources:  _:    type: konnect:IdentityAuthServerClientSecret    get:      id: ${id}
    import {
      to = konnect_identity_auth_server_client_secret.example
      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:
    AuthServerId string
    The auth server ID
    ClientId string
    The OAuth 2.0 client ID
    CreatedAt string
    An ISO-8601 timestamp representation of entity creation date.
    Enabled bool
    Specifies whether the secret is enabled. If the secret is not enabled, it will not be usable during authentication phase. Default: true
    Secret string
    The OAuth 2.0 client secret. Requires replacement if changed.
    UpdatedAt string
    An ISO-8601 timestamp representation of entity update date.
    AuthServerId string
    The auth server ID
    ClientId string
    The OAuth 2.0 client ID
    CreatedAt string
    An ISO-8601 timestamp representation of entity creation date.
    Enabled bool
    Specifies whether the secret is enabled. If the secret is not enabled, it will not be usable during authentication phase. Default: true
    Secret string
    The OAuth 2.0 client secret. Requires replacement if changed.
    UpdatedAt string
    An ISO-8601 timestamp representation of entity update date.
    auth_server_id string
    The auth server ID
    client_id string
    The OAuth 2.0 client ID
    created_at string
    An ISO-8601 timestamp representation of entity creation date.
    enabled bool
    Specifies whether the secret is enabled. If the secret is not enabled, it will not be usable during authentication phase. Default: true
    secret string
    The OAuth 2.0 client secret. Requires replacement if changed.
    updated_at string
    An ISO-8601 timestamp representation of entity update date.
    authServerId String
    The auth server ID
    clientId String
    The OAuth 2.0 client ID
    createdAt String
    An ISO-8601 timestamp representation of entity creation date.
    enabled Boolean
    Specifies whether the secret is enabled. If the secret is not enabled, it will not be usable during authentication phase. Default: true
    secret String
    The OAuth 2.0 client secret. Requires replacement if changed.
    updatedAt String
    An ISO-8601 timestamp representation of entity update date.
    authServerId string
    The auth server ID
    clientId string
    The OAuth 2.0 client ID
    createdAt string
    An ISO-8601 timestamp representation of entity creation date.
    enabled boolean
    Specifies whether the secret is enabled. If the secret is not enabled, it will not be usable during authentication phase. Default: true
    secret string
    The OAuth 2.0 client secret. Requires replacement if changed.
    updatedAt string
    An ISO-8601 timestamp representation of entity update date.
    auth_server_id str
    The auth server ID
    client_id str
    The OAuth 2.0 client ID
    created_at str
    An ISO-8601 timestamp representation of entity creation date.
    enabled bool
    Specifies whether the secret is enabled. If the secret is not enabled, it will not be usable during authentication phase. Default: true
    secret str
    The OAuth 2.0 client secret. Requires replacement if changed.
    updated_at str
    An ISO-8601 timestamp representation of entity update date.
    authServerId String
    The auth server ID
    clientId String
    The OAuth 2.0 client ID
    createdAt String
    An ISO-8601 timestamp representation of entity creation date.
    enabled Boolean
    Specifies whether the secret is enabled. If the secret is not enabled, it will not be usable during authentication phase. Default: true
    secret String
    The OAuth 2.0 client secret. Requires replacement if changed.
    updatedAt String
    An ISO-8601 timestamp representation of entity update date.

    Import

    In Terraform v1.5.0 and later, the import block can be used with the id attribute, for example:

    terraform

    import {

    to = konnect_identity_auth_server_client_secret.my_konnect_identity_auth_server_client_secret

    id = jsonencode({

    auth_server_id = "d32d905a-ed33-46a3-a093-d8f536af9a8a"
    
    client_id      = "kYa9iQFU5xPDSIUH9z1z"
    
    id             = "07d05309-45cc-4b37-92fb-1524846deec3"
    

    })

    }

    The pulumi import command can be used, for example:

    $ pulumi import konnect:index/identityAuthServerClientSecret:IdentityAuthServerClientSecret my_konnect_identity_auth_server_client_secret '{"auth_server_id": "d32d905a-ed33-46a3-a093-d8f536af9a8a", "client_id": "kYa9iQFU5xPDSIUH9z1z", "id": "07d05309-45cc-4b37-92fb-1524846deec3"}'
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    konnect kong/terraform-provider-konnect
    License
    Notes
    This Pulumi package is based on the konnect Terraform Provider.
    Viewing docs for konnect 3.21.0
    published on Tuesday, Aug 4, 2026 by kong

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial