@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
146 lines (145 loc) • 4.01 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* Use this data source to query detailed information of transit router peer attachments
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const foo = volcengine.transit_router.getPeerAttachments({
* ids: ["tr-attach-12be67d0yh2io17q7y1au****"],
* });
* ```
*/
export declare function getPeerAttachments(args?: GetPeerAttachmentsArgs, opts?: pulumi.InvokeOptions): Promise<GetPeerAttachmentsResult>;
/**
* A collection of arguments for invoking getPeerAttachments.
*/
export interface GetPeerAttachmentsArgs {
/**
* A list of IDs.
*/
ids?: string[];
/**
* A Name Regex of Resource.
*/
nameRegex?: string;
/**
* File name where to save data source results.
*/
outputFile?: string;
/**
* The id of peer transit router.
*/
peerTransitRouterId?: string;
/**
* The region id of peer transit router.
*/
peerTransitRouterRegionId?: string;
/**
* Tags.
*/
tags?: inputs.transit_router.GetPeerAttachmentsTag[];
/**
* The name of transit router peer attachment.
*/
transitRouterAttachmentName?: string;
/**
* The id of local transit router.
*/
transitRouterId?: string;
}
/**
* A collection of values returned by getPeerAttachments.
*/
export interface GetPeerAttachmentsResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly ids?: string[];
readonly nameRegex?: string;
readonly outputFile?: string;
/**
* The id of the peer transit router.
*/
readonly peerTransitRouterId?: string;
/**
* The region id of the peer transit router.
*/
readonly peerTransitRouterRegionId?: string;
/**
* Tags.
*/
readonly tags?: outputs.transit_router.GetPeerAttachmentsTag[];
/**
* The total count of query.
*/
readonly totalCount: number;
/**
* The name of the transit router peer attachment.
*/
readonly transitRouterAttachmentName?: string;
/**
* The collection of query.
*/
readonly transitRouterAttachments: outputs.transit_router.GetPeerAttachmentsTransitRouterAttachment[];
/**
* The id of the local transit router.
*/
readonly transitRouterId?: string;
}
/**
* Use this data source to query detailed information of transit router peer attachments
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const foo = volcengine.transit_router.getPeerAttachments({
* ids: ["tr-attach-12be67d0yh2io17q7y1au****"],
* });
* ```
*/
export declare function getPeerAttachmentsOutput(args?: GetPeerAttachmentsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetPeerAttachmentsResult>;
/**
* A collection of arguments for invoking getPeerAttachments.
*/
export interface GetPeerAttachmentsOutputArgs {
/**
* A list of IDs.
*/
ids?: pulumi.Input<pulumi.Input<string>[]>;
/**
* A Name Regex of Resource.
*/
nameRegex?: pulumi.Input<string>;
/**
* File name where to save data source results.
*/
outputFile?: pulumi.Input<string>;
/**
* The id of peer transit router.
*/
peerTransitRouterId?: pulumi.Input<string>;
/**
* The region id of peer transit router.
*/
peerTransitRouterRegionId?: pulumi.Input<string>;
/**
* Tags.
*/
tags?: pulumi.Input<pulumi.Input<inputs.transit_router.GetPeerAttachmentsTagArgs>[]>;
/**
* The name of transit router peer attachment.
*/
transitRouterAttachmentName?: pulumi.Input<string>;
/**
* The id of local transit router.
*/
transitRouterId?: pulumi.Input<string>;
}