Provides a resource to manage tls rule bound host group
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.tls.RuleBoundHostGroup("foo", {
hostGroupId: "e45643c1-8ab8-4d99-94c6-ddcc7eefbd2b",
ruleId: "048dc010-6bb1-4189-858a-281d654d6686",
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.tls.RuleBoundHostGroup("foo",
host_group_id="e45643c1-8ab8-4d99-94c6-ddcc7eefbd2b",
rule_id="048dc010-6bb1-4189-858a-281d654d6686")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/tls"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tls.NewRuleBoundHostGroup(ctx, "foo", &tls.RuleBoundHostGroupArgs{
HostGroupId: pulumi.String("e45643c1-8ab8-4d99-94c6-ddcc7eefbd2b"),
RuleId: pulumi.String("048dc010-6bb1-4189-858a-281d654d6686"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = new Volcengine.Tls.RuleBoundHostGroup("foo", new()
{
HostGroupId = "e45643c1-8ab8-4d99-94c6-ddcc7eefbd2b",
RuleId = "048dc010-6bb1-4189-858a-281d654d6686",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.tls.RuleBoundHostGroup;
import com.pulumi.volcengine.tls.RuleBoundHostGroupArgs;
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 foo = new RuleBoundHostGroup("foo", RuleBoundHostGroupArgs.builder()
.hostGroupId("e45643c1-8ab8-4d99-94c6-ddcc7eefbd2b")
.ruleId("048dc010-6bb1-4189-858a-281d654d6686")
.build());
}
}
resources:
foo:
type: volcengine:tls:RuleBoundHostGroup
properties:
hostGroupId: e45643c1-8ab8-4d99-94c6-ddcc7eefbd2b
ruleId: 048dc010-6bb1-4189-858a-281d654d6686
Create RuleBoundHostGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RuleBoundHostGroup(name: string, args: RuleBoundHostGroupArgs, opts?: CustomResourceOptions);@overload
def RuleBoundHostGroup(resource_name: str,
args: RuleBoundHostGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RuleBoundHostGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
host_group_id: Optional[str] = None,
rule_id: Optional[str] = None)func NewRuleBoundHostGroup(ctx *Context, name string, args RuleBoundHostGroupArgs, opts ...ResourceOption) (*RuleBoundHostGroup, error)public RuleBoundHostGroup(string name, RuleBoundHostGroupArgs args, CustomResourceOptions? opts = null)
public RuleBoundHostGroup(String name, RuleBoundHostGroupArgs args)
public RuleBoundHostGroup(String name, RuleBoundHostGroupArgs args, CustomResourceOptions options)
type: volcengine:tls:RuleBoundHostGroup
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 RuleBoundHostGroupArgs
- 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 RuleBoundHostGroupArgs
- 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 RuleBoundHostGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RuleBoundHostGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RuleBoundHostGroupArgs
- 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 ruleBoundHostGroupResource = new Volcengine.Tls.RuleBoundHostGroup("ruleBoundHostGroupResource", new()
{
HostGroupId = "string",
RuleId = "string",
});
example, err := tls.NewRuleBoundHostGroup(ctx, "ruleBoundHostGroupResource", &tls.RuleBoundHostGroupArgs{
HostGroupId: pulumi.String("string"),
RuleId: pulumi.String("string"),
})
var ruleBoundHostGroupResource = new RuleBoundHostGroup("ruleBoundHostGroupResource", RuleBoundHostGroupArgs.builder()
.hostGroupId("string")
.ruleId("string")
.build());
rule_bound_host_group_resource = volcengine.tls.RuleBoundHostGroup("ruleBoundHostGroupResource",
host_group_id="string",
rule_id="string")
const ruleBoundHostGroupResource = new volcengine.tls.RuleBoundHostGroup("ruleBoundHostGroupResource", {
hostGroupId: "string",
ruleId: "string",
});
type: volcengine:tls:RuleBoundHostGroup
properties:
hostGroupId: string
ruleId: string
RuleBoundHostGroup 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 RuleBoundHostGroup resource accepts the following input properties:
- Host
Group stringId - The ID of the host group.
- Rule
Id string - The ID of the rule.
- Host
Group stringId - The ID of the host group.
- Rule
Id string - The ID of the rule.
- host
Group StringId - The ID of the host group.
- rule
Id String - The ID of the rule.
- host
Group stringId - The ID of the host group.
- rule
Id string - The ID of the rule.
- host_
group_ strid - The ID of the host group.
- rule_
id str - The ID of the rule.
- host
Group StringId - The ID of the host group.
- rule
Id String - The ID of the rule.
Outputs
All input properties are implicitly available as output properties. Additionally, the RuleBoundHostGroup 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 RuleBoundHostGroup Resource
Get an existing RuleBoundHostGroup 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?: RuleBoundHostGroupState, opts?: CustomResourceOptions): RuleBoundHostGroup@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
host_group_id: Optional[str] = None,
rule_id: Optional[str] = None) -> RuleBoundHostGroupfunc GetRuleBoundHostGroup(ctx *Context, name string, id IDInput, state *RuleBoundHostGroupState, opts ...ResourceOption) (*RuleBoundHostGroup, error)public static RuleBoundHostGroup Get(string name, Input<string> id, RuleBoundHostGroupState? state, CustomResourceOptions? opts = null)public static RuleBoundHostGroup get(String name, Output<String> id, RuleBoundHostGroupState state, CustomResourceOptions options)resources: _: type: volcengine:tls:RuleBoundHostGroup 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.
- Host
Group stringId - The ID of the host group.
- Rule
Id string - The ID of the rule.
- Host
Group stringId - The ID of the host group.
- Rule
Id string - The ID of the rule.
- host
Group StringId - The ID of the host group.
- rule
Id String - The ID of the rule.
- host
Group stringId - The ID of the host group.
- rule
Id string - The ID of the rule.
- host_
group_ strid - The ID of the host group.
- rule_
id str - The ID of the rule.
- host
Group StringId - The ID of the host group.
- rule
Id String - The ID of the rule.
Import
TlsRuleBoundHostGroup can be imported using the id, e.g.
$ pulumi import volcengine:tls/ruleBoundHostGroup:RuleBoundHostGroup default rule_id:host_group_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
