Class TagProtection
This resource allows you to protect a specific tag or wildcard by an access level so that the user with less access level cannot Create the tags.
Example Usage
using Pulumi;
using GitLab = Pulumi.GitLab;
class MyStack : Stack
{
public MyStack()
{
var tagProtect = new GitLab.TagProtection("tagProtect", new GitLab.TagProtectionArgs
{
CreateAccessLevel = "developer",
Project = "12345",
Tag = "TagProtected",
});
}
}
Inherited Members
Namespace: Pulumi.GitLab
Assembly: Pulumi.GitLab.dll
Syntax
public class TagProtection : CustomResource
Constructors
View SourceTagProtection(String, TagProtectionArgs, CustomResourceOptions)
Create a TagProtection resource with the given unique name, arguments, and options.
Declaration
public TagProtection(string name, TagProtectionArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| TagProtectionArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceCreateAccessLevel
One of five levels of access to the project.
Declaration
public Output<string> CreateAccessLevel { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Project
The id of the project.
Declaration
public Output<string> Project { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Tag
Name of the tag or wildcard.
Declaration
public Output<string> Tag { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, TagProtectionState, CustomResourceOptions)
Get an existing TagProtection resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static TagProtection Get(string name, Input<string> id, TagProtectionState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| TagProtectionState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| TagProtection |