Package com.pulumi.aws.pinpoint
Class BaiduChannel
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.pinpoint.BaiduChannel
-
public class BaiduChannel extends com.pulumi.resources.CustomResource
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 <!--Start PulumiCodeChooser --> ```java 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()); } } ``` <!--End PulumiCodeChooser --> ## Import Using `pulumi import`, import Pinpoint Baidu Channel using the `application-id`. For example: ```sh $ pulumi import aws:pinpoint/baiduChannel:BaiduChannel channel application-id ```
-
-
Constructor Summary
Constructors Constructor Description BaiduChannel(java.lang.String name)
BaiduChannel(java.lang.String name, BaiduChannelArgs args)
BaiduChannel(java.lang.String name, BaiduChannelArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>
apiKey()
com.pulumi.core.Output<java.lang.String>
applicationId()
com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>>
enabled()
static BaiduChannel
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, BaiduChannelState state, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>
secretKey()
-
-
-
Constructor Detail
-
BaiduChannel
public BaiduChannel(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
BaiduChannel
public BaiduChannel(java.lang.String name, BaiduChannelArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
BaiduChannel
public BaiduChannel(java.lang.String name, BaiduChannelArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
apiKey
public com.pulumi.core.Output<java.lang.String> apiKey()
- Returns:
- Platform credential API key from Baidu.
-
applicationId
public com.pulumi.core.Output<java.lang.String> applicationId()
- Returns:
- The application ID.
-
enabled
public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> enabled()
- Returns:
- Specifies whether to enable the channel. Defaults to `true`.
-
secretKey
public com.pulumi.core.Output<java.lang.String> secretKey()
- Returns:
- Platform credential Secret key from Baidu.
-
get
public static BaiduChannel get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable BaiduChannelState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.state
-options
- Optional settings to control the behavior of the CustomResource.
-
-