BaiduChannel
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
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var app = new Aws.Pinpoint.App("app", new Aws.Pinpoint.AppArgs
{
});
var channel = new Aws.Pinpoint.BaiduChannel("channel", new Aws.Pinpoint.BaiduChannelArgs
{
ApiKey = "",
ApplicationId = app.ApplicationId,
SecretKey = "",
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/pinpoint"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
app, err := pinpoint.NewApp(ctx, "app", nil)
if err != nil {
return err
}
_, err = pinpoint.NewBaiduChannel(ctx, "channel", &pinpoint.BaiduChannelArgs{
ApiKey: pulumi.String(""),
ApplicationId: app.ApplicationId,
SecretKey: pulumi.String(""),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
app = aws.pinpoint.App("app")
channel = aws.pinpoint.BaiduChannel("channel",
api_key="",
application_id=app.application_id,
secret_key="")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", {
apiKey: "",
applicationId: app.applicationId,
secretKey: "",
});Create a BaiduChannel Resource
new BaiduChannel(name: string, args: BaiduChannelArgs, opts?: CustomResourceOptions);def BaiduChannel(resource_name, opts=None, api_key=None, application_id=None, enabled=None, secret_key=None, __props__=None);func NewBaiduChannel(ctx *Context, name string, args BaiduChannelArgs, opts ...ResourceOption) (*BaiduChannel, error)public BaiduChannel(string name, BaiduChannelArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args BaiduChannelArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args BaiduChannelArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BaiduChannelArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
BaiduChannel Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The BaiduChannel resource accepts the following input properties:
- api_
key str Platform credential API key from Baidu.
- application_
id str The application ID.
- secret_
key str Platform credential Secret key from Baidu.
- enabled bool
Specifies whether to enable the channel. Defaults to
true.
Outputs
All input properties are implicitly available as output properties. Additionally, the BaiduChannel resource produces the following output properties:
Look up an Existing BaiduChannel Resource
Get an existing BaiduChannel resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: BaiduChannelState, opts?: CustomResourceOptions): BaiduChannelstatic get(resource_name, id, opts=None, api_key=None, application_id=None, enabled=None, secret_key=None, __props__=None);func GetBaiduChannel(ctx *Context, name string, id IDInput, state *BaiduChannelState, opts ...ResourceOption) (*BaiduChannel, error)public static BaiduChannel Get(string name, Input<string> id, BaiduChannelState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- api_
key str Platform credential API key from Baidu.
- application_
id str The application ID.
- enabled bool
Specifies whether to enable the channel. Defaults to
true.- secret_
key str Platform credential Secret key from Baidu.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.