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

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)
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:

ApiKey string

Platform credential API key from Baidu.

ApplicationId string

The application ID.

SecretKey string

Platform credential Secret key from Baidu.

Enabled bool

Specifies whether to enable the channel. Defaults to true.

ApiKey string

Platform credential API key from Baidu.

ApplicationId string

The application ID.

SecretKey string

Platform credential Secret key from Baidu.

Enabled bool

Specifies whether to enable the channel. Defaults to true.

apiKey string

Platform credential API key from Baidu.

applicationId string

The application ID.

secretKey string

Platform credential Secret key from Baidu.

enabled boolean

Specifies whether to enable the channel. Defaults to true.

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:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

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): BaiduChannel
static 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:

ApiKey string

Platform credential API key from Baidu.

ApplicationId string

The application ID.

Enabled bool

Specifies whether to enable the channel. Defaults to true.

SecretKey string

Platform credential Secret key from Baidu.

ApiKey string

Platform credential API key from Baidu.

ApplicationId string

The application ID.

Enabled bool

Specifies whether to enable the channel. Defaults to true.

SecretKey string

Platform credential Secret key from Baidu.

apiKey string

Platform credential API key from Baidu.

applicationId string

The application ID.

enabled boolean

Specifies whether to enable the channel. Defaults to true.

secretKey string

Platform credential Secret key from Baidu.

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 aws Terraform Provider.