@pulumi/cloudngfwaws
Version:
A Pulumi package for creating and managing Cloud NGFW for AWS resources.
149 lines (148 loc) • 4.23 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Data source for retrieving certificate information.
*
* ## Admin Permission Type
*
* * `Rulestack` (for `scope="Local"`)
* * `Global Rulestack` (for `scope="Global"`)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as cloudngfwaws from "@pulumi/cloudngfwaws";
*
* const r = new cloudngfwaws.Rulestack("r", {
* name: "my-rulestack",
* scope: "Local",
* accountId: "12345",
* description: "Made by Pulumi",
* profileConfig: {
* antiSpyware: "BestPractice",
* },
* });
* const example = cloudngfwaws.getCertificateOutput({
* rulestack: r.name,
* name: "foobar",
* });
* ```
*/
export declare function getCertificate(args: GetCertificateArgs, opts?: pulumi.InvokeOptions): Promise<GetCertificateResult>;
/**
* A collection of arguments for invoking getCertificate.
*/
export interface GetCertificateArgs {
/**
* Retrieve either the candidate or running config. Valid values are `candidate` or `running`. Defaults to `candidate`.
*/
configType?: string;
/**
* The name.
*/
name: string;
/**
* The rulestack.
*/
rulestack: string;
/**
* The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are `Local` or `Global`. Defaults to `Local`.
*/
scope?: string;
}
/**
* A collection of values returned by getCertificate.
*/
export interface GetCertificateResult {
/**
* The audit comment.
*/
readonly auditComment: string;
/**
* Retrieve either the candidate or running config. Valid values are `candidate` or `running`. Defaults to `candidate`.
*/
readonly configType?: string;
/**
* The description.
*/
readonly description: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The name.
*/
readonly name: string;
/**
* The rulestack.
*/
readonly rulestack: string;
/**
* The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are `Local` or `Global`. Defaults to `Local`.
*/
readonly scope?: string;
/**
* Set to true if certificate is self-signed.
*/
readonly selfSigned: boolean;
/**
* The certificate signer ARN.
*/
readonly signerArn: string;
/**
* The update token.
*/
readonly updateToken: string;
}
/**
* Data source for retrieving certificate information.
*
* ## Admin Permission Type
*
* * `Rulestack` (for `scope="Local"`)
* * `Global Rulestack` (for `scope="Global"`)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as cloudngfwaws from "@pulumi/cloudngfwaws";
*
* const r = new cloudngfwaws.Rulestack("r", {
* name: "my-rulestack",
* scope: "Local",
* accountId: "12345",
* description: "Made by Pulumi",
* profileConfig: {
* antiSpyware: "BestPractice",
* },
* });
* const example = cloudngfwaws.getCertificateOutput({
* rulestack: r.name,
* name: "foobar",
* });
* ```
*/
export declare function getCertificateOutput(args: GetCertificateOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetCertificateResult>;
/**
* A collection of arguments for invoking getCertificate.
*/
export interface GetCertificateOutputArgs {
/**
* Retrieve either the candidate or running config. Valid values are `candidate` or `running`. Defaults to `candidate`.
*/
configType?: pulumi.Input<string>;
/**
* The name.
*/
name: pulumi.Input<string>;
/**
* The rulestack.
*/
rulestack: pulumi.Input<string>;
/**
* The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are `Local` or `Global`. Defaults to `Local`.
*/
scope?: pulumi.Input<string>;
}