1. Packages
  2. Volcengine
  3. API Docs
  4. private_zone
  5. RecordWeightEnabler
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

volcengine.private_zone.RecordWeightEnabler

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

    Provides a resource to manage private zone record weight enabler

    Create RecordWeightEnabler Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new RecordWeightEnabler(name: string, args: RecordWeightEnablerArgs, opts?: CustomResourceOptions);
    @overload
    def RecordWeightEnabler(resource_name: str,
                            args: RecordWeightEnablerArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def RecordWeightEnabler(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            record_set_id: Optional[str] = None,
                            weight_enabled: Optional[bool] = None,
                            zid: Optional[int] = None)
    func NewRecordWeightEnabler(ctx *Context, name string, args RecordWeightEnablerArgs, opts ...ResourceOption) (*RecordWeightEnabler, error)
    public RecordWeightEnabler(string name, RecordWeightEnablerArgs args, CustomResourceOptions? opts = null)
    public RecordWeightEnabler(String name, RecordWeightEnablerArgs args)
    public RecordWeightEnabler(String name, RecordWeightEnablerArgs args, CustomResourceOptions options)
    
    type: volcengine:private_zone:RecordWeightEnabler
    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 RecordWeightEnablerArgs
    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 RecordWeightEnablerArgs
    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 RecordWeightEnablerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RecordWeightEnablerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RecordWeightEnablerArgs
    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 recordWeightEnablerResource = new Volcengine.Private_zone.RecordWeightEnabler("recordWeightEnablerResource", new()
    {
        RecordSetId = "string",
        WeightEnabled = false,
        Zid = 0,
    });
    
    example, err := private_zone.NewRecordWeightEnabler(ctx, "recordWeightEnablerResource", &private_zone.RecordWeightEnablerArgs{
    	RecordSetId:   pulumi.String("string"),
    	WeightEnabled: pulumi.Bool(false),
    	Zid:           pulumi.Int(0),
    })
    
    var recordWeightEnablerResource = new RecordWeightEnabler("recordWeightEnablerResource", RecordWeightEnablerArgs.builder()
        .recordSetId("string")
        .weightEnabled(false)
        .zid(0)
        .build());
    
    record_weight_enabler_resource = volcengine.private_zone.RecordWeightEnabler("recordWeightEnablerResource",
        record_set_id="string",
        weight_enabled=False,
        zid=0)
    
    const recordWeightEnablerResource = new volcengine.private_zone.RecordWeightEnabler("recordWeightEnablerResource", {
        recordSetId: "string",
        weightEnabled: false,
        zid: 0,
    });
    
    type: volcengine:private_zone:RecordWeightEnabler
    properties:
        recordSetId: string
        weightEnabled: false
        zid: 0
    

    RecordWeightEnabler 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 RecordWeightEnabler resource accepts the following input properties:

    RecordSetId string
    The id of the private zone record set.
    WeightEnabled bool
    Whether to enable the load balance of the private zone record set.
    Zid int
    The zid of the private zone record set.
    RecordSetId string
    The id of the private zone record set.
    WeightEnabled bool
    Whether to enable the load balance of the private zone record set.
    Zid int
    The zid of the private zone record set.
    recordSetId String
    The id of the private zone record set.
    weightEnabled Boolean
    Whether to enable the load balance of the private zone record set.
    zid Integer
    The zid of the private zone record set.
    recordSetId string
    The id of the private zone record set.
    weightEnabled boolean
    Whether to enable the load balance of the private zone record set.
    zid number
    The zid of the private zone record set.
    record_set_id str
    The id of the private zone record set.
    weight_enabled bool
    Whether to enable the load balance of the private zone record set.
    zid int
    The zid of the private zone record set.
    recordSetId String
    The id of the private zone record set.
    weightEnabled Boolean
    Whether to enable the load balance of the private zone record set.
    zid Number
    The zid of the private zone record set.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the RecordWeightEnabler 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 RecordWeightEnabler Resource

    Get an existing RecordWeightEnabler 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?: RecordWeightEnablerState, opts?: CustomResourceOptions): RecordWeightEnabler
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            record_set_id: Optional[str] = None,
            weight_enabled: Optional[bool] = None,
            zid: Optional[int] = None) -> RecordWeightEnabler
    func GetRecordWeightEnabler(ctx *Context, name string, id IDInput, state *RecordWeightEnablerState, opts ...ResourceOption) (*RecordWeightEnabler, error)
    public static RecordWeightEnabler Get(string name, Input<string> id, RecordWeightEnablerState? state, CustomResourceOptions? opts = null)
    public static RecordWeightEnabler get(String name, Output<String> id, RecordWeightEnablerState 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.
    The following state arguments are supported:
    RecordSetId string
    The id of the private zone record set.
    WeightEnabled bool
    Whether to enable the load balance of the private zone record set.
    Zid int
    The zid of the private zone record set.
    RecordSetId string
    The id of the private zone record set.
    WeightEnabled bool
    Whether to enable the load balance of the private zone record set.
    Zid int
    The zid of the private zone record set.
    recordSetId String
    The id of the private zone record set.
    weightEnabled Boolean
    Whether to enable the load balance of the private zone record set.
    zid Integer
    The zid of the private zone record set.
    recordSetId string
    The id of the private zone record set.
    weightEnabled boolean
    Whether to enable the load balance of the private zone record set.
    zid number
    The zid of the private zone record set.
    record_set_id str
    The id of the private zone record set.
    weight_enabled bool
    Whether to enable the load balance of the private zone record set.
    zid int
    The zid of the private zone record set.
    recordSetId String
    The id of the private zone record set.
    weightEnabled Boolean
    Whether to enable the load balance of the private zone record set.
    zid Number
    The zid of the private zone record set.

    Import

    PrivateZoneRecordWeightEnabler can be imported using the zid:record_set_id, e.g.

     $ pulumi import volcengine:private_zone/recordWeightEnabler:RecordWeightEnabler default resource_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 volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine