published on Friday, Nov 6, 2026 by kong
published on Friday, Nov 6, 2026 by kong
IdentityPrincipalBasicAuthPassword Resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as konnect from "@pulumi/konnect";
const myIdentityprincipalbasicauthpassword = new konnect.IdentityPrincipalBasicAuthPassword("my_identityprincipalbasicauthpassword", {
basicAuthId: "d41f4f7a-b826-449f-833c-9e1c1604b8d3",
directoryId: "862d4d9d-af24-4ca2-ade8-ff5f18badf4d",
expiresAt: "2022-11-04T20:10:06.927Z",
managedBy: {
key: "value",
},
principalId: "ad5fb41f-04bc-44ce-8d4e-a29b3821b635",
secret: "...my_secret...",
});
import pulumi
import pulumi_konnect as konnect
my_identityprincipalbasicauthpassword = konnect.IdentityPrincipalBasicAuthPassword("my_identityprincipalbasicauthpassword",
basic_auth_id="d41f4f7a-b826-449f-833c-9e1c1604b8d3",
directory_id="862d4d9d-af24-4ca2-ade8-ff5f18badf4d",
expires_at="2022-11-04T20:10:06.927Z",
managed_by={
"key": "value",
},
principal_id="ad5fb41f-04bc-44ce-8d4e-a29b3821b635",
secret="...my_secret...")
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.NewIdentityPrincipalBasicAuthPassword(ctx, "my_identityprincipalbasicauthpassword", &konnect.IdentityPrincipalBasicAuthPasswordArgs{
BasicAuthId: pulumi.String("d41f4f7a-b826-449f-833c-9e1c1604b8d3"),
DirectoryId: pulumi.String("862d4d9d-af24-4ca2-ade8-ff5f18badf4d"),
ExpiresAt: pulumi.String("2022-11-04T20:10:06.927Z"),
ManagedBy: pulumi.StringMap{
"key": pulumi.String("value"),
},
PrincipalId: pulumi.String("ad5fb41f-04bc-44ce-8d4e-a29b3821b635"),
Secret: pulumi.String("...my_secret..."),
})
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 myIdentityprincipalbasicauthpassword = new Konnect.IdentityPrincipalBasicAuthPassword("my_identityprincipalbasicauthpassword", new()
{
BasicAuthId = "d41f4f7a-b826-449f-833c-9e1c1604b8d3",
DirectoryId = "862d4d9d-af24-4ca2-ade8-ff5f18badf4d",
ExpiresAt = "2022-11-04T20:10:06.927Z",
ManagedBy =
{
{ "key", "value" },
},
PrincipalId = "ad5fb41f-04bc-44ce-8d4e-a29b3821b635",
Secret = "...my_secret...",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.konnect.IdentityPrincipalBasicAuthPassword;
import com.pulumi.konnect.IdentityPrincipalBasicAuthPasswordArgs;
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 myIdentityprincipalbasicauthpassword = new IdentityPrincipalBasicAuthPassword("myIdentityprincipalbasicauthpassword", IdentityPrincipalBasicAuthPasswordArgs.builder()
.basicAuthId("d41f4f7a-b826-449f-833c-9e1c1604b8d3")
.directoryId("862d4d9d-af24-4ca2-ade8-ff5f18badf4d")
.expiresAt("2022-11-04T20:10:06.927Z")
.managedBy(Map.of("key", "value"))
.principalId("ad5fb41f-04bc-44ce-8d4e-a29b3821b635")
.secret("...my_secret...")
.build());
}
}
resources:
myIdentityprincipalbasicauthpassword:
type: konnect:IdentityPrincipalBasicAuthPassword
name: my_identityprincipalbasicauthpassword
properties:
basicAuthId: d41f4f7a-b826-449f-833c-9e1c1604b8d3
directoryId: 862d4d9d-af24-4ca2-ade8-ff5f18badf4d
expiresAt: 2022-11-04T20:10:06.927Z
managedBy:
key: value
principalId: ad5fb41f-04bc-44ce-8d4e-a29b3821b635
secret: '...my_secret...'
Example coming soon!
Create IdentityPrincipalBasicAuthPassword Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IdentityPrincipalBasicAuthPassword(name: string, args: IdentityPrincipalBasicAuthPasswordArgs, opts?: CustomResourceOptions);@overload
def IdentityPrincipalBasicAuthPassword(resource_name: str,
args: IdentityPrincipalBasicAuthPasswordArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IdentityPrincipalBasicAuthPassword(resource_name: str,
opts: Optional[ResourceOptions] = None,
basic_auth_id: Optional[str] = None,
directory_id: Optional[str] = None,
principal_id: Optional[str] = None,
expires_at: Optional[str] = None,
managed_by: Optional[Mapping[str, str]] = None,
secret: Optional[str] = None)func NewIdentityPrincipalBasicAuthPassword(ctx *Context, name string, args IdentityPrincipalBasicAuthPasswordArgs, opts ...ResourceOption) (*IdentityPrincipalBasicAuthPassword, error)public IdentityPrincipalBasicAuthPassword(string name, IdentityPrincipalBasicAuthPasswordArgs args, CustomResourceOptions? opts = null)
public IdentityPrincipalBasicAuthPassword(String name, IdentityPrincipalBasicAuthPasswordArgs args)
public IdentityPrincipalBasicAuthPassword(String name, IdentityPrincipalBasicAuthPasswordArgs args, CustomResourceOptions options)
type: konnect:IdentityPrincipalBasicAuthPassword
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "konnect_identity_principal_basic_auth_password" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args IdentityPrincipalBasicAuthPasswordArgs
- 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 IdentityPrincipalBasicAuthPasswordArgs
- 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 IdentityPrincipalBasicAuthPasswordArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IdentityPrincipalBasicAuthPasswordArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IdentityPrincipalBasicAuthPasswordArgs
- 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 identityPrincipalBasicAuthPasswordResource = new Konnect.IdentityPrincipalBasicAuthPassword("identityPrincipalBasicAuthPasswordResource", new()
{
BasicAuthId = "string",
DirectoryId = "string",
PrincipalId = "string",
ExpiresAt = "string",
ManagedBy =
{
{ "string", "string" },
},
Secret = "string",
});
example, err := konnect.NewIdentityPrincipalBasicAuthPassword(ctx, "identityPrincipalBasicAuthPasswordResource", &konnect.IdentityPrincipalBasicAuthPasswordArgs{
BasicAuthId: pulumi.String("string"),
DirectoryId: pulumi.String("string"),
PrincipalId: pulumi.String("string"),
ExpiresAt: pulumi.String("string"),
ManagedBy: pulumi.StringMap{
"string": pulumi.String("string"),
},
Secret: pulumi.String("string"),
})
resource "konnect_identity_principal_basic_auth_password" "identityPrincipalBasicAuthPasswordResource" {
lifecycle {
create_before_destroy = true
}
basic_auth_id = "string"
directory_id = "string"
principal_id = "string"
expires_at = "string"
managed_by = {
"string" = "string"
}
secret = "string"
}
var identityPrincipalBasicAuthPasswordResource = new IdentityPrincipalBasicAuthPassword("identityPrincipalBasicAuthPasswordResource", IdentityPrincipalBasicAuthPasswordArgs.builder()
.basicAuthId("string")
.directoryId("string")
.principalId("string")
.expiresAt("string")
.managedBy(Map.of("string", "string"))
.secret("string")
.build());
identity_principal_basic_auth_password_resource = konnect.IdentityPrincipalBasicAuthPassword("identityPrincipalBasicAuthPasswordResource",
basic_auth_id="string",
directory_id="string",
principal_id="string",
expires_at="string",
managed_by={
"string": "string",
},
secret="string")
const identityPrincipalBasicAuthPasswordResource = new konnect.IdentityPrincipalBasicAuthPassword("identityPrincipalBasicAuthPasswordResource", {
basicAuthId: "string",
directoryId: "string",
principalId: "string",
expiresAt: "string",
managedBy: {
string: "string",
},
secret: "string",
});
type: konnect:IdentityPrincipalBasicAuthPassword
properties:
basicAuthId: string
directoryId: string
expiresAt: string
managedBy:
string: string
principalId: string
secret: string
IdentityPrincipalBasicAuthPassword 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 IdentityPrincipalBasicAuthPassword resource accepts the following input properties:
- Basic
Auth stringId - Unique identifier of the basic auth credential (UUID format)
- Directory
Id string - ID of the directory
- Principal
Id string - Unique identifier of the principal (UUID format)
- Expires
At string - An ISO-8601 timestamp representation of entity expiration date.
- Managed
By Dictionary<string, string> - Secret string
- The password secret value. This is only returned when the password is first created and cannot be retrieved again later.
- Basic
Auth stringId - Unique identifier of the basic auth credential (UUID format)
- Directory
Id string - ID of the directory
- Principal
Id string - Unique identifier of the principal (UUID format)
- Expires
At string - An ISO-8601 timestamp representation of entity expiration date.
- Managed
By map[string]string - Secret string
- The password secret value. This is only returned when the password is first created and cannot be retrieved again later.
- basic_
auth_ stringid - Unique identifier of the basic auth credential (UUID format)
- directory_
id string - ID of the directory
- principal_
id string - Unique identifier of the principal (UUID format)
- expires_
at string - An ISO-8601 timestamp representation of entity expiration date.
- managed_
by map(string) - secret string
- The password secret value. This is only returned when the password is first created and cannot be retrieved again later.
- basic
Auth StringId - Unique identifier of the basic auth credential (UUID format)
- directory
Id String - ID of the directory
- principal
Id String - Unique identifier of the principal (UUID format)
- expires
At String - An ISO-8601 timestamp representation of entity expiration date.
- managed
By Map<String,String> - secret String
- The password secret value. This is only returned when the password is first created and cannot be retrieved again later.
- basic
Auth stringId - Unique identifier of the basic auth credential (UUID format)
- directory
Id string - ID of the directory
- principal
Id string - Unique identifier of the principal (UUID format)
- expires
At string - An ISO-8601 timestamp representation of entity expiration date.
- managed
By {[key: string]: string} - secret string
- The password secret value. This is only returned when the password is first created and cannot be retrieved again later.
- basic_
auth_ strid - Unique identifier of the basic auth credential (UUID format)
- directory_
id str - ID of the directory
- principal_
id str - Unique identifier of the principal (UUID format)
- expires_
at str - An ISO-8601 timestamp representation of entity expiration date.
- managed_
by Mapping[str, str] - secret str
- The password secret value. This is only returned when the password is first created and cannot be retrieved again later.
- basic
Auth StringId - Unique identifier of the basic auth credential (UUID format)
- directory
Id String - ID of the directory
- principal
Id String - Unique identifier of the principal (UUID format)
- expires
At String - An ISO-8601 timestamp representation of entity expiration date.
- managed
By Map<String> - secret String
- The password secret value. This is only returned when the password is first created and cannot be retrieved again later.
Outputs
All input properties are implicitly available as output properties. Additionally, the IdentityPrincipalBasicAuthPassword resource produces the following output properties:
- 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.
- 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.
Look up Existing IdentityPrincipalBasicAuthPassword Resource
Get an existing IdentityPrincipalBasicAuthPassword 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?: IdentityPrincipalBasicAuthPasswordState, opts?: CustomResourceOptions): IdentityPrincipalBasicAuthPassword@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
basic_auth_id: Optional[str] = None,
created_at: Optional[str] = None,
directory_id: Optional[str] = None,
expires_at: Optional[str] = None,
managed_by: Optional[Mapping[str, str]] = None,
principal_id: Optional[str] = None,
secret: Optional[str] = None,
updated_at: Optional[str] = None) -> IdentityPrincipalBasicAuthPasswordfunc GetIdentityPrincipalBasicAuthPassword(ctx *Context, name string, id IDInput, state *IdentityPrincipalBasicAuthPasswordState, opts ...ResourceOption) (*IdentityPrincipalBasicAuthPassword, error)public static IdentityPrincipalBasicAuthPassword Get(string name, Input<string> id, IdentityPrincipalBasicAuthPasswordState? state, CustomResourceOptions? opts = null)public static IdentityPrincipalBasicAuthPassword get(String name, Output<String> id, IdentityPrincipalBasicAuthPasswordState state, CustomResourceOptions options)resources: _: type: konnect:IdentityPrincipalBasicAuthPassword get: id: ${id}import {
to = konnect_identity_principal_basic_auth_password.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.
- Basic
Auth stringId - Unique identifier of the basic auth credential (UUID format)
- Created
At string - An ISO-8601 timestamp representation of entity creation date.
- Directory
Id string - ID of the directory
- Expires
At string - An ISO-8601 timestamp representation of entity expiration date.
- Managed
By Dictionary<string, string> - Principal
Id string - Unique identifier of the principal (UUID format)
- Secret string
- The password secret value. This is only returned when the password is first created and cannot be retrieved again later.
- Updated
At string - An ISO-8601 timestamp representation of entity update date.
- Basic
Auth stringId - Unique identifier of the basic auth credential (UUID format)
- Created
At string - An ISO-8601 timestamp representation of entity creation date.
- Directory
Id string - ID of the directory
- Expires
At string - An ISO-8601 timestamp representation of entity expiration date.
- Managed
By map[string]string - Principal
Id string - Unique identifier of the principal (UUID format)
- Secret string
- The password secret value. This is only returned when the password is first created and cannot be retrieved again later.
- Updated
At string - An ISO-8601 timestamp representation of entity update date.
- basic_
auth_ stringid - Unique identifier of the basic auth credential (UUID format)
- created_
at string - An ISO-8601 timestamp representation of entity creation date.
- directory_
id string - ID of the directory
- expires_
at string - An ISO-8601 timestamp representation of entity expiration date.
- managed_
by map(string) - principal_
id string - Unique identifier of the principal (UUID format)
- secret string
- The password secret value. This is only returned when the password is first created and cannot be retrieved again later.
- updated_
at string - An ISO-8601 timestamp representation of entity update date.
- basic
Auth StringId - Unique identifier of the basic auth credential (UUID format)
- created
At String - An ISO-8601 timestamp representation of entity creation date.
- directory
Id String - ID of the directory
- expires
At String - An ISO-8601 timestamp representation of entity expiration date.
- managed
By Map<String,String> - principal
Id String - Unique identifier of the principal (UUID format)
- secret String
- The password secret value. This is only returned when the password is first created and cannot be retrieved again later.
- updated
At String - An ISO-8601 timestamp representation of entity update date.
- basic
Auth stringId - Unique identifier of the basic auth credential (UUID format)
- created
At string - An ISO-8601 timestamp representation of entity creation date.
- directory
Id string - ID of the directory
- expires
At string - An ISO-8601 timestamp representation of entity expiration date.
- managed
By {[key: string]: string} - principal
Id string - Unique identifier of the principal (UUID format)
- secret string
- The password secret value. This is only returned when the password is first created and cannot be retrieved again later.
- updated
At string - An ISO-8601 timestamp representation of entity update date.
- basic_
auth_ strid - Unique identifier of the basic auth credential (UUID format)
- created_
at str - An ISO-8601 timestamp representation of entity creation date.
- directory_
id str - ID of the directory
- expires_
at str - An ISO-8601 timestamp representation of entity expiration date.
- managed_
by Mapping[str, str] - principal_
id str - Unique identifier of the principal (UUID format)
- secret str
- The password secret value. This is only returned when the password is first created and cannot be retrieved again later.
- updated_
at str - An ISO-8601 timestamp representation of entity update date.
- basic
Auth StringId - Unique identifier of the basic auth credential (UUID format)
- created
At String - An ISO-8601 timestamp representation of entity creation date.
- directory
Id String - ID of the directory
- expires
At String - An ISO-8601 timestamp representation of entity expiration date.
- managed
By Map<String> - principal
Id String - Unique identifier of the principal (UUID format)
- secret String
- The password secret value. This is only returned when the password is first created and cannot be retrieved again later.
- updated
At 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_principal_basic_auth_password.my_konnect_identity_principal_basic_auth_password
id = jsonencode({
basic_auth_id = "..."
directory_id = "..."
id = "..."
principal_id = "..."
})
}
The pulumi import command can be used, for example:
$ pulumi import konnect:index/identityPrincipalBasicAuthPassword:IdentityPrincipalBasicAuthPassword my_konnect_identity_principal_basic_auth_password '{"basic_auth_id": "...", "directory_id": "...", "id": "...", "principal_id": "..."}'
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
konnectTerraform Provider.
published on Friday, Nov 6, 2026 by kong