Show / Hide Table of Contents

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",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
TagProtection
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.GitLab
Assembly: Pulumi.GitLab.dll
Syntax
public class TagProtection : CustomResource

Constructors

View Source

TagProtection(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 Source

CreateAccessLevel

One of five levels of access to the project.

Declaration
public Output<string> CreateAccessLevel { get; }
Property Value
Type Description
Output<System.String>
View Source

Project

The id of the project.

Declaration
public Output<string> Project { get; }
Property Value
Type Description
Output<System.String>
View Source

Tag

Name of the tag or wildcard.

Declaration
public Output<string> Tag { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.