tencentcloud.WafIpAccessControlV2
Explore with Pulumi AI
Provides a resource to create a waf ip access control v2
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.WafIpAccessControlV2("example", {
actionType: 40,
domain: "example.com",
instanceId: "waf_2kxtlbky11bbcr4b",
ipLists: [
"10.0.0.10",
"172.0.0.16",
"192.168.0.30",
],
jobDateTime: {
timeTZone: "UTC+8",
timeds: [{
endDateTime: 0,
startDateTime: 0,
}],
},
jobType: "TimedJob",
note: "note.",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.WafIpAccessControlV2("example",
action_type=40,
domain="example.com",
instance_id="waf_2kxtlbky11bbcr4b",
ip_lists=[
"10.0.0.10",
"172.0.0.16",
"192.168.0.30",
],
job_date_time={
"time_t_zone": "UTC+8",
"timeds": [{
"end_date_time": 0,
"start_date_time": 0,
}],
},
job_type="TimedJob",
note="note.")
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.NewWafIpAccessControlV2(ctx, "example", &tencentcloud.WafIpAccessControlV2Args{
ActionType: pulumi.Float64(40),
Domain: pulumi.String("example.com"),
InstanceId: pulumi.String("waf_2kxtlbky11bbcr4b"),
IpLists: pulumi.StringArray{
pulumi.String("10.0.0.10"),
pulumi.String("172.0.0.16"),
pulumi.String("192.168.0.30"),
},
JobDateTime: &tencentcloud.WafIpAccessControlV2JobDateTimeArgs{
TimeTZone: pulumi.String("UTC+8"),
Timeds: tencentcloud.WafIpAccessControlV2JobDateTimeTimedArray{
&tencentcloud.WafIpAccessControlV2JobDateTimeTimedArgs{
EndDateTime: pulumi.Float64(0),
StartDateTime: pulumi.Float64(0),
},
},
},
JobType: pulumi.String("TimedJob"),
Note: pulumi.String("note."),
})
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.WafIpAccessControlV2("example", new()
{
ActionType = 40,
Domain = "example.com",
InstanceId = "waf_2kxtlbky11bbcr4b",
IpLists = new[]
{
"10.0.0.10",
"172.0.0.16",
"192.168.0.30",
},
JobDateTime = new Tencentcloud.Inputs.WafIpAccessControlV2JobDateTimeArgs
{
TimeTZone = "UTC+8",
Timeds = new[]
{
new Tencentcloud.Inputs.WafIpAccessControlV2JobDateTimeTimedArgs
{
EndDateTime = 0,
StartDateTime = 0,
},
},
},
JobType = "TimedJob",
Note = "note.",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.WafIpAccessControlV2;
import com.pulumi.tencentcloud.WafIpAccessControlV2Args;
import com.pulumi.tencentcloud.inputs.WafIpAccessControlV2JobDateTimeArgs;
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 WafIpAccessControlV2("example", WafIpAccessControlV2Args.builder()
.actionType(40)
.domain("example.com")
.instanceId("waf_2kxtlbky11bbcr4b")
.ipLists(
"10.0.0.10",
"172.0.0.16",
"192.168.0.30")
.jobDateTime(WafIpAccessControlV2JobDateTimeArgs.builder()
.timeTZone("UTC+8")
.timeds(WafIpAccessControlV2JobDateTimeTimedArgs.builder()
.endDateTime(0)
.startDateTime(0)
.build())
.build())
.jobType("TimedJob")
.note("note.")
.build());
}
}
resources:
example:
type: tencentcloud:WafIpAccessControlV2
properties:
actionType: 40
domain: example.com
instanceId: waf_2kxtlbky11bbcr4b
ipLists:
- 10.0.0.10
- 172.0.0.16
- 192.168.0.30
jobDateTime:
timeTZone: UTC+8
timeds:
- endDateTime: 0
startDateTime: 0
jobType: TimedJob
note: note.
Create WafIpAccessControlV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WafIpAccessControlV2(name: string, args: WafIpAccessControlV2Args, opts?: CustomResourceOptions);
@overload
def WafIpAccessControlV2(resource_name: str,
args: WafIpAccessControlV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def WafIpAccessControlV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
action_type: Optional[float] = None,
domain: Optional[str] = None,
instance_id: Optional[str] = None,
ip_lists: Optional[Sequence[str]] = None,
job_date_time: Optional[WafIpAccessControlV2JobDateTimeArgs] = None,
job_type: Optional[str] = None,
note: Optional[str] = None,
waf_ip_access_control_v2_id: Optional[str] = None)
func NewWafIpAccessControlV2(ctx *Context, name string, args WafIpAccessControlV2Args, opts ...ResourceOption) (*WafIpAccessControlV2, error)
public WafIpAccessControlV2(string name, WafIpAccessControlV2Args args, CustomResourceOptions? opts = null)
public WafIpAccessControlV2(String name, WafIpAccessControlV2Args args)
public WafIpAccessControlV2(String name, WafIpAccessControlV2Args args, CustomResourceOptions options)
type: tencentcloud:WafIpAccessControlV2
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 WafIpAccessControlV2Args
- 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 WafIpAccessControlV2Args
- 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 WafIpAccessControlV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WafIpAccessControlV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WafIpAccessControlV2Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
WafIpAccessControlV2 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 WafIpAccessControlV2 resource accepts the following input properties:
- Action
Type double - 42: blocklist; 40: allowlist.
- Domain string
- Specific domain name, for example, test.qcloudwaf.com. Global domain name, that is, global.
- Instance
Id string - Instance ID.
- Ip
Lists List<string> - IP parameter list.
- Job
Date WafTime Ip Access Control V2Job Date Time - Details of scheduled configuration.
- Job
Type string - Scheduled configuration type.
- Note string
- Remarks.
- Waf
Ip stringAccess Control V2Id - ID of the resource.
- Action
Type float64 - 42: blocklist; 40: allowlist.
- Domain string
- Specific domain name, for example, test.qcloudwaf.com. Global domain name, that is, global.
- Instance
Id string - Instance ID.
- Ip
Lists []string - IP parameter list.
- Job
Date WafTime Ip Access Control V2Job Date Time Args - Details of scheduled configuration.
- Job
Type string - Scheduled configuration type.
- Note string
- Remarks.
- Waf
Ip stringAccess Control V2Id - ID of the resource.
- action
Type Double - 42: blocklist; 40: allowlist.
- domain String
- Specific domain name, for example, test.qcloudwaf.com. Global domain name, that is, global.
- instance
Id String - Instance ID.
- ip
Lists List<String> - IP parameter list.
- job
Date WafTime Ip Access Control V2Job Date Time - Details of scheduled configuration.
- job
Type String - Scheduled configuration type.
- note String
- Remarks.
- waf
Ip StringAccess Control V2Id - ID of the resource.
- action
Type number - 42: blocklist; 40: allowlist.
- domain string
- Specific domain name, for example, test.qcloudwaf.com. Global domain name, that is, global.
- instance
Id string - Instance ID.
- ip
Lists string[] - IP parameter list.
- job
Date WafTime Ip Access Control V2Job Date Time - Details of scheduled configuration.
- job
Type string - Scheduled configuration type.
- note string
- Remarks.
- waf
Ip stringAccess Control V2Id - ID of the resource.
- action_
type float - 42: blocklist; 40: allowlist.
- domain str
- Specific domain name, for example, test.qcloudwaf.com. Global domain name, that is, global.
- instance_
id str - Instance ID.
- ip_
lists Sequence[str] - IP parameter list.
- job_
date_ Waftime Ip Access Control V2Job Date Time Args - Details of scheduled configuration.
- job_
type str - Scheduled configuration type.
- note str
- Remarks.
- waf_
ip_ straccess_ control_ v2_ id - ID of the resource.
- action
Type Number - 42: blocklist; 40: allowlist.
- domain String
- Specific domain name, for example, test.qcloudwaf.com. Global domain name, that is, global.
- instance
Id String - Instance ID.
- ip
Lists List<String> - IP parameter list.
- job
Date Property MapTime - Details of scheduled configuration.
- job
Type String - Scheduled configuration type.
- note String
- Remarks.
- waf
Ip StringAccess Control V2Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the WafIpAccessControlV2 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 WafIpAccessControlV2 Resource
Get an existing WafIpAccessControlV2 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?: WafIpAccessControlV2State, opts?: CustomResourceOptions): WafIpAccessControlV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action_type: Optional[float] = None,
domain: Optional[str] = None,
instance_id: Optional[str] = None,
ip_lists: Optional[Sequence[str]] = None,
job_date_time: Optional[WafIpAccessControlV2JobDateTimeArgs] = None,
job_type: Optional[str] = None,
note: Optional[str] = None,
waf_ip_access_control_v2_id: Optional[str] = None) -> WafIpAccessControlV2
func GetWafIpAccessControlV2(ctx *Context, name string, id IDInput, state *WafIpAccessControlV2State, opts ...ResourceOption) (*WafIpAccessControlV2, error)
public static WafIpAccessControlV2 Get(string name, Input<string> id, WafIpAccessControlV2State? state, CustomResourceOptions? opts = null)
public static WafIpAccessControlV2 get(String name, Output<String> id, WafIpAccessControlV2State state, CustomResourceOptions options)
resources: _: type: tencentcloud:WafIpAccessControlV2 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.
- Action
Type double - 42: blocklist; 40: allowlist.
- Domain string
- Specific domain name, for example, test.qcloudwaf.com. Global domain name, that is, global.
- Instance
Id string - Instance ID.
- Ip
Lists List<string> - IP parameter list.
- Job
Date WafTime Ip Access Control V2Job Date Time - Details of scheduled configuration.
- Job
Type string - Scheduled configuration type.
- Note string
- Remarks.
- Waf
Ip stringAccess Control V2Id - ID of the resource.
- Action
Type float64 - 42: blocklist; 40: allowlist.
- Domain string
- Specific domain name, for example, test.qcloudwaf.com. Global domain name, that is, global.
- Instance
Id string - Instance ID.
- Ip
Lists []string - IP parameter list.
- Job
Date WafTime Ip Access Control V2Job Date Time Args - Details of scheduled configuration.
- Job
Type string - Scheduled configuration type.
- Note string
- Remarks.
- Waf
Ip stringAccess Control V2Id - ID of the resource.
- action
Type Double - 42: blocklist; 40: allowlist.
- domain String
- Specific domain name, for example, test.qcloudwaf.com. Global domain name, that is, global.
- instance
Id String - Instance ID.
- ip
Lists List<String> - IP parameter list.
- job
Date WafTime Ip Access Control V2Job Date Time - Details of scheduled configuration.
- job
Type String - Scheduled configuration type.
- note String
- Remarks.
- waf
Ip StringAccess Control V2Id - ID of the resource.
- action
Type number - 42: blocklist; 40: allowlist.
- domain string
- Specific domain name, for example, test.qcloudwaf.com. Global domain name, that is, global.
- instance
Id string - Instance ID.
- ip
Lists string[] - IP parameter list.
- job
Date WafTime Ip Access Control V2Job Date Time - Details of scheduled configuration.
- job
Type string - Scheduled configuration type.
- note string
- Remarks.
- waf
Ip stringAccess Control V2Id - ID of the resource.
- action_
type float - 42: blocklist; 40: allowlist.
- domain str
- Specific domain name, for example, test.qcloudwaf.com. Global domain name, that is, global.
- instance_
id str - Instance ID.
- ip_
lists Sequence[str] - IP parameter list.
- job_
date_ Waftime Ip Access Control V2Job Date Time Args - Details of scheduled configuration.
- job_
type str - Scheduled configuration type.
- note str
- Remarks.
- waf_
ip_ straccess_ control_ v2_ id - ID of the resource.
- action
Type Number - 42: blocklist; 40: allowlist.
- domain String
- Specific domain name, for example, test.qcloudwaf.com. Global domain name, that is, global.
- instance
Id String - Instance ID.
- ip
Lists List<String> - IP parameter list.
- job
Date Property MapTime - Details of scheduled configuration.
- job
Type String - Scheduled configuration type.
- note String
- Remarks.
- waf
Ip StringAccess Control V2Id - ID of the resource.
Supporting Types
WafIpAccessControlV2JobDateTime, WafIpAccessControlV2JobDateTimeArgs
- Crons
List<Waf
Ip Access Control V2Job Date Time Cron> - Time parameters for periodic execution Note: This field may return null, indicating that no valid values can be obtained.
- Time
TZone string - Time zone Note: This field may return null, indicating that no valid values can be obtained.
- Timeds
List<Waf
Ip Access Control V2Job Date Time Timed> - Time parameters for scheduled execution Note: This field may return null, indicating that no valid values can be obtained.
- Crons
[]Waf
Ip Access Control V2Job Date Time Cron - Time parameters for periodic execution Note: This field may return null, indicating that no valid values can be obtained.
- Time
TZone string - Time zone Note: This field may return null, indicating that no valid values can be obtained.
- Timeds
[]Waf
Ip Access Control V2Job Date Time Timed - Time parameters for scheduled execution Note: This field may return null, indicating that no valid values can be obtained.
- crons
List<Waf
Ip Access Control V2Job Date Time Cron> - Time parameters for periodic execution Note: This field may return null, indicating that no valid values can be obtained.
- time
TZone String - Time zone Note: This field may return null, indicating that no valid values can be obtained.
- timeds
List<Waf
Ip Access Control V2Job Date Time Timed> - Time parameters for scheduled execution Note: This field may return null, indicating that no valid values can be obtained.
- crons
Waf
Ip Access Control V2Job Date Time Cron[] - Time parameters for periodic execution Note: This field may return null, indicating that no valid values can be obtained.
- time
TZone string - Time zone Note: This field may return null, indicating that no valid values can be obtained.
- timeds
Waf
Ip Access Control V2Job Date Time Timed[] - Time parameters for scheduled execution Note: This field may return null, indicating that no valid values can be obtained.
- crons
Sequence[Waf
Ip Access Control V2Job Date Time Cron] - Time parameters for periodic execution Note: This field may return null, indicating that no valid values can be obtained.
- time_
t_ strzone - Time zone Note: This field may return null, indicating that no valid values can be obtained.
- timeds
Sequence[Waf
Ip Access Control V2Job Date Time Timed] - Time parameters for scheduled execution Note: This field may return null, indicating that no valid values can be obtained.
- crons List<Property Map>
- Time parameters for periodic execution Note: This field may return null, indicating that no valid values can be obtained.
- time
TZone String - Time zone Note: This field may return null, indicating that no valid values can be obtained.
- timeds List<Property Map>
- Time parameters for scheduled execution Note: This field may return null, indicating that no valid values can be obtained.
WafIpAccessControlV2JobDateTimeCron, WafIpAccessControlV2JobDateTimeCronArgs
- Days List<double>
- Days in each month for execution Note: This field may return null, indicating that no valid values can be obtained.
- End
Time string End time
Note: This field may return null, indicating that no valid values can be obtained.
- Start
Time string Start time
Note: This field may return null, indicating that no valid values can be obtained.
- WDays List<double>
- Days of each week for execution Note: This field may return null, indicating that no valid values can be obtained.
- Days []float64
- Days in each month for execution Note: This field may return null, indicating that no valid values can be obtained.
- End
Time string End time
Note: This field may return null, indicating that no valid values can be obtained.
- Start
Time string Start time
Note: This field may return null, indicating that no valid values can be obtained.
- WDays []float64
- Days of each week for execution Note: This field may return null, indicating that no valid values can be obtained.
- days List<Double>
- Days in each month for execution Note: This field may return null, indicating that no valid values can be obtained.
- end
Time String End time
Note: This field may return null, indicating that no valid values can be obtained.
- start
Time String Start time
Note: This field may return null, indicating that no valid values can be obtained.
- w
Days List<Double> - Days of each week for execution Note: This field may return null, indicating that no valid values can be obtained.
- days number[]
- Days in each month for execution Note: This field may return null, indicating that no valid values can be obtained.
- end
Time string End time
Note: This field may return null, indicating that no valid values can be obtained.
- start
Time string Start time
Note: This field may return null, indicating that no valid values can be obtained.
- w
Days number[] - Days of each week for execution Note: This field may return null, indicating that no valid values can be obtained.
- days Sequence[float]
- Days in each month for execution Note: This field may return null, indicating that no valid values can be obtained.
- end_
time str End time
Note: This field may return null, indicating that no valid values can be obtained.
- start_
time str Start time
Note: This field may return null, indicating that no valid values can be obtained.
- w_
days Sequence[float] - Days of each week for execution Note: This field may return null, indicating that no valid values can be obtained.
- days List<Number>
- Days in each month for execution Note: This field may return null, indicating that no valid values can be obtained.
- end
Time String End time
Note: This field may return null, indicating that no valid values can be obtained.
- start
Time String Start time
Note: This field may return null, indicating that no valid values can be obtained.
- w
Days List<Number> - Days of each week for execution Note: This field may return null, indicating that no valid values can be obtained.
WafIpAccessControlV2JobDateTimeTimed, WafIpAccessControlV2JobDateTimeTimedArgs
- End
Date doubleTime - End timestamp, in seconds Note: This field may return null, indicating that no valid values can be obtained.
- Start
Date doubleTime - Start timestamp, in seconds Note: This field may return null, indicating that no valid values can be obtained.
- End
Date float64Time - End timestamp, in seconds Note: This field may return null, indicating that no valid values can be obtained.
- Start
Date float64Time - Start timestamp, in seconds Note: This field may return null, indicating that no valid values can be obtained.
- end
Date DoubleTime - End timestamp, in seconds Note: This field may return null, indicating that no valid values can be obtained.
- start
Date DoubleTime - Start timestamp, in seconds Note: This field may return null, indicating that no valid values can be obtained.
- end
Date numberTime - End timestamp, in seconds Note: This field may return null, indicating that no valid values can be obtained.
- start
Date numberTime - Start timestamp, in seconds Note: This field may return null, indicating that no valid values can be obtained.
- end_
date_ floattime - End timestamp, in seconds Note: This field may return null, indicating that no valid values can be obtained.
- start_
date_ floattime - Start timestamp, in seconds Note: This field may return null, indicating that no valid values can be obtained.
- end
Date NumberTime - End timestamp, in seconds Note: This field may return null, indicating that no valid values can be obtained.
- start
Date NumberTime - Start timestamp, in seconds Note: This field may return null, indicating that no valid values can be obtained.
Import
waf ip access control v2 can be imported using the id, e.g.
$ pulumi import tencentcloud:index/wafIpAccessControlV2:WafIpAccessControlV2 example waf_2kxtlbky11bbcr4b#example.com#5503616778
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.