tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack
tencentcloud.getDayuDdosPolicyAttachments
Explore with Pulumi AI
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack
Use this data source to query detailed information of dayu DDoS policy attachments
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const fooType = tencentcloud.getDayuDdosPolicyAttachments({
    resourceType: tencentcloud_dayu_ddos_policy_attachment.dayu_ddos_policy_attachment.resource_type,
});
const fooResource = tencentcloud.getDayuDdosPolicyAttachments({
    resourceId: tencentcloud_dayu_ddos_policy_attachment.dayu_ddos_policy_attachment.resource_id,
    resourceType: tencentcloud_dayu_ddos_policy_attachment.dayu_ddos_policy_attachment.resource_type,
});
const fooPolicy = tencentcloud.getDayuDdosPolicyAttachments({
    resourceType: tencentcloud_dayu_ddos_policy_attachment.dayu_ddos_policy_attachment.resource_type,
    policyId: tencentcloud_dayu_ddos_policy_attachment.dayu_ddos_policy_attachment.policy_id,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
foo_type = tencentcloud.get_dayu_ddos_policy_attachments(resource_type=tencentcloud_dayu_ddos_policy_attachment["dayu_ddos_policy_attachment"]["resource_type"])
foo_resource = tencentcloud.get_dayu_ddos_policy_attachments(resource_id=tencentcloud_dayu_ddos_policy_attachment["dayu_ddos_policy_attachment"]["resource_id"],
    resource_type=tencentcloud_dayu_ddos_policy_attachment["dayu_ddos_policy_attachment"]["resource_type"])
foo_policy = tencentcloud.get_dayu_ddos_policy_attachments(resource_type=tencentcloud_dayu_ddos_policy_attachment["dayu_ddos_policy_attachment"]["resource_type"],
    policy_id=tencentcloud_dayu_ddos_policy_attachment["dayu_ddos_policy_attachment"]["policy_id"])
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := tencentcloud.GetDayuDdosPolicyAttachments(ctx, &tencentcloud.GetDayuDdosPolicyAttachmentsArgs{
			ResourceType: tencentcloud_dayu_ddos_policy_attachment.Dayu_ddos_policy_attachment.Resource_type,
		}, nil)
		if err != nil {
			return err
		}
		_, err = tencentcloud.GetDayuDdosPolicyAttachments(ctx, &tencentcloud.GetDayuDdosPolicyAttachmentsArgs{
			ResourceId:   pulumi.StringRef(tencentcloud_dayu_ddos_policy_attachment.Dayu_ddos_policy_attachment.Resource_id),
			ResourceType: tencentcloud_dayu_ddos_policy_attachment.Dayu_ddos_policy_attachment.Resource_type,
		}, nil)
		if err != nil {
			return err
		}
		_, err = tencentcloud.GetDayuDdosPolicyAttachments(ctx, &tencentcloud.GetDayuDdosPolicyAttachmentsArgs{
			ResourceType: tencentcloud_dayu_ddos_policy_attachment.Dayu_ddos_policy_attachment.Resource_type,
			PolicyId:     pulumi.StringRef(tencentcloud_dayu_ddos_policy_attachment.Dayu_ddos_policy_attachment.Policy_id),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() => 
{
    var fooType = Tencentcloud.GetDayuDdosPolicyAttachments.Invoke(new()
    {
        ResourceType = tencentcloud_dayu_ddos_policy_attachment.Dayu_ddos_policy_attachment.Resource_type,
    });
    var fooResource = Tencentcloud.GetDayuDdosPolicyAttachments.Invoke(new()
    {
        ResourceId = tencentcloud_dayu_ddos_policy_attachment.Dayu_ddos_policy_attachment.Resource_id,
        ResourceType = tencentcloud_dayu_ddos_policy_attachment.Dayu_ddos_policy_attachment.Resource_type,
    });
    var fooPolicy = Tencentcloud.GetDayuDdosPolicyAttachments.Invoke(new()
    {
        ResourceType = tencentcloud_dayu_ddos_policy_attachment.Dayu_ddos_policy_attachment.Resource_type,
        PolicyId = tencentcloud_dayu_ddos_policy_attachment.Dayu_ddos_policy_attachment.Policy_id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetDayuDdosPolicyAttachmentsArgs;
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 fooType = TencentcloudFunctions.getDayuDdosPolicyAttachments(GetDayuDdosPolicyAttachmentsArgs.builder()
            .resourceType(tencentcloud_dayu_ddos_policy_attachment.dayu_ddos_policy_attachment().resource_type())
            .build());
        final var fooResource = TencentcloudFunctions.getDayuDdosPolicyAttachments(GetDayuDdosPolicyAttachmentsArgs.builder()
            .resourceId(tencentcloud_dayu_ddos_policy_attachment.dayu_ddos_policy_attachment().resource_id())
            .resourceType(tencentcloud_dayu_ddos_policy_attachment.dayu_ddos_policy_attachment().resource_type())
            .build());
        final var fooPolicy = TencentcloudFunctions.getDayuDdosPolicyAttachments(GetDayuDdosPolicyAttachmentsArgs.builder()
            .resourceType(tencentcloud_dayu_ddos_policy_attachment.dayu_ddos_policy_attachment().resource_type())
            .policyId(tencentcloud_dayu_ddos_policy_attachment.dayu_ddos_policy_attachment().policy_id())
            .build());
    }
}
variables:
  fooType:
    fn::invoke:
      function: tencentcloud:getDayuDdosPolicyAttachments
      arguments:
        resourceType: ${tencentcloud_dayu_ddos_policy_attachment.dayu_ddos_policy_attachment.resource_type}
  fooResource:
    fn::invoke:
      function: tencentcloud:getDayuDdosPolicyAttachments
      arguments:
        resourceId: ${tencentcloud_dayu_ddos_policy_attachment.dayu_ddos_policy_attachment.resource_id}
        resourceType: ${tencentcloud_dayu_ddos_policy_attachment.dayu_ddos_policy_attachment.resource_type}
  fooPolicy:
    fn::invoke:
      function: tencentcloud:getDayuDdosPolicyAttachments
      arguments:
        resourceType: ${tencentcloud_dayu_ddos_policy_attachment.dayu_ddos_policy_attachment.resource_type}
        policyId: ${tencentcloud_dayu_ddos_policy_attachment.dayu_ddos_policy_attachment.policy_id}
Using getDayuDdosPolicyAttachments
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDayuDdosPolicyAttachments(args: GetDayuDdosPolicyAttachmentsArgs, opts?: InvokeOptions): Promise<GetDayuDdosPolicyAttachmentsResult>
function getDayuDdosPolicyAttachmentsOutput(args: GetDayuDdosPolicyAttachmentsOutputArgs, opts?: InvokeOptions): Output<GetDayuDdosPolicyAttachmentsResult>def get_dayu_ddos_policy_attachments(id: Optional[str] = None,
                                     policy_id: Optional[str] = None,
                                     resource_id: Optional[str] = None,
                                     resource_type: Optional[str] = None,
                                     result_output_file: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetDayuDdosPolicyAttachmentsResult
def get_dayu_ddos_policy_attachments_output(id: Optional[pulumi.Input[str]] = None,
                                     policy_id: Optional[pulumi.Input[str]] = None,
                                     resource_id: Optional[pulumi.Input[str]] = None,
                                     resource_type: Optional[pulumi.Input[str]] = None,
                                     result_output_file: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetDayuDdosPolicyAttachmentsResult]func GetDayuDdosPolicyAttachments(ctx *Context, args *GetDayuDdosPolicyAttachmentsArgs, opts ...InvokeOption) (*GetDayuDdosPolicyAttachmentsResult, error)
func GetDayuDdosPolicyAttachmentsOutput(ctx *Context, args *GetDayuDdosPolicyAttachmentsOutputArgs, opts ...InvokeOption) GetDayuDdosPolicyAttachmentsResultOutput> Note: This function is named GetDayuDdosPolicyAttachments in the Go SDK.
public static class GetDayuDdosPolicyAttachments 
{
    public static Task<GetDayuDdosPolicyAttachmentsResult> InvokeAsync(GetDayuDdosPolicyAttachmentsArgs args, InvokeOptions? opts = null)
    public static Output<GetDayuDdosPolicyAttachmentsResult> Invoke(GetDayuDdosPolicyAttachmentsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDayuDdosPolicyAttachmentsResult> getDayuDdosPolicyAttachments(GetDayuDdosPolicyAttachmentsArgs args, InvokeOptions options)
public static Output<GetDayuDdosPolicyAttachmentsResult> getDayuDdosPolicyAttachments(GetDayuDdosPolicyAttachmentsArgs args, InvokeOptions options)
fn::invoke:
  function: tencentcloud:index/getDayuDdosPolicyAttachments:getDayuDdosPolicyAttachments
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ResourceType string
- Type of the resource that the DDoS policy works for, valid values are bgpip,bgp,bgp-multipandnet.
- Id string
- PolicyId string
- Id of the policy to be queried.
- ResourceId string
- ID of the attached resource to be queried.
- ResultOutput stringFile 
- Used to save results.
- ResourceType string
- Type of the resource that the DDoS policy works for, valid values are bgpip,bgp,bgp-multipandnet.
- Id string
- PolicyId string
- Id of the policy to be queried.
- ResourceId string
- ID of the attached resource to be queried.
- ResultOutput stringFile 
- Used to save results.
- resourceType String
- Type of the resource that the DDoS policy works for, valid values are bgpip,bgp,bgp-multipandnet.
- id String
- policyId String
- Id of the policy to be queried.
- resourceId String
- ID of the attached resource to be queried.
- resultOutput StringFile 
- Used to save results.
- resourceType string
- Type of the resource that the DDoS policy works for, valid values are bgpip,bgp,bgp-multipandnet.
- id string
- policyId string
- Id of the policy to be queried.
- resourceId string
- ID of the attached resource to be queried.
- resultOutput stringFile 
- Used to save results.
- resource_type str
- Type of the resource that the DDoS policy works for, valid values are bgpip,bgp,bgp-multipandnet.
- id str
- policy_id str
- Id of the policy to be queried.
- resource_id str
- ID of the attached resource to be queried.
- result_output_ strfile 
- Used to save results.
- resourceType String
- Type of the resource that the DDoS policy works for, valid values are bgpip,bgp,bgp-multipandnet.
- id String
- policyId String
- Id of the policy to be queried.
- resourceId String
- ID of the attached resource to be queried.
- resultOutput StringFile 
- Used to save results.
getDayuDdosPolicyAttachments Result
The following output properties are available:
- DayuDdos List<GetPolicy Attachment Lists Dayu Ddos Policy Attachments Dayu Ddos Policy Attachment List> 
- A list of dayu DDoS policy attachments. Each element contains the following attributes:
- Id string
- ResourceType string
- Type of the resource that the DDoS policy works for.
- PolicyId string
- ID of the policy.
- ResourceId string
- ID of the attached resource.
- ResultOutput stringFile 
- DayuDdos []GetPolicy Attachment Lists Dayu Ddos Policy Attachments Dayu Ddos Policy Attachment List 
- A list of dayu DDoS policy attachments. Each element contains the following attributes:
- Id string
- ResourceType string
- Type of the resource that the DDoS policy works for.
- PolicyId string
- ID of the policy.
- ResourceId string
- ID of the attached resource.
- ResultOutput stringFile 
- dayuDdos List<GetPolicy Attachment Lists Dayu Ddos Policy Attachments Dayu Ddos Policy Attachment List> 
- A list of dayu DDoS policy attachments. Each element contains the following attributes:
- id String
- resourceType String
- Type of the resource that the DDoS policy works for.
- policyId String
- ID of the policy.
- resourceId String
- ID of the attached resource.
- resultOutput StringFile 
- dayuDdos GetPolicy Attachment Lists Dayu Ddos Policy Attachments Dayu Ddos Policy Attachment List[] 
- A list of dayu DDoS policy attachments. Each element contains the following attributes:
- id string
- resourceType string
- Type of the resource that the DDoS policy works for.
- policyId string
- ID of the policy.
- resourceId string
- ID of the attached resource.
- resultOutput stringFile 
- dayu_ddos_ Sequence[Getpolicy_ attachment_ lists Dayu Ddos Policy Attachments Dayu Ddos Policy Attachment List] 
- A list of dayu DDoS policy attachments. Each element contains the following attributes:
- id str
- resource_type str
- Type of the resource that the DDoS policy works for.
- policy_id str
- ID of the policy.
- resource_id str
- ID of the attached resource.
- result_output_ strfile 
- dayuDdos List<Property Map>Policy Attachment Lists 
- A list of dayu DDoS policy attachments. Each element contains the following attributes:
- id String
- resourceType String
- Type of the resource that the DDoS policy works for.
- policyId String
- ID of the policy.
- resourceId String
- ID of the attached resource.
- resultOutput StringFile 
Supporting Types
GetDayuDdosPolicyAttachmentsDayuDdosPolicyAttachmentList         
- PolicyId string
- Id of the policy to be queried.
- ResourceId string
- ID of the attached resource to be queried.
- ResourceType string
- Type of the resource that the DDoS policy works for, valid values are bgpip,bgp,bgp-multipandnet.
- PolicyId string
- Id of the policy to be queried.
- ResourceId string
- ID of the attached resource to be queried.
- ResourceType string
- Type of the resource that the DDoS policy works for, valid values are bgpip,bgp,bgp-multipandnet.
- policyId String
- Id of the policy to be queried.
- resourceId String
- ID of the attached resource to be queried.
- resourceType String
- Type of the resource that the DDoS policy works for, valid values are bgpip,bgp,bgp-multipandnet.
- policyId string
- Id of the policy to be queried.
- resourceId string
- ID of the attached resource to be queried.
- resourceType string
- Type of the resource that the DDoS policy works for, valid values are bgpip,bgp,bgp-multipandnet.
- policy_id str
- Id of the policy to be queried.
- resource_id str
- ID of the attached resource to be queried.
- resource_type str
- Type of the resource that the DDoS policy works for, valid values are bgpip,bgp,bgp-multipandnet.
- policyId String
- Id of the policy to be queried.
- resourceId String
- ID of the attached resource to be queried.
- resourceType String
- Type of the resource that the DDoS policy works for, valid values are bgpip,bgp,bgp-multipandnet.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the tencentcloudTerraform Provider.
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack