Provides a resource to create a BH access white list rule
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.BhAccessWhiteListRule("example", {
source: "1.1.1.1",
remark: "remark.",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.BhAccessWhiteListRule("example",
source="1.1.1.1",
remark="remark.")
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.NewBhAccessWhiteListRule(ctx, "example", &tencentcloud.BhAccessWhiteListRuleArgs{
Source: pulumi.String("1.1.1.1"),
Remark: pulumi.String("remark."),
})
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.BhAccessWhiteListRule("example", new()
{
Source = "1.1.1.1",
Remark = "remark.",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.BhAccessWhiteListRule;
import com.pulumi.tencentcloud.BhAccessWhiteListRuleArgs;
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 BhAccessWhiteListRule("example", BhAccessWhiteListRuleArgs.builder()
.source("1.1.1.1")
.remark("remark.")
.build());
}
}
resources:
example:
type: tencentcloud:BhAccessWhiteListRule
properties:
source: 1.1.1.1
remark: remark.
Create BhAccessWhiteListRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BhAccessWhiteListRule(name: string, args: BhAccessWhiteListRuleArgs, opts?: CustomResourceOptions);@overload
def BhAccessWhiteListRule(resource_name: str,
args: BhAccessWhiteListRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BhAccessWhiteListRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
source: Optional[str] = None,
bh_access_white_list_rule_id: Optional[str] = None,
remark: Optional[str] = None)func NewBhAccessWhiteListRule(ctx *Context, name string, args BhAccessWhiteListRuleArgs, opts ...ResourceOption) (*BhAccessWhiteListRule, error)public BhAccessWhiteListRule(string name, BhAccessWhiteListRuleArgs args, CustomResourceOptions? opts = null)
public BhAccessWhiteListRule(String name, BhAccessWhiteListRuleArgs args)
public BhAccessWhiteListRule(String name, BhAccessWhiteListRuleArgs args, CustomResourceOptions options)
type: tencentcloud:BhAccessWhiteListRule
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 BhAccessWhiteListRuleArgs
- 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 BhAccessWhiteListRuleArgs
- 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 BhAccessWhiteListRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BhAccessWhiteListRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BhAccessWhiteListRuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
BhAccessWhiteListRule 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 BhAccessWhiteListRule resource accepts the following input properties:
- Source string
- IP address 10.10.10.1 or network segment 10.10.10.0/24, minimum length 4 bytes, maximum length 40 bytes.
- Bh
Access stringWhite List Rule Id - ID of the resource.
- Remark string
- Remark information, minimum length 0 characters, maximum length 40 characters.
- Source string
- IP address 10.10.10.1 or network segment 10.10.10.0/24, minimum length 4 bytes, maximum length 40 bytes.
- Bh
Access stringWhite List Rule Id - ID of the resource.
- Remark string
- Remark information, minimum length 0 characters, maximum length 40 characters.
- source String
- IP address 10.10.10.1 or network segment 10.10.10.0/24, minimum length 4 bytes, maximum length 40 bytes.
- bh
Access StringWhite List Rule Id - ID of the resource.
- remark String
- Remark information, minimum length 0 characters, maximum length 40 characters.
- source string
- IP address 10.10.10.1 or network segment 10.10.10.0/24, minimum length 4 bytes, maximum length 40 bytes.
- bh
Access stringWhite List Rule Id - ID of the resource.
- remark string
- Remark information, minimum length 0 characters, maximum length 40 characters.
- source str
- IP address 10.10.10.1 or network segment 10.10.10.0/24, minimum length 4 bytes, maximum length 40 bytes.
- bh_
access_ strwhite_ list_ rule_ id - ID of the resource.
- remark str
- Remark information, minimum length 0 characters, maximum length 40 characters.
- source String
- IP address 10.10.10.1 or network segment 10.10.10.0/24, minimum length 4 bytes, maximum length 40 bytes.
- bh
Access StringWhite List Rule Id - ID of the resource.
- remark String
- Remark information, minimum length 0 characters, maximum length 40 characters.
Outputs
All input properties are implicitly available as output properties. Additionally, the BhAccessWhiteListRule resource produces the following output properties:
Look up Existing BhAccessWhiteListRule Resource
Get an existing BhAccessWhiteListRule 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?: BhAccessWhiteListRuleState, opts?: CustomResourceOptions): BhAccessWhiteListRule@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bh_access_white_list_rule_id: Optional[str] = None,
remark: Optional[str] = None,
rule_id: Optional[float] = None,
source: Optional[str] = None) -> BhAccessWhiteListRulefunc GetBhAccessWhiteListRule(ctx *Context, name string, id IDInput, state *BhAccessWhiteListRuleState, opts ...ResourceOption) (*BhAccessWhiteListRule, error)public static BhAccessWhiteListRule Get(string name, Input<string> id, BhAccessWhiteListRuleState? state, CustomResourceOptions? opts = null)public static BhAccessWhiteListRule get(String name, Output<String> id, BhAccessWhiteListRuleState state, CustomResourceOptions options)resources: _: type: tencentcloud:BhAccessWhiteListRule 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.
- Bh
Access stringWhite List Rule Id - ID of the resource.
- Remark string
- Remark information, minimum length 0 characters, maximum length 40 characters.
- Rule
Id double - ID of the access white list rule.
- Source string
- IP address 10.10.10.1 or network segment 10.10.10.0/24, minimum length 4 bytes, maximum length 40 bytes.
- Bh
Access stringWhite List Rule Id - ID of the resource.
- Remark string
- Remark information, minimum length 0 characters, maximum length 40 characters.
- Rule
Id float64 - ID of the access white list rule.
- Source string
- IP address 10.10.10.1 or network segment 10.10.10.0/24, minimum length 4 bytes, maximum length 40 bytes.
- bh
Access StringWhite List Rule Id - ID of the resource.
- remark String
- Remark information, minimum length 0 characters, maximum length 40 characters.
- rule
Id Double - ID of the access white list rule.
- source String
- IP address 10.10.10.1 or network segment 10.10.10.0/24, minimum length 4 bytes, maximum length 40 bytes.
- bh
Access stringWhite List Rule Id - ID of the resource.
- remark string
- Remark information, minimum length 0 characters, maximum length 40 characters.
- rule
Id number - ID of the access white list rule.
- source string
- IP address 10.10.10.1 or network segment 10.10.10.0/24, minimum length 4 bytes, maximum length 40 bytes.
- bh_
access_ strwhite_ list_ rule_ id - ID of the resource.
- remark str
- Remark information, minimum length 0 characters, maximum length 40 characters.
- rule_
id float - ID of the access white list rule.
- source str
- IP address 10.10.10.1 or network segment 10.10.10.0/24, minimum length 4 bytes, maximum length 40 bytes.
- bh
Access StringWhite List Rule Id - ID of the resource.
- remark String
- Remark information, minimum length 0 characters, maximum length 40 characters.
- rule
Id Number - ID of the access white list rule.
- source String
- IP address 10.10.10.1 or network segment 10.10.10.0/24, minimum length 4 bytes, maximum length 40 bytes.
Import
BH access white list rule can be imported using the id, e.g.
$ pulumi import tencentcloud:index/bhAccessWhiteListRule:BhAccessWhiteListRule example 1235
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
tencentcloudTerraform Provider.
