Skip to content
v2.278.0

CfnGCMChannelProps ​

Struct External

Properties for defining a CfnGCMChannel.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_pinpoint as pinpoint } from 'aws-cdk-lib';
const cfnGCMChannelProps: pinpoint.CfnGCMChannelProps = {
  applicationId: 'applicationId',

  // the properties below are optional
  apiKey: 'apiKey',
  defaultAuthenticationMethod: 'defaultAuthenticationMethod',
  enabled: false,
  serviceJson: 'serviceJson',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_pinpoint as pinpoint

cfn_gcm_channel_props = pinpoint.CfnGCMChannelProps(
    application_id="applicationId",

    # the properties below are optional
    api_key="apiKey",
    default_authentication_method="defaultAuthenticationMethod",
    enabled=False,
    service_json="serviceJson"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.pinpoint.*;

CfnGCMChannelProps cfnGCMChannelProps = CfnGCMChannelProps.builder()
        .applicationId("applicationId")

        // the properties below are optional
        .apiKey("apiKey")
        .defaultAuthenticationMethod("defaultAuthenticationMethod")
        .enabled(false)
        .serviceJson("serviceJson")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Pinpoint;

var cfnGCMChannelProps = new CfnGCMChannelProps {
    ApplicationId = "applicationId",

    // the properties below are optional
    ApiKey = "apiKey",
    DefaultAuthenticationMethod = "defaultAuthenticationMethod",
    Enabled = false,
    ServiceJson = "serviceJson"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnGCMChannelProps := &CfnGCMChannelProps{
	ApplicationId: jsii.String("applicationId"),

	// the properties below are optional
	ApiKey: jsii.String("apiKey"),
	DefaultAuthenticationMethod: jsii.String("defaultAuthenticationMethod"),
	Enabled: jsii.Boolean(false),
	ServiceJson: jsii.String("serviceJson"),
}

Properties ​

apiKeyoptionalstringapi_keyoptionalstrapiKeyoptionalStringApiKeyoptionalstringApiKeyoptional*string #
The Web API key, also called the *server key* , that you received from Google to communicate with Google services.
applicationIdstringapplication_idstrapplicationIdStringApplicationIdstringApplicationId*string required #
The unique identifier for the Amazon Pinpoint application that the GCM channel applies to.
defaultAuthenticationMethodoptionalstringdefault_authentication_methodoptionalstrdefaultAuthenticationMethodoptionalStringDefaultAuthenticationMethodoptionalstringDefaultAuthenticationMethodoptional*string #
The default authentication method used for GCM.

Values are either "TOKEN" or "KEY". Defaults to "KEY".

enabledoptionalboolean | IResolvableenabledoptionaltyping.Union[bool, IResolvable]enabledoptionalBooleanEnabledoptionalboolEnabledoptionalinterface{} #
Specifies whether to enable the GCM channel for the Amazon Pinpoint application.
serviceJsonoptionalstringservice_jsonoptionalstrserviceJsonoptionalStringServiceJsonoptionalstringServiceJsonoptional*string #
The contents of the JSON file provided by Google during registration in order to generate an access token for authentication.

For more information see Migrate from legacy FCM APIs to HTTP v1 .