1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. arms
  5. SyntheticTask
Alibaba Cloud v3.55.0 published on Tuesday, Apr 30, 2024 by Pulumi

alicloud.arms.SyntheticTask

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.55.0 published on Tuesday, Apr 30, 2024 by Pulumi

    Provides a ARMS Synthetic Task resource. Cloud Synthetic task resources.

    For information about ARMS Synthetic Task and how to use it, see What is Synthetic Task.

    NOTE: Available since v1.215.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const default = alicloud.resourcemanager.getResourceGroups({});
    const defaultSyntheticTask = new alicloud.arms.SyntheticTask("default", {
        monitors: [{
            cityCode: "1200101",
            operatorCode: "246",
            clientType: 4,
        }],
        syntheticTaskName: name,
        customPeriod: {
            endHour: 12,
            startHour: 11,
        },
        availableAssertions: [
            {
                type: "IcmpPackLoss",
                operator: "neq",
                expect: "200",
                target: "example",
            },
            {
                type: "IcmpPackAvgLatency",
                operator: "lte",
                expect: "1000",
            },
            {
                type: "IcmpPackMaxLatency",
                operator: "lte",
                expect: "10000",
            },
        ],
        tags: {
            Created: "TF",
            For: "example",
        },
        status: "RUNNING",
        monitorConf: {
            netTcp: {
                tracertTimeout: 1050,
                targetUrl: "www.aliyun.com",
                connectTimes: 6,
                interval: 300,
                timeout: 3000,
                tracertNumMax: 2,
            },
            netDns: {
                queryMethod: 1,
                timeout: 5050,
                targetUrl: "www.aliyun.com",
                dnsServerIpType: 1,
                nsServer: "61.128.114.167",
            },
            apiHttp: {
                timeout: 10050,
                targetUrl: "https://www.aliyun.com",
                method: "POST",
                requestHeaders: {
                    key1: "value1",
                },
                requestBody: {
                    content: "example2",
                    type: "text/html",
                },
                connectTimeout: 6000,
            },
            website: {
                slowElementThreshold: 5005,
                verifyStringBlacklist: "Failed",
                elementBlacklist: "a.jpg",
                disableCompression: 1,
                ignoreCertificateError: 0,
                monitorTimeout: 20000,
                redirection: 0,
                dnsHijackWhitelist: "www.aliyun.com:203.0.3.55",
                pageTamper: "www.aliyun.com:|/cc/bb/a.gif",
                flowHijackJumpTimes: 10,
                customHeader: 1,
                disableCache: 1,
                verifyStringWhitelist: "Senyuan",
                targetUrl: "http://www.aliyun.com",
                automaticScrolling: 1,
                waitCompletionTime: 5005,
                flowHijackLogo: "senyuan1",
                customHeaderContent: {
                    key1: "value1",
                },
                filterInvalidIp: 0,
            },
            fileDownload: {
                whiteList: "www.aliyun.com:203.0.3.55",
                monitorTimeout: 1050,
                ignoreCertificateUntrustworthyError: 0,
                redirection: 0,
                ignoreCertificateCanceledError: 0,
                ignoreCertificateAuthError: 0,
                ignoreCertificateOutOfDateError: 0,
                ignoreCertificateUsingError: 0,
                connectionTimeout: 6090,
                ignoreInvalidHostError: 0,
                verifyWay: 0,
                customHeaderContent: {
                    key1: "value1",
                },
                targetUrl: "https://www.aliyun.com",
                downloadKernel: 0,
                quickProtocol: 2,
                ignoreCertificateStatusError: 1,
                transmissionSize: 128,
                validateKeywords: "senyuan1",
            },
            stream: {
                streamMonitorTimeout: 10,
                streamAddressType: 0,
                playerType: 2,
                customHeaderContent: {
                    key1: "value1",
                },
                whiteList: "www.aliyun.com:203.0.3.55",
                targetUrl: "https://acd-assets.alicdn.com:443/2021productweek/week1_s.mp4",
                streamType: 1,
            },
            netIcmp: {
                targetUrl: "www.aliyun.com",
                interval: 200,
                packageNum: 36,
                packageSize: 512,
                timeout: 1000,
                tracertEnable: true,
                tracertNumMax: 1,
                tracertTimeout: 1200,
            },
        },
        taskType: 1,
        frequency: "1h",
        monitorCategory: 1,
        commonSetting: {
            xtraceRegion: "cn-beijing",
            customHost: {
                hosts: [
                    {
                        domain: "www.a.aliyun.com",
                        ips: ["153.3.238.102"],
                        ipType: 0,
                    },
                    {
                        domain: "www.shifen.com",
                        ips: [
                            "153.3.238.110",
                            "114.114.114.114",
                            "127.0.0.1",
                        ],
                        ipType: 1,
                    },
                    {
                        domain: "www.aliyun.com",
                        ips: [
                            "153.3.238.110",
                            "180.101.50.242",
                            "180.101.50.188",
                        ],
                        ipType: 0,
                    },
                ],
                selectType: 1,
            },
            monitorSamples: 1,
            ipType: 1,
            isOpenTrace: true,
            traceClientType: 1,
        },
        resourceGroupId: _default.then(_default => _default.ids?.[1]),
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.resourcemanager.get_resource_groups()
    default_synthetic_task = alicloud.arms.SyntheticTask("default",
        monitors=[alicloud.arms.SyntheticTaskMonitorArgs(
            city_code="1200101",
            operator_code="246",
            client_type=4,
        )],
        synthetic_task_name=name,
        custom_period=alicloud.arms.SyntheticTaskCustomPeriodArgs(
            end_hour=12,
            start_hour=11,
        ),
        available_assertions=[
            alicloud.arms.SyntheticTaskAvailableAssertionArgs(
                type="IcmpPackLoss",
                operator="neq",
                expect="200",
                target="example",
            ),
            alicloud.arms.SyntheticTaskAvailableAssertionArgs(
                type="IcmpPackAvgLatency",
                operator="lte",
                expect="1000",
            ),
            alicloud.arms.SyntheticTaskAvailableAssertionArgs(
                type="IcmpPackMaxLatency",
                operator="lte",
                expect="10000",
            ),
        ],
        tags={
            "Created": "TF",
            "For": "example",
        },
        status="RUNNING",
        monitor_conf=alicloud.arms.SyntheticTaskMonitorConfArgs(
            net_tcp=alicloud.arms.SyntheticTaskMonitorConfNetTcpArgs(
                tracert_timeout=1050,
                target_url="www.aliyun.com",
                connect_times=6,
                interval=300,
                timeout=3000,
                tracert_num_max=2,
            ),
            net_dns=alicloud.arms.SyntheticTaskMonitorConfNetDnsArgs(
                query_method=1,
                timeout=5050,
                target_url="www.aliyun.com",
                dns_server_ip_type=1,
                ns_server="61.128.114.167",
            ),
            api_http=alicloud.arms.SyntheticTaskMonitorConfApiHttpArgs(
                timeout=10050,
                target_url="https://www.aliyun.com",
                method="POST",
                request_headers={
                    "key1": "value1",
                },
                request_body=alicloud.arms.SyntheticTaskMonitorConfApiHttpRequestBodyArgs(
                    content="example2",
                    type="text/html",
                ),
                connect_timeout=6000,
            ),
            website=alicloud.arms.SyntheticTaskMonitorConfWebsiteArgs(
                slow_element_threshold=5005,
                verify_string_blacklist="Failed",
                element_blacklist="a.jpg",
                disable_compression=1,
                ignore_certificate_error=0,
                monitor_timeout=20000,
                redirection=0,
                dns_hijack_whitelist="www.aliyun.com:203.0.3.55",
                page_tamper="www.aliyun.com:|/cc/bb/a.gif",
                flow_hijack_jump_times=10,
                custom_header=1,
                disable_cache=1,
                verify_string_whitelist="Senyuan",
                target_url="http://www.aliyun.com",
                automatic_scrolling=1,
                wait_completion_time=5005,
                flow_hijack_logo="senyuan1",
                custom_header_content={
                    "key1": "value1",
                },
                filter_invalid_ip=0,
            ),
            file_download=alicloud.arms.SyntheticTaskMonitorConfFileDownloadArgs(
                white_list="www.aliyun.com:203.0.3.55",
                monitor_timeout=1050,
                ignore_certificate_untrustworthy_error=0,
                redirection=0,
                ignore_certificate_canceled_error=0,
                ignore_certificate_auth_error=0,
                ignore_certificate_out_of_date_error=0,
                ignore_certificate_using_error=0,
                connection_timeout=6090,
                ignore_invalid_host_error=0,
                verify_way=0,
                custom_header_content={
                    "key1": "value1",
                },
                target_url="https://www.aliyun.com",
                download_kernel=0,
                quick_protocol=2,
                ignore_certificate_status_error=1,
                transmission_size=128,
                validate_keywords="senyuan1",
            ),
            stream=alicloud.arms.SyntheticTaskMonitorConfStreamArgs(
                stream_monitor_timeout=10,
                stream_address_type=0,
                player_type=2,
                custom_header_content={
                    "key1": "value1",
                },
                white_list="www.aliyun.com:203.0.3.55",
                target_url="https://acd-assets.alicdn.com:443/2021productweek/week1_s.mp4",
                stream_type=1,
            ),
            net_icmp=alicloud.arms.SyntheticTaskMonitorConfNetIcmpArgs(
                target_url="www.aliyun.com",
                interval=200,
                package_num=36,
                package_size=512,
                timeout=1000,
                tracert_enable=True,
                tracert_num_max=1,
                tracert_timeout=1200,
            ),
        ),
        task_type=1,
        frequency="1h",
        monitor_category=1,
        common_setting=alicloud.arms.SyntheticTaskCommonSettingArgs(
            xtrace_region="cn-beijing",
            custom_host=alicloud.arms.SyntheticTaskCommonSettingCustomHostArgs(
                hosts=[
                    alicloud.arms.SyntheticTaskCommonSettingCustomHostHostArgs(
                        domain="www.a.aliyun.com",
                        ips=["153.3.238.102"],
                        ip_type=0,
                    ),
                    alicloud.arms.SyntheticTaskCommonSettingCustomHostHostArgs(
                        domain="www.shifen.com",
                        ips=[
                            "153.3.238.110",
                            "114.114.114.114",
                            "127.0.0.1",
                        ],
                        ip_type=1,
                    ),
                    alicloud.arms.SyntheticTaskCommonSettingCustomHostHostArgs(
                        domain="www.aliyun.com",
                        ips=[
                            "153.3.238.110",
                            "180.101.50.242",
                            "180.101.50.188",
                        ],
                        ip_type=0,
                    ),
                ],
                select_type=1,
            ),
            monitor_samples=1,
            ip_type=1,
            is_open_trace=True,
            trace_client_type=1,
        ),
        resource_group_id=default.ids[1])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/arms"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_default, err := resourcemanager.GetResourceGroups(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		_, err = arms.NewSyntheticTask(ctx, "default", &arms.SyntheticTaskArgs{
    			Monitors: arms.SyntheticTaskMonitorArray{
    				&arms.SyntheticTaskMonitorArgs{
    					CityCode:     pulumi.String("1200101"),
    					OperatorCode: pulumi.String("246"),
    					ClientType:   pulumi.Int(4),
    				},
    			},
    			SyntheticTaskName: pulumi.String(name),
    			CustomPeriod: &arms.SyntheticTaskCustomPeriodArgs{
    				EndHour:   pulumi.Int(12),
    				StartHour: pulumi.Int(11),
    			},
    			AvailableAssertions: arms.SyntheticTaskAvailableAssertionArray{
    				&arms.SyntheticTaskAvailableAssertionArgs{
    					Type:     pulumi.String("IcmpPackLoss"),
    					Operator: pulumi.String("neq"),
    					Expect:   pulumi.String("200"),
    					Target:   pulumi.String("example"),
    				},
    				&arms.SyntheticTaskAvailableAssertionArgs{
    					Type:     pulumi.String("IcmpPackAvgLatency"),
    					Operator: pulumi.String("lte"),
    					Expect:   pulumi.String("1000"),
    				},
    				&arms.SyntheticTaskAvailableAssertionArgs{
    					Type:     pulumi.String("IcmpPackMaxLatency"),
    					Operator: pulumi.String("lte"),
    					Expect:   pulumi.String("10000"),
    				},
    			},
    			Tags: pulumi.Map{
    				"Created": pulumi.Any("TF"),
    				"For":     pulumi.Any("example"),
    			},
    			Status: pulumi.String("RUNNING"),
    			MonitorConf: &arms.SyntheticTaskMonitorConfArgs{
    				NetTcp: &arms.SyntheticTaskMonitorConfNetTcpArgs{
    					TracertTimeout: pulumi.Int(1050),
    					TargetUrl:      pulumi.String("www.aliyun.com"),
    					ConnectTimes:   pulumi.Int(6),
    					Interval:       pulumi.Int(300),
    					Timeout:        pulumi.Int(3000),
    					TracertNumMax:  pulumi.Int(2),
    				},
    				NetDns: &arms.SyntheticTaskMonitorConfNetDnsArgs{
    					QueryMethod:     pulumi.Int(1),
    					Timeout:         pulumi.Int(5050),
    					TargetUrl:       pulumi.String("www.aliyun.com"),
    					DnsServerIpType: pulumi.Int(1),
    					NsServer:        pulumi.String("61.128.114.167"),
    				},
    				ApiHttp: &arms.SyntheticTaskMonitorConfApiHttpArgs{
    					Timeout:   pulumi.Int(10050),
    					TargetUrl: pulumi.String("https://www.aliyun.com"),
    					Method:    pulumi.String("POST"),
    					RequestHeaders: pulumi.Map{
    						"key1": pulumi.Any("value1"),
    					},
    					RequestBody: &arms.SyntheticTaskMonitorConfApiHttpRequestBodyArgs{
    						Content: pulumi.String("example2"),
    						Type:    pulumi.String("text/html"),
    					},
    					ConnectTimeout: pulumi.Int(6000),
    				},
    				Website: &arms.SyntheticTaskMonitorConfWebsiteArgs{
    					SlowElementThreshold:   pulumi.Int(5005),
    					VerifyStringBlacklist:  pulumi.String("Failed"),
    					ElementBlacklist:       pulumi.String("a.jpg"),
    					DisableCompression:     pulumi.Int(1),
    					IgnoreCertificateError: pulumi.Int(0),
    					MonitorTimeout:         pulumi.Int(20000),
    					Redirection:            pulumi.Int(0),
    					DnsHijackWhitelist:     pulumi.String("www.aliyun.com:203.0.3.55"),
    					PageTamper:             pulumi.String("www.aliyun.com:|/cc/bb/a.gif"),
    					FlowHijackJumpTimes:    pulumi.Int(10),
    					CustomHeader:           pulumi.Int(1),
    					DisableCache:           pulumi.Int(1),
    					VerifyStringWhitelist:  pulumi.String("Senyuan"),
    					TargetUrl:              pulumi.String("http://www.aliyun.com"),
    					AutomaticScrolling:     pulumi.Int(1),
    					WaitCompletionTime:     pulumi.Int(5005),
    					FlowHijackLogo:         pulumi.String("senyuan1"),
    					CustomHeaderContent: pulumi.Map{
    						"key1": pulumi.Any("value1"),
    					},
    					FilterInvalidIp: pulumi.Int(0),
    				},
    				FileDownload: &arms.SyntheticTaskMonitorConfFileDownloadArgs{
    					WhiteList:                           pulumi.String("www.aliyun.com:203.0.3.55"),
    					MonitorTimeout:                      pulumi.Int(1050),
    					IgnoreCertificateUntrustworthyError: pulumi.Int(0),
    					Redirection:                         pulumi.Int(0),
    					IgnoreCertificateCanceledError:      pulumi.Int(0),
    					IgnoreCertificateAuthError:          pulumi.Int(0),
    					IgnoreCertificateOutOfDateError:     pulumi.Int(0),
    					IgnoreCertificateUsingError:         pulumi.Int(0),
    					ConnectionTimeout:                   pulumi.Int(6090),
    					IgnoreInvalidHostError:              pulumi.Int(0),
    					VerifyWay:                           pulumi.Int(0),
    					CustomHeaderContent: pulumi.Map{
    						"key1": pulumi.Any("value1"),
    					},
    					TargetUrl:                    pulumi.String("https://www.aliyun.com"),
    					DownloadKernel:               pulumi.Int(0),
    					QuickProtocol:                pulumi.Int(2),
    					IgnoreCertificateStatusError: pulumi.Int(1),
    					TransmissionSize:             pulumi.Int(128),
    					ValidateKeywords:             pulumi.String("senyuan1"),
    				},
    				Stream: &arms.SyntheticTaskMonitorConfStreamArgs{
    					StreamMonitorTimeout: pulumi.Int(10),
    					StreamAddressType:    pulumi.Int(0),
    					PlayerType:           pulumi.Int(2),
    					CustomHeaderContent: pulumi.Map{
    						"key1": pulumi.Any("value1"),
    					},
    					WhiteList:  pulumi.String("www.aliyun.com:203.0.3.55"),
    					TargetUrl:  pulumi.String("https://acd-assets.alicdn.com:443/2021productweek/week1_s.mp4"),
    					StreamType: pulumi.Int(1),
    				},
    				NetIcmp: &arms.SyntheticTaskMonitorConfNetIcmpArgs{
    					TargetUrl:      pulumi.String("www.aliyun.com"),
    					Interval:       pulumi.Int(200),
    					PackageNum:     pulumi.Int(36),
    					PackageSize:    pulumi.Int(512),
    					Timeout:        pulumi.Int(1000),
    					TracertEnable:  pulumi.Bool(true),
    					TracertNumMax:  pulumi.Int(1),
    					TracertTimeout: pulumi.Int(1200),
    				},
    			},
    			TaskType:        pulumi.Int(1),
    			Frequency:       pulumi.String("1h"),
    			MonitorCategory: pulumi.Int(1),
    			CommonSetting: &arms.SyntheticTaskCommonSettingArgs{
    				XtraceRegion: pulumi.String("cn-beijing"),
    				CustomHost: &arms.SyntheticTaskCommonSettingCustomHostArgs{
    					Hosts: arms.SyntheticTaskCommonSettingCustomHostHostArray{
    						&arms.SyntheticTaskCommonSettingCustomHostHostArgs{
    							Domain: pulumi.String("www.a.aliyun.com"),
    							Ips: pulumi.StringArray{
    								pulumi.String("153.3.238.102"),
    							},
    							IpType: pulumi.Int(0),
    						},
    						&arms.SyntheticTaskCommonSettingCustomHostHostArgs{
    							Domain: pulumi.String("www.shifen.com"),
    							Ips: pulumi.StringArray{
    								pulumi.String("153.3.238.110"),
    								pulumi.String("114.114.114.114"),
    								pulumi.String("127.0.0.1"),
    							},
    							IpType: pulumi.Int(1),
    						},
    						&arms.SyntheticTaskCommonSettingCustomHostHostArgs{
    							Domain: pulumi.String("www.aliyun.com"),
    							Ips: pulumi.StringArray{
    								pulumi.String("153.3.238.110"),
    								pulumi.String("180.101.50.242"),
    								pulumi.String("180.101.50.188"),
    							},
    							IpType: pulumi.Int(0),
    						},
    					},
    					SelectType: pulumi.Int(1),
    				},
    				MonitorSamples:  pulumi.Int(1),
    				IpType:          pulumi.Int(1),
    				IsOpenTrace:     pulumi.Bool(true),
    				TraceClientType: pulumi.Int(1),
    			},
    			ResourceGroupId: pulumi.String(_default.Ids[1]),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var @default = AliCloud.ResourceManager.GetResourceGroups.Invoke();
    
        var defaultSyntheticTask = new AliCloud.Arms.SyntheticTask("default", new()
        {
            Monitors = new[]
            {
                new AliCloud.Arms.Inputs.SyntheticTaskMonitorArgs
                {
                    CityCode = "1200101",
                    OperatorCode = "246",
                    ClientType = 4,
                },
            },
            SyntheticTaskName = name,
            CustomPeriod = new AliCloud.Arms.Inputs.SyntheticTaskCustomPeriodArgs
            {
                EndHour = 12,
                StartHour = 11,
            },
            AvailableAssertions = new[]
            {
                new AliCloud.Arms.Inputs.SyntheticTaskAvailableAssertionArgs
                {
                    Type = "IcmpPackLoss",
                    Operator = "neq",
                    Expect = "200",
                    Target = "example",
                },
                new AliCloud.Arms.Inputs.SyntheticTaskAvailableAssertionArgs
                {
                    Type = "IcmpPackAvgLatency",
                    Operator = "lte",
                    Expect = "1000",
                },
                new AliCloud.Arms.Inputs.SyntheticTaskAvailableAssertionArgs
                {
                    Type = "IcmpPackMaxLatency",
                    Operator = "lte",
                    Expect = "10000",
                },
            },
            Tags = 
            {
                { "Created", "TF" },
                { "For", "example" },
            },
            Status = "RUNNING",
            MonitorConf = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfArgs
            {
                NetTcp = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfNetTcpArgs
                {
                    TracertTimeout = 1050,
                    TargetUrl = "www.aliyun.com",
                    ConnectTimes = 6,
                    Interval = 300,
                    Timeout = 3000,
                    TracertNumMax = 2,
                },
                NetDns = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfNetDnsArgs
                {
                    QueryMethod = 1,
                    Timeout = 5050,
                    TargetUrl = "www.aliyun.com",
                    DnsServerIpType = 1,
                    NsServer = "61.128.114.167",
                },
                ApiHttp = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfApiHttpArgs
                {
                    Timeout = 10050,
                    TargetUrl = "https://www.aliyun.com",
                    Method = "POST",
                    RequestHeaders = 
                    {
                        { "key1", "value1" },
                    },
                    RequestBody = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfApiHttpRequestBodyArgs
                    {
                        Content = "example2",
                        Type = "text/html",
                    },
                    ConnectTimeout = 6000,
                },
                Website = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfWebsiteArgs
                {
                    SlowElementThreshold = 5005,
                    VerifyStringBlacklist = "Failed",
                    ElementBlacklist = "a.jpg",
                    DisableCompression = 1,
                    IgnoreCertificateError = 0,
                    MonitorTimeout = 20000,
                    Redirection = 0,
                    DnsHijackWhitelist = "www.aliyun.com:203.0.3.55",
                    PageTamper = "www.aliyun.com:|/cc/bb/a.gif",
                    FlowHijackJumpTimes = 10,
                    CustomHeader = 1,
                    DisableCache = 1,
                    VerifyStringWhitelist = "Senyuan",
                    TargetUrl = "http://www.aliyun.com",
                    AutomaticScrolling = 1,
                    WaitCompletionTime = 5005,
                    FlowHijackLogo = "senyuan1",
                    CustomHeaderContent = 
                    {
                        { "key1", "value1" },
                    },
                    FilterInvalidIp = 0,
                },
                FileDownload = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfFileDownloadArgs
                {
                    WhiteList = "www.aliyun.com:203.0.3.55",
                    MonitorTimeout = 1050,
                    IgnoreCertificateUntrustworthyError = 0,
                    Redirection = 0,
                    IgnoreCertificateCanceledError = 0,
                    IgnoreCertificateAuthError = 0,
                    IgnoreCertificateOutOfDateError = 0,
                    IgnoreCertificateUsingError = 0,
                    ConnectionTimeout = 6090,
                    IgnoreInvalidHostError = 0,
                    VerifyWay = 0,
                    CustomHeaderContent = 
                    {
                        { "key1", "value1" },
                    },
                    TargetUrl = "https://www.aliyun.com",
                    DownloadKernel = 0,
                    QuickProtocol = 2,
                    IgnoreCertificateStatusError = 1,
                    TransmissionSize = 128,
                    ValidateKeywords = "senyuan1",
                },
                Stream = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfStreamArgs
                {
                    StreamMonitorTimeout = 10,
                    StreamAddressType = 0,
                    PlayerType = 2,
                    CustomHeaderContent = 
                    {
                        { "key1", "value1" },
                    },
                    WhiteList = "www.aliyun.com:203.0.3.55",
                    TargetUrl = "https://acd-assets.alicdn.com:443/2021productweek/week1_s.mp4",
                    StreamType = 1,
                },
                NetIcmp = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfNetIcmpArgs
                {
                    TargetUrl = "www.aliyun.com",
                    Interval = 200,
                    PackageNum = 36,
                    PackageSize = 512,
                    Timeout = 1000,
                    TracertEnable = true,
                    TracertNumMax = 1,
                    TracertTimeout = 1200,
                },
            },
            TaskType = 1,
            Frequency = "1h",
            MonitorCategory = 1,
            CommonSetting = new AliCloud.Arms.Inputs.SyntheticTaskCommonSettingArgs
            {
                XtraceRegion = "cn-beijing",
                CustomHost = new AliCloud.Arms.Inputs.SyntheticTaskCommonSettingCustomHostArgs
                {
                    Hosts = new[]
                    {
                        new AliCloud.Arms.Inputs.SyntheticTaskCommonSettingCustomHostHostArgs
                        {
                            Domain = "www.a.aliyun.com",
                            Ips = new[]
                            {
                                "153.3.238.102",
                            },
                            IpType = 0,
                        },
                        new AliCloud.Arms.Inputs.SyntheticTaskCommonSettingCustomHostHostArgs
                        {
                            Domain = "www.shifen.com",
                            Ips = new[]
                            {
                                "153.3.238.110",
                                "114.114.114.114",
                                "127.0.0.1",
                            },
                            IpType = 1,
                        },
                        new AliCloud.Arms.Inputs.SyntheticTaskCommonSettingCustomHostHostArgs
                        {
                            Domain = "www.aliyun.com",
                            Ips = new[]
                            {
                                "153.3.238.110",
                                "180.101.50.242",
                                "180.101.50.188",
                            },
                            IpType = 0,
                        },
                    },
                    SelectType = 1,
                },
                MonitorSamples = 1,
                IpType = 1,
                IsOpenTrace = true,
                TraceClientType = 1,
            },
            ResourceGroupId = @default.Apply(@default => @default.Apply(getResourceGroupsResult => getResourceGroupsResult.Ids[1])),
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
    import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
    import com.pulumi.alicloud.arms.SyntheticTask;
    import com.pulumi.alicloud.arms.SyntheticTaskArgs;
    import com.pulumi.alicloud.arms.inputs.SyntheticTaskMonitorArgs;
    import com.pulumi.alicloud.arms.inputs.SyntheticTaskCustomPeriodArgs;
    import com.pulumi.alicloud.arms.inputs.SyntheticTaskAvailableAssertionArgs;
    import com.pulumi.alicloud.arms.inputs.SyntheticTaskMonitorConfArgs;
    import com.pulumi.alicloud.arms.inputs.SyntheticTaskMonitorConfNetTcpArgs;
    import com.pulumi.alicloud.arms.inputs.SyntheticTaskMonitorConfNetDnsArgs;
    import com.pulumi.alicloud.arms.inputs.SyntheticTaskMonitorConfApiHttpArgs;
    import com.pulumi.alicloud.arms.inputs.SyntheticTaskMonitorConfApiHttpRequestBodyArgs;
    import com.pulumi.alicloud.arms.inputs.SyntheticTaskMonitorConfWebsiteArgs;
    import com.pulumi.alicloud.arms.inputs.SyntheticTaskMonitorConfFileDownloadArgs;
    import com.pulumi.alicloud.arms.inputs.SyntheticTaskMonitorConfStreamArgs;
    import com.pulumi.alicloud.arms.inputs.SyntheticTaskMonitorConfNetIcmpArgs;
    import com.pulumi.alicloud.arms.inputs.SyntheticTaskCommonSettingArgs;
    import com.pulumi.alicloud.arms.inputs.SyntheticTaskCommonSettingCustomHostArgs;
    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) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            final var default = ResourcemanagerFunctions.getResourceGroups();
    
            var defaultSyntheticTask = new SyntheticTask("defaultSyntheticTask", SyntheticTaskArgs.builder()        
                .monitors(SyntheticTaskMonitorArgs.builder()
                    .cityCode("1200101")
                    .operatorCode("246")
                    .clientType("4")
                    .build())
                .syntheticTaskName(name)
                .customPeriod(SyntheticTaskCustomPeriodArgs.builder()
                    .endHour("12")
                    .startHour("11")
                    .build())
                .availableAssertions(            
                    SyntheticTaskAvailableAssertionArgs.builder()
                        .type("IcmpPackLoss")
                        .operator("neq")
                        .expect("200")
                        .target("example")
                        .build(),
                    SyntheticTaskAvailableAssertionArgs.builder()
                        .type("IcmpPackAvgLatency")
                        .operator("lte")
                        .expect("1000")
                        .build(),
                    SyntheticTaskAvailableAssertionArgs.builder()
                        .type("IcmpPackMaxLatency")
                        .operator("lte")
                        .expect("10000")
                        .build())
                .tags(Map.ofEntries(
                    Map.entry("Created", "TF"),
                    Map.entry("For", "example")
                ))
                .status("RUNNING")
                .monitorConf(SyntheticTaskMonitorConfArgs.builder()
                    .netTcp(SyntheticTaskMonitorConfNetTcpArgs.builder()
                        .tracertTimeout("1050")
                        .targetUrl("www.aliyun.com")
                        .connectTimes("6")
                        .interval("300")
                        .timeout("3000")
                        .tracertNumMax("2")
                        .build())
                    .netDns(SyntheticTaskMonitorConfNetDnsArgs.builder()
                        .queryMethod("1")
                        .timeout("5050")
                        .targetUrl("www.aliyun.com")
                        .dnsServerIpType("1")
                        .nsServer("61.128.114.167")
                        .build())
                    .apiHttp(SyntheticTaskMonitorConfApiHttpArgs.builder()
                        .timeout("10050")
                        .targetUrl("https://www.aliyun.com")
                        .method("POST")
                        .requestHeaders(Map.of("key1", "value1"))
                        .requestBody(SyntheticTaskMonitorConfApiHttpRequestBodyArgs.builder()
                            .content("example2")
                            .type("text/html")
                            .build())
                        .connectTimeout("6000")
                        .build())
                    .website(SyntheticTaskMonitorConfWebsiteArgs.builder()
                        .slowElementThreshold("5005")
                        .verifyStringBlacklist("Failed")
                        .elementBlacklist("a.jpg")
                        .disableCompression("1")
                        .ignoreCertificateError("0")
                        .monitorTimeout("20000")
                        .redirection("0")
                        .dnsHijackWhitelist("www.aliyun.com:203.0.3.55")
                        .pageTamper("www.aliyun.com:|/cc/bb/a.gif")
                        .flowHijackJumpTimes("10")
                        .customHeader("1")
                        .disableCache("1")
                        .verifyStringWhitelist("Senyuan")
                        .targetUrl("http://www.aliyun.com")
                        .automaticScrolling("1")
                        .waitCompletionTime("5005")
                        .flowHijackLogo("senyuan1")
                        .customHeaderContent(Map.of("key1", "value1"))
                        .filterInvalidIp("0")
                        .build())
                    .fileDownload(SyntheticTaskMonitorConfFileDownloadArgs.builder()
                        .whiteList("www.aliyun.com:203.0.3.55")
                        .monitorTimeout("1050")
                        .ignoreCertificateUntrustworthyError("0")
                        .redirection("0")
                        .ignoreCertificateCanceledError("0")
                        .ignoreCertificateAuthError("0")
                        .ignoreCertificateOutOfDateError("0")
                        .ignoreCertificateUsingError("0")
                        .connectionTimeout("6090")
                        .ignoreInvalidHostError("0")
                        .verifyWay("0")
                        .customHeaderContent(Map.of("key1", "value1"))
                        .targetUrl("https://www.aliyun.com")
                        .downloadKernel("0")
                        .quickProtocol("2")
                        .ignoreCertificateStatusError("1")
                        .transmissionSize("128")
                        .validateKeywords("senyuan1")
                        .build())
                    .stream(SyntheticTaskMonitorConfStreamArgs.builder()
                        .streamMonitorTimeout("10")
                        .streamAddressType("0")
                        .playerType("2")
                        .customHeaderContent(Map.of("key1", "value1"))
                        .whiteList("www.aliyun.com:203.0.3.55")
                        .targetUrl("https://acd-assets.alicdn.com:443/2021productweek/week1_s.mp4")
                        .streamType("1")
                        .build())
                    .netIcmp(SyntheticTaskMonitorConfNetIcmpArgs.builder()
                        .targetUrl("www.aliyun.com")
                        .interval("200")
                        .packageNum("36")
                        .packageSize("512")
                        .timeout("1000")
                        .tracertEnable("true")
                        .tracertNumMax("1")
                        .tracertTimeout("1200")
                        .build())
                    .build())
                .taskType("1")
                .frequency("1h")
                .monitorCategory("1")
                .commonSetting(SyntheticTaskCommonSettingArgs.builder()
                    .xtraceRegion("cn-beijing")
                    .customHost(SyntheticTaskCommonSettingCustomHostArgs.builder()
                        .hosts(                    
                            SyntheticTaskCommonSettingCustomHostHostArgs.builder()
                                .domain("www.a.aliyun.com")
                                .ips("153.3.238.102")
                                .ipType("0")
                                .build(),
                            SyntheticTaskCommonSettingCustomHostHostArgs.builder()
                                .domain("www.shifen.com")
                                .ips(                            
                                    "153.3.238.110",
                                    "114.114.114.114",
                                    "127.0.0.1")
                                .ipType("1")
                                .build(),
                            SyntheticTaskCommonSettingCustomHostHostArgs.builder()
                                .domain("www.aliyun.com")
                                .ips(                            
                                    "153.3.238.110",
                                    "180.101.50.242",
                                    "180.101.50.188")
                                .ipType("0")
                                .build())
                        .selectType("1")
                        .build())
                    .monitorSamples("1")
                    .ipType("1")
                    .isOpenTrace("true")
                    .traceClientType("1")
                    .build())
                .resourceGroupId(default_.ids()[1])
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      defaultSyntheticTask:
        type: alicloud:arms:SyntheticTask
        name: default
        properties:
          monitors:
            - cityCode: '1200101'
              operatorCode: '246'
              clientType: '4'
          syntheticTaskName: ${name}
          customPeriod:
            endHour: '12'
            startHour: '11'
          availableAssertions:
            - type: IcmpPackLoss
              operator: neq
              expect: '200'
              target: example
            - type: IcmpPackAvgLatency
              operator: lte
              expect: '1000'
            - type: IcmpPackMaxLatency
              operator: lte
              expect: '10000'
          tags:
            Created: TF
            For: example
          status: RUNNING
          monitorConf:
            netTcp:
              tracertTimeout: '1050'
              targetUrl: www.aliyun.com
              connectTimes: '6'
              interval: '300'
              timeout: '3000'
              tracertNumMax: '2'
            netDns:
              queryMethod: '1'
              timeout: '5050'
              targetUrl: www.aliyun.com
              dnsServerIpType: '1'
              nsServer: 61.128.114.167
            apiHttp:
              timeout: '10050'
              targetUrl: https://www.aliyun.com
              method: POST
              requestHeaders:
                key1: value1
              requestBody:
                content: example2
                type: text/html
              connectTimeout: '6000'
            website:
              slowElementThreshold: '5005'
              verifyStringBlacklist: Failed
              elementBlacklist: a.jpg
              disableCompression: '1'
              ignoreCertificateError: '0'
              monitorTimeout: '20000'
              redirection: '0'
              dnsHijackWhitelist: www.aliyun.com:203.0.3.55
              pageTamper: www.aliyun.com:|/cc/bb/a.gif
              flowHijackJumpTimes: '10'
              customHeader: '1'
              disableCache: '1'
              verifyStringWhitelist: Senyuan
              targetUrl: http://www.aliyun.com
              automaticScrolling: '1'
              waitCompletionTime: '5005'
              flowHijackLogo: senyuan1
              customHeaderContent:
                key1: value1
              filterInvalidIp: '0'
            fileDownload:
              whiteList: www.aliyun.com:203.0.3.55
              monitorTimeout: '1050'
              ignoreCertificateUntrustworthyError: '0'
              redirection: '0'
              ignoreCertificateCanceledError: '0'
              ignoreCertificateAuthError: '0'
              ignoreCertificateOutOfDateError: '0'
              ignoreCertificateUsingError: '0'
              connectionTimeout: '6090'
              ignoreInvalidHostError: '0'
              verifyWay: '0'
              customHeaderContent:
                key1: value1
              targetUrl: https://www.aliyun.com
              downloadKernel: '0'
              quickProtocol: '2'
              ignoreCertificateStatusError: '1'
              transmissionSize: '128'
              validateKeywords: senyuan1
            stream:
              streamMonitorTimeout: '10'
              streamAddressType: '0'
              playerType: '2'
              customHeaderContent:
                key1: value1
              whiteList: www.aliyun.com:203.0.3.55
              targetUrl: https://acd-assets.alicdn.com:443/2021productweek/week1_s.mp4
              streamType: '1'
            netIcmp:
              targetUrl: www.aliyun.com
              interval: '200'
              packageNum: '36'
              packageSize: '512'
              timeout: '1000'
              tracertEnable: 'true'
              tracertNumMax: '1'
              tracertTimeout: '1200'
          taskType: '1'
          frequency: 1h
          monitorCategory: '1'
          commonSetting:
            xtraceRegion: cn-beijing
            customHost:
              hosts:
                - domain: www.a.aliyun.com
                  ips:
                    - 153.3.238.102
                  ipType: '0'
                - domain: www.shifen.com
                  ips:
                    - 153.3.238.110
                    - 114.114.114.114
                    - 127.0.0.1
                  ipType: '1'
                - domain: www.aliyun.com
                  ips:
                    - 153.3.238.110
                    - 180.101.50.242
                    - 180.101.50.188
                  ipType: '0'
              selectType: '1'
            monitorSamples: '1'
            ipType: '1'
            isOpenTrace: 'true'
            traceClientType: '1'
          resourceGroupId: ${default.ids[1]}
    variables:
      default:
        fn::invoke:
          Function: alicloud:resourcemanager:getResourceGroups
          Arguments: {}
    

    Create SyntheticTask Resource

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

    Constructor syntax

    new SyntheticTask(name: string, args: SyntheticTaskArgs, opts?: CustomResourceOptions);
    @overload
    def SyntheticTask(resource_name: str,
                      args: SyntheticTaskArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def SyntheticTask(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      frequency: Optional[str] = None,
                      monitor_category: Optional[int] = None,
                      monitor_conf: Optional[SyntheticTaskMonitorConfArgs] = None,
                      monitors: Optional[Sequence[SyntheticTaskMonitorArgs]] = None,
                      synthetic_task_name: Optional[str] = None,
                      task_type: Optional[int] = None,
                      available_assertions: Optional[Sequence[SyntheticTaskAvailableAssertionArgs]] = None,
                      common_setting: Optional[SyntheticTaskCommonSettingArgs] = None,
                      custom_period: Optional[SyntheticTaskCustomPeriodArgs] = None,
                      resource_group_id: Optional[str] = None,
                      status: Optional[str] = None,
                      tags: Optional[Mapping[str, Any]] = None)
    func NewSyntheticTask(ctx *Context, name string, args SyntheticTaskArgs, opts ...ResourceOption) (*SyntheticTask, error)
    public SyntheticTask(string name, SyntheticTaskArgs args, CustomResourceOptions? opts = null)
    public SyntheticTask(String name, SyntheticTaskArgs args)
    public SyntheticTask(String name, SyntheticTaskArgs args, CustomResourceOptions options)
    
    type: alicloud:arms:SyntheticTask
    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 SyntheticTaskArgs
    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 SyntheticTaskArgs
    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 SyntheticTaskArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SyntheticTaskArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SyntheticTaskArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var syntheticTaskResource = new AliCloud.Arms.SyntheticTask("syntheticTaskResource", new()
    {
        Frequency = "string",
        MonitorCategory = 0,
        MonitorConf = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfArgs
        {
            ApiHttp = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfApiHttpArgs
            {
                TargetUrl = "string",
                ConnectTimeout = 0,
                Method = "string",
                RequestBody = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfApiHttpRequestBodyArgs
                {
                    Content = "string",
                    Type = "string",
                },
                RequestHeaders = 
                {
                    { "string", "any" },
                },
                Timeout = 0,
            },
            FileDownload = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfFileDownloadArgs
            {
                TargetUrl = "string",
                IgnoreCertificateUsingError = 0,
                IgnoreCertificateOutOfDateError = 0,
                IgnoreInvalidHostError = 0,
                IgnoreCertificateCanceledError = 0,
                MonitorTimeout = 0,
                IgnoreCertificateStatusError = 0,
                IgnoreCertificateUntrustworthyError = 0,
                QuickProtocol = 0,
                IgnoreCertificateAuthError = 0,
                DownloadKernel = 0,
                ConnectionTimeout = 0,
                Redirection = 0,
                CustomHeaderContent = 
                {
                    { "string", "any" },
                },
                TransmissionSize = 0,
                ValidateKeywords = "string",
                VerifyWay = 0,
                WhiteList = "string",
            },
            NetDns = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfNetDnsArgs
            {
                TargetUrl = "string",
                DnsServerIpType = 0,
                NsServer = "string",
                QueryMethod = 0,
                Timeout = 0,
            },
            NetIcmp = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfNetIcmpArgs
            {
                TargetUrl = "string",
                Interval = 0,
                PackageNum = 0,
                PackageSize = 0,
                SplitPackage = false,
                Timeout = 0,
                TracertEnable = false,
                TracertNumMax = 0,
                TracertTimeout = 0,
            },
            NetTcp = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfNetTcpArgs
            {
                TargetUrl = "string",
                ConnectTimes = 0,
                Interval = 0,
                Timeout = 0,
                TracertEnable = false,
                TracertNumMax = 0,
                TracertTimeout = 0,
            },
            Stream = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfStreamArgs
            {
                CustomHeaderContent = 
                {
                    { "string", "any" },
                },
                PlayerType = 0,
                StreamAddressType = 0,
                StreamMonitorTimeout = 0,
                StreamType = 0,
                TargetUrl = "string",
                WhiteList = "string",
            },
            Website = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfWebsiteArgs
            {
                TargetUrl = "string",
                FlowHijackJumpTimes = 0,
                DisableCache = 0,
                IgnoreCertificateError = 0,
                MonitorTimeout = 0,
                DnsHijackWhitelist = "string",
                ElementBlacklist = "string",
                FilterInvalidIp = 0,
                AutomaticScrolling = 0,
                WaitCompletionTime = 0,
                CustomHeaderContent = 
                {
                    { "string", "any" },
                },
                DisableCompression = 0,
                PageTamper = "string",
                Redirection = 0,
                SlowElementThreshold = 0,
                CustomHeader = 0,
                VerifyStringBlacklist = "string",
                VerifyStringWhitelist = "string",
                FlowHijackLogo = "string",
            },
        },
        Monitors = new[]
        {
            new AliCloud.Arms.Inputs.SyntheticTaskMonitorArgs
            {
                CityCode = "string",
                ClientType = 0,
                OperatorCode = "string",
            },
        },
        SyntheticTaskName = "string",
        TaskType = 0,
        AvailableAssertions = new[]
        {
            new AliCloud.Arms.Inputs.SyntheticTaskAvailableAssertionArgs
            {
                Expect = "string",
                Operator = "string",
                Type = "string",
                Target = "string",
            },
        },
        CommonSetting = new AliCloud.Arms.Inputs.SyntheticTaskCommonSettingArgs
        {
            CustomHost = new AliCloud.Arms.Inputs.SyntheticTaskCommonSettingCustomHostArgs
            {
                Hosts = new[]
                {
                    new AliCloud.Arms.Inputs.SyntheticTaskCommonSettingCustomHostHostArgs
                    {
                        Domain = "string",
                        IpType = 0,
                        Ips = new[]
                        {
                            "string",
                        },
                    },
                },
                SelectType = 0,
            },
            IpType = 0,
            IsOpenTrace = false,
            MonitorSamples = 0,
            TraceClientType = 0,
            XtraceRegion = "string",
        },
        CustomPeriod = new AliCloud.Arms.Inputs.SyntheticTaskCustomPeriodArgs
        {
            EndHour = 0,
            StartHour = 0,
        },
        ResourceGroupId = "string",
        Status = "string",
        Tags = 
        {
            { "string", "any" },
        },
    });
    
    example, err := arms.NewSyntheticTask(ctx, "syntheticTaskResource", &arms.SyntheticTaskArgs{
    	Frequency:       pulumi.String("string"),
    	MonitorCategory: pulumi.Int(0),
    	MonitorConf: &arms.SyntheticTaskMonitorConfArgs{
    		ApiHttp: &arms.SyntheticTaskMonitorConfApiHttpArgs{
    			TargetUrl:      pulumi.String("string"),
    			ConnectTimeout: pulumi.Int(0),
    			Method:         pulumi.String("string"),
    			RequestBody: &arms.SyntheticTaskMonitorConfApiHttpRequestBodyArgs{
    				Content: pulumi.String("string"),
    				Type:    pulumi.String("string"),
    			},
    			RequestHeaders: pulumi.Map{
    				"string": pulumi.Any("any"),
    			},
    			Timeout: pulumi.Int(0),
    		},
    		FileDownload: &arms.SyntheticTaskMonitorConfFileDownloadArgs{
    			TargetUrl:                           pulumi.String("string"),
    			IgnoreCertificateUsingError:         pulumi.Int(0),
    			IgnoreCertificateOutOfDateError:     pulumi.Int(0),
    			IgnoreInvalidHostError:              pulumi.Int(0),
    			IgnoreCertificateCanceledError:      pulumi.Int(0),
    			MonitorTimeout:                      pulumi.Int(0),
    			IgnoreCertificateStatusError:        pulumi.Int(0),
    			IgnoreCertificateUntrustworthyError: pulumi.Int(0),
    			QuickProtocol:                       pulumi.Int(0),
    			IgnoreCertificateAuthError:          pulumi.Int(0),
    			DownloadKernel:                      pulumi.Int(0),
    			ConnectionTimeout:                   pulumi.Int(0),
    			Redirection:                         pulumi.Int(0),
    			CustomHeaderContent: pulumi.Map{
    				"string": pulumi.Any("any"),
    			},
    			TransmissionSize: pulumi.Int(0),
    			ValidateKeywords: pulumi.String("string"),
    			VerifyWay:        pulumi.Int(0),
    			WhiteList:        pulumi.String("string"),
    		},
    		NetDns: &arms.SyntheticTaskMonitorConfNetDnsArgs{
    			TargetUrl:       pulumi.String("string"),
    			DnsServerIpType: pulumi.Int(0),
    			NsServer:        pulumi.String("string"),
    			QueryMethod:     pulumi.Int(0),
    			Timeout:         pulumi.Int(0),
    		},
    		NetIcmp: &arms.SyntheticTaskMonitorConfNetIcmpArgs{
    			TargetUrl:      pulumi.String("string"),
    			Interval:       pulumi.Int(0),
    			PackageNum:     pulumi.Int(0),
    			PackageSize:    pulumi.Int(0),
    			SplitPackage:   pulumi.Bool(false),
    			Timeout:        pulumi.Int(0),
    			TracertEnable:  pulumi.Bool(false),
    			TracertNumMax:  pulumi.Int(0),
    			TracertTimeout: pulumi.Int(0),
    		},
    		NetTcp: &arms.SyntheticTaskMonitorConfNetTcpArgs{
    			TargetUrl:      pulumi.String("string"),
    			ConnectTimes:   pulumi.Int(0),
    			Interval:       pulumi.Int(0),
    			Timeout:        pulumi.Int(0),
    			TracertEnable:  pulumi.Bool(false),
    			TracertNumMax:  pulumi.Int(0),
    			TracertTimeout: pulumi.Int(0),
    		},
    		Stream: &arms.SyntheticTaskMonitorConfStreamArgs{
    			CustomHeaderContent: pulumi.Map{
    				"string": pulumi.Any("any"),
    			},
    			PlayerType:           pulumi.Int(0),
    			StreamAddressType:    pulumi.Int(0),
    			StreamMonitorTimeout: pulumi.Int(0),
    			StreamType:           pulumi.Int(0),
    			TargetUrl:            pulumi.String("string"),
    			WhiteList:            pulumi.String("string"),
    		},
    		Website: &arms.SyntheticTaskMonitorConfWebsiteArgs{
    			TargetUrl:              pulumi.String("string"),
    			FlowHijackJumpTimes:    pulumi.Int(0),
    			DisableCache:           pulumi.Int(0),
    			IgnoreCertificateError: pulumi.Int(0),
    			MonitorTimeout:         pulumi.Int(0),
    			DnsHijackWhitelist:     pulumi.String("string"),
    			ElementBlacklist:       pulumi.String("string"),
    			FilterInvalidIp:        pulumi.Int(0),
    			AutomaticScrolling:     pulumi.Int(0),
    			WaitCompletionTime:     pulumi.Int(0),
    			CustomHeaderContent: pulumi.Map{
    				"string": pulumi.Any("any"),
    			},
    			DisableCompression:    pulumi.Int(0),
    			PageTamper:            pulumi.String("string"),
    			Redirection:           pulumi.Int(0),
    			SlowElementThreshold:  pulumi.Int(0),
    			CustomHeader:          pulumi.Int(0),
    			VerifyStringBlacklist: pulumi.String("string"),
    			VerifyStringWhitelist: pulumi.String("string"),
    			FlowHijackLogo:        pulumi.String("string"),
    		},
    	},
    	Monitors: arms.SyntheticTaskMonitorArray{
    		&arms.SyntheticTaskMonitorArgs{
    			CityCode:     pulumi.String("string"),
    			ClientType:   pulumi.Int(0),
    			OperatorCode: pulumi.String("string"),
    		},
    	},
    	SyntheticTaskName: pulumi.String("string"),
    	TaskType:          pulumi.Int(0),
    	AvailableAssertions: arms.SyntheticTaskAvailableAssertionArray{
    		&arms.SyntheticTaskAvailableAssertionArgs{
    			Expect:   pulumi.String("string"),
    			Operator: pulumi.String("string"),
    			Type:     pulumi.String("string"),
    			Target:   pulumi.String("string"),
    		},
    	},
    	CommonSetting: &arms.SyntheticTaskCommonSettingArgs{
    		CustomHost: &arms.SyntheticTaskCommonSettingCustomHostArgs{
    			Hosts: arms.SyntheticTaskCommonSettingCustomHostHostArray{
    				&arms.SyntheticTaskCommonSettingCustomHostHostArgs{
    					Domain: pulumi.String("string"),
    					IpType: pulumi.Int(0),
    					Ips: pulumi.StringArray{
    						pulumi.String("string"),
    					},
    				},
    			},
    			SelectType: pulumi.Int(0),
    		},
    		IpType:          pulumi.Int(0),
    		IsOpenTrace:     pulumi.Bool(false),
    		MonitorSamples:  pulumi.Int(0),
    		TraceClientType: pulumi.Int(0),
    		XtraceRegion:    pulumi.String("string"),
    	},
    	CustomPeriod: &arms.SyntheticTaskCustomPeriodArgs{
    		EndHour:   pulumi.Int(0),
    		StartHour: pulumi.Int(0),
    	},
    	ResourceGroupId: pulumi.String("string"),
    	Status:          pulumi.String("string"),
    	Tags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    })
    
    var syntheticTaskResource = new SyntheticTask("syntheticTaskResource", SyntheticTaskArgs.builder()        
        .frequency("string")
        .monitorCategory(0)
        .monitorConf(SyntheticTaskMonitorConfArgs.builder()
            .apiHttp(SyntheticTaskMonitorConfApiHttpArgs.builder()
                .targetUrl("string")
                .connectTimeout(0)
                .method("string")
                .requestBody(SyntheticTaskMonitorConfApiHttpRequestBodyArgs.builder()
                    .content("string")
                    .type("string")
                    .build())
                .requestHeaders(Map.of("string", "any"))
                .timeout(0)
                .build())
            .fileDownload(SyntheticTaskMonitorConfFileDownloadArgs.builder()
                .targetUrl("string")
                .ignoreCertificateUsingError(0)
                .ignoreCertificateOutOfDateError(0)
                .ignoreInvalidHostError(0)
                .ignoreCertificateCanceledError(0)
                .monitorTimeout(0)
                .ignoreCertificateStatusError(0)
                .ignoreCertificateUntrustworthyError(0)
                .quickProtocol(0)
                .ignoreCertificateAuthError(0)
                .downloadKernel(0)
                .connectionTimeout(0)
                .redirection(0)
                .customHeaderContent(Map.of("string", "any"))
                .transmissionSize(0)
                .validateKeywords("string")
                .verifyWay(0)
                .whiteList("string")
                .build())
            .netDns(SyntheticTaskMonitorConfNetDnsArgs.builder()
                .targetUrl("string")
                .dnsServerIpType(0)
                .nsServer("string")
                .queryMethod(0)
                .timeout(0)
                .build())
            .netIcmp(SyntheticTaskMonitorConfNetIcmpArgs.builder()
                .targetUrl("string")
                .interval(0)
                .packageNum(0)
                .packageSize(0)
                .splitPackage(false)
                .timeout(0)
                .tracertEnable(false)
                .tracertNumMax(0)
                .tracertTimeout(0)
                .build())
            .netTcp(SyntheticTaskMonitorConfNetTcpArgs.builder()
                .targetUrl("string")
                .connectTimes(0)
                .interval(0)
                .timeout(0)
                .tracertEnable(false)
                .tracertNumMax(0)
                .tracertTimeout(0)
                .build())
            .stream(SyntheticTaskMonitorConfStreamArgs.builder()
                .customHeaderContent(Map.of("string", "any"))
                .playerType(0)
                .streamAddressType(0)
                .streamMonitorTimeout(0)
                .streamType(0)
                .targetUrl("string")
                .whiteList("string")
                .build())
            .website(SyntheticTaskMonitorConfWebsiteArgs.builder()
                .targetUrl("string")
                .flowHijackJumpTimes(0)
                .disableCache(0)
                .ignoreCertificateError(0)
                .monitorTimeout(0)
                .dnsHijackWhitelist("string")
                .elementBlacklist("string")
                .filterInvalidIp(0)
                .automaticScrolling(0)
                .waitCompletionTime(0)
                .customHeaderContent(Map.of("string", "any"))
                .disableCompression(0)
                .pageTamper("string")
                .redirection(0)
                .slowElementThreshold(0)
                .customHeader(0)
                .verifyStringBlacklist("string")
                .verifyStringWhitelist("string")
                .flowHijackLogo("string")
                .build())
            .build())
        .monitors(SyntheticTaskMonitorArgs.builder()
            .cityCode("string")
            .clientType(0)
            .operatorCode("string")
            .build())
        .syntheticTaskName("string")
        .taskType(0)
        .availableAssertions(SyntheticTaskAvailableAssertionArgs.builder()
            .expect("string")
            .operator("string")
            .type("string")
            .target("string")
            .build())
        .commonSetting(SyntheticTaskCommonSettingArgs.builder()
            .customHost(SyntheticTaskCommonSettingCustomHostArgs.builder()
                .hosts(SyntheticTaskCommonSettingCustomHostHostArgs.builder()
                    .domain("string")
                    .ipType(0)
                    .ips("string")
                    .build())
                .selectType(0)
                .build())
            .ipType(0)
            .isOpenTrace(false)
            .monitorSamples(0)
            .traceClientType(0)
            .xtraceRegion("string")
            .build())
        .customPeriod(SyntheticTaskCustomPeriodArgs.builder()
            .endHour(0)
            .startHour(0)
            .build())
        .resourceGroupId("string")
        .status("string")
        .tags(Map.of("string", "any"))
        .build());
    
    synthetic_task_resource = alicloud.arms.SyntheticTask("syntheticTaskResource",
        frequency="string",
        monitor_category=0,
        monitor_conf=alicloud.arms.SyntheticTaskMonitorConfArgs(
            api_http=alicloud.arms.SyntheticTaskMonitorConfApiHttpArgs(
                target_url="string",
                connect_timeout=0,
                method="string",
                request_body=alicloud.arms.SyntheticTaskMonitorConfApiHttpRequestBodyArgs(
                    content="string",
                    type="string",
                ),
                request_headers={
                    "string": "any",
                },
                timeout=0,
            ),
            file_download=alicloud.arms.SyntheticTaskMonitorConfFileDownloadArgs(
                target_url="string",
                ignore_certificate_using_error=0,
                ignore_certificate_out_of_date_error=0,
                ignore_invalid_host_error=0,
                ignore_certificate_canceled_error=0,
                monitor_timeout=0,
                ignore_certificate_status_error=0,
                ignore_certificate_untrustworthy_error=0,
                quick_protocol=0,
                ignore_certificate_auth_error=0,
                download_kernel=0,
                connection_timeout=0,
                redirection=0,
                custom_header_content={
                    "string": "any",
                },
                transmission_size=0,
                validate_keywords="string",
                verify_way=0,
                white_list="string",
            ),
            net_dns=alicloud.arms.SyntheticTaskMonitorConfNetDnsArgs(
                target_url="string",
                dns_server_ip_type=0,
                ns_server="string",
                query_method=0,
                timeout=0,
            ),
            net_icmp=alicloud.arms.SyntheticTaskMonitorConfNetIcmpArgs(
                target_url="string",
                interval=0,
                package_num=0,
                package_size=0,
                split_package=False,
                timeout=0,
                tracert_enable=False,
                tracert_num_max=0,
                tracert_timeout=0,
            ),
            net_tcp=alicloud.arms.SyntheticTaskMonitorConfNetTcpArgs(
                target_url="string",
                connect_times=0,
                interval=0,
                timeout=0,
                tracert_enable=False,
                tracert_num_max=0,
                tracert_timeout=0,
            ),
            stream=alicloud.arms.SyntheticTaskMonitorConfStreamArgs(
                custom_header_content={
                    "string": "any",
                },
                player_type=0,
                stream_address_type=0,
                stream_monitor_timeout=0,
                stream_type=0,
                target_url="string",
                white_list="string",
            ),
            website=alicloud.arms.SyntheticTaskMonitorConfWebsiteArgs(
                target_url="string",
                flow_hijack_jump_times=0,
                disable_cache=0,
                ignore_certificate_error=0,
                monitor_timeout=0,
                dns_hijack_whitelist="string",
                element_blacklist="string",
                filter_invalid_ip=0,
                automatic_scrolling=0,
                wait_completion_time=0,
                custom_header_content={
                    "string": "any",
                },
                disable_compression=0,
                page_tamper="string",
                redirection=0,
                slow_element_threshold=0,
                custom_header=0,
                verify_string_blacklist="string",
                verify_string_whitelist="string",
                flow_hijack_logo="string",
            ),
        ),
        monitors=[alicloud.arms.SyntheticTaskMonitorArgs(
            city_code="string",
            client_type=0,
            operator_code="string",
        )],
        synthetic_task_name="string",
        task_type=0,
        available_assertions=[alicloud.arms.SyntheticTaskAvailableAssertionArgs(
            expect="string",
            operator="string",
            type="string",
            target="string",
        )],
        common_setting=alicloud.arms.SyntheticTaskCommonSettingArgs(
            custom_host=alicloud.arms.SyntheticTaskCommonSettingCustomHostArgs(
                hosts=[alicloud.arms.SyntheticTaskCommonSettingCustomHostHostArgs(
                    domain="string",
                    ip_type=0,
                    ips=["string"],
                )],
                select_type=0,
            ),
            ip_type=0,
            is_open_trace=False,
            monitor_samples=0,
            trace_client_type=0,
            xtrace_region="string",
        ),
        custom_period=alicloud.arms.SyntheticTaskCustomPeriodArgs(
            end_hour=0,
            start_hour=0,
        ),
        resource_group_id="string",
        status="string",
        tags={
            "string": "any",
        })
    
    const syntheticTaskResource = new alicloud.arms.SyntheticTask("syntheticTaskResource", {
        frequency: "string",
        monitorCategory: 0,
        monitorConf: {
            apiHttp: {
                targetUrl: "string",
                connectTimeout: 0,
                method: "string",
                requestBody: {
                    content: "string",
                    type: "string",
                },
                requestHeaders: {
                    string: "any",
                },
                timeout: 0,
            },
            fileDownload: {
                targetUrl: "string",
                ignoreCertificateUsingError: 0,
                ignoreCertificateOutOfDateError: 0,
                ignoreInvalidHostError: 0,
                ignoreCertificateCanceledError: 0,
                monitorTimeout: 0,
                ignoreCertificateStatusError: 0,
                ignoreCertificateUntrustworthyError: 0,
                quickProtocol: 0,
                ignoreCertificateAuthError: 0,
                downloadKernel: 0,
                connectionTimeout: 0,
                redirection: 0,
                customHeaderContent: {
                    string: "any",
                },
                transmissionSize: 0,
                validateKeywords: "string",
                verifyWay: 0,
                whiteList: "string",
            },
            netDns: {
                targetUrl: "string",
                dnsServerIpType: 0,
                nsServer: "string",
                queryMethod: 0,
                timeout: 0,
            },
            netIcmp: {
                targetUrl: "string",
                interval: 0,
                packageNum: 0,
                packageSize: 0,
                splitPackage: false,
                timeout: 0,
                tracertEnable: false,
                tracertNumMax: 0,
                tracertTimeout: 0,
            },
            netTcp: {
                targetUrl: "string",
                connectTimes: 0,
                interval: 0,
                timeout: 0,
                tracertEnable: false,
                tracertNumMax: 0,
                tracertTimeout: 0,
            },
            stream: {
                customHeaderContent: {
                    string: "any",
                },
                playerType: 0,
                streamAddressType: 0,
                streamMonitorTimeout: 0,
                streamType: 0,
                targetUrl: "string",
                whiteList: "string",
            },
            website: {
                targetUrl: "string",
                flowHijackJumpTimes: 0,
                disableCache: 0,
                ignoreCertificateError: 0,
                monitorTimeout: 0,
                dnsHijackWhitelist: "string",
                elementBlacklist: "string",
                filterInvalidIp: 0,
                automaticScrolling: 0,
                waitCompletionTime: 0,
                customHeaderContent: {
                    string: "any",
                },
                disableCompression: 0,
                pageTamper: "string",
                redirection: 0,
                slowElementThreshold: 0,
                customHeader: 0,
                verifyStringBlacklist: "string",
                verifyStringWhitelist: "string",
                flowHijackLogo: "string",
            },
        },
        monitors: [{
            cityCode: "string",
            clientType: 0,
            operatorCode: "string",
        }],
        syntheticTaskName: "string",
        taskType: 0,
        availableAssertions: [{
            expect: "string",
            operator: "string",
            type: "string",
            target: "string",
        }],
        commonSetting: {
            customHost: {
                hosts: [{
                    domain: "string",
                    ipType: 0,
                    ips: ["string"],
                }],
                selectType: 0,
            },
            ipType: 0,
            isOpenTrace: false,
            monitorSamples: 0,
            traceClientType: 0,
            xtraceRegion: "string",
        },
        customPeriod: {
            endHour: 0,
            startHour: 0,
        },
        resourceGroupId: "string",
        status: "string",
        tags: {
            string: "any",
        },
    });
    
    type: alicloud:arms:SyntheticTask
    properties:
        availableAssertions:
            - expect: string
              operator: string
              target: string
              type: string
        commonSetting:
            customHost:
                hosts:
                    - domain: string
                      ipType: 0
                      ips:
                        - string
                selectType: 0
            ipType: 0
            isOpenTrace: false
            monitorSamples: 0
            traceClientType: 0
            xtraceRegion: string
        customPeriod:
            endHour: 0
            startHour: 0
        frequency: string
        monitorCategory: 0
        monitorConf:
            apiHttp:
                connectTimeout: 0
                method: string
                requestBody:
                    content: string
                    type: string
                requestHeaders:
                    string: any
                targetUrl: string
                timeout: 0
            fileDownload:
                connectionTimeout: 0
                customHeaderContent:
                    string: any
                downloadKernel: 0
                ignoreCertificateAuthError: 0
                ignoreCertificateCanceledError: 0
                ignoreCertificateOutOfDateError: 0
                ignoreCertificateStatusError: 0
                ignoreCertificateUntrustworthyError: 0
                ignoreCertificateUsingError: 0
                ignoreInvalidHostError: 0
                monitorTimeout: 0
                quickProtocol: 0
                redirection: 0
                targetUrl: string
                transmissionSize: 0
                validateKeywords: string
                verifyWay: 0
                whiteList: string
            netDns:
                dnsServerIpType: 0
                nsServer: string
                queryMethod: 0
                targetUrl: string
                timeout: 0
            netIcmp:
                interval: 0
                packageNum: 0
                packageSize: 0
                splitPackage: false
                targetUrl: string
                timeout: 0
                tracertEnable: false
                tracertNumMax: 0
                tracertTimeout: 0
            netTcp:
                connectTimes: 0
                interval: 0
                targetUrl: string
                timeout: 0
                tracertEnable: false
                tracertNumMax: 0
                tracertTimeout: 0
            stream:
                customHeaderContent:
                    string: any
                playerType: 0
                streamAddressType: 0
                streamMonitorTimeout: 0
                streamType: 0
                targetUrl: string
                whiteList: string
            website:
                automaticScrolling: 0
                customHeader: 0
                customHeaderContent:
                    string: any
                disableCache: 0
                disableCompression: 0
                dnsHijackWhitelist: string
                elementBlacklist: string
                filterInvalidIp: 0
                flowHijackJumpTimes: 0
                flowHijackLogo: string
                ignoreCertificateError: 0
                monitorTimeout: 0
                pageTamper: string
                redirection: 0
                slowElementThreshold: 0
                targetUrl: string
                verifyStringBlacklist: string
                verifyStringWhitelist: string
                waitCompletionTime: 0
        monitors:
            - cityCode: string
              clientType: 0
              operatorCode: string
        resourceGroupId: string
        status: string
        syntheticTaskName: string
        tags:
            string: any
        taskType: 0
    

    SyntheticTask Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The SyntheticTask resource accepts the following input properties:

    Frequency string
    Frequency.
    MonitorCategory int
    Classification of selected monitors.
    MonitorConf Pulumi.AliCloud.Arms.Inputs.SyntheticTaskMonitorConf
    Monitoring configuration. See monitor_conf below.
    Monitors List<Pulumi.AliCloud.Arms.Inputs.SyntheticTaskMonitor>
    List of selected monitors. See monitors below.
    SyntheticTaskName string
    The name of synthetic task.
    TaskType int
    The type of synthetic task.
    AvailableAssertions List<Pulumi.AliCloud.Arms.Inputs.SyntheticTaskAvailableAssertion>
    Assertion List. See available_assertions below.
    CommonSetting Pulumi.AliCloud.Arms.Inputs.SyntheticTaskCommonSetting
    Common settings. See common_setting below.
    CustomPeriod Pulumi.AliCloud.Arms.Inputs.SyntheticTaskCustomPeriod
    Custom Cycle. See custom_period below.
    ResourceGroupId string
    Describes which resource group the resource belongs.
    Status string
    task status.
    Tags Dictionary<string, object>
    The list of tags.
    Frequency string
    Frequency.
    MonitorCategory int
    Classification of selected monitors.
    MonitorConf SyntheticTaskMonitorConfArgs
    Monitoring configuration. See monitor_conf below.
    Monitors []SyntheticTaskMonitorArgs
    List of selected monitors. See monitors below.
    SyntheticTaskName string
    The name of synthetic task.
    TaskType int
    The type of synthetic task.
    AvailableAssertions []SyntheticTaskAvailableAssertionArgs
    Assertion List. See available_assertions below.
    CommonSetting SyntheticTaskCommonSettingArgs
    Common settings. See common_setting below.
    CustomPeriod SyntheticTaskCustomPeriodArgs
    Custom Cycle. See custom_period below.
    ResourceGroupId string
    Describes which resource group the resource belongs.
    Status string
    task status.
    Tags map[string]interface{}
    The list of tags.
    frequency String
    Frequency.
    monitorCategory Integer
    Classification of selected monitors.
    monitorConf SyntheticTaskMonitorConf
    Monitoring configuration. See monitor_conf below.
    monitors List<SyntheticTaskMonitor>
    List of selected monitors. See monitors below.
    syntheticTaskName String
    The name of synthetic task.
    taskType Integer
    The type of synthetic task.
    availableAssertions List<SyntheticTaskAvailableAssertion>
    Assertion List. See available_assertions below.
    commonSetting SyntheticTaskCommonSetting
    Common settings. See common_setting below.
    customPeriod SyntheticTaskCustomPeriod
    Custom Cycle. See custom_period below.
    resourceGroupId String
    Describes which resource group the resource belongs.
    status String
    task status.
    tags Map<String,Object>
    The list of tags.
    frequency string
    Frequency.
    monitorCategory number
    Classification of selected monitors.
    monitorConf SyntheticTaskMonitorConf
    Monitoring configuration. See monitor_conf below.
    monitors SyntheticTaskMonitor[]
    List of selected monitors. See monitors below.
    syntheticTaskName string
    The name of synthetic task.
    taskType number
    The type of synthetic task.
    availableAssertions SyntheticTaskAvailableAssertion[]
    Assertion List. See available_assertions below.
    commonSetting SyntheticTaskCommonSetting
    Common settings. See common_setting below.
    customPeriod SyntheticTaskCustomPeriod
    Custom Cycle. See custom_period below.
    resourceGroupId string
    Describes which resource group the resource belongs.
    status string
    task status.
    tags {[key: string]: any}
    The list of tags.
    frequency str
    Frequency.
    monitor_category int
    Classification of selected monitors.
    monitor_conf SyntheticTaskMonitorConfArgs
    Monitoring configuration. See monitor_conf below.
    monitors Sequence[SyntheticTaskMonitorArgs]
    List of selected monitors. See monitors below.
    synthetic_task_name str
    The name of synthetic task.
    task_type int
    The type of synthetic task.
    available_assertions Sequence[SyntheticTaskAvailableAssertionArgs]
    Assertion List. See available_assertions below.
    common_setting SyntheticTaskCommonSettingArgs
    Common settings. See common_setting below.
    custom_period SyntheticTaskCustomPeriodArgs
    Custom Cycle. See custom_period below.
    resource_group_id str
    Describes which resource group the resource belongs.
    status str
    task status.
    tags Mapping[str, Any]
    The list of tags.
    frequency String
    Frequency.
    monitorCategory Number
    Classification of selected monitors.
    monitorConf Property Map
    Monitoring configuration. See monitor_conf below.
    monitors List<Property Map>
    List of selected monitors. See monitors below.
    syntheticTaskName String
    The name of synthetic task.
    taskType Number
    The type of synthetic task.
    availableAssertions List<Property Map>
    Assertion List. See available_assertions below.
    commonSetting Property Map
    Common settings. See common_setting below.
    customPeriod Property Map
    Custom Cycle. See custom_period below.
    resourceGroupId String
    Describes which resource group the resource belongs.
    status String
    task status.
    tags Map<Any>
    The list of tags.

    Outputs

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

    Get an existing SyntheticTask 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?: SyntheticTaskState, opts?: CustomResourceOptions): SyntheticTask
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            available_assertions: Optional[Sequence[SyntheticTaskAvailableAssertionArgs]] = None,
            common_setting: Optional[SyntheticTaskCommonSettingArgs] = None,
            custom_period: Optional[SyntheticTaskCustomPeriodArgs] = None,
            frequency: Optional[str] = None,
            monitor_category: Optional[int] = None,
            monitor_conf: Optional[SyntheticTaskMonitorConfArgs] = None,
            monitors: Optional[Sequence[SyntheticTaskMonitorArgs]] = None,
            resource_group_id: Optional[str] = None,
            status: Optional[str] = None,
            synthetic_task_name: Optional[str] = None,
            tags: Optional[Mapping[str, Any]] = None,
            task_type: Optional[int] = None) -> SyntheticTask
    func GetSyntheticTask(ctx *Context, name string, id IDInput, state *SyntheticTaskState, opts ...ResourceOption) (*SyntheticTask, error)
    public static SyntheticTask Get(string name, Input<string> id, SyntheticTaskState? state, CustomResourceOptions? opts = null)
    public static SyntheticTask get(String name, Output<String> id, SyntheticTaskState 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:
    AvailableAssertions List<Pulumi.AliCloud.Arms.Inputs.SyntheticTaskAvailableAssertion>
    Assertion List. See available_assertions below.
    CommonSetting Pulumi.AliCloud.Arms.Inputs.SyntheticTaskCommonSetting
    Common settings. See common_setting below.
    CustomPeriod Pulumi.AliCloud.Arms.Inputs.SyntheticTaskCustomPeriod
    Custom Cycle. See custom_period below.
    Frequency string
    Frequency.
    MonitorCategory int
    Classification of selected monitors.
    MonitorConf Pulumi.AliCloud.Arms.Inputs.SyntheticTaskMonitorConf
    Monitoring configuration. See monitor_conf below.
    Monitors List<Pulumi.AliCloud.Arms.Inputs.SyntheticTaskMonitor>
    List of selected monitors. See monitors below.
    ResourceGroupId string
    Describes which resource group the resource belongs.
    Status string
    task status.
    SyntheticTaskName string
    The name of synthetic task.
    Tags Dictionary<string, object>
    The list of tags.
    TaskType int
    The type of synthetic task.
    AvailableAssertions []SyntheticTaskAvailableAssertionArgs
    Assertion List. See available_assertions below.
    CommonSetting SyntheticTaskCommonSettingArgs
    Common settings. See common_setting below.
    CustomPeriod SyntheticTaskCustomPeriodArgs
    Custom Cycle. See custom_period below.
    Frequency string
    Frequency.
    MonitorCategory int
    Classification of selected monitors.
    MonitorConf SyntheticTaskMonitorConfArgs
    Monitoring configuration. See monitor_conf below.
    Monitors []SyntheticTaskMonitorArgs
    List of selected monitors. See monitors below.
    ResourceGroupId string
    Describes which resource group the resource belongs.
    Status string
    task status.
    SyntheticTaskName string
    The name of synthetic task.
    Tags map[string]interface{}
    The list of tags.
    TaskType int
    The type of synthetic task.
    availableAssertions List<SyntheticTaskAvailableAssertion>
    Assertion List. See available_assertions below.
    commonSetting SyntheticTaskCommonSetting
    Common settings. See common_setting below.
    customPeriod SyntheticTaskCustomPeriod
    Custom Cycle. See custom_period below.
    frequency String
    Frequency.
    monitorCategory Integer
    Classification of selected monitors.
    monitorConf SyntheticTaskMonitorConf
    Monitoring configuration. See monitor_conf below.
    monitors List<SyntheticTaskMonitor>
    List of selected monitors. See monitors below.
    resourceGroupId String
    Describes which resource group the resource belongs.
    status String
    task status.
    syntheticTaskName String
    The name of synthetic task.
    tags Map<String,Object>
    The list of tags.
    taskType Integer
    The type of synthetic task.
    availableAssertions SyntheticTaskAvailableAssertion[]
    Assertion List. See available_assertions below.
    commonSetting SyntheticTaskCommonSetting
    Common settings. See common_setting below.
    customPeriod SyntheticTaskCustomPeriod
    Custom Cycle. See custom_period below.
    frequency string
    Frequency.
    monitorCategory number
    Classification of selected monitors.
    monitorConf SyntheticTaskMonitorConf
    Monitoring configuration. See monitor_conf below.
    monitors SyntheticTaskMonitor[]
    List of selected monitors. See monitors below.
    resourceGroupId string
    Describes which resource group the resource belongs.
    status string
    task status.
    syntheticTaskName string
    The name of synthetic task.
    tags {[key: string]: any}
    The list of tags.
    taskType number
    The type of synthetic task.
    available_assertions Sequence[SyntheticTaskAvailableAssertionArgs]
    Assertion List. See available_assertions below.
    common_setting SyntheticTaskCommonSettingArgs
    Common settings. See common_setting below.
    custom_period SyntheticTaskCustomPeriodArgs
    Custom Cycle. See custom_period below.
    frequency str
    Frequency.
    monitor_category int
    Classification of selected monitors.
    monitor_conf SyntheticTaskMonitorConfArgs
    Monitoring configuration. See monitor_conf below.
    monitors Sequence[SyntheticTaskMonitorArgs]
    List of selected monitors. See monitors below.
    resource_group_id str
    Describes which resource group the resource belongs.
    status str
    task status.
    synthetic_task_name str
    The name of synthetic task.
    tags Mapping[str, Any]
    The list of tags.
    task_type int
    The type of synthetic task.
    availableAssertions List<Property Map>
    Assertion List. See available_assertions below.
    commonSetting Property Map
    Common settings. See common_setting below.
    customPeriod Property Map
    Custom Cycle. See custom_period below.
    frequency String
    Frequency.
    monitorCategory Number
    Classification of selected monitors.
    monitorConf Property Map
    Monitoring configuration. See monitor_conf below.
    monitors List<Property Map>
    List of selected monitors. See monitors below.
    resourceGroupId String
    Describes which resource group the resource belongs.
    status String
    task status.
    syntheticTaskName String
    The name of synthetic task.
    tags Map<Any>
    The list of tags.
    taskType Number
    The type of synthetic task.

    Supporting Types

    SyntheticTaskAvailableAssertion, SyntheticTaskAvailableAssertionArgs

    Expect string
    Expected value.
    Operator string
    Condition: gt: greater than; gte: greater than or equal to; lt: less than; te: less than or equal to; eq: equal to; neq: not equal to; ctn: contains; nctn: does not contain; exist: exists; n_exist: does not exist; belong: belongs to; reg_match: regular matching.
    Type string
    Assertion type, including: httpresead, httpresead, HttpResBody, HttpResBodyJson, httpressetime, IcmpPackLoss (packet loss rate), IcmpPackMaxLatency (maximum packet delay ms), icmppackwebscreen, fmppackavglatency (average delay rendering), TraceRouteHops (number of hops), dnsarecname, websiteOnload (full load time), see the supplement below for specific use.
    Target string
    Check the target. If the target is HttpResCode, HttpResBody, or httpressetime, you do not need to specify the target. If the target is HttpResHead, you need to specify the key in the header. If the target is HttpResHead, you need to use jsonPath.
    Expect string
    Expected value.
    Operator string
    Condition: gt: greater than; gte: greater than or equal to; lt: less than; te: less than or equal to; eq: equal to; neq: not equal to; ctn: contains; nctn: does not contain; exist: exists; n_exist: does not exist; belong: belongs to; reg_match: regular matching.
    Type string
    Assertion type, including: httpresead, httpresead, HttpResBody, HttpResBodyJson, httpressetime, IcmpPackLoss (packet loss rate), IcmpPackMaxLatency (maximum packet delay ms), icmppackwebscreen, fmppackavglatency (average delay rendering), TraceRouteHops (number of hops), dnsarecname, websiteOnload (full load time), see the supplement below for specific use.
    Target string
    Check the target. If the target is HttpResCode, HttpResBody, or httpressetime, you do not need to specify the target. If the target is HttpResHead, you need to specify the key in the header. If the target is HttpResHead, you need to use jsonPath.
    expect String
    Expected value.
    operator String
    Condition: gt: greater than; gte: greater than or equal to; lt: less than; te: less than or equal to; eq: equal to; neq: not equal to; ctn: contains; nctn: does not contain; exist: exists; n_exist: does not exist; belong: belongs to; reg_match: regular matching.
    type String
    Assertion type, including: httpresead, httpresead, HttpResBody, HttpResBodyJson, httpressetime, IcmpPackLoss (packet loss rate), IcmpPackMaxLatency (maximum packet delay ms), icmppackwebscreen, fmppackavglatency (average delay rendering), TraceRouteHops (number of hops), dnsarecname, websiteOnload (full load time), see the supplement below for specific use.
    target String
    Check the target. If the target is HttpResCode, HttpResBody, or httpressetime, you do not need to specify the target. If the target is HttpResHead, you need to specify the key in the header. If the target is HttpResHead, you need to use jsonPath.
    expect string
    Expected value.
    operator string
    Condition: gt: greater than; gte: greater than or equal to; lt: less than; te: less than or equal to; eq: equal to; neq: not equal to; ctn: contains; nctn: does not contain; exist: exists; n_exist: does not exist; belong: belongs to; reg_match: regular matching.
    type string
    Assertion type, including: httpresead, httpresead, HttpResBody, HttpResBodyJson, httpressetime, IcmpPackLoss (packet loss rate), IcmpPackMaxLatency (maximum packet delay ms), icmppackwebscreen, fmppackavglatency (average delay rendering), TraceRouteHops (number of hops), dnsarecname, websiteOnload (full load time), see the supplement below for specific use.
    target string
    Check the target. If the target is HttpResCode, HttpResBody, or httpressetime, you do not need to specify the target. If the target is HttpResHead, you need to specify the key in the header. If the target is HttpResHead, you need to use jsonPath.
    expect str
    Expected value.
    operator str
    Condition: gt: greater than; gte: greater than or equal to; lt: less than; te: less than or equal to; eq: equal to; neq: not equal to; ctn: contains; nctn: does not contain; exist: exists; n_exist: does not exist; belong: belongs to; reg_match: regular matching.
    type str
    Assertion type, including: httpresead, httpresead, HttpResBody, HttpResBodyJson, httpressetime, IcmpPackLoss (packet loss rate), IcmpPackMaxLatency (maximum packet delay ms), icmppackwebscreen, fmppackavglatency (average delay rendering), TraceRouteHops (number of hops), dnsarecname, websiteOnload (full load time), see the supplement below for specific use.
    target str
    Check the target. If the target is HttpResCode, HttpResBody, or httpressetime, you do not need to specify the target. If the target is HttpResHead, you need to specify the key in the header. If the target is HttpResHead, you need to use jsonPath.
    expect String
    Expected value.
    operator String
    Condition: gt: greater than; gte: greater than or equal to; lt: less than; te: less than or equal to; eq: equal to; neq: not equal to; ctn: contains; nctn: does not contain; exist: exists; n_exist: does not exist; belong: belongs to; reg_match: regular matching.
    type String
    Assertion type, including: httpresead, httpresead, HttpResBody, HttpResBodyJson, httpressetime, IcmpPackLoss (packet loss rate), IcmpPackMaxLatency (maximum packet delay ms), icmppackwebscreen, fmppackavglatency (average delay rendering), TraceRouteHops (number of hops), dnsarecname, websiteOnload (full load time), see the supplement below for specific use.
    target String
    Check the target. If the target is HttpResCode, HttpResBody, or httpressetime, you do not need to specify the target. If the target is HttpResHead, you need to specify the key in the header. If the target is HttpResHead, you need to use jsonPath.

    SyntheticTaskCommonSetting, SyntheticTaskCommonSettingArgs

    CustomHost Pulumi.AliCloud.Arms.Inputs.SyntheticTaskCommonSettingCustomHost
    Custom host. See custom_host below.
    IpType int
    IpType.
    IsOpenTrace bool
    Whether to enable link tracking.
    MonitorSamples int
    Whether the monitoring samples are evenly distributed:

    • 0: No 1: Yes.
    TraceClientType int
    Link trace client type:

    • 0:ARMS Agent
    • 1:OpenTelemetry
    • 2:Jaeger.
    XtraceRegion string
    The link data is reported to the region.
    CustomHost SyntheticTaskCommonSettingCustomHost
    Custom host. See custom_host below.
    IpType int
    IpType.
    IsOpenTrace bool
    Whether to enable link tracking.
    MonitorSamples int
    Whether the monitoring samples are evenly distributed:

    • 0: No 1: Yes.
    TraceClientType int
    Link trace client type:

    • 0:ARMS Agent
    • 1:OpenTelemetry
    • 2:Jaeger.
    XtraceRegion string
    The link data is reported to the region.
    customHost SyntheticTaskCommonSettingCustomHost
    Custom host. See custom_host below.
    ipType Integer
    IpType.
    isOpenTrace Boolean
    Whether to enable link tracking.
    monitorSamples Integer
    Whether the monitoring samples are evenly distributed:

    • 0: No 1: Yes.
    traceClientType Integer
    Link trace client type:

    • 0:ARMS Agent
    • 1:OpenTelemetry
    • 2:Jaeger.
    xtraceRegion String
    The link data is reported to the region.
    customHost SyntheticTaskCommonSettingCustomHost
    Custom host. See custom_host below.
    ipType number
    IpType.
    isOpenTrace boolean
    Whether to enable link tracking.
    monitorSamples number
    Whether the monitoring samples are evenly distributed:

    • 0: No 1: Yes.
    traceClientType number
    Link trace client type:

    • 0:ARMS Agent
    • 1:OpenTelemetry
    • 2:Jaeger.
    xtraceRegion string
    The link data is reported to the region.
    custom_host SyntheticTaskCommonSettingCustomHost
    Custom host. See custom_host below.
    ip_type int
    IpType.
    is_open_trace bool
    Whether to enable link tracking.
    monitor_samples int
    Whether the monitoring samples are evenly distributed:

    • 0: No 1: Yes.
    trace_client_type int
    Link trace client type:

    • 0:ARMS Agent
    • 1:OpenTelemetry
    • 2:Jaeger.
    xtrace_region str
    The link data is reported to the region.
    customHost Property Map
    Custom host. See custom_host below.
    ipType Number
    IpType.
    isOpenTrace Boolean
    Whether to enable link tracking.
    monitorSamples Number
    Whether the monitoring samples are evenly distributed:

    • 0: No 1: Yes.
    traceClientType Number
    Link trace client type:

    • 0:ARMS Agent
    • 1:OpenTelemetry
    • 2:Jaeger.
    xtraceRegion String
    The link data is reported to the region.

    SyntheticTaskCommonSettingCustomHost, SyntheticTaskCommonSettingCustomHostArgs

    SyntheticTaskCommonSettingCustomHostHost, SyntheticTaskCommonSettingCustomHostHostArgs

    Domain string
    IpType int
    Ips List<string>
    Domain string
    IpType int
    Ips []string
    domain String
    ipType Integer
    ips List<String>
    domain string
    ipType number
    ips string[]
    domain str
    ip_type int
    ips Sequence[str]
    domain String
    ipType Number
    ips List<String>

    SyntheticTaskCustomPeriod, SyntheticTaskCustomPeriodArgs

    EndHour int
    End hours, 0-24.
    StartHour int
    Starting hours, 0-24.
    EndHour int
    End hours, 0-24.
    StartHour int
    Starting hours, 0-24.
    endHour Integer
    End hours, 0-24.
    startHour Integer
    Starting hours, 0-24.
    endHour number
    End hours, 0-24.
    startHour number
    Starting hours, 0-24.
    end_hour int
    End hours, 0-24.
    start_hour int
    Starting hours, 0-24.
    endHour Number
    End hours, 0-24.
    startHour Number
    Starting hours, 0-24.

    SyntheticTaskMonitor, SyntheticTaskMonitorArgs

    CityCode string
    The city code of monitor.
    ClientType int
    The type of monitor.
    OperatorCode string
    The operator code of monitor.
    CityCode string
    The city code of monitor.
    ClientType int
    The type of monitor.
    OperatorCode string
    The operator code of monitor.
    cityCode String
    The city code of monitor.
    clientType Integer
    The type of monitor.
    operatorCode String
    The operator code of monitor.
    cityCode string
    The city code of monitor.
    clientType number
    The type of monitor.
    operatorCode string
    The operator code of monitor.
    city_code str
    The city code of monitor.
    client_type int
    The type of monitor.
    operator_code str
    The operator code of monitor.
    cityCode String
    The city code of monitor.
    clientType Number
    The type of monitor.
    operatorCode String
    The operator code of monitor.

    SyntheticTaskMonitorConf, SyntheticTaskMonitorConfArgs

    ApiHttp Pulumi.AliCloud.Arms.Inputs.SyntheticTaskMonitorConfApiHttp
    HTTP(S) task configuration information. See api_http below.
    FileDownload Pulumi.AliCloud.Arms.Inputs.SyntheticTaskMonitorConfFileDownload
    File download type task configuration. See file_download below.
    NetDns Pulumi.AliCloud.Arms.Inputs.SyntheticTaskMonitorConfNetDns
    The configuration parameters of the DNS dial test. Required when TaskType is 3. See net_dns below.
    NetIcmp Pulumi.AliCloud.Arms.Inputs.SyntheticTaskMonitorConfNetIcmp
    ICMP dialing configuration parameters. Required when TaskType is 1. See net_icmp below.
    NetTcp Pulumi.AliCloud.Arms.Inputs.SyntheticTaskMonitorConfNetTcp
    The configuration parameters of TCP dial test. Required when TaskType is 2. See net_tcp below.
    Stream Pulumi.AliCloud.Arms.Inputs.SyntheticTaskMonitorConfStream
    Streaming Media Dial Test Configuration. See stream below.
    Website Pulumi.AliCloud.Arms.Inputs.SyntheticTaskMonitorConfWebsite
    Website speed measurement type task configuration. See website below.
    ApiHttp SyntheticTaskMonitorConfApiHttp
    HTTP(S) task configuration information. See api_http below.
    FileDownload SyntheticTaskMonitorConfFileDownload
    File download type task configuration. See file_download below.
    NetDns SyntheticTaskMonitorConfNetDns
    The configuration parameters of the DNS dial test. Required when TaskType is 3. See net_dns below.
    NetIcmp SyntheticTaskMonitorConfNetIcmp
    ICMP dialing configuration parameters. Required when TaskType is 1. See net_icmp below.
    NetTcp SyntheticTaskMonitorConfNetTcp
    The configuration parameters of TCP dial test. Required when TaskType is 2. See net_tcp below.
    Stream SyntheticTaskMonitorConfStream
    Streaming Media Dial Test Configuration. See stream below.
    Website SyntheticTaskMonitorConfWebsite
    Website speed measurement type task configuration. See website below.
    apiHttp SyntheticTaskMonitorConfApiHttp
    HTTP(S) task configuration information. See api_http below.
    fileDownload SyntheticTaskMonitorConfFileDownload
    File download type task configuration. See file_download below.
    netDns SyntheticTaskMonitorConfNetDns
    The configuration parameters of the DNS dial test. Required when TaskType is 3. See net_dns below.
    netIcmp SyntheticTaskMonitorConfNetIcmp
    ICMP dialing configuration parameters. Required when TaskType is 1. See net_icmp below.
    netTcp SyntheticTaskMonitorConfNetTcp
    The configuration parameters of TCP dial test. Required when TaskType is 2. See net_tcp below.
    stream SyntheticTaskMonitorConfStream
    Streaming Media Dial Test Configuration. See stream below.
    website SyntheticTaskMonitorConfWebsite
    Website speed measurement type task configuration. See website below.
    apiHttp SyntheticTaskMonitorConfApiHttp
    HTTP(S) task configuration information. See api_http below.
    fileDownload SyntheticTaskMonitorConfFileDownload
    File download type task configuration. See file_download below.
    netDns SyntheticTaskMonitorConfNetDns
    The configuration parameters of the DNS dial test. Required when TaskType is 3. See net_dns below.
    netIcmp SyntheticTaskMonitorConfNetIcmp
    ICMP dialing configuration parameters. Required when TaskType is 1. See net_icmp below.
    netTcp SyntheticTaskMonitorConfNetTcp
    The configuration parameters of TCP dial test. Required when TaskType is 2. See net_tcp below.
    stream SyntheticTaskMonitorConfStream
    Streaming Media Dial Test Configuration. See stream below.
    website SyntheticTaskMonitorConfWebsite
    Website speed measurement type task configuration. See website below.
    api_http SyntheticTaskMonitorConfApiHttp
    HTTP(S) task configuration information. See api_http below.
    file_download SyntheticTaskMonitorConfFileDownload
    File download type task configuration. See file_download below.
    net_dns SyntheticTaskMonitorConfNetDns
    The configuration parameters of the DNS dial test. Required when TaskType is 3. See net_dns below.
    net_icmp SyntheticTaskMonitorConfNetIcmp
    ICMP dialing configuration parameters. Required when TaskType is 1. See net_icmp below.
    net_tcp SyntheticTaskMonitorConfNetTcp
    The configuration parameters of TCP dial test. Required when TaskType is 2. See net_tcp below.
    stream SyntheticTaskMonitorConfStream
    Streaming Media Dial Test Configuration. See stream below.
    website SyntheticTaskMonitorConfWebsite
    Website speed measurement type task configuration. See website below.
    apiHttp Property Map
    HTTP(S) task configuration information. See api_http below.
    fileDownload Property Map
    File download type task configuration. See file_download below.
    netDns Property Map
    The configuration parameters of the DNS dial test. Required when TaskType is 3. See net_dns below.
    netIcmp Property Map
    ICMP dialing configuration parameters. Required when TaskType is 1. See net_icmp below.
    netTcp Property Map
    The configuration parameters of TCP dial test. Required when TaskType is 2. See net_tcp below.
    stream Property Map
    Streaming Media Dial Test Configuration. See stream below.
    website Property Map
    Website speed measurement type task configuration. See website below.

    SyntheticTaskMonitorConfApiHttp, SyntheticTaskMonitorConfApiHttpArgs

    SyntheticTaskMonitorConfApiHttpRequestBody, SyntheticTaskMonitorConfApiHttpRequestBodyArgs

    Content string
    Type string
    Content string
    Type string
    content String
    type String
    content string
    type string
    content str
    type str
    content String
    type String

    SyntheticTaskMonitorConfFileDownload, SyntheticTaskMonitorConfFileDownloadArgs

    SyntheticTaskMonitorConfNetDns, SyntheticTaskMonitorConfNetDnsArgs

    targetUrl String
    dnsServerIpType Integer
    nsServer String
    queryMethod Integer
    timeout Integer
    targetUrl string
    dnsServerIpType number
    nsServer string
    queryMethod number
    timeout number
    targetUrl String
    dnsServerIpType Number
    nsServer String
    queryMethod Number
    timeout Number

    SyntheticTaskMonitorConfNetIcmp, SyntheticTaskMonitorConfNetIcmpArgs

    targetUrl String
    interval Integer
    packageNum Integer
    packageSize Integer
    splitPackage Boolean
    timeout Integer
    tracertEnable Boolean
    tracertNumMax Integer
    tracertTimeout Integer
    targetUrl string
    interval number
    packageNum number
    packageSize number
    splitPackage boolean
    timeout number
    tracertEnable boolean
    tracertNumMax number
    tracertTimeout number
    targetUrl String
    interval Number
    packageNum Number
    packageSize Number
    splitPackage Boolean
    timeout Number
    tracertEnable Boolean
    tracertNumMax Number
    tracertTimeout Number

    SyntheticTaskMonitorConfNetTcp, SyntheticTaskMonitorConfNetTcpArgs

    targetUrl String
    connectTimes Integer
    interval Integer
    timeout Integer
    tracertEnable Boolean
    tracertNumMax Integer
    tracertTimeout Integer

    SyntheticTaskMonitorConfStream, SyntheticTaskMonitorConfStreamArgs

    customHeaderContent Map<String,Object>
    playerType Integer
    streamAddressType Integer
    streamMonitorTimeout Integer
    streamType Integer
    targetUrl String
    whiteList String
    customHeaderContent {[key: string]: any}
    playerType number
    streamAddressType number
    streamMonitorTimeout number
    streamType number
    targetUrl string
    whiteList string

    SyntheticTaskMonitorConfWebsite, SyntheticTaskMonitorConfWebsiteArgs

    Import

    ARMS Synthetic Task can be imported using the id, e.g.

    $ pulumi import alicloud:arms/syntheticTask:SyntheticTask example <id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.55.0 published on Tuesday, Apr 30, 2024 by Pulumi