1. Packages
  2. AWS
  3. API Docs
  4. pinpoint
  5. GcmChannel
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.pinpoint.GcmChannel

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Provides a Pinpoint GCM Channel resource.

    Note: Credentials (Service Account JSON and API Key) will be stored in the raw state as plain-text.

    Import

    Using pulumi import, import Pinpoint GCM Channel using the application-id. For example:

    $ pulumi import aws:pinpoint/gcmChannel:GcmChannel gcm application-id
    

    Create GcmChannel Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new GcmChannel(name: string, args: GcmChannelArgs, opts?: CustomResourceOptions);
    @overload
    def GcmChannel(resource_name: str,
                   args: GcmChannelArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def GcmChannel(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   application_id: Optional[str] = None,
                   api_key: Optional[str] = None,
                   default_authentication_method: Optional[str] = None,
                   enabled: Optional[bool] = None,
                   service_json: Optional[str] = None)
    func NewGcmChannel(ctx *Context, name string, args GcmChannelArgs, opts ...ResourceOption) (*GcmChannel, error)
    public GcmChannel(string name, GcmChannelArgs args, CustomResourceOptions? opts = null)
    public GcmChannel(String name, GcmChannelArgs args)
    public GcmChannel(String name, GcmChannelArgs args, CustomResourceOptions options)
    
    type: aws:pinpoint:GcmChannel
    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 GcmChannelArgs
    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 GcmChannelArgs
    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 GcmChannelArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GcmChannelArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GcmChannelArgs
    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 gcmChannelResource = new Aws.Pinpoint.GcmChannel("gcmChannelResource", new()
    {
        ApplicationId = "string",
        ApiKey = "string",
        DefaultAuthenticationMethod = "string",
        Enabled = false,
        ServiceJson = "string",
    });
    
    example, err := pinpoint.NewGcmChannel(ctx, "gcmChannelResource", &pinpoint.GcmChannelArgs{
    	ApplicationId:               pulumi.String("string"),
    	ApiKey:                      pulumi.String("string"),
    	DefaultAuthenticationMethod: pulumi.String("string"),
    	Enabled:                     pulumi.Bool(false),
    	ServiceJson:                 pulumi.String("string"),
    })
    
    var gcmChannelResource = new GcmChannel("gcmChannelResource", GcmChannelArgs.builder()
        .applicationId("string")
        .apiKey("string")
        .defaultAuthenticationMethod("string")
        .enabled(false)
        .serviceJson("string")
        .build());
    
    gcm_channel_resource = aws.pinpoint.GcmChannel("gcmChannelResource",
        application_id="string",
        api_key="string",
        default_authentication_method="string",
        enabled=False,
        service_json="string")
    
    const gcmChannelResource = new aws.pinpoint.GcmChannel("gcmChannelResource", {
        applicationId: "string",
        apiKey: "string",
        defaultAuthenticationMethod: "string",
        enabled: false,
        serviceJson: "string",
    });
    
    type: aws:pinpoint:GcmChannel
    properties:
        apiKey: string
        applicationId: string
        defaultAuthenticationMethod: string
        enabled: false
        serviceJson: string
    

    GcmChannel 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 GcmChannel resource accepts the following input properties:

    ApplicationId string
    The application ID.
    ApiKey string
    Platform credential API key from Google.
    DefaultAuthenticationMethod string
    Enabled bool
    Whether the channel is enabled or disabled. Defaults to true.
    ServiceJson string
    ApplicationId string
    The application ID.
    ApiKey string
    Platform credential API key from Google.
    DefaultAuthenticationMethod string
    Enabled bool
    Whether the channel is enabled or disabled. Defaults to true.
    ServiceJson string
    applicationId String
    The application ID.
    apiKey String
    Platform credential API key from Google.
    defaultAuthenticationMethod String
    enabled Boolean
    Whether the channel is enabled or disabled. Defaults to true.
    serviceJson String
    applicationId string
    The application ID.
    apiKey string
    Platform credential API key from Google.
    defaultAuthenticationMethod string
    enabled boolean
    Whether the channel is enabled or disabled. Defaults to true.
    serviceJson string
    application_id str
    The application ID.
    api_key str
    Platform credential API key from Google.
    default_authentication_method str
    enabled bool
    Whether the channel is enabled or disabled. Defaults to true.
    service_json str
    applicationId String
    The application ID.
    apiKey String
    Platform credential API key from Google.
    defaultAuthenticationMethod String
    enabled Boolean
    Whether the channel is enabled or disabled. Defaults to true.
    serviceJson String

    Outputs

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

    Get an existing GcmChannel 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?: GcmChannelState, opts?: CustomResourceOptions): GcmChannel
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            api_key: Optional[str] = None,
            application_id: Optional[str] = None,
            default_authentication_method: Optional[str] = None,
            enabled: Optional[bool] = None,
            service_json: Optional[str] = None) -> GcmChannel
    func GetGcmChannel(ctx *Context, name string, id IDInput, state *GcmChannelState, opts ...ResourceOption) (*GcmChannel, error)
    public static GcmChannel Get(string name, Input<string> id, GcmChannelState? state, CustomResourceOptions? opts = null)
    public static GcmChannel get(String name, Output<String> id, GcmChannelState 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 Google.
    ApplicationId string
    The application ID.
    DefaultAuthenticationMethod string
    Enabled bool
    Whether the channel is enabled or disabled. Defaults to true.
    ServiceJson string
    ApiKey string
    Platform credential API key from Google.
    ApplicationId string
    The application ID.
    DefaultAuthenticationMethod string
    Enabled bool
    Whether the channel is enabled or disabled. Defaults to true.
    ServiceJson string
    apiKey String
    Platform credential API key from Google.
    applicationId String
    The application ID.
    defaultAuthenticationMethod String
    enabled Boolean
    Whether the channel is enabled or disabled. Defaults to true.
    serviceJson String
    apiKey string
    Platform credential API key from Google.
    applicationId string
    The application ID.
    defaultAuthenticationMethod string
    enabled boolean
    Whether the channel is enabled or disabled. Defaults to true.
    serviceJson string
    api_key str
    Platform credential API key from Google.
    application_id str
    The application ID.
    default_authentication_method str
    enabled bool
    Whether the channel is enabled or disabled. Defaults to true.
    service_json str
    apiKey String
    Platform credential API key from Google.
    applicationId String
    The application ID.
    defaultAuthenticationMethod String
    enabled Boolean
    Whether the channel is enabled or disabled. Defaults to true.
    serviceJson String

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi