ibm.EnDestinationAndroid
Explore with Pulumi AI
Create, update, or delete a FCM destination by using IBM Cloud™ Event Notifications.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const androidEnDestination = new ibm.EnDestinationAndroid("androidEnDestination", {
instanceGuid: ibm_resource_instance.en_terraform_test_resource.guid,
type: "push_android",
collectFailedEvents: false,
description: "The Android Destination",
config: {
params: {
projectId: "5237288990",
privateKey: "36228ghutwervhudokmk",
clientEmail: "testuser123@gmail.com",
preProd: false,
},
},
});
import pulumi
import pulumi_ibm as ibm
android_en_destination = ibm.EnDestinationAndroid("androidEnDestination",
instance_guid=ibm_resource_instance["en_terraform_test_resource"]["guid"],
type="push_android",
collect_failed_events=False,
description="The Android Destination",
config={
"params": {
"project_id": "5237288990",
"private_key": "36228ghutwervhudokmk",
"client_email": "testuser123@gmail.com",
"pre_prod": False,
},
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.NewEnDestinationAndroid(ctx, "androidEnDestination", &ibm.EnDestinationAndroidArgs{
InstanceGuid: pulumi.Any(ibm_resource_instance.En_terraform_test_resource.Guid),
Type: pulumi.String("push_android"),
CollectFailedEvents: pulumi.Bool(false),
Description: pulumi.String("The Android Destination"),
Config: &ibm.EnDestinationAndroidConfigArgs{
Params: &ibm.EnDestinationAndroidConfigParamsArgs{
ProjectId: pulumi.String("5237288990"),
PrivateKey: pulumi.String("36228ghutwervhudokmk"),
ClientEmail: pulumi.String("testuser123@gmail.com"),
PreProd: pulumi.Bool(false),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var androidEnDestination = new Ibm.EnDestinationAndroid("androidEnDestination", new()
{
InstanceGuid = ibm_resource_instance.En_terraform_test_resource.Guid,
Type = "push_android",
CollectFailedEvents = false,
Description = "The Android Destination",
Config = new Ibm.Inputs.EnDestinationAndroidConfigArgs
{
Params = new Ibm.Inputs.EnDestinationAndroidConfigParamsArgs
{
ProjectId = "5237288990",
PrivateKey = "36228ghutwervhudokmk",
ClientEmail = "testuser123@gmail.com",
PreProd = false,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.EnDestinationAndroid;
import com.pulumi.ibm.EnDestinationAndroidArgs;
import com.pulumi.ibm.inputs.EnDestinationAndroidConfigArgs;
import com.pulumi.ibm.inputs.EnDestinationAndroidConfigParamsArgs;
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 androidEnDestination = new EnDestinationAndroid("androidEnDestination", EnDestinationAndroidArgs.builder()
.instanceGuid(ibm_resource_instance.en_terraform_test_resource().guid())
.type("push_android")
.collectFailedEvents(false)
.description("The Android Destination")
.config(EnDestinationAndroidConfigArgs.builder()
.params(EnDestinationAndroidConfigParamsArgs.builder()
.projectId("5237288990")
.privateKey("36228ghutwervhudokmk")
.clientEmail("testuser123@gmail.com")
.preProd(false)
.build())
.build())
.build());
}
}
resources:
androidEnDestination:
type: ibm:EnDestinationAndroid
properties:
instanceGuid: ${ibm_resource_instance.en_terraform_test_resource.guid}
type: push_android
collectFailedEvents: false
description: The Android Destination
config:
params:
projectId: '5237288990'
privateKey: 36228ghutwervhudokmk
clientEmail: testuser123@gmail.com
preProd: false
Create EnDestinationAndroid Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EnDestinationAndroid(name: string, args: EnDestinationAndroidArgs, opts?: CustomResourceOptions);
@overload
def EnDestinationAndroid(resource_name: str,
args: EnDestinationAndroidArgs,
opts: Optional[ResourceOptions] = None)
@overload
def EnDestinationAndroid(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_guid: Optional[str] = None,
type: Optional[str] = None,
collect_failed_events: Optional[bool] = None,
config: Optional[EnDestinationAndroidConfigArgs] = None,
description: Optional[str] = None,
en_destination_android_id: Optional[str] = None,
name: Optional[str] = None)
func NewEnDestinationAndroid(ctx *Context, name string, args EnDestinationAndroidArgs, opts ...ResourceOption) (*EnDestinationAndroid, error)
public EnDestinationAndroid(string name, EnDestinationAndroidArgs args, CustomResourceOptions? opts = null)
public EnDestinationAndroid(String name, EnDestinationAndroidArgs args)
public EnDestinationAndroid(String name, EnDestinationAndroidArgs args, CustomResourceOptions options)
type: ibm:EnDestinationAndroid
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 EnDestinationAndroidArgs
- 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 EnDestinationAndroidArgs
- 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 EnDestinationAndroidArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EnDestinationAndroidArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EnDestinationAndroidArgs
- 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 enDestinationAndroidResource = new Ibm.EnDestinationAndroid("enDestinationAndroidResource", new()
{
InstanceGuid = "string",
Type = "string",
CollectFailedEvents = false,
Config = new Ibm.Inputs.EnDestinationAndroidConfigArgs
{
Params = new Ibm.Inputs.EnDestinationAndroidConfigParamsArgs
{
ClientEmail = "string",
PrivateKey = "string",
ProjectId = "string",
PreProd = false,
},
},
Description = "string",
EnDestinationAndroidId = "string",
Name = "string",
});
example, err := ibm.NewEnDestinationAndroid(ctx, "enDestinationAndroidResource", &ibm.EnDestinationAndroidArgs{
InstanceGuid: pulumi.String("string"),
Type: pulumi.String("string"),
CollectFailedEvents: pulumi.Bool(false),
Config: &ibm.EnDestinationAndroidConfigArgs{
Params: &ibm.EnDestinationAndroidConfigParamsArgs{
ClientEmail: pulumi.String("string"),
PrivateKey: pulumi.String("string"),
ProjectId: pulumi.String("string"),
PreProd: pulumi.Bool(false),
},
},
Description: pulumi.String("string"),
EnDestinationAndroidId: pulumi.String("string"),
Name: pulumi.String("string"),
})
var enDestinationAndroidResource = new EnDestinationAndroid("enDestinationAndroidResource", EnDestinationAndroidArgs.builder()
.instanceGuid("string")
.type("string")
.collectFailedEvents(false)
.config(EnDestinationAndroidConfigArgs.builder()
.params(EnDestinationAndroidConfigParamsArgs.builder()
.clientEmail("string")
.privateKey("string")
.projectId("string")
.preProd(false)
.build())
.build())
.description("string")
.enDestinationAndroidId("string")
.name("string")
.build());
en_destination_android_resource = ibm.EnDestinationAndroid("enDestinationAndroidResource",
instance_guid="string",
type="string",
collect_failed_events=False,
config={
"params": {
"client_email": "string",
"private_key": "string",
"project_id": "string",
"pre_prod": False,
},
},
description="string",
en_destination_android_id="string",
name="string")
const enDestinationAndroidResource = new ibm.EnDestinationAndroid("enDestinationAndroidResource", {
instanceGuid: "string",
type: "string",
collectFailedEvents: false,
config: {
params: {
clientEmail: "string",
privateKey: "string",
projectId: "string",
preProd: false,
},
},
description: "string",
enDestinationAndroidId: "string",
name: "string",
});
type: ibm:EnDestinationAndroid
properties:
collectFailedEvents: false
config:
params:
clientEmail: string
preProd: false
privateKey: string
projectId: string
description: string
enDestinationAndroidId: string
instanceGuid: string
name: string
type: string
EnDestinationAndroid 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 EnDestinationAndroid resource accepts the following input properties:
- Instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- Type string
- push_android.
- Collect
Failed boolEvents - Toggle switch to enable collect failed event in Cloud Object Storage bucket.
- Config
En
Destination Android Config Payload describing a destination configuration.
Nested scheme for config:
- Description string
- The Destination description.
- En
Destination stringAndroid Id - (String) The unique identifier of the
android_en_destination
. - Name string
- The Destintion name.
- Instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- Type string
- push_android.
- Collect
Failed boolEvents - Toggle switch to enable collect failed event in Cloud Object Storage bucket.
- Config
En
Destination Android Config Args Payload describing a destination configuration.
Nested scheme for config:
- Description string
- The Destination description.
- En
Destination stringAndroid Id - (String) The unique identifier of the
android_en_destination
. - Name string
- The Destintion name.
- instance
Guid String - Unique identifier for IBM Cloud Event Notifications instance.
- type String
- push_android.
- collect
Failed BooleanEvents - Toggle switch to enable collect failed event in Cloud Object Storage bucket.
- config
En
Destination Android Config Payload describing a destination configuration.
Nested scheme for config:
- description String
- The Destination description.
- en
Destination StringAndroid Id - (String) The unique identifier of the
android_en_destination
. - name String
- The Destintion name.
- instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- type string
- push_android.
- collect
Failed booleanEvents - Toggle switch to enable collect failed event in Cloud Object Storage bucket.
- config
En
Destination Android Config Payload describing a destination configuration.
Nested scheme for config:
- description string
- The Destination description.
- en
Destination stringAndroid Id - (String) The unique identifier of the
android_en_destination
. - name string
- The Destintion name.
- instance_
guid str - Unique identifier for IBM Cloud Event Notifications instance.
- type str
- push_android.
- collect_
failed_ boolevents - Toggle switch to enable collect failed event in Cloud Object Storage bucket.
- config
En
Destination Android Config Args Payload describing a destination configuration.
Nested scheme for config:
- description str
- The Destination description.
- en_
destination_ strandroid_ id - (String) The unique identifier of the
android_en_destination
. - name str
- The Destintion name.
- instance
Guid String - Unique identifier for IBM Cloud Event Notifications instance.
- type String
- push_android.
- collect
Failed BooleanEvents - Toggle switch to enable collect failed event in Cloud Object Storage bucket.
- config Property Map
Payload describing a destination configuration.
Nested scheme for config:
- description String
- The Destination description.
- en
Destination StringAndroid Id - (String) The unique identifier of the
android_en_destination
. - name String
- The Destintion name.
Outputs
All input properties are implicitly available as output properties. Additionally, the EnDestinationAndroid resource produces the following output properties:
- Destination
Id string - (String) The unique identifier of the created destination.
- Id string
- The provider-assigned unique ID for this managed resource.
- Subscription
Count double - (Integer) Number of subscriptions.
- Constraints: The minimum value is
0
.
- Constraints: The minimum value is
- Subscription
Names List<string> - (List) List of subscriptions.
- Updated
At string - (String) Last updated time.
- Destination
Id string - (String) The unique identifier of the created destination.
- Id string
- The provider-assigned unique ID for this managed resource.
- Subscription
Count float64 - (Integer) Number of subscriptions.
- Constraints: The minimum value is
0
.
- Constraints: The minimum value is
- Subscription
Names []string - (List) List of subscriptions.
- Updated
At string - (String) Last updated time.
- destination
Id String - (String) The unique identifier of the created destination.
- id String
- The provider-assigned unique ID for this managed resource.
- subscription
Count Double - (Integer) Number of subscriptions.
- Constraints: The minimum value is
0
.
- Constraints: The minimum value is
- subscription
Names List<String> - (List) List of subscriptions.
- updated
At String - (String) Last updated time.
- destination
Id string - (String) The unique identifier of the created destination.
- id string
- The provider-assigned unique ID for this managed resource.
- subscription
Count number - (Integer) Number of subscriptions.
- Constraints: The minimum value is
0
.
- Constraints: The minimum value is
- subscription
Names string[] - (List) List of subscriptions.
- updated
At string - (String) Last updated time.
- destination_
id str - (String) The unique identifier of the created destination.
- id str
- The provider-assigned unique ID for this managed resource.
- subscription_
count float - (Integer) Number of subscriptions.
- Constraints: The minimum value is
0
.
- Constraints: The minimum value is
- subscription_
names Sequence[str] - (List) List of subscriptions.
- updated_
at str - (String) Last updated time.
- destination
Id String - (String) The unique identifier of the created destination.
- id String
- The provider-assigned unique ID for this managed resource.
- subscription
Count Number - (Integer) Number of subscriptions.
- Constraints: The minimum value is
0
.
- Constraints: The minimum value is
- subscription
Names List<String> - (List) List of subscriptions.
- updated
At String - (String) Last updated time.
Look up Existing EnDestinationAndroid Resource
Get an existing EnDestinationAndroid 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?: EnDestinationAndroidState, opts?: CustomResourceOptions): EnDestinationAndroid
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
collect_failed_events: Optional[bool] = None,
config: Optional[EnDestinationAndroidConfigArgs] = None,
description: Optional[str] = None,
destination_id: Optional[str] = None,
en_destination_android_id: Optional[str] = None,
instance_guid: Optional[str] = None,
name: Optional[str] = None,
subscription_count: Optional[float] = None,
subscription_names: Optional[Sequence[str]] = None,
type: Optional[str] = None,
updated_at: Optional[str] = None) -> EnDestinationAndroid
func GetEnDestinationAndroid(ctx *Context, name string, id IDInput, state *EnDestinationAndroidState, opts ...ResourceOption) (*EnDestinationAndroid, error)
public static EnDestinationAndroid Get(string name, Input<string> id, EnDestinationAndroidState? state, CustomResourceOptions? opts = null)
public static EnDestinationAndroid get(String name, Output<String> id, EnDestinationAndroidState state, CustomResourceOptions options)
resources: _: type: ibm:EnDestinationAndroid get: id: ${id}
- 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.
- Collect
Failed boolEvents - Toggle switch to enable collect failed event in Cloud Object Storage bucket.
- Config
En
Destination Android Config Payload describing a destination configuration.
Nested scheme for config:
- Description string
- The Destination description.
- Destination
Id string - (String) The unique identifier of the created destination.
- En
Destination stringAndroid Id - (String) The unique identifier of the
android_en_destination
. - Instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- Name string
- The Destintion name.
- Subscription
Count double - (Integer) Number of subscriptions.
- Constraints: The minimum value is
0
.
- Constraints: The minimum value is
- Subscription
Names List<string> - (List) List of subscriptions.
- Type string
- push_android.
- Updated
At string - (String) Last updated time.
- Collect
Failed boolEvents - Toggle switch to enable collect failed event in Cloud Object Storage bucket.
- Config
En
Destination Android Config Args Payload describing a destination configuration.
Nested scheme for config:
- Description string
- The Destination description.
- Destination
Id string - (String) The unique identifier of the created destination.
- En
Destination stringAndroid Id - (String) The unique identifier of the
android_en_destination
. - Instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- Name string
- The Destintion name.
- Subscription
Count float64 - (Integer) Number of subscriptions.
- Constraints: The minimum value is
0
.
- Constraints: The minimum value is
- Subscription
Names []string - (List) List of subscriptions.
- Type string
- push_android.
- Updated
At string - (String) Last updated time.
- collect
Failed BooleanEvents - Toggle switch to enable collect failed event in Cloud Object Storage bucket.
- config
En
Destination Android Config Payload describing a destination configuration.
Nested scheme for config:
- description String
- The Destination description.
- destination
Id String - (String) The unique identifier of the created destination.
- en
Destination StringAndroid Id - (String) The unique identifier of the
android_en_destination
. - instance
Guid String - Unique identifier for IBM Cloud Event Notifications instance.
- name String
- The Destintion name.
- subscription
Count Double - (Integer) Number of subscriptions.
- Constraints: The minimum value is
0
.
- Constraints: The minimum value is
- subscription
Names List<String> - (List) List of subscriptions.
- type String
- push_android.
- updated
At String - (String) Last updated time.
- collect
Failed booleanEvents - Toggle switch to enable collect failed event in Cloud Object Storage bucket.
- config
En
Destination Android Config Payload describing a destination configuration.
Nested scheme for config:
- description string
- The Destination description.
- destination
Id string - (String) The unique identifier of the created destination.
- en
Destination stringAndroid Id - (String) The unique identifier of the
android_en_destination
. - instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- name string
- The Destintion name.
- subscription
Count number - (Integer) Number of subscriptions.
- Constraints: The minimum value is
0
.
- Constraints: The minimum value is
- subscription
Names string[] - (List) List of subscriptions.
- type string
- push_android.
- updated
At string - (String) Last updated time.
- collect_
failed_ boolevents - Toggle switch to enable collect failed event in Cloud Object Storage bucket.
- config
En
Destination Android Config Args Payload describing a destination configuration.
Nested scheme for config:
- description str
- The Destination description.
- destination_
id str - (String) The unique identifier of the created destination.
- en_
destination_ strandroid_ id - (String) The unique identifier of the
android_en_destination
. - instance_
guid str - Unique identifier for IBM Cloud Event Notifications instance.
- name str
- The Destintion name.
- subscription_
count float - (Integer) Number of subscriptions.
- Constraints: The minimum value is
0
.
- Constraints: The minimum value is
- subscription_
names Sequence[str] - (List) List of subscriptions.
- type str
- push_android.
- updated_
at str - (String) Last updated time.
- collect
Failed BooleanEvents - Toggle switch to enable collect failed event in Cloud Object Storage bucket.
- config Property Map
Payload describing a destination configuration.
Nested scheme for config:
- description String
- The Destination description.
- destination
Id String - (String) The unique identifier of the created destination.
- en
Destination StringAndroid Id - (String) The unique identifier of the
android_en_destination
. - instance
Guid String - Unique identifier for IBM Cloud Event Notifications instance.
- name String
- The Destintion name.
- subscription
Count Number - (Integer) Number of subscriptions.
- Constraints: The minimum value is
0
.
- Constraints: The minimum value is
- subscription
Names List<String> - (List) List of subscriptions.
- type String
- push_android.
- updated
At String - (String) Last updated time.
Supporting Types
EnDestinationAndroidConfig, EnDestinationAndroidConfigArgs
- Params
En
Destination Android Config Params - Nested scheme for params:
- Params
En
Destination Android Config Params - Nested scheme for params:
- params
En
Destination Android Config Params - Nested scheme for params:
- params
En
Destination Android Config Params - Nested scheme for params:
- params
En
Destination Android Config Params - Nested scheme for params:
- params Property Map
- Nested scheme for params:
EnDestinationAndroidConfigParams, EnDestinationAndroidConfigParamsArgs
- Client
Email string - The FCM client_email.
- Private
Key string - The FCM private_key.
- Project
Id string - The FCM project_id.
- Pre
Prod bool - The flag to enable destination as pre-prod or prod
- Client
Email string - The FCM client_email.
- Private
Key string - The FCM private_key.
- Project
Id string - The FCM project_id.
- Pre
Prod bool - The flag to enable destination as pre-prod or prod
- client
Email String - The FCM client_email.
- private
Key String - The FCM private_key.
- project
Id String - The FCM project_id.
- pre
Prod Boolean - The flag to enable destination as pre-prod or prod
- client
Email string - The FCM client_email.
- private
Key string - The FCM private_key.
- project
Id string - The FCM project_id.
- pre
Prod boolean - The flag to enable destination as pre-prod or prod
- client_
email str - The FCM client_email.
- private_
key str - The FCM private_key.
- project_
id str - The FCM project_id.
- pre_
prod bool - The flag to enable destination as pre-prod or prod
- client
Email String - The FCM client_email.
- private
Key String - The FCM private_key.
- project
Id String - The FCM project_id.
- pre
Prod Boolean - The flag to enable destination as pre-prod or prod
Import
You can import the ibm_en_destination_android
resource by using id
.
The id
property can be formed from instance_guid
, and destination_id
in the following format:
<instance_guid>/<destination_id>
instance_guid
: A string. Unique identifier for IBM Cloud Event Notifications instance.destination_id
: A string. Unique identifier for Destination.
Example
$ pulumi import ibm:index/enDestinationAndroid:EnDestinationAndroid fcm_en_destination <instance_guid>/<destination_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.