published on Monday, Apr 27, 2026 by akeyless-community
published on Monday, Apr 27, 2026 by akeyless-community
OpenAI dynamic secret resource
Create DynamicSecretOpenai Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DynamicSecretOpenai(name: string, args?: DynamicSecretOpenaiArgs, opts?: CustomResourceOptions);@overload
def DynamicSecretOpenai(resource_name: str,
args: Optional[DynamicSecretOpenaiArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def DynamicSecretOpenai(resource_name: str,
opts: Optional[ResourceOptions] = None,
custom_username_template: Optional[str] = None,
delete_protection: Optional[str] = None,
description: Optional[str] = None,
dynamic_secret_openai_id: Optional[str] = None,
item_custom_fields: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
producer_encryption_key_name: Optional[str] = None,
project_id: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
target_name: Optional[str] = None,
user_ttl: Optional[str] = None)func NewDynamicSecretOpenai(ctx *Context, name string, args *DynamicSecretOpenaiArgs, opts ...ResourceOption) (*DynamicSecretOpenai, error)public DynamicSecretOpenai(string name, DynamicSecretOpenaiArgs? args = null, CustomResourceOptions? opts = null)
public DynamicSecretOpenai(String name, DynamicSecretOpenaiArgs args)
public DynamicSecretOpenai(String name, DynamicSecretOpenaiArgs args, CustomResourceOptions options)
type: akeyless:DynamicSecretOpenai
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 DynamicSecretOpenaiArgs
- 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 DynamicSecretOpenaiArgs
- 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 DynamicSecretOpenaiArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DynamicSecretOpenaiArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DynamicSecretOpenaiArgs
- 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 dynamicSecretOpenaiResource = new Akeyless.DynamicSecretOpenai("dynamicSecretOpenaiResource", new()
{
CustomUsernameTemplate = "string",
DeleteProtection = "string",
Description = "string",
DynamicSecretOpenaiId = "string",
ItemCustomFields =
{
{ "string", "string" },
},
Name = "string",
ProducerEncryptionKeyName = "string",
ProjectId = "string",
Tags = new[]
{
"string",
},
TargetName = "string",
UserTtl = "string",
});
example, err := akeyless.NewDynamicSecretOpenai(ctx, "dynamicSecretOpenaiResource", &akeyless.DynamicSecretOpenaiArgs{
CustomUsernameTemplate: pulumi.String("string"),
DeleteProtection: pulumi.String("string"),
Description: pulumi.String("string"),
DynamicSecretOpenaiId: pulumi.String("string"),
ItemCustomFields: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
ProducerEncryptionKeyName: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
TargetName: pulumi.String("string"),
UserTtl: pulumi.String("string"),
})
var dynamicSecretOpenaiResource = new DynamicSecretOpenai("dynamicSecretOpenaiResource", DynamicSecretOpenaiArgs.builder()
.customUsernameTemplate("string")
.deleteProtection("string")
.description("string")
.dynamicSecretOpenaiId("string")
.itemCustomFields(Map.of("string", "string"))
.name("string")
.producerEncryptionKeyName("string")
.projectId("string")
.tags("string")
.targetName("string")
.userTtl("string")
.build());
dynamic_secret_openai_resource = akeyless.DynamicSecretOpenai("dynamicSecretOpenaiResource",
custom_username_template="string",
delete_protection="string",
description="string",
dynamic_secret_openai_id="string",
item_custom_fields={
"string": "string",
},
name="string",
producer_encryption_key_name="string",
project_id="string",
tags=["string"],
target_name="string",
user_ttl="string")
const dynamicSecretOpenaiResource = new akeyless.DynamicSecretOpenai("dynamicSecretOpenaiResource", {
customUsernameTemplate: "string",
deleteProtection: "string",
description: "string",
dynamicSecretOpenaiId: "string",
itemCustomFields: {
string: "string",
},
name: "string",
producerEncryptionKeyName: "string",
projectId: "string",
tags: ["string"],
targetName: "string",
userTtl: "string",
});
type: akeyless:DynamicSecretOpenai
properties:
customUsernameTemplate: string
deleteProtection: string
description: string
dynamicSecretOpenaiId: string
itemCustomFields:
string: string
name: string
producerEncryptionKeyName: string
projectId: string
tags:
- string
targetName: string
userTtl: string
DynamicSecretOpenai 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 DynamicSecretOpenai resource accepts the following input properties:
- Custom
Username stringTemplate - Customize how temporary usernames are generated using go template
- Delete
Protection string - Protection from accidental deletion of this object [true/false]
- Description string
- Description of the object
- Dynamic
Secret stringOpenai Id - The ID of this resource.
- Item
Custom Dictionary<string, string>Fields - Additional custom fields to associate with the item
- Name string
- Dynamic secret name
- Producer
Encryption stringKey Name - Dynamic producer encryption key
- Project
Id string - Project ID
- List<string>
- Add tags attached to this object
- Target
Name string - Target name
- User
Ttl string - User TTL
- Custom
Username stringTemplate - Customize how temporary usernames are generated using go template
- Delete
Protection string - Protection from accidental deletion of this object [true/false]
- Description string
- Description of the object
- Dynamic
Secret stringOpenai Id - The ID of this resource.
- Item
Custom map[string]stringFields - Additional custom fields to associate with the item
- Name string
- Dynamic secret name
- Producer
Encryption stringKey Name - Dynamic producer encryption key
- Project
Id string - Project ID
- []string
- Add tags attached to this object
- Target
Name string - Target name
- User
Ttl string - User TTL
- custom
Username StringTemplate - Customize how temporary usernames are generated using go template
- delete
Protection String - Protection from accidental deletion of this object [true/false]
- description String
- Description of the object
- dynamic
Secret StringOpenai Id - The ID of this resource.
- item
Custom Map<String,String>Fields - Additional custom fields to associate with the item
- name String
- Dynamic secret name
- producer
Encryption StringKey Name - Dynamic producer encryption key
- project
Id String - Project ID
- List<String>
- Add tags attached to this object
- target
Name String - Target name
- user
Ttl String - User TTL
- custom
Username stringTemplate - Customize how temporary usernames are generated using go template
- delete
Protection string - Protection from accidental deletion of this object [true/false]
- description string
- Description of the object
- dynamic
Secret stringOpenai Id - The ID of this resource.
- item
Custom {[key: string]: string}Fields - Additional custom fields to associate with the item
- name string
- Dynamic secret name
- producer
Encryption stringKey Name - Dynamic producer encryption key
- project
Id string - Project ID
- string[]
- Add tags attached to this object
- target
Name string - Target name
- user
Ttl string - User TTL
- custom_
username_ strtemplate - Customize how temporary usernames are generated using go template
- delete_
protection str - Protection from accidental deletion of this object [true/false]
- description str
- Description of the object
- dynamic_
secret_ stropenai_ id - The ID of this resource.
- item_
custom_ Mapping[str, str]fields - Additional custom fields to associate with the item
- name str
- Dynamic secret name
- producer_
encryption_ strkey_ name - Dynamic producer encryption key
- project_
id str - Project ID
- Sequence[str]
- Add tags attached to this object
- target_
name str - Target name
- user_
ttl str - User TTL
- custom
Username StringTemplate - Customize how temporary usernames are generated using go template
- delete
Protection String - Protection from accidental deletion of this object [true/false]
- description String
- Description of the object
- dynamic
Secret StringOpenai Id - The ID of this resource.
- item
Custom Map<String>Fields - Additional custom fields to associate with the item
- name String
- Dynamic secret name
- producer
Encryption StringKey Name - Dynamic producer encryption key
- project
Id String - Project ID
- List<String>
- Add tags attached to this object
- target
Name String - Target name
- user
Ttl String - User TTL
Outputs
All input properties are implicitly available as output properties. Additionally, the DynamicSecretOpenai 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 DynamicSecretOpenai Resource
Get an existing DynamicSecretOpenai 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?: DynamicSecretOpenaiState, opts?: CustomResourceOptions): DynamicSecretOpenai@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
custom_username_template: Optional[str] = None,
delete_protection: Optional[str] = None,
description: Optional[str] = None,
dynamic_secret_openai_id: Optional[str] = None,
item_custom_fields: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
producer_encryption_key_name: Optional[str] = None,
project_id: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
target_name: Optional[str] = None,
user_ttl: Optional[str] = None) -> DynamicSecretOpenaifunc GetDynamicSecretOpenai(ctx *Context, name string, id IDInput, state *DynamicSecretOpenaiState, opts ...ResourceOption) (*DynamicSecretOpenai, error)public static DynamicSecretOpenai Get(string name, Input<string> id, DynamicSecretOpenaiState? state, CustomResourceOptions? opts = null)public static DynamicSecretOpenai get(String name, Output<String> id, DynamicSecretOpenaiState state, CustomResourceOptions options)resources: _: type: akeyless:DynamicSecretOpenai 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.
- Custom
Username stringTemplate - Customize how temporary usernames are generated using go template
- Delete
Protection string - Protection from accidental deletion of this object [true/false]
- Description string
- Description of the object
- Dynamic
Secret stringOpenai Id - The ID of this resource.
- Item
Custom Dictionary<string, string>Fields - Additional custom fields to associate with the item
- Name string
- Dynamic secret name
- Producer
Encryption stringKey Name - Dynamic producer encryption key
- Project
Id string - Project ID
- List<string>
- Add tags attached to this object
- Target
Name string - Target name
- User
Ttl string - User TTL
- Custom
Username stringTemplate - Customize how temporary usernames are generated using go template
- Delete
Protection string - Protection from accidental deletion of this object [true/false]
- Description string
- Description of the object
- Dynamic
Secret stringOpenai Id - The ID of this resource.
- Item
Custom map[string]stringFields - Additional custom fields to associate with the item
- Name string
- Dynamic secret name
- Producer
Encryption stringKey Name - Dynamic producer encryption key
- Project
Id string - Project ID
- []string
- Add tags attached to this object
- Target
Name string - Target name
- User
Ttl string - User TTL
- custom
Username StringTemplate - Customize how temporary usernames are generated using go template
- delete
Protection String - Protection from accidental deletion of this object [true/false]
- description String
- Description of the object
- dynamic
Secret StringOpenai Id - The ID of this resource.
- item
Custom Map<String,String>Fields - Additional custom fields to associate with the item
- name String
- Dynamic secret name
- producer
Encryption StringKey Name - Dynamic producer encryption key
- project
Id String - Project ID
- List<String>
- Add tags attached to this object
- target
Name String - Target name
- user
Ttl String - User TTL
- custom
Username stringTemplate - Customize how temporary usernames are generated using go template
- delete
Protection string - Protection from accidental deletion of this object [true/false]
- description string
- Description of the object
- dynamic
Secret stringOpenai Id - The ID of this resource.
- item
Custom {[key: string]: string}Fields - Additional custom fields to associate with the item
- name string
- Dynamic secret name
- producer
Encryption stringKey Name - Dynamic producer encryption key
- project
Id string - Project ID
- string[]
- Add tags attached to this object
- target
Name string - Target name
- user
Ttl string - User TTL
- custom_
username_ strtemplate - Customize how temporary usernames are generated using go template
- delete_
protection str - Protection from accidental deletion of this object [true/false]
- description str
- Description of the object
- dynamic_
secret_ stropenai_ id - The ID of this resource.
- item_
custom_ Mapping[str, str]fields - Additional custom fields to associate with the item
- name str
- Dynamic secret name
- producer_
encryption_ strkey_ name - Dynamic producer encryption key
- project_
id str - Project ID
- Sequence[str]
- Add tags attached to this object
- target_
name str - Target name
- user_
ttl str - User TTL
- custom
Username StringTemplate - Customize how temporary usernames are generated using go template
- delete
Protection String - Protection from accidental deletion of this object [true/false]
- description String
- Description of the object
- dynamic
Secret StringOpenai Id - The ID of this resource.
- item
Custom Map<String>Fields - Additional custom fields to associate with the item
- name String
- Dynamic secret name
- producer
Encryption StringKey Name - Dynamic producer encryption key
- project
Id String - Project ID
- List<String>
- Add tags attached to this object
- target
Name String - Target name
- user
Ttl String - User TTL
Package Details
- Repository
- akeyless akeyless-community/terraform-provider-akeyless
- License
- Notes
- This Pulumi package is based on the
akeylessTerraform Provider.
published on Monday, Apr 27, 2026 by akeyless-community
