@pulumi/scm
Version:
A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1
99 lines (98 loc) • 2.58 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* Service data source
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scm from "@pulumi/scm";
*
* // Data source to look up a single service by its ID.
* const scmServiceTcpDs = scm.getService({
* id: "ff135641-6735-4d7d-85c6-3401bba9dee8",
* });
* export const serviceDetailsTcp = scmServiceTcpDs;
* // Data source to look up a single service by its ID.
* const scmServiceUdpDs = scm.getService({
* id: "e087b703-aede-437e-853e-b11576f6dcbe",
* });
* export const serviceDetailsUdp = scmServiceUdpDs;
* ```
*/
export declare function getService(args: GetServiceArgs, opts?: pulumi.InvokeOptions): Promise<GetServiceResult>;
/**
* A collection of arguments for invoking getService.
*/
export interface GetServiceArgs {
/**
* The UUID of the service
*/
id: string;
/**
* The name of the service
*/
name?: string;
}
/**
* A collection of values returned by getService.
*/
export interface GetServiceResult {
/**
* Description
*/
readonly description: string;
/**
* The device in which the resource is defined
*/
readonly device: string;
readonly folder: string;
/**
* The UUID of the service
*/
readonly id: string;
/**
* The name of the service
*/
readonly name: string;
readonly protocol: outputs.GetServiceProtocol;
readonly snippet: string;
readonly tags: string[];
readonly tfid: string;
}
/**
* Service data source
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scm from "@pulumi/scm";
*
* // Data source to look up a single service by its ID.
* const scmServiceTcpDs = scm.getService({
* id: "ff135641-6735-4d7d-85c6-3401bba9dee8",
* });
* export const serviceDetailsTcp = scmServiceTcpDs;
* // Data source to look up a single service by its ID.
* const scmServiceUdpDs = scm.getService({
* id: "e087b703-aede-437e-853e-b11576f6dcbe",
* });
* export const serviceDetailsUdp = scmServiceUdpDs;
* ```
*/
export declare function getServiceOutput(args: GetServiceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetServiceResult>;
/**
* A collection of arguments for invoking getService.
*/
export interface GetServiceOutputArgs {
/**
* The UUID of the service
*/
id: pulumi.Input<string>;
/**
* The name of the service
*/
name?: pulumi.Input<string>;
}