tencentcloud.CiHotLink
Explore with Pulumi AI
Provides a resource to create a ci hot_link
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const hotLink = new tencentcloud.CiHotLink("hotLink", {
bucket: "terraform-ci-xxxxxx",
type: "white",
urls: [
"10.0.0.1",
"10.0.0.2",
],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
hot_link = tencentcloud.CiHotLink("hotLink",
bucket="terraform-ci-xxxxxx",
type="white",
urls=[
"10.0.0.1",
"10.0.0.2",
])
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.NewCiHotLink(ctx, "hotLink", &tencentcloud.CiHotLinkArgs{
Bucket: pulumi.String("terraform-ci-xxxxxx"),
Type: pulumi.String("white"),
Urls: pulumi.StringArray{
pulumi.String("10.0.0.1"),
pulumi.String("10.0.0.2"),
},
})
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 hotLink = new Tencentcloud.CiHotLink("hotLink", new()
{
Bucket = "terraform-ci-xxxxxx",
Type = "white",
Urls = new[]
{
"10.0.0.1",
"10.0.0.2",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CiHotLink;
import com.pulumi.tencentcloud.CiHotLinkArgs;
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 hotLink = new CiHotLink("hotLink", CiHotLinkArgs.builder()
.bucket("terraform-ci-xxxxxx")
.type("white")
.urls(
"10.0.0.1",
"10.0.0.2")
.build());
}
}
resources:
hotLink:
type: tencentcloud:CiHotLink
properties:
bucket: terraform-ci-xxxxxx
type: white
urls:
- 10.0.0.1
- 10.0.0.2
Create CiHotLink Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CiHotLink(name: string, args: CiHotLinkArgs, opts?: CustomResourceOptions);
@overload
def CiHotLink(resource_name: str,
args: CiHotLinkArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CiHotLink(resource_name: str,
opts: Optional[ResourceOptions] = None,
bucket: Optional[str] = None,
type: Optional[str] = None,
urls: Optional[Sequence[str]] = None,
ci_hot_link_id: Optional[str] = None)
func NewCiHotLink(ctx *Context, name string, args CiHotLinkArgs, opts ...ResourceOption) (*CiHotLink, error)
public CiHotLink(string name, CiHotLinkArgs args, CustomResourceOptions? opts = null)
public CiHotLink(String name, CiHotLinkArgs args)
public CiHotLink(String name, CiHotLinkArgs args, CustomResourceOptions options)
type: tencentcloud:CiHotLink
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 CiHotLinkArgs
- 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 CiHotLinkArgs
- 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 CiHotLinkArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CiHotLinkArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CiHotLinkArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CiHotLink 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 CiHotLink resource accepts the following input properties:
- Bucket string
- bucket name.
- Type string
- Anti-leech type,
white
is whitelist,black
is blacklist. - Urls List<string>
- domain address.
- Ci
Hot stringLink Id - ID of the resource.
- Bucket string
- bucket name.
- Type string
- Anti-leech type,
white
is whitelist,black
is blacklist. - Urls []string
- domain address.
- Ci
Hot stringLink Id - ID of the resource.
- bucket String
- bucket name.
- type String
- Anti-leech type,
white
is whitelist,black
is blacklist. - urls List<String>
- domain address.
- ci
Hot StringLink Id - ID of the resource.
- bucket string
- bucket name.
- type string
- Anti-leech type,
white
is whitelist,black
is blacklist. - urls string[]
- domain address.
- ci
Hot stringLink Id - ID of the resource.
- bucket str
- bucket name.
- type str
- Anti-leech type,
white
is whitelist,black
is blacklist. - urls Sequence[str]
- domain address.
- ci_
hot_ strlink_ id - ID of the resource.
- bucket String
- bucket name.
- type String
- Anti-leech type,
white
is whitelist,black
is blacklist. - urls List<String>
- domain address.
- ci
Hot StringLink Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the CiHotLink 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 CiHotLink Resource
Get an existing CiHotLink 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?: CiHotLinkState, opts?: CustomResourceOptions): CiHotLink
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bucket: Optional[str] = None,
ci_hot_link_id: Optional[str] = None,
type: Optional[str] = None,
urls: Optional[Sequence[str]] = None) -> CiHotLink
func GetCiHotLink(ctx *Context, name string, id IDInput, state *CiHotLinkState, opts ...ResourceOption) (*CiHotLink, error)
public static CiHotLink Get(string name, Input<string> id, CiHotLinkState? state, CustomResourceOptions? opts = null)
public static CiHotLink get(String name, Output<String> id, CiHotLinkState state, CustomResourceOptions options)
resources: _: type: tencentcloud:CiHotLink 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.
- Bucket string
- bucket name.
- Ci
Hot stringLink Id - ID of the resource.
- Type string
- Anti-leech type,
white
is whitelist,black
is blacklist. - Urls List<string>
- domain address.
- Bucket string
- bucket name.
- Ci
Hot stringLink Id - ID of the resource.
- Type string
- Anti-leech type,
white
is whitelist,black
is blacklist. - Urls []string
- domain address.
- bucket String
- bucket name.
- ci
Hot StringLink Id - ID of the resource.
- type String
- Anti-leech type,
white
is whitelist,black
is blacklist. - urls List<String>
- domain address.
- bucket string
- bucket name.
- ci
Hot stringLink Id - ID of the resource.
- type string
- Anti-leech type,
white
is whitelist,black
is blacklist. - urls string[]
- domain address.
- bucket str
- bucket name.
- ci_
hot_ strlink_ id - ID of the resource.
- type str
- Anti-leech type,
white
is whitelist,black
is blacklist. - urls Sequence[str]
- domain address.
- bucket String
- bucket name.
- ci
Hot StringLink Id - ID of the resource.
- type String
- Anti-leech type,
white
is whitelist,black
is blacklist. - urls List<String>
- domain address.
Import
ci hot_link can be imported using the bucket, e.g.
$ pulumi import tencentcloud:index/ciHotLink:CiHotLink hot_link terraform-ci-xxxxxx
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.