tencentcloud.TcrImmutableTagRule
Explore with Pulumi AI
Provides a resource to create a tcr immutable tag rule.
Example Usage
Create a immutable tag rule with specified tags and exclude specified repositories
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const exampleTcrInstance = new tencentcloud.TcrInstance("exampleTcrInstance", {
instanceType: "premium",
deleteBucket: true,
});
const exampleTcrNamespace = new tencentcloud.TcrNamespace("exampleTcrNamespace", {
instanceId: exampleTcrInstance.tcrInstanceId,
isPublic: true,
isAutoScan: true,
isPreventVul: true,
severity: "medium",
cveWhitelistItems: [{
cveId: "cve-xxxxx",
}],
});
const exampleTcrImmutableTagRule = new tencentcloud.TcrImmutableTagRule("exampleTcrImmutableTagRule", {
registryId: exampleTcrInstance.tcrInstanceId,
namespaceName: exampleTcrNamespace.name,
rule: {
repositoryPattern: "deprecated_repo",
tagPattern: "**",
repositoryDecoration: "repoExcludes",
tagDecoration: "matches",
disabled: false,
},
tags: {
createdBy: "terraform",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example_tcr_instance = tencentcloud.TcrInstance("exampleTcrInstance",
instance_type="premium",
delete_bucket=True)
example_tcr_namespace = tencentcloud.TcrNamespace("exampleTcrNamespace",
instance_id=example_tcr_instance.tcr_instance_id,
is_public=True,
is_auto_scan=True,
is_prevent_vul=True,
severity="medium",
cve_whitelist_items=[{
"cve_id": "cve-xxxxx",
}])
example_tcr_immutable_tag_rule = tencentcloud.TcrImmutableTagRule("exampleTcrImmutableTagRule",
registry_id=example_tcr_instance.tcr_instance_id,
namespace_name=example_tcr_namespace.name,
rule={
"repository_pattern": "deprecated_repo",
"tag_pattern": "**",
"repository_decoration": "repoExcludes",
"tag_decoration": "matches",
"disabled": False,
},
tags={
"createdBy": "terraform",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleTcrInstance, err := tencentcloud.NewTcrInstance(ctx, "exampleTcrInstance", &tencentcloud.TcrInstanceArgs{
InstanceType: pulumi.String("premium"),
DeleteBucket: pulumi.Bool(true),
})
if err != nil {
return err
}
exampleTcrNamespace, err := tencentcloud.NewTcrNamespace(ctx, "exampleTcrNamespace", &tencentcloud.TcrNamespaceArgs{
InstanceId: exampleTcrInstance.TcrInstanceId,
IsPublic: pulumi.Bool(true),
IsAutoScan: pulumi.Bool(true),
IsPreventVul: pulumi.Bool(true),
Severity: pulumi.String("medium"),
CveWhitelistItems: tencentcloud.TcrNamespaceCveWhitelistItemArray{
&tencentcloud.TcrNamespaceCveWhitelistItemArgs{
CveId: pulumi.String("cve-xxxxx"),
},
},
})
if err != nil {
return err
}
_, err = tencentcloud.NewTcrImmutableTagRule(ctx, "exampleTcrImmutableTagRule", &tencentcloud.TcrImmutableTagRuleArgs{
RegistryId: exampleTcrInstance.TcrInstanceId,
NamespaceName: exampleTcrNamespace.Name,
Rule: &tencentcloud.TcrImmutableTagRuleRuleArgs{
RepositoryPattern: pulumi.String("deprecated_repo"),
TagPattern: pulumi.String("**"),
RepositoryDecoration: pulumi.String("repoExcludes"),
TagDecoration: pulumi.String("matches"),
Disabled: pulumi.Bool(false),
},
Tags: pulumi.StringMap{
"createdBy": pulumi.String("terraform"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var exampleTcrInstance = new Tencentcloud.TcrInstance("exampleTcrInstance", new()
{
InstanceType = "premium",
DeleteBucket = true,
});
var exampleTcrNamespace = new Tencentcloud.TcrNamespace("exampleTcrNamespace", new()
{
InstanceId = exampleTcrInstance.TcrInstanceId,
IsPublic = true,
IsAutoScan = true,
IsPreventVul = true,
Severity = "medium",
CveWhitelistItems = new[]
{
new Tencentcloud.Inputs.TcrNamespaceCveWhitelistItemArgs
{
CveId = "cve-xxxxx",
},
},
});
var exampleTcrImmutableTagRule = new Tencentcloud.TcrImmutableTagRule("exampleTcrImmutableTagRule", new()
{
RegistryId = exampleTcrInstance.TcrInstanceId,
NamespaceName = exampleTcrNamespace.Name,
Rule = new Tencentcloud.Inputs.TcrImmutableTagRuleRuleArgs
{
RepositoryPattern = "deprecated_repo",
TagPattern = "**",
RepositoryDecoration = "repoExcludes",
TagDecoration = "matches",
Disabled = false,
},
Tags =
{
{ "createdBy", "terraform" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TcrInstance;
import com.pulumi.tencentcloud.TcrInstanceArgs;
import com.pulumi.tencentcloud.TcrNamespace;
import com.pulumi.tencentcloud.TcrNamespaceArgs;
import com.pulumi.tencentcloud.inputs.TcrNamespaceCveWhitelistItemArgs;
import com.pulumi.tencentcloud.TcrImmutableTagRule;
import com.pulumi.tencentcloud.TcrImmutableTagRuleArgs;
import com.pulumi.tencentcloud.inputs.TcrImmutableTagRuleRuleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleTcrInstance = new TcrInstance("exampleTcrInstance", TcrInstanceArgs.builder()
.instanceType("premium")
.deleteBucket(true)
.build());
var exampleTcrNamespace = new TcrNamespace("exampleTcrNamespace", TcrNamespaceArgs.builder()
.instanceId(exampleTcrInstance.tcrInstanceId())
.isPublic(true)
.isAutoScan(true)
.isPreventVul(true)
.severity("medium")
.cveWhitelistItems(TcrNamespaceCveWhitelistItemArgs.builder()
.cveId("cve-xxxxx")
.build())
.build());
var exampleTcrImmutableTagRule = new TcrImmutableTagRule("exampleTcrImmutableTagRule", TcrImmutableTagRuleArgs.builder()
.registryId(exampleTcrInstance.tcrInstanceId())
.namespaceName(exampleTcrNamespace.name())
.rule(TcrImmutableTagRuleRuleArgs.builder()
.repositoryPattern("deprecated_repo")
.tagPattern("**")
.repositoryDecoration("repoExcludes")
.tagDecoration("matches")
.disabled(false)
.build())
.tags(Map.of("createdBy", "terraform"))
.build());
}
}
resources:
exampleTcrInstance:
type: tencentcloud:TcrInstance
properties:
instanceType: premium
deleteBucket: true
exampleTcrNamespace:
type: tencentcloud:TcrNamespace
properties:
instanceId: ${exampleTcrInstance.tcrInstanceId}
isPublic: true
isAutoScan: true
isPreventVul: true
severity: medium
cveWhitelistItems:
- cveId: cve-xxxxx
exampleTcrImmutableTagRule:
type: tencentcloud:TcrImmutableTagRule
properties:
registryId: ${exampleTcrInstance.tcrInstanceId}
namespaceName: ${exampleTcrNamespace.name}
rule:
repositoryPattern: deprecated_repo
tagPattern: '**'
repositoryDecoration: repoExcludes
tagDecoration: matches
disabled: false
tags:
createdBy: terraform
With specified repositories and exclude specified version tag
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.TcrImmutableTagRule("example", {
registryId: tencentcloud_tcr_instance.example.id,
namespaceName: tencentcloud_tcr_namespace.example.name,
rule: {
repositoryPattern: "**",
tagPattern: "v1",
repositoryDecoration: "repoMatches",
tagDecoration: "excludes",
disabled: false,
},
tags: {
createdBy: "terraform",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.TcrImmutableTagRule("example",
registry_id=tencentcloud_tcr_instance["example"]["id"],
namespace_name=tencentcloud_tcr_namespace["example"]["name"],
rule={
"repository_pattern": "**",
"tag_pattern": "v1",
"repository_decoration": "repoMatches",
"tag_decoration": "excludes",
"disabled": False,
},
tags={
"createdBy": "terraform",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewTcrImmutableTagRule(ctx, "example", &tencentcloud.TcrImmutableTagRuleArgs{
RegistryId: pulumi.Any(tencentcloud_tcr_instance.Example.Id),
NamespaceName: pulumi.Any(tencentcloud_tcr_namespace.Example.Name),
Rule: &tencentcloud.TcrImmutableTagRuleRuleArgs{
RepositoryPattern: pulumi.String("**"),
TagPattern: pulumi.String("v1"),
RepositoryDecoration: pulumi.String("repoMatches"),
TagDecoration: pulumi.String("excludes"),
Disabled: pulumi.Bool(false),
},
Tags: pulumi.StringMap{
"createdBy": pulumi.String("terraform"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.TcrImmutableTagRule("example", new()
{
RegistryId = tencentcloud_tcr_instance.Example.Id,
NamespaceName = tencentcloud_tcr_namespace.Example.Name,
Rule = new Tencentcloud.Inputs.TcrImmutableTagRuleRuleArgs
{
RepositoryPattern = "**",
TagPattern = "v1",
RepositoryDecoration = "repoMatches",
TagDecoration = "excludes",
Disabled = false,
},
Tags =
{
{ "createdBy", "terraform" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TcrImmutableTagRule;
import com.pulumi.tencentcloud.TcrImmutableTagRuleArgs;
import com.pulumi.tencentcloud.inputs.TcrImmutableTagRuleRuleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new TcrImmutableTagRule("example", TcrImmutableTagRuleArgs.builder()
.registryId(tencentcloud_tcr_instance.example().id())
.namespaceName(tencentcloud_tcr_namespace.example().name())
.rule(TcrImmutableTagRuleRuleArgs.builder()
.repositoryPattern("**")
.tagPattern("v1")
.repositoryDecoration("repoMatches")
.tagDecoration("excludes")
.disabled(false)
.build())
.tags(Map.of("createdBy", "terraform"))
.build());
}
}
resources:
example:
type: tencentcloud:TcrImmutableTagRule
properties:
registryId: ${tencentcloud_tcr_instance.example.id}
namespaceName: ${tencentcloud_tcr_namespace.example.name}
rule:
repositoryPattern: '**'
tagPattern: v1
repositoryDecoration: repoMatches
tagDecoration: excludes
disabled: false
tags:
createdBy: terraform
Disabled the specified rule
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const exampleRuleA = new tencentcloud.TcrImmutableTagRule("exampleRuleA", {
registryId: tencentcloud_tcr_instance.example.id,
namespaceName: tencentcloud_tcr_namespace.example.name,
rule: {
repositoryPattern: "deprecated_repo",
tagPattern: "**",
repositoryDecoration: "repoExcludes",
tagDecoration: "matches",
disabled: false,
},
tags: {
createdBy: "terraform",
},
});
const exampleRuleB = new tencentcloud.TcrImmutableTagRule("exampleRuleB", {
registryId: tencentcloud_tcr_instance.example.id,
namespaceName: tencentcloud_tcr_namespace.example.name,
rule: {
repositoryPattern: "**",
tagPattern: "v1",
repositoryDecoration: "repoMatches",
tagDecoration: "excludes",
disabled: true,
},
tags: {
createdBy: "terraform",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example_rule_a = tencentcloud.TcrImmutableTagRule("exampleRuleA",
registry_id=tencentcloud_tcr_instance["example"]["id"],
namespace_name=tencentcloud_tcr_namespace["example"]["name"],
rule={
"repository_pattern": "deprecated_repo",
"tag_pattern": "**",
"repository_decoration": "repoExcludes",
"tag_decoration": "matches",
"disabled": False,
},
tags={
"createdBy": "terraform",
})
example_rule_b = tencentcloud.TcrImmutableTagRule("exampleRuleB",
registry_id=tencentcloud_tcr_instance["example"]["id"],
namespace_name=tencentcloud_tcr_namespace["example"]["name"],
rule={
"repository_pattern": "**",
"tag_pattern": "v1",
"repository_decoration": "repoMatches",
"tag_decoration": "excludes",
"disabled": True,
},
tags={
"createdBy": "terraform",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewTcrImmutableTagRule(ctx, "exampleRuleA", &tencentcloud.TcrImmutableTagRuleArgs{
RegistryId: pulumi.Any(tencentcloud_tcr_instance.Example.Id),
NamespaceName: pulumi.Any(tencentcloud_tcr_namespace.Example.Name),
Rule: &tencentcloud.TcrImmutableTagRuleRuleArgs{
RepositoryPattern: pulumi.String("deprecated_repo"),
TagPattern: pulumi.String("**"),
RepositoryDecoration: pulumi.String("repoExcludes"),
TagDecoration: pulumi.String("matches"),
Disabled: pulumi.Bool(false),
},
Tags: pulumi.StringMap{
"createdBy": pulumi.String("terraform"),
},
})
if err != nil {
return err
}
_, err = tencentcloud.NewTcrImmutableTagRule(ctx, "exampleRuleB", &tencentcloud.TcrImmutableTagRuleArgs{
RegistryId: pulumi.Any(tencentcloud_tcr_instance.Example.Id),
NamespaceName: pulumi.Any(tencentcloud_tcr_namespace.Example.Name),
Rule: &tencentcloud.TcrImmutableTagRuleRuleArgs{
RepositoryPattern: pulumi.String("**"),
TagPattern: pulumi.String("v1"),
RepositoryDecoration: pulumi.String("repoMatches"),
TagDecoration: pulumi.String("excludes"),
Disabled: pulumi.Bool(true),
},
Tags: pulumi.StringMap{
"createdBy": pulumi.String("terraform"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var exampleRuleA = new Tencentcloud.TcrImmutableTagRule("exampleRuleA", new()
{
RegistryId = tencentcloud_tcr_instance.Example.Id,
NamespaceName = tencentcloud_tcr_namespace.Example.Name,
Rule = new Tencentcloud.Inputs.TcrImmutableTagRuleRuleArgs
{
RepositoryPattern = "deprecated_repo",
TagPattern = "**",
RepositoryDecoration = "repoExcludes",
TagDecoration = "matches",
Disabled = false,
},
Tags =
{
{ "createdBy", "terraform" },
},
});
var exampleRuleB = new Tencentcloud.TcrImmutableTagRule("exampleRuleB", new()
{
RegistryId = tencentcloud_tcr_instance.Example.Id,
NamespaceName = tencentcloud_tcr_namespace.Example.Name,
Rule = new Tencentcloud.Inputs.TcrImmutableTagRuleRuleArgs
{
RepositoryPattern = "**",
TagPattern = "v1",
RepositoryDecoration = "repoMatches",
TagDecoration = "excludes",
Disabled = true,
},
Tags =
{
{ "createdBy", "terraform" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TcrImmutableTagRule;
import com.pulumi.tencentcloud.TcrImmutableTagRuleArgs;
import com.pulumi.tencentcloud.inputs.TcrImmutableTagRuleRuleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleRuleA = new TcrImmutableTagRule("exampleRuleA", TcrImmutableTagRuleArgs.builder()
.registryId(tencentcloud_tcr_instance.example().id())
.namespaceName(tencentcloud_tcr_namespace.example().name())
.rule(TcrImmutableTagRuleRuleArgs.builder()
.repositoryPattern("deprecated_repo")
.tagPattern("**")
.repositoryDecoration("repoExcludes")
.tagDecoration("matches")
.disabled(false)
.build())
.tags(Map.of("createdBy", "terraform"))
.build());
var exampleRuleB = new TcrImmutableTagRule("exampleRuleB", TcrImmutableTagRuleArgs.builder()
.registryId(tencentcloud_tcr_instance.example().id())
.namespaceName(tencentcloud_tcr_namespace.example().name())
.rule(TcrImmutableTagRuleRuleArgs.builder()
.repositoryPattern("**")
.tagPattern("v1")
.repositoryDecoration("repoMatches")
.tagDecoration("excludes")
.disabled(true)
.build())
.tags(Map.of("createdBy", "terraform"))
.build());
}
}
resources:
exampleRuleA:
type: tencentcloud:TcrImmutableTagRule
properties:
registryId: ${tencentcloud_tcr_instance.example.id}
namespaceName: ${tencentcloud_tcr_namespace.example.name}
rule:
repositoryPattern: deprecated_repo
tagPattern: '**'
repositoryDecoration: repoExcludes
tagDecoration: matches
disabled: false
tags:
createdBy: terraform
exampleRuleB:
type: tencentcloud:TcrImmutableTagRule
properties:
registryId: ${tencentcloud_tcr_instance.example.id}
namespaceName: ${tencentcloud_tcr_namespace.example.name}
rule:
repositoryPattern: '**'
tagPattern: v1
repositoryDecoration: repoMatches
tagDecoration: excludes
disabled: true
tags:
createdBy: terraform
Create TcrImmutableTagRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TcrImmutableTagRule(name: string, args: TcrImmutableTagRuleArgs, opts?: CustomResourceOptions);
@overload
def TcrImmutableTagRule(resource_name: str,
args: TcrImmutableTagRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TcrImmutableTagRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
namespace_name: Optional[str] = None,
registry_id: Optional[str] = None,
rule: Optional[TcrImmutableTagRuleRuleArgs] = None,
tags: Optional[Mapping[str, str]] = None,
tcr_immutable_tag_rule_id: Optional[str] = None)
func NewTcrImmutableTagRule(ctx *Context, name string, args TcrImmutableTagRuleArgs, opts ...ResourceOption) (*TcrImmutableTagRule, error)
public TcrImmutableTagRule(string name, TcrImmutableTagRuleArgs args, CustomResourceOptions? opts = null)
public TcrImmutableTagRule(String name, TcrImmutableTagRuleArgs args)
public TcrImmutableTagRule(String name, TcrImmutableTagRuleArgs args, CustomResourceOptions options)
type: tencentcloud:TcrImmutableTagRule
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 TcrImmutableTagRuleArgs
- 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 TcrImmutableTagRuleArgs
- 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 TcrImmutableTagRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TcrImmutableTagRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TcrImmutableTagRuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TcrImmutableTagRule 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 TcrImmutableTagRule resource accepts the following input properties:
- Namespace
Name string - namespace name.
- Registry
Id string - instance id.
- Rule
Tcr
Immutable Tag Rule Rule - rule.
- Dictionary<string, string>
- Tag description list.
- Tcr
Immutable stringTag Rule Id - ID of the resource.
- Namespace
Name string - namespace name.
- Registry
Id string - instance id.
- Rule
Tcr
Immutable Tag Rule Rule Args - rule.
- map[string]string
- Tag description list.
- Tcr
Immutable stringTag Rule Id - ID of the resource.
- namespace
Name String - namespace name.
- registry
Id String - instance id.
- rule
Tcr
Immutable Tag Rule Rule - rule.
- Map<String,String>
- Tag description list.
- tcr
Immutable StringTag Rule Id - ID of the resource.
- namespace
Name string - namespace name.
- registry
Id string - instance id.
- rule
Tcr
Immutable Tag Rule Rule - rule.
- {[key: string]: string}
- Tag description list.
- tcr
Immutable stringTag Rule Id - ID of the resource.
- namespace_
name str - namespace name.
- registry_
id str - instance id.
- rule
Tcr
Immutable Tag Rule Rule Args - rule.
- Mapping[str, str]
- Tag description list.
- tcr_
immutable_ strtag_ rule_ id - ID of the resource.
- namespace
Name String - namespace name.
- registry
Id String - instance id.
- rule Property Map
- rule.
- Map<String>
- Tag description list.
- tcr
Immutable StringTag Rule Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the TcrImmutableTagRule 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 TcrImmutableTagRule Resource
Get an existing TcrImmutableTagRule 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?: TcrImmutableTagRuleState, opts?: CustomResourceOptions): TcrImmutableTagRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
namespace_name: Optional[str] = None,
registry_id: Optional[str] = None,
rule: Optional[TcrImmutableTagRuleRuleArgs] = None,
tags: Optional[Mapping[str, str]] = None,
tcr_immutable_tag_rule_id: Optional[str] = None) -> TcrImmutableTagRule
func GetTcrImmutableTagRule(ctx *Context, name string, id IDInput, state *TcrImmutableTagRuleState, opts ...ResourceOption) (*TcrImmutableTagRule, error)
public static TcrImmutableTagRule Get(string name, Input<string> id, TcrImmutableTagRuleState? state, CustomResourceOptions? opts = null)
public static TcrImmutableTagRule get(String name, Output<String> id, TcrImmutableTagRuleState state, CustomResourceOptions options)
resources: _: type: tencentcloud:TcrImmutableTagRule 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.
- Namespace
Name string - namespace name.
- Registry
Id string - instance id.
- Rule
Tcr
Immutable Tag Rule Rule - rule.
- Dictionary<string, string>
- Tag description list.
- Tcr
Immutable stringTag Rule Id - ID of the resource.
- Namespace
Name string - namespace name.
- Registry
Id string - instance id.
- Rule
Tcr
Immutable Tag Rule Rule Args - rule.
- map[string]string
- Tag description list.
- Tcr
Immutable stringTag Rule Id - ID of the resource.
- namespace
Name String - namespace name.
- registry
Id String - instance id.
- rule
Tcr
Immutable Tag Rule Rule - rule.
- Map<String,String>
- Tag description list.
- tcr
Immutable StringTag Rule Id - ID of the resource.
- namespace
Name string - namespace name.
- registry
Id string - instance id.
- rule
Tcr
Immutable Tag Rule Rule - rule.
- {[key: string]: string}
- Tag description list.
- tcr
Immutable stringTag Rule Id - ID of the resource.
- namespace_
name str - namespace name.
- registry_
id str - instance id.
- rule
Tcr
Immutable Tag Rule Rule Args - rule.
- Mapping[str, str]
- Tag description list.
- tcr_
immutable_ strtag_ rule_ id - ID of the resource.
- namespace
Name String - namespace name.
- registry
Id String - instance id.
- rule Property Map
- rule.
- Map<String>
- Tag description list.
- tcr
Immutable StringTag Rule Id - ID of the resource.
Supporting Types
TcrImmutableTagRuleRule, TcrImmutableTagRuleRuleArgs
- Repository
Decoration string - repository decoration type:repoMatches or repoExcludes.
- Repository
Pattern string - repository matching rules.
- Tag
Decoration string - tag decoration type: matches or excludes.
- Tag
Pattern string - tag matching rules.
- Disabled bool
- disable rule.
- Id double
- ID of the resource.
- Ns
Name string - namespace name.
- Repository
Decoration string - repository decoration type:repoMatches or repoExcludes.
- Repository
Pattern string - repository matching rules.
- Tag
Decoration string - tag decoration type: matches or excludes.
- Tag
Pattern string - tag matching rules.
- Disabled bool
- disable rule.
- Id float64
- ID of the resource.
- Ns
Name string - namespace name.
- repository
Decoration String - repository decoration type:repoMatches or repoExcludes.
- repository
Pattern String - repository matching rules.
- tag
Decoration String - tag decoration type: matches or excludes.
- tag
Pattern String - tag matching rules.
- disabled Boolean
- disable rule.
- id Double
- ID of the resource.
- ns
Name String - namespace name.
- repository
Decoration string - repository decoration type:repoMatches or repoExcludes.
- repository
Pattern string - repository matching rules.
- tag
Decoration string - tag decoration type: matches or excludes.
- tag
Pattern string - tag matching rules.
- disabled boolean
- disable rule.
- id number
- ID of the resource.
- ns
Name string - namespace name.
- repository_
decoration str - repository decoration type:repoMatches or repoExcludes.
- repository_
pattern str - repository matching rules.
- tag_
decoration str - tag decoration type: matches or excludes.
- tag_
pattern str - tag matching rules.
- disabled bool
- disable rule.
- id float
- ID of the resource.
- ns_
name str - namespace name.
- repository
Decoration String - repository decoration type:repoMatches or repoExcludes.
- repository
Pattern String - repository matching rules.
- tag
Decoration String - tag decoration type: matches or excludes.
- tag
Pattern String - tag matching rules.
- disabled Boolean
- disable rule.
- id Number
- ID of the resource.
- ns
Name String - namespace name.
Import
tcr immutable_tag_rule can be imported using the id, e.g.
$ pulumi import tencentcloud:index/tcrImmutableTagRule:TcrImmutableTagRule immutable_tag_rule immutable_tag_rule_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.