@pulumi/scm
Version:
A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1
144 lines (143 loc) • 4.78 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* HttpHeaderProfile data source
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scm from "@pulumi/scm";
*
* //
* // Data source to retrieve a single SCM HTTP Header Profile object by its ID.
* //
* // Replace the ID with the UUID of the SCM HTTP Header Profile you want to find.
* const scmHttpHeaderProf = scm.getHttpHeaderProfile({
* id: "2733cba4-c79d-4c98-8e07-4d3cbdd0ba11",
* });
* export const scmHttpHeaderProfileDetails = {
* profileId: scmHttpHeaderProf.then(scmHttpHeaderProf => scmHttpHeaderProf.id),
* folder: scmHttpHeaderProf.then(scmHttpHeaderProf => scmHttpHeaderProf.folder),
* name: scmHttpHeaderProf.then(scmHttpHeaderProf => scmHttpHeaderProf.name),
* };
* ```
*/
export declare function getHttpHeaderProfile(args: GetHttpHeaderProfileArgs, opts?: pulumi.InvokeOptions): Promise<GetHttpHeaderProfileResult>;
/**
* A collection of arguments for invoking getHttpHeaderProfile.
*/
export interface GetHttpHeaderProfileArgs {
/**
* The device in which the resource is defined
* > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`.
*/
device?: string;
/**
* The folder in which the resource is defined
* > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`.
*/
folder?: string;
/**
* The UUID of the HTTP header profile
*/
id: string;
/**
* The name of the HTTP header profile
*/
name?: string;
/**
* The snippet in which the resource is defined
* > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`.
*/
snippet?: string;
}
/**
* A collection of values returned by getHttpHeaderProfile.
*/
export interface GetHttpHeaderProfileResult {
/**
* The description of the HTTP header profile
*/
readonly description: string;
/**
* The device in which the resource is defined
* > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`.
*/
readonly device: string;
/**
* The folder in which the resource is defined
* > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`.
*/
readonly folder: string;
/**
* A list of HTTP header profile rules
*/
readonly httpHeaderInsertions: outputs.GetHttpHeaderProfileHttpHeaderInsertion[];
/**
* The UUID of the HTTP header profile
*/
readonly id: string;
/**
* The name of the HTTP header profile
*/
readonly name: string;
/**
* The snippet in which the resource is defined
* > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`.
*/
readonly snippet: string;
readonly tfid: string;
}
/**
* HttpHeaderProfile data source
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scm from "@pulumi/scm";
*
* //
* // Data source to retrieve a single SCM HTTP Header Profile object by its ID.
* //
* // Replace the ID with the UUID of the SCM HTTP Header Profile you want to find.
* const scmHttpHeaderProf = scm.getHttpHeaderProfile({
* id: "2733cba4-c79d-4c98-8e07-4d3cbdd0ba11",
* });
* export const scmHttpHeaderProfileDetails = {
* profileId: scmHttpHeaderProf.then(scmHttpHeaderProf => scmHttpHeaderProf.id),
* folder: scmHttpHeaderProf.then(scmHttpHeaderProf => scmHttpHeaderProf.folder),
* name: scmHttpHeaderProf.then(scmHttpHeaderProf => scmHttpHeaderProf.name),
* };
* ```
*/
export declare function getHttpHeaderProfileOutput(args: GetHttpHeaderProfileOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetHttpHeaderProfileResult>;
/**
* A collection of arguments for invoking getHttpHeaderProfile.
*/
export interface GetHttpHeaderProfileOutputArgs {
/**
* The device in which the resource is defined
* > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`.
*/
device?: pulumi.Input<string>;
/**
* The folder in which the resource is defined
* > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`.
*/
folder?: pulumi.Input<string>;
/**
* The UUID of the HTTP header profile
*/
id: pulumi.Input<string>;
/**
* The name of the HTTP header profile
*/
name?: pulumi.Input<string>;
/**
* The snippet in which the resource is defined
* > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`.
*/
snippet?: pulumi.Input<string>;
}