akeyless.DynamicSecretGitlab
Explore with Pulumi AI
Gitlab dynamic secret resource.
Create DynamicSecretGitlab Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DynamicSecretGitlab(name: string, args?: DynamicSecretGitlabArgs, opts?: CustomResourceOptions);
@overload
def DynamicSecretGitlab(resource_name: str,
args: Optional[DynamicSecretGitlabArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def DynamicSecretGitlab(resource_name: str,
opts: Optional[ResourceOptions] = None,
delete_protection: Optional[str] = None,
description: Optional[str] = None,
dynamic_secret_gitlab_id: Optional[str] = None,
gitlab_access_token: Optional[str] = None,
gitlab_access_type: Optional[str] = None,
gitlab_certificate: Optional[str] = None,
gitlab_role: Optional[str] = None,
gitlab_token_scopes: Optional[str] = None,
gitlab_url: Optional[str] = None,
group_name: Optional[str] = None,
installation_organization: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
target_name: Optional[str] = None,
ttl: Optional[str] = None)
func NewDynamicSecretGitlab(ctx *Context, name string, args *DynamicSecretGitlabArgs, opts ...ResourceOption) (*DynamicSecretGitlab, error)
public DynamicSecretGitlab(string name, DynamicSecretGitlabArgs? args = null, CustomResourceOptions? opts = null)
public DynamicSecretGitlab(String name, DynamicSecretGitlabArgs args)
public DynamicSecretGitlab(String name, DynamicSecretGitlabArgs args, CustomResourceOptions options)
type: akeyless:DynamicSecretGitlab
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 DynamicSecretGitlabArgs
- 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 DynamicSecretGitlabArgs
- 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 DynamicSecretGitlabArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DynamicSecretGitlabArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DynamicSecretGitlabArgs
- 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 dynamicSecretGitlabResource = new Akeyless.DynamicSecretGitlab("dynamicSecretGitlabResource", new()
{
DeleteProtection = "string",
Description = "string",
DynamicSecretGitlabId = "string",
GitlabAccessToken = "string",
GitlabAccessType = "string",
GitlabCertificate = "string",
GitlabRole = "string",
GitlabTokenScopes = "string",
GitlabUrl = "string",
GroupName = "string",
InstallationOrganization = "string",
Name = "string",
Tags = new[]
{
"string",
},
TargetName = "string",
Ttl = "string",
});
example, err := akeyless.NewDynamicSecretGitlab(ctx, "dynamicSecretGitlabResource", &akeyless.DynamicSecretGitlabArgs{
DeleteProtection: pulumi.String("string"),
Description: pulumi.String("string"),
DynamicSecretGitlabId: pulumi.String("string"),
GitlabAccessToken: pulumi.String("string"),
GitlabAccessType: pulumi.String("string"),
GitlabCertificate: pulumi.String("string"),
GitlabRole: pulumi.String("string"),
GitlabTokenScopes: pulumi.String("string"),
GitlabUrl: pulumi.String("string"),
GroupName: pulumi.String("string"),
InstallationOrganization: pulumi.String("string"),
Name: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
TargetName: pulumi.String("string"),
Ttl: pulumi.String("string"),
})
var dynamicSecretGitlabResource = new DynamicSecretGitlab("dynamicSecretGitlabResource", DynamicSecretGitlabArgs.builder()
.deleteProtection("string")
.description("string")
.dynamicSecretGitlabId("string")
.gitlabAccessToken("string")
.gitlabAccessType("string")
.gitlabCertificate("string")
.gitlabRole("string")
.gitlabTokenScopes("string")
.gitlabUrl("string")
.groupName("string")
.installationOrganization("string")
.name("string")
.tags("string")
.targetName("string")
.ttl("string")
.build());
dynamic_secret_gitlab_resource = akeyless.DynamicSecretGitlab("dynamicSecretGitlabResource",
delete_protection="string",
description="string",
dynamic_secret_gitlab_id="string",
gitlab_access_token="string",
gitlab_access_type="string",
gitlab_certificate="string",
gitlab_role="string",
gitlab_token_scopes="string",
gitlab_url="string",
group_name="string",
installation_organization="string",
name="string",
tags=["string"],
target_name="string",
ttl="string")
const dynamicSecretGitlabResource = new akeyless.DynamicSecretGitlab("dynamicSecretGitlabResource", {
deleteProtection: "string",
description: "string",
dynamicSecretGitlabId: "string",
gitlabAccessToken: "string",
gitlabAccessType: "string",
gitlabCertificate: "string",
gitlabRole: "string",
gitlabTokenScopes: "string",
gitlabUrl: "string",
groupName: "string",
installationOrganization: "string",
name: "string",
tags: ["string"],
targetName: "string",
ttl: "string",
});
type: akeyless:DynamicSecretGitlab
properties:
deleteProtection: string
description: string
dynamicSecretGitlabId: string
gitlabAccessToken: string
gitlabAccessType: string
gitlabCertificate: string
gitlabRole: string
gitlabTokenScopes: string
gitlabUrl: string
groupName: string
installationOrganization: string
name: string
tags:
- string
targetName: string
ttl: string
DynamicSecretGitlab 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 DynamicSecretGitlab resource accepts the following input properties:
- Delete
Protection string - Protection from accidental deletion of this item, [true/false]
- Description string
- Description of the object
- Dynamic
Secret stringGitlab Id - The ID of this resource.
- Gitlab
Access stringToken - Gitlab access token
- Gitlab
Access stringType - Gitlab access token type [project,group]
- Gitlab
Certificate string - Gitlab tls certificate (base64 encoded)
- Gitlab
Role string - Gitlab role
- Gitlab
Token stringScopes - Comma-separated list of access token scopes to grant
- Gitlab
Url string - Gitlab base url
- Group
Name string - Gitlab group name, required for access-type=group
- Installation
Organization string - Gitlab project name, required for access-type=project
- Name string
- Dynamic secret name
- List<string>
- A comma-separated list of tags attached to this secret
- Target
Name string - Name of an existing target
- Ttl string
- Access Token TTL
- Delete
Protection string - Protection from accidental deletion of this item, [true/false]
- Description string
- Description of the object
- Dynamic
Secret stringGitlab Id - The ID of this resource.
- Gitlab
Access stringToken - Gitlab access token
- Gitlab
Access stringType - Gitlab access token type [project,group]
- Gitlab
Certificate string - Gitlab tls certificate (base64 encoded)
- Gitlab
Role string - Gitlab role
- Gitlab
Token stringScopes - Comma-separated list of access token scopes to grant
- Gitlab
Url string - Gitlab base url
- Group
Name string - Gitlab group name, required for access-type=group
- Installation
Organization string - Gitlab project name, required for access-type=project
- Name string
- Dynamic secret name
- []string
- A comma-separated list of tags attached to this secret
- Target
Name string - Name of an existing target
- Ttl string
- Access Token TTL
- delete
Protection String - Protection from accidental deletion of this item, [true/false]
- description String
- Description of the object
- dynamic
Secret StringGitlab Id - The ID of this resource.
- gitlab
Access StringToken - Gitlab access token
- gitlab
Access StringType - Gitlab access token type [project,group]
- gitlab
Certificate String - Gitlab tls certificate (base64 encoded)
- gitlab
Role String - Gitlab role
- gitlab
Token StringScopes - Comma-separated list of access token scopes to grant
- gitlab
Url String - Gitlab base url
- group
Name String - Gitlab group name, required for access-type=group
- installation
Organization String - Gitlab project name, required for access-type=project
- name String
- Dynamic secret name
- List<String>
- A comma-separated list of tags attached to this secret
- target
Name String - Name of an existing target
- ttl String
- Access Token TTL
- delete
Protection string - Protection from accidental deletion of this item, [true/false]
- description string
- Description of the object
- dynamic
Secret stringGitlab Id - The ID of this resource.
- gitlab
Access stringToken - Gitlab access token
- gitlab
Access stringType - Gitlab access token type [project,group]
- gitlab
Certificate string - Gitlab tls certificate (base64 encoded)
- gitlab
Role string - Gitlab role
- gitlab
Token stringScopes - Comma-separated list of access token scopes to grant
- gitlab
Url string - Gitlab base url
- group
Name string - Gitlab group name, required for access-type=group
- installation
Organization string - Gitlab project name, required for access-type=project
- name string
- Dynamic secret name
- string[]
- A comma-separated list of tags attached to this secret
- target
Name string - Name of an existing target
- ttl string
- Access Token TTL
- delete_
protection str - Protection from accidental deletion of this item, [true/false]
- description str
- Description of the object
- dynamic_
secret_ strgitlab_ id - The ID of this resource.
- gitlab_
access_ strtoken - Gitlab access token
- gitlab_
access_ strtype - Gitlab access token type [project,group]
- gitlab_
certificate str - Gitlab tls certificate (base64 encoded)
- gitlab_
role str - Gitlab role
- gitlab_
token_ strscopes - Comma-separated list of access token scopes to grant
- gitlab_
url str - Gitlab base url
- group_
name str - Gitlab group name, required for access-type=group
- installation_
organization str - Gitlab project name, required for access-type=project
- name str
- Dynamic secret name
- Sequence[str]
- A comma-separated list of tags attached to this secret
- target_
name str - Name of an existing target
- ttl str
- Access Token TTL
- delete
Protection String - Protection from accidental deletion of this item, [true/false]
- description String
- Description of the object
- dynamic
Secret StringGitlab Id - The ID of this resource.
- gitlab
Access StringToken - Gitlab access token
- gitlab
Access StringType - Gitlab access token type [project,group]
- gitlab
Certificate String - Gitlab tls certificate (base64 encoded)
- gitlab
Role String - Gitlab role
- gitlab
Token StringScopes - Comma-separated list of access token scopes to grant
- gitlab
Url String - Gitlab base url
- group
Name String - Gitlab group name, required for access-type=group
- installation
Organization String - Gitlab project name, required for access-type=project
- name String
- Dynamic secret name
- List<String>
- A comma-separated list of tags attached to this secret
- target
Name String - Name of an existing target
- ttl String
- Access Token TTL
Outputs
All input properties are implicitly available as output properties. Additionally, the DynamicSecretGitlab 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 DynamicSecretGitlab Resource
Get an existing DynamicSecretGitlab 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?: DynamicSecretGitlabState, opts?: CustomResourceOptions): DynamicSecretGitlab
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
delete_protection: Optional[str] = None,
description: Optional[str] = None,
dynamic_secret_gitlab_id: Optional[str] = None,
gitlab_access_token: Optional[str] = None,
gitlab_access_type: Optional[str] = None,
gitlab_certificate: Optional[str] = None,
gitlab_role: Optional[str] = None,
gitlab_token_scopes: Optional[str] = None,
gitlab_url: Optional[str] = None,
group_name: Optional[str] = None,
installation_organization: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
target_name: Optional[str] = None,
ttl: Optional[str] = None) -> DynamicSecretGitlab
func GetDynamicSecretGitlab(ctx *Context, name string, id IDInput, state *DynamicSecretGitlabState, opts ...ResourceOption) (*DynamicSecretGitlab, error)
public static DynamicSecretGitlab Get(string name, Input<string> id, DynamicSecretGitlabState? state, CustomResourceOptions? opts = null)
public static DynamicSecretGitlab get(String name, Output<String> id, DynamicSecretGitlabState state, CustomResourceOptions options)
resources: _: type: akeyless:DynamicSecretGitlab 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 item, [true/false]
- Description string
- Description of the object
- Dynamic
Secret stringGitlab Id - The ID of this resource.
- Gitlab
Access stringToken - Gitlab access token
- Gitlab
Access stringType - Gitlab access token type [project,group]
- Gitlab
Certificate string - Gitlab tls certificate (base64 encoded)
- Gitlab
Role string - Gitlab role
- Gitlab
Token stringScopes - Comma-separated list of access token scopes to grant
- Gitlab
Url string - Gitlab base url
- Group
Name string - Gitlab group name, required for access-type=group
- Installation
Organization string - Gitlab project name, required for access-type=project
- Name string
- Dynamic secret name
- List<string>
- A comma-separated list of tags attached to this secret
- Target
Name string - Name of an existing target
- Ttl string
- Access Token TTL
- Delete
Protection string - Protection from accidental deletion of this item, [true/false]
- Description string
- Description of the object
- Dynamic
Secret stringGitlab Id - The ID of this resource.
- Gitlab
Access stringToken - Gitlab access token
- Gitlab
Access stringType - Gitlab access token type [project,group]
- Gitlab
Certificate string - Gitlab tls certificate (base64 encoded)
- Gitlab
Role string - Gitlab role
- Gitlab
Token stringScopes - Comma-separated list of access token scopes to grant
- Gitlab
Url string - Gitlab base url
- Group
Name string - Gitlab group name, required for access-type=group
- Installation
Organization string - Gitlab project name, required for access-type=project
- Name string
- Dynamic secret name
- []string
- A comma-separated list of tags attached to this secret
- Target
Name string - Name of an existing target
- Ttl string
- Access Token TTL
- delete
Protection String - Protection from accidental deletion of this item, [true/false]
- description String
- Description of the object
- dynamic
Secret StringGitlab Id - The ID of this resource.
- gitlab
Access StringToken - Gitlab access token
- gitlab
Access StringType - Gitlab access token type [project,group]
- gitlab
Certificate String - Gitlab tls certificate (base64 encoded)
- gitlab
Role String - Gitlab role
- gitlab
Token StringScopes - Comma-separated list of access token scopes to grant
- gitlab
Url String - Gitlab base url
- group
Name String - Gitlab group name, required for access-type=group
- installation
Organization String - Gitlab project name, required for access-type=project
- name String
- Dynamic secret name
- List<String>
- A comma-separated list of tags attached to this secret
- target
Name String - Name of an existing target
- ttl String
- Access Token TTL
- delete
Protection string - Protection from accidental deletion of this item, [true/false]
- description string
- Description of the object
- dynamic
Secret stringGitlab Id - The ID of this resource.
- gitlab
Access stringToken - Gitlab access token
- gitlab
Access stringType - Gitlab access token type [project,group]
- gitlab
Certificate string - Gitlab tls certificate (base64 encoded)
- gitlab
Role string - Gitlab role
- gitlab
Token stringScopes - Comma-separated list of access token scopes to grant
- gitlab
Url string - Gitlab base url
- group
Name string - Gitlab group name, required for access-type=group
- installation
Organization string - Gitlab project name, required for access-type=project
- name string
- Dynamic secret name
- string[]
- A comma-separated list of tags attached to this secret
- target
Name string - Name of an existing target
- ttl string
- Access Token TTL
- delete_
protection str - Protection from accidental deletion of this item, [true/false]
- description str
- Description of the object
- dynamic_
secret_ strgitlab_ id - The ID of this resource.
- gitlab_
access_ strtoken - Gitlab access token
- gitlab_
access_ strtype - Gitlab access token type [project,group]
- gitlab_
certificate str - Gitlab tls certificate (base64 encoded)
- gitlab_
role str - Gitlab role
- gitlab_
token_ strscopes - Comma-separated list of access token scopes to grant
- gitlab_
url str - Gitlab base url
- group_
name str - Gitlab group name, required for access-type=group
- installation_
organization str - Gitlab project name, required for access-type=project
- name str
- Dynamic secret name
- Sequence[str]
- A comma-separated list of tags attached to this secret
- target_
name str - Name of an existing target
- ttl str
- Access Token TTL
- delete
Protection String - Protection from accidental deletion of this item, [true/false]
- description String
- Description of the object
- dynamic
Secret StringGitlab Id - The ID of this resource.
- gitlab
Access StringToken - Gitlab access token
- gitlab
Access StringType - Gitlab access token type [project,group]
- gitlab
Certificate String - Gitlab tls certificate (base64 encoded)
- gitlab
Role String - Gitlab role
- gitlab
Token StringScopes - Comma-separated list of access token scopes to grant
- gitlab
Url String - Gitlab base url
- group
Name String - Gitlab group name, required for access-type=group
- installation
Organization String - Gitlab project name, required for access-type=project
- name String
- Dynamic secret name
- List<String>
- A comma-separated list of tags attached to this secret
- target
Name String - Name of an existing target
- ttl String
- Access Token TTL
Package Details
- Repository
- akeyless akeyless-community/terraform-provider-akeyless
- License
- Notes
- This Pulumi package is based on the
akeyless
Terraform Provider.