1. Packages
  2. Google Cloud Native
  3. API Docs
  4. artifactregistry
  5. artifactregistry/v1beta1
  6. Tag

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.artifactregistry/v1beta1.Tag

Explore with Pulumi AI

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

Creates a tag.

Create Tag Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Tag(name: string, args: TagArgs, opts?: CustomResourceOptions);
@overload
def Tag(resource_name: str,
        args: TagArgs,
        opts: Optional[ResourceOptions] = None)

@overload
def Tag(resource_name: str,
        opts: Optional[ResourceOptions] = None,
        package_id: Optional[str] = None,
        repository_id: Optional[str] = None,
        location: Optional[str] = None,
        name: Optional[str] = None,
        project: Optional[str] = None,
        tag_id: Optional[str] = None,
        version: Optional[str] = None)
func NewTag(ctx *Context, name string, args TagArgs, opts ...ResourceOption) (*Tag, error)
public Tag(string name, TagArgs args, CustomResourceOptions? opts = null)
public Tag(String name, TagArgs args)
public Tag(String name, TagArgs args, CustomResourceOptions options)
type: google-native:artifactregistry/v1beta1:Tag
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. TagArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. TagArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. TagArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. TagArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. TagArgs
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 google_nativeTagResource = new GoogleNative.ArtifactRegistry.V1Beta1.Tag("google-nativeTagResource", new()
{
    PackageId = "string",
    RepositoryId = "string",
    Location = "string",
    Name = "string",
    Project = "string",
    TagId = "string",
    Version = "string",
});
Copy
example, err := artifactregistryv1beta1.NewTag(ctx, "google-nativeTagResource", &artifactregistryv1beta1.TagArgs{
	PackageId:    pulumi.String("string"),
	RepositoryId: pulumi.String("string"),
	Location:     pulumi.String("string"),
	Name:         pulumi.String("string"),
	Project:      pulumi.String("string"),
	TagId:        pulumi.String("string"),
	Version:      pulumi.String("string"),
})
Copy
var google_nativeTagResource = new Tag("google-nativeTagResource", TagArgs.builder()
    .packageId("string")
    .repositoryId("string")
    .location("string")
    .name("string")
    .project("string")
    .tagId("string")
    .version("string")
    .build());
Copy
google_native_tag_resource = google_native.artifactregistry.v1beta1.Tag("google-nativeTagResource",
    package_id="string",
    repository_id="string",
    location="string",
    name="string",
    project="string",
    tag_id="string",
    version="string")
Copy
const google_nativeTagResource = new google_native.artifactregistry.v1beta1.Tag("google-nativeTagResource", {
    packageId: "string",
    repositoryId: "string",
    location: "string",
    name: "string",
    project: "string",
    tagId: "string",
    version: "string",
});
Copy
type: google-native:artifactregistry/v1beta1:Tag
properties:
    location: string
    name: string
    packageId: string
    project: string
    repositoryId: string
    tagId: string
    version: string
Copy

Tag 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 Tag resource accepts the following input properties:

PackageId
This property is required.
Changes to this property will trigger replacement.
string
RepositoryId
This property is required.
Changes to this property will trigger replacement.
string
Location Changes to this property will trigger replacement. string
Name string
The name of the tag, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1". If the package part contains slashes, the slashes are escaped. The tag part can only have characters in [a-zA-Z0-9-._~:@], anything else must be URL encoded.
Project Changes to this property will trigger replacement. string
TagId string
The tag id to use for this repository.
Version string
The name of the version the tag refers to, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811" If the package or version ID parts contain slashes, the slashes are escaped.
PackageId
This property is required.
Changes to this property will trigger replacement.
string
RepositoryId
This property is required.
Changes to this property will trigger replacement.
string
Location Changes to this property will trigger replacement. string
Name string
The name of the tag, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1". If the package part contains slashes, the slashes are escaped. The tag part can only have characters in [a-zA-Z0-9-._~:@], anything else must be URL encoded.
Project Changes to this property will trigger replacement. string
TagId string
The tag id to use for this repository.
Version string
The name of the version the tag refers to, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811" If the package or version ID parts contain slashes, the slashes are escaped.
packageId
This property is required.
Changes to this property will trigger replacement.
String
repositoryId
This property is required.
Changes to this property will trigger replacement.
String
location Changes to this property will trigger replacement. String
name String
The name of the tag, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1". If the package part contains slashes, the slashes are escaped. The tag part can only have characters in [a-zA-Z0-9-._~:@], anything else must be URL encoded.
project Changes to this property will trigger replacement. String
tagId String
The tag id to use for this repository.
version String
The name of the version the tag refers to, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811" If the package or version ID parts contain slashes, the slashes are escaped.
packageId
This property is required.
Changes to this property will trigger replacement.
string
repositoryId
This property is required.
Changes to this property will trigger replacement.
string
location Changes to this property will trigger replacement. string
name string
The name of the tag, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1". If the package part contains slashes, the slashes are escaped. The tag part can only have characters in [a-zA-Z0-9-._~:@], anything else must be URL encoded.
project Changes to this property will trigger replacement. string
tagId string
The tag id to use for this repository.
version string
The name of the version the tag refers to, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811" If the package or version ID parts contain slashes, the slashes are escaped.
package_id
This property is required.
Changes to this property will trigger replacement.
str
repository_id
This property is required.
Changes to this property will trigger replacement.
str
location Changes to this property will trigger replacement. str
name str
The name of the tag, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1". If the package part contains slashes, the slashes are escaped. The tag part can only have characters in [a-zA-Z0-9-._~:@], anything else must be URL encoded.
project Changes to this property will trigger replacement. str
tag_id str
The tag id to use for this repository.
version str
The name of the version the tag refers to, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811" If the package or version ID parts contain slashes, the slashes are escaped.
packageId
This property is required.
Changes to this property will trigger replacement.
String
repositoryId
This property is required.
Changes to this property will trigger replacement.
String
location Changes to this property will trigger replacement. String
name String
The name of the tag, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1". If the package part contains slashes, the slashes are escaped. The tag part can only have characters in [a-zA-Z0-9-._~:@], anything else must be URL encoded.
project Changes to this property will trigger replacement. String
tagId String
The tag id to use for this repository.
version String
The name of the version the tag refers to, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811" If the package or version ID parts contain slashes, the slashes are escaped.

Outputs

All input properties are implicitly available as output properties. Additionally, the Tag 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.

Package Details

Repository
Google Cloud Native pulumi/pulumi-google-native
License
Apache-2.0

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi