published on Monday, Apr 27, 2026 by akeyless-community
published on Monday, Apr 27, 2026 by akeyless-community
Dockerhub dynamic secret resource
Create DynamicSecretDockerhub Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DynamicSecretDockerhub(name: string, args?: DynamicSecretDockerhubArgs, opts?: CustomResourceOptions);@overload
def DynamicSecretDockerhub(resource_name: str,
args: Optional[DynamicSecretDockerhubArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def DynamicSecretDockerhub(resource_name: str,
opts: Optional[ResourceOptions] = None,
delete_protection: Optional[str] = None,
dockerhub_password: Optional[str] = None,
dockerhub_token_scopes: Optional[str] = None,
dockerhub_username: Optional[str] = None,
dynamic_secret_dockerhub_id: Optional[str] = None,
item_custom_fields: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
producer_encryption_key_name: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
target_name: Optional[str] = None,
user_ttl: Optional[str] = None)func NewDynamicSecretDockerhub(ctx *Context, name string, args *DynamicSecretDockerhubArgs, opts ...ResourceOption) (*DynamicSecretDockerhub, error)public DynamicSecretDockerhub(string name, DynamicSecretDockerhubArgs? args = null, CustomResourceOptions? opts = null)
public DynamicSecretDockerhub(String name, DynamicSecretDockerhubArgs args)
public DynamicSecretDockerhub(String name, DynamicSecretDockerhubArgs args, CustomResourceOptions options)
type: akeyless:DynamicSecretDockerhub
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 DynamicSecretDockerhubArgs
- 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 DynamicSecretDockerhubArgs
- 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 DynamicSecretDockerhubArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DynamicSecretDockerhubArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DynamicSecretDockerhubArgs
- 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 dynamicSecretDockerhubResource = new Akeyless.DynamicSecretDockerhub("dynamicSecretDockerhubResource", new()
{
DeleteProtection = "string",
DockerhubPassword = "string",
DockerhubTokenScopes = "string",
DockerhubUsername = "string",
DynamicSecretDockerhubId = "string",
ItemCustomFields =
{
{ "string", "string" },
},
Name = "string",
ProducerEncryptionKeyName = "string",
Tags = new[]
{
"string",
},
TargetName = "string",
UserTtl = "string",
});
example, err := akeyless.NewDynamicSecretDockerhub(ctx, "dynamicSecretDockerhubResource", &akeyless.DynamicSecretDockerhubArgs{
DeleteProtection: pulumi.String("string"),
DockerhubPassword: pulumi.String("string"),
DockerhubTokenScopes: pulumi.String("string"),
DockerhubUsername: pulumi.String("string"),
DynamicSecretDockerhubId: pulumi.String("string"),
ItemCustomFields: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
ProducerEncryptionKeyName: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
TargetName: pulumi.String("string"),
UserTtl: pulumi.String("string"),
})
var dynamicSecretDockerhubResource = new DynamicSecretDockerhub("dynamicSecretDockerhubResource", DynamicSecretDockerhubArgs.builder()
.deleteProtection("string")
.dockerhubPassword("string")
.dockerhubTokenScopes("string")
.dockerhubUsername("string")
.dynamicSecretDockerhubId("string")
.itemCustomFields(Map.of("string", "string"))
.name("string")
.producerEncryptionKeyName("string")
.tags("string")
.targetName("string")
.userTtl("string")
.build());
dynamic_secret_dockerhub_resource = akeyless.DynamicSecretDockerhub("dynamicSecretDockerhubResource",
delete_protection="string",
dockerhub_password="string",
dockerhub_token_scopes="string",
dockerhub_username="string",
dynamic_secret_dockerhub_id="string",
item_custom_fields={
"string": "string",
},
name="string",
producer_encryption_key_name="string",
tags=["string"],
target_name="string",
user_ttl="string")
const dynamicSecretDockerhubResource = new akeyless.DynamicSecretDockerhub("dynamicSecretDockerhubResource", {
deleteProtection: "string",
dockerhubPassword: "string",
dockerhubTokenScopes: "string",
dockerhubUsername: "string",
dynamicSecretDockerhubId: "string",
itemCustomFields: {
string: "string",
},
name: "string",
producerEncryptionKeyName: "string",
tags: ["string"],
targetName: "string",
userTtl: "string",
});
type: akeyless:DynamicSecretDockerhub
properties:
deleteProtection: string
dockerhubPassword: string
dockerhubTokenScopes: string
dockerhubUsername: string
dynamicSecretDockerhubId: string
itemCustomFields:
string: string
name: string
producerEncryptionKeyName: string
tags:
- string
targetName: string
userTtl: string
DynamicSecretDockerhub 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 DynamicSecretDockerhub resource accepts the following input properties:
- Delete
Protection string - Protection from accidental deletion of this object [true/false]
- Dockerhub
Password string - DockerhubPassword is either the user's password access token to manage the repository
- Dockerhub
Token stringScopes - Access token scopes list (comma-separated) to give the dynamic secret valid options are in "repo:admin", "repo:write", "repo:read", "repo:public_read"
- Dockerhub
Username string - DockerhubUsername is the name of the user in dockerhub
- Dynamic
Secret stringDockerhub 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
- List<string>
- Add tags attached to this object
- Target
Name string - Target name
- User
Ttl string - User TTL
- Delete
Protection string - Protection from accidental deletion of this object [true/false]
- Dockerhub
Password string - DockerhubPassword is either the user's password access token to manage the repository
- Dockerhub
Token stringScopes - Access token scopes list (comma-separated) to give the dynamic secret valid options are in "repo:admin", "repo:write", "repo:read", "repo:public_read"
- Dockerhub
Username string - DockerhubUsername is the name of the user in dockerhub
- Dynamic
Secret stringDockerhub 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
- []string
- Add tags attached to this object
- Target
Name string - Target name
- User
Ttl string - User TTL
- delete
Protection String - Protection from accidental deletion of this object [true/false]
- dockerhub
Password String - DockerhubPassword is either the user's password access token to manage the repository
- dockerhub
Token StringScopes - Access token scopes list (comma-separated) to give the dynamic secret valid options are in "repo:admin", "repo:write", "repo:read", "repo:public_read"
- dockerhub
Username String - DockerhubUsername is the name of the user in dockerhub
- dynamic
Secret StringDockerhub 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
- List<String>
- Add tags attached to this object
- target
Name String - Target name
- user
Ttl String - User TTL
- delete
Protection string - Protection from accidental deletion of this object [true/false]
- dockerhub
Password string - DockerhubPassword is either the user's password access token to manage the repository
- dockerhub
Token stringScopes - Access token scopes list (comma-separated) to give the dynamic secret valid options are in "repo:admin", "repo:write", "repo:read", "repo:public_read"
- dockerhub
Username string - DockerhubUsername is the name of the user in dockerhub
- dynamic
Secret stringDockerhub 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
- string[]
- Add tags attached to this object
- target
Name string - Target name
- user
Ttl string - User TTL
- delete_
protection str - Protection from accidental deletion of this object [true/false]
- dockerhub_
password str - DockerhubPassword is either the user's password access token to manage the repository
- dockerhub_
token_ strscopes - Access token scopes list (comma-separated) to give the dynamic secret valid options are in "repo:admin", "repo:write", "repo:read", "repo:public_read"
- dockerhub_
username str - DockerhubUsername is the name of the user in dockerhub
- dynamic_
secret_ strdockerhub_ 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
- Sequence[str]
- Add tags attached to this object
- target_
name str - Target name
- user_
ttl str - User TTL
- delete
Protection String - Protection from accidental deletion of this object [true/false]
- dockerhub
Password String - DockerhubPassword is either the user's password access token to manage the repository
- dockerhub
Token StringScopes - Access token scopes list (comma-separated) to give the dynamic secret valid options are in "repo:admin", "repo:write", "repo:read", "repo:public_read"
- dockerhub
Username String - DockerhubUsername is the name of the user in dockerhub
- dynamic
Secret StringDockerhub 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
- 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 DynamicSecretDockerhub 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 DynamicSecretDockerhub Resource
Get an existing DynamicSecretDockerhub 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?: DynamicSecretDockerhubState, opts?: CustomResourceOptions): DynamicSecretDockerhub@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
delete_protection: Optional[str] = None,
dockerhub_password: Optional[str] = None,
dockerhub_token_scopes: Optional[str] = None,
dockerhub_username: Optional[str] = None,
dynamic_secret_dockerhub_id: Optional[str] = None,
item_custom_fields: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
producer_encryption_key_name: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
target_name: Optional[str] = None,
user_ttl: Optional[str] = None) -> DynamicSecretDockerhubfunc GetDynamicSecretDockerhub(ctx *Context, name string, id IDInput, state *DynamicSecretDockerhubState, opts ...ResourceOption) (*DynamicSecretDockerhub, error)public static DynamicSecretDockerhub Get(string name, Input<string> id, DynamicSecretDockerhubState? state, CustomResourceOptions? opts = null)public static DynamicSecretDockerhub get(String name, Output<String> id, DynamicSecretDockerhubState state, CustomResourceOptions options)resources: _: type: akeyless:DynamicSecretDockerhub 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.
- Delete
Protection string - Protection from accidental deletion of this object [true/false]
- Dockerhub
Password string - DockerhubPassword is either the user's password access token to manage the repository
- Dockerhub
Token stringScopes - Access token scopes list (comma-separated) to give the dynamic secret valid options are in "repo:admin", "repo:write", "repo:read", "repo:public_read"
- Dockerhub
Username string - DockerhubUsername is the name of the user in dockerhub
- Dynamic
Secret stringDockerhub 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
- List<string>
- Add tags attached to this object
- Target
Name string - Target name
- User
Ttl string - User TTL
- Delete
Protection string - Protection from accidental deletion of this object [true/false]
- Dockerhub
Password string - DockerhubPassword is either the user's password access token to manage the repository
- Dockerhub
Token stringScopes - Access token scopes list (comma-separated) to give the dynamic secret valid options are in "repo:admin", "repo:write", "repo:read", "repo:public_read"
- Dockerhub
Username string - DockerhubUsername is the name of the user in dockerhub
- Dynamic
Secret stringDockerhub 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
- []string
- Add tags attached to this object
- Target
Name string - Target name
- User
Ttl string - User TTL
- delete
Protection String - Protection from accidental deletion of this object [true/false]
- dockerhub
Password String - DockerhubPassword is either the user's password access token to manage the repository
- dockerhub
Token StringScopes - Access token scopes list (comma-separated) to give the dynamic secret valid options are in "repo:admin", "repo:write", "repo:read", "repo:public_read"
- dockerhub
Username String - DockerhubUsername is the name of the user in dockerhub
- dynamic
Secret StringDockerhub 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
- List<String>
- Add tags attached to this object
- target
Name String - Target name
- user
Ttl String - User TTL
- delete
Protection string - Protection from accidental deletion of this object [true/false]
- dockerhub
Password string - DockerhubPassword is either the user's password access token to manage the repository
- dockerhub
Token stringScopes - Access token scopes list (comma-separated) to give the dynamic secret valid options are in "repo:admin", "repo:write", "repo:read", "repo:public_read"
- dockerhub
Username string - DockerhubUsername is the name of the user in dockerhub
- dynamic
Secret stringDockerhub 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
- string[]
- Add tags attached to this object
- target
Name string - Target name
- user
Ttl string - User TTL
- delete_
protection str - Protection from accidental deletion of this object [true/false]
- dockerhub_
password str - DockerhubPassword is either the user's password access token to manage the repository
- dockerhub_
token_ strscopes - Access token scopes list (comma-separated) to give the dynamic secret valid options are in "repo:admin", "repo:write", "repo:read", "repo:public_read"
- dockerhub_
username str - DockerhubUsername is the name of the user in dockerhub
- dynamic_
secret_ strdockerhub_ 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
- Sequence[str]
- Add tags attached to this object
- target_
name str - Target name
- user_
ttl str - User TTL
- delete
Protection String - Protection from accidental deletion of this object [true/false]
- dockerhub
Password String - DockerhubPassword is either the user's password access token to manage the repository
- dockerhub
Token StringScopes - Access token scopes list (comma-separated) to give the dynamic secret valid options are in "repo:admin", "repo:write", "repo:read", "repo:public_read"
- dockerhub
Username String - DockerhubUsername is the name of the user in dockerhub
- dynamic
Secret StringDockerhub 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
- 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
