tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getDayuDdosPolicyAttachments
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 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 dictionary
The following arguments are supported:
- Resource
Type string - Type of the resource that the DDoS policy works for, valid values are
bgpip
,bgp
,bgp-multip
andnet
. - Id string
- Policy
Id string - Id of the policy to be queried.
- Resource
Id string - ID of the attached resource to be queried.
- Result
Output stringFile - Used to save results.
- Resource
Type string - Type of the resource that the DDoS policy works for, valid values are
bgpip
,bgp
,bgp-multip
andnet
. - Id string
- Policy
Id string - Id of the policy to be queried.
- Resource
Id string - ID of the attached resource to be queried.
- Result
Output stringFile - Used to save results.
- resource
Type String - Type of the resource that the DDoS policy works for, valid values are
bgpip
,bgp
,bgp-multip
andnet
. - id String
- policy
Id String - Id of the policy to be queried.
- resource
Id String - ID of the attached resource to be queried.
- result
Output StringFile - Used to save results.
- resource
Type string - Type of the resource that the DDoS policy works for, valid values are
bgpip
,bgp
,bgp-multip
andnet
. - id string
- policy
Id string - Id of the policy to be queried.
- resource
Id string - ID of the attached resource to be queried.
- result
Output stringFile - Used to save results.
- resource_
type str - Type of the resource that the DDoS policy works for, valid values are
bgpip
,bgp
,bgp-multip
andnet
. - 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.
- resource
Type String - Type of the resource that the DDoS policy works for, valid values are
bgpip
,bgp
,bgp-multip
andnet
. - id String
- policy
Id String - Id of the policy to be queried.
- resource
Id String - ID of the attached resource to be queried.
- result
Output StringFile - Used to save results.
getDayuDdosPolicyAttachments Result
The following output properties are available:
- Dayu
Ddos 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
- Resource
Type string - Type of the resource that the DDoS policy works for.
- Policy
Id string - ID of the policy.
- Resource
Id string - ID of the attached resource.
- Result
Output stringFile
- Dayu
Ddos []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
- Resource
Type string - Type of the resource that the DDoS policy works for.
- Policy
Id string - ID of the policy.
- Resource
Id string - ID of the attached resource.
- Result
Output stringFile
- dayu
Ddos 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
- resource
Type String - Type of the resource that the DDoS policy works for.
- policy
Id String - ID of the policy.
- resource
Id String - ID of the attached resource.
- result
Output StringFile
- dayu
Ddos 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
- resource
Type string - Type of the resource that the DDoS policy works for.
- policy
Id string - ID of the policy.
- resource
Id string - ID of the attached resource.
- result
Output 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
- dayu
Ddos List<Property Map>Policy Attachment Lists - A list of dayu DDoS policy attachments. Each element contains the following attributes:
- id String
- resource
Type String - Type of the resource that the DDoS policy works for.
- policy
Id String - ID of the policy.
- resource
Id String - ID of the attached resource.
- result
Output StringFile
Supporting Types
GetDayuDdosPolicyAttachmentsDayuDdosPolicyAttachmentList
- Policy
Id string - Id of the policy to be queried.
- Resource
Id string - ID of the attached resource to be queried.
- Resource
Type string - Type of the resource that the DDoS policy works for, valid values are
bgpip
,bgp
,bgp-multip
andnet
.
- Policy
Id string - Id of the policy to be queried.
- Resource
Id string - ID of the attached resource to be queried.
- Resource
Type string - Type of the resource that the DDoS policy works for, valid values are
bgpip
,bgp
,bgp-multip
andnet
.
- policy
Id String - Id of the policy to be queried.
- resource
Id String - ID of the attached resource to be queried.
- resource
Type String - Type of the resource that the DDoS policy works for, valid values are
bgpip
,bgp
,bgp-multip
andnet
.
- policy
Id string - Id of the policy to be queried.
- resource
Id string - ID of the attached resource to be queried.
- resource
Type string - Type of the resource that the DDoS policy works for, valid values are
bgpip
,bgp
,bgp-multip
andnet
.
- 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-multip
andnet
.
- policy
Id String - Id of the policy to be queried.
- resource
Id String - ID of the attached resource to be queried.
- resource
Type String - Type of the resource that the DDoS policy works for, valid values are
bgpip
,bgp
,bgp-multip
andnet
.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack