aws logo
AWS Classic v5.32.0, Mar 17 23

aws.pinpoint.BaiduChannel

Provides a Pinpoint Baidu Channel resource.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var app = new Aws.Pinpoint.App("app");

    var channel = new Aws.Pinpoint.BaiduChannel("channel", new()
    {
        ApplicationId = app.ApplicationId,
        ApiKey = "",
        SecretKey = "",
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/pinpoint"
	"github.com/pulumi/pulumi/sdk/v3/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{
			ApplicationId: app.ApplicationId,
			ApiKey:        pulumi.String(""),
			SecretKey:     pulumi.String(""),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.pinpoint.App;
import com.pulumi.aws.pinpoint.BaiduChannel;
import com.pulumi.aws.pinpoint.BaiduChannelArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var app = new App("app");

        var channel = new BaiduChannel("channel", BaiduChannelArgs.builder()        
            .applicationId(app.applicationId())
            .apiKey("")
            .secretKey("")
            .build());

    }
}
import pulumi
import pulumi_aws as aws

app = aws.pinpoint.App("app")
channel = aws.pinpoint.BaiduChannel("channel",
    application_id=app.application_id,
    api_key="",
    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", {
    applicationId: app.applicationId,
    apiKey: "",
    secretKey: "",
});
resources:
  app:
    type: aws:pinpoint:App
  channel:
    type: aws:pinpoint:BaiduChannel
    properties:
      applicationId: ${app.applicationId}
      apiKey:
      secretKey:

Create BaiduChannel Resource

new BaiduChannel(name: string, args: BaiduChannelArgs, opts?: CustomResourceOptions);
@overload
def BaiduChannel(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 api_key: Optional[str] = None,
                 application_id: Optional[str] = None,
                 enabled: Optional[bool] = None,
                 secret_key: Optional[str] = None)
@overload
def BaiduChannel(resource_name: str,
                 args: BaiduChannelArgs,
                 opts: Optional[ResourceOptions] = None)
func NewBaiduChannel(ctx *Context, name string, args BaiduChannelArgs, opts ...ResourceOption) (*BaiduChannel, error)
public BaiduChannel(string name, BaiduChannelArgs args, CustomResourceOptions? opts = null)
public BaiduChannel(String name, BaiduChannelArgs args)
public BaiduChannel(String name, BaiduChannelArgs args, CustomResourceOptions options)
type: aws:pinpoint:BaiduChannel
properties: # The arguments to resource properties.
options: # 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.
resource_name str
The unique name of the resource.
args BaiduChannelArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control 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.
name String
The unique name of the resource.
args BaiduChannelArgs
The arguments to resource properties.
options 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 Architecture and Concepts 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.

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.

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.

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 string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up 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
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        api_key: Optional[str] = None,
        application_id: Optional[str] = None,
        enabled: Optional[bool] = None,
        secret_key: Optional[str] = None) -> BaiduChannel
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)
public static BaiduChannel get(String name, Output<String> id, BaiduChannelState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
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.
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.

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.

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.

Import

Pinpoint Baidu Channel can be imported using the application-id, e.g.,

 $ pulumi import aws:pinpoint/baiduChannel:BaiduChannel channel application-id

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.