aws.pinpoint.BaiduChannel
Explore with Pulumi AI
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
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 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="")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/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
})
}
using System.Collections.Generic;
using System.Linq;
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 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());
}
}
resources:
app:
type: aws:pinpoint:App
channel:
type: aws:pinpoint:BaiduChannel
properties:
applicationId: ${app.applicationId}
apiKey:
secretKey:
Create BaiduChannel Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BaiduChannel(name: string, args: BaiduChannelArgs, opts?: CustomResourceOptions);
@overload
def BaiduChannel(resource_name: str,
args: BaiduChannelArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BaiduChannel(resource_name: str,
opts: Optional[ResourceOptions] = None,
api_key: Optional[str] = None,
application_id: Optional[str] = None,
secret_key: Optional[str] = None,
enabled: Optional[bool] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var baiduChannelResource = new Aws.Pinpoint.BaiduChannel("baiduChannelResource", new()
{
ApiKey = "string",
ApplicationId = "string",
SecretKey = "string",
Enabled = false,
});
example, err := pinpoint.NewBaiduChannel(ctx, "baiduChannelResource", &pinpoint.BaiduChannelArgs{
ApiKey: pulumi.String("string"),
ApplicationId: pulumi.String("string"),
SecretKey: pulumi.String("string"),
Enabled: pulumi.Bool(false),
})
var baiduChannelResource = new BaiduChannel("baiduChannelResource", BaiduChannelArgs.builder()
.apiKey("string")
.applicationId("string")
.secretKey("string")
.enabled(false)
.build());
baidu_channel_resource = aws.pinpoint.BaiduChannel("baiduChannelResource",
api_key="string",
application_id="string",
secret_key="string",
enabled=False)
const baiduChannelResource = new aws.pinpoint.BaiduChannel("baiduChannelResource", {
apiKey: "string",
applicationId: "string",
secretKey: "string",
enabled: false,
});
type: aws:pinpoint:BaiduChannel
properties:
apiKey: string
applicationId: string
enabled: false
secretKey: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The BaiduChannel resource accepts the following input properties:
- Api
Key string - Platform credential API key from Baidu.
- Application
Id string - The application ID.
- Secret
Key string - Platform credential Secret key from Baidu.
- Enabled bool
- Specifies whether to enable the channel. Defaults to
true
.
- Api
Key string - Platform credential API key from Baidu.
- Application
Id string - The application ID.
- Secret
Key string - Platform credential Secret key from Baidu.
- Enabled bool
- Specifies whether to enable the channel. Defaults to
true
.
- api
Key String - Platform credential API key from Baidu.
- application
Id String - The application ID.
- secret
Key String - Platform credential Secret key from Baidu.
- enabled Boolean
- Specifies whether to enable the channel. Defaults to
true
.
- api
Key string - Platform credential API key from Baidu.
- application
Id string - The application ID.
- secret
Key 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
.
- api
Key String - Platform credential API key from Baidu.
- application
Id String - The application ID.
- secret
Key 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.
- Api
Key string - Platform credential API key from Baidu.
- Application
Id string - The application ID.
- Enabled bool
- Specifies whether to enable the channel. Defaults to
true
. - Secret
Key string - Platform credential Secret key from Baidu.
- Api
Key string - Platform credential API key from Baidu.
- Application
Id string - The application ID.
- Enabled bool
- Specifies whether to enable the channel. Defaults to
true
. - Secret
Key string - Platform credential Secret key from Baidu.
- api
Key String - Platform credential API key from Baidu.
- application
Id String - The application ID.
- enabled Boolean
- Specifies whether to enable the channel. Defaults to
true
. - secret
Key String - Platform credential Secret key from Baidu.
- api
Key string - Platform credential API key from Baidu.
- application
Id string - The application ID.
- enabled boolean
- Specifies whether to enable the channel. Defaults to
true
. - secret
Key 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.
- api
Key String - Platform credential API key from Baidu.
- application
Id String - The application ID.
- enabled Boolean
- Specifies whether to enable the channel. Defaults to
true
. - secret
Key String - Platform credential Secret key from Baidu.
Import
Using pulumi import
, import Pinpoint Baidu Channel using the application-id
. For example:
$ pulumi import aws:pinpoint/baiduChannel:BaiduChannel channel application-id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.