UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

123 lines (122 loc) 4.32 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides a Pinpoint Baidu Channel resource. * * > **Note:** All arguments including the Api Key and Secret Key will be stored in the raw state as plain-text. * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const app = new aws.pinpoint.App("app", {}); * const channel = new aws.pinpoint.BaiduChannel("channel", { * applicationId: app.applicationId, * apiKey: "", * secretKey: "", * }); * ``` * * ## Import * * Using `pulumi import`, import Pinpoint Baidu Channel using the `application-id`. For example: * * ```sh * $ pulumi import aws:pinpoint/baiduChannel:BaiduChannel channel application-id * ``` */ export declare class BaiduChannel extends pulumi.CustomResource { /** * Get an existing BaiduChannel resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: BaiduChannelState, opts?: pulumi.CustomResourceOptions): BaiduChannel; /** * Returns true if the given object is an instance of BaiduChannel. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is BaiduChannel; /** * Platform credential API key from Baidu. */ readonly apiKey: pulumi.Output<string>; /** * The application ID. */ readonly applicationId: pulumi.Output<string>; /** * Specifies whether to enable the channel. Defaults to `true`. */ readonly enabled: pulumi.Output<boolean | undefined>; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ readonly region: pulumi.Output<string>; /** * Platform credential Secret key from Baidu. */ readonly secretKey: pulumi.Output<string>; /** * Create a BaiduChannel resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: BaiduChannelArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering BaiduChannel resources. */ export interface BaiduChannelState { /** * Platform credential API key from Baidu. */ apiKey?: pulumi.Input<string>; /** * The application ID. */ applicationId?: pulumi.Input<string>; /** * Specifies whether to enable the channel. Defaults to `true`. */ enabled?: pulumi.Input<boolean>; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input<string>; /** * Platform credential Secret key from Baidu. */ secretKey?: pulumi.Input<string>; } /** * The set of arguments for constructing a BaiduChannel resource. */ export interface BaiduChannelArgs { /** * Platform credential API key from Baidu. */ apiKey: pulumi.Input<string>; /** * The application ID. */ applicationId: pulumi.Input<string>; /** * Specifies whether to enable the channel. Defaults to `true`. */ enabled?: pulumi.Input<boolean>; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input<string>; /** * Platform credential Secret key from Baidu. */ secretKey: pulumi.Input<string>; }