AdmChannel

Provides a Pinpoint ADM (Amazon Device Messaging) Channel resource.

Note: All arguments including the Client ID and Client Secret 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.AdmChannel("channel", new Aws.Pinpoint.AdmChannelArgs
        {
            ApplicationId = app.ApplicationId,
            ClientId = "",
            ClientSecret = "",
            Enabled = true,
        });
    }

}
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.NewAdmChannel(ctx, "channel", &pinpoint.AdmChannelArgs{
            ApplicationId: app.ApplicationId,
            ClientId:      pulumi.String(""),
            ClientSecret:  pulumi.String(""),
            Enabled:       pulumi.Bool(true),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

app = aws.pinpoint.App("app")
channel = aws.pinpoint.AdmChannel("channel",
    application_id=app.application_id,
    client_id="",
    client_secret="",
    enabled=True)
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const app = new aws.pinpoint.App("app", {});
const channel = new aws.pinpoint.AdmChannel("channel", {
    applicationId: app.applicationId,
    clientId: "",
    clientSecret: "",
    enabled: true,
});

Create a AdmChannel Resource

def AdmChannel(resource_name, opts=None, application_id=None, client_id=None, client_secret=None, enabled=None, __props__=None);
func NewAdmChannel(ctx *Context, name string, args AdmChannelArgs, opts ...ResourceOption) (*AdmChannel, error)
public AdmChannel(string name, AdmChannelArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args AdmChannelArgs
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 AdmChannelArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AdmChannelArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

AdmChannel Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The AdmChannel resource accepts the following input properties:

ApplicationId string

The application ID.

ClientId string

Client ID (part of OAuth Credentials) obtained via Amazon Developer Account.

ClientSecret string

Client Secret (part of OAuth Credentials) obtained via Amazon Developer Account.

Enabled bool

Specifies whether to enable the channel. Defaults to true.

ApplicationId string

The application ID.

ClientId string

Client ID (part of OAuth Credentials) obtained via Amazon Developer Account.

ClientSecret string

Client Secret (part of OAuth Credentials) obtained via Amazon Developer Account.

Enabled bool

Specifies whether to enable the channel. Defaults to true.

applicationId string

The application ID.

clientId string

Client ID (part of OAuth Credentials) obtained via Amazon Developer Account.

clientSecret string

Client Secret (part of OAuth Credentials) obtained via Amazon Developer Account.

enabled boolean

Specifies whether to enable the channel. Defaults to true.

application_id str

The application ID.

client_id str

Client ID (part of OAuth Credentials) obtained via Amazon Developer Account.

client_secret str

Client Secret (part of OAuth Credentials) obtained via Amazon Developer Account.

enabled bool

Specifies whether to enable the channel. Defaults to true.

Outputs

All input properties are implicitly available as output properties. Additionally, the AdmChannel 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 AdmChannel Resource

Get an existing AdmChannel 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?: AdmChannelState, opts?: CustomResourceOptions): AdmChannel
static get(resource_name, id, opts=None, application_id=None, client_id=None, client_secret=None, enabled=None, __props__=None);
func GetAdmChannel(ctx *Context, name string, id IDInput, state *AdmChannelState, opts ...ResourceOption) (*AdmChannel, error)
public static AdmChannel Get(string name, Input<string> id, AdmChannelState? 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:

ApplicationId string

The application ID.

ClientId string

Client ID (part of OAuth Credentials) obtained via Amazon Developer Account.

ClientSecret string

Client Secret (part of OAuth Credentials) obtained via Amazon Developer Account.

Enabled bool

Specifies whether to enable the channel. Defaults to true.

ApplicationId string

The application ID.

ClientId string

Client ID (part of OAuth Credentials) obtained via Amazon Developer Account.

ClientSecret string

Client Secret (part of OAuth Credentials) obtained via Amazon Developer Account.

Enabled bool

Specifies whether to enable the channel. Defaults to true.

applicationId string

The application ID.

clientId string

Client ID (part of OAuth Credentials) obtained via Amazon Developer Account.

clientSecret string

Client Secret (part of OAuth Credentials) obtained via Amazon Developer Account.

enabled boolean

Specifies whether to enable the channel. Defaults to true.

application_id str

The application ID.

client_id str

Client ID (part of OAuth Credentials) obtained via Amazon Developer Account.

client_secret str

Client Secret (part of OAuth Credentials) obtained via Amazon Developer Account.

enabled bool

Specifies whether to enable the channel. Defaults to true.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.