volcengine.tls.RuleApplier
Explore with Pulumi AI
Provides a resource to manage tls rule applier
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = new Volcengine.Tls.RuleApplier("foo", new()
{
HostGroupId = "a2a9e8c5-9835-434f-b866-2c1cfa82887d",
RuleId = "25104b0f-28b7-4a5c-8339-7f9c431d77c8",
});
});
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.NewRuleApplier(ctx, "foo", &tls.RuleApplierArgs{
HostGroupId: pulumi.String("a2a9e8c5-9835-434f-b866-2c1cfa82887d"),
RuleId: pulumi.String("25104b0f-28b7-4a5c-8339-7f9c431d77c8"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.tls.RuleApplier;
import com.pulumi.volcengine.tls.RuleApplierArgs;
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 RuleApplier("foo", RuleApplierArgs.builder()
.hostGroupId("a2a9e8c5-9835-434f-b866-2c1cfa82887d")
.ruleId("25104b0f-28b7-4a5c-8339-7f9c431d77c8")
.build());
}
}
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.tls.RuleApplier("foo",
host_group_id="a2a9e8c5-9835-434f-b866-2c1cfa82887d",
rule_id="25104b0f-28b7-4a5c-8339-7f9c431d77c8")
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.tls.RuleApplier("foo", {
hostGroupId: "a2a9e8c5-9835-434f-b866-2c1cfa82887d",
ruleId: "25104b0f-28b7-4a5c-8339-7f9c431d77c8",
});
resources:
foo:
type: volcengine:tls:RuleApplier
properties:
hostGroupId: a2a9e8c5-9835-434f-b866-2c1cfa82887d
ruleId: 25104b0f-28b7-4a5c-8339-7f9c431d77c8
Create RuleApplier Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RuleApplier(name: string, args: RuleApplierArgs, opts?: CustomResourceOptions);
@overload
def RuleApplier(resource_name: str,
args: RuleApplierArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RuleApplier(resource_name: str,
opts: Optional[ResourceOptions] = None,
host_group_id: Optional[str] = None,
rule_id: Optional[str] = None)
func NewRuleApplier(ctx *Context, name string, args RuleApplierArgs, opts ...ResourceOption) (*RuleApplier, error)
public RuleApplier(string name, RuleApplierArgs args, CustomResourceOptions? opts = null)
public RuleApplier(String name, RuleApplierArgs args)
public RuleApplier(String name, RuleApplierArgs args, CustomResourceOptions options)
type: volcengine:tls:RuleApplier
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 RuleApplierArgs
- 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 RuleApplierArgs
- 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 RuleApplierArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RuleApplierArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RuleApplierArgs
- 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 ruleApplierResource = new Volcengine.Tls.RuleApplier("ruleApplierResource", new()
{
HostGroupId = "string",
RuleId = "string",
});
example, err := tls.NewRuleApplier(ctx, "ruleApplierResource", &tls.RuleApplierArgs{
HostGroupId: pulumi.String("string"),
RuleId: pulumi.String("string"),
})
var ruleApplierResource = new RuleApplier("ruleApplierResource", RuleApplierArgs.builder()
.hostGroupId("string")
.ruleId("string")
.build());
rule_applier_resource = volcengine.tls.RuleApplier("ruleApplierResource",
host_group_id="string",
rule_id="string")
const ruleApplierResource = new volcengine.tls.RuleApplier("ruleApplierResource", {
hostGroupId: "string",
ruleId: "string",
});
type: volcengine:tls:RuleApplier
properties:
hostGroupId: string
ruleId: string
RuleApplier 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 RuleApplier 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 RuleApplier 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 RuleApplier Resource
Get an existing RuleApplier 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?: RuleApplierState, opts?: CustomResourceOptions): RuleApplier
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
host_group_id: Optional[str] = None,
rule_id: Optional[str] = None) -> RuleApplier
func GetRuleApplier(ctx *Context, name string, id IDInput, state *RuleApplierState, opts ...ResourceOption) (*RuleApplier, error)
public static RuleApplier Get(string name, Input<string> id, RuleApplierState? state, CustomResourceOptions? opts = null)
public static RuleApplier get(String name, Output<String> id, RuleApplierState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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
tls rule applier can be imported using the rule id and host group id, e.g.
$ pulumi import volcengine:tls/ruleApplier:RuleApplier default fa************:bcb*******
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
volcengine
Terraform Provider.