UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

226 lines (225 loc) 8.21 kB
import * as pulumi from "@pulumi/pulumi"; /** * A Google Cloud Firebase Apple application instance * * To get more information about AppleApp, see: * * * [API documentation](https://firebase.google.com/docs/reference/firebase-management/rest/v1beta1/projects.iosApps) * * How-to Guides * * [Official Documentation](https://firebase.google.com/docs/ios/setup) * * ## Example Usage * * ### Firebase Apple App Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const _default = new gcp.firebase.AppleApp("default", { * project: "my-project-name", * displayName: "Display Name Basic", * bundleId: "apple.app.12345", * }); * ``` * ### Firebase Apple App Full * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const apple = new gcp.projects.ApiKey("apple", { * name: "api-key", * displayName: "Display Name Full", * project: "my-project-name", * restrictions: { * iosKeyRestrictions: { * allowedBundleIds: ["apple.app.12345"], * }, * }, * }); * const full = new gcp.firebase.AppleApp("full", { * project: "my-project-name", * displayName: "Display Name Full", * bundleId: "apple.app.12345", * appStoreId: "12345", * teamId: "9987654321", * apiKeyId: apple.uid, * }); * ``` * * ## Import * * AppleApp can be imported using any of these accepted formats: * * * `{{project}} projects/{{project}}/iosApps/{{app_id}}` * * * `projects/{{project}}/iosApps/{{app_id}}` * * * `{{project}}/{{project}}/{{app_id}}` * * * `iosApps/{{app_id}}` * * * `{{app_id}}` * * When using the `pulumi import` command, AppleApp can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:firebase/appleApp:AppleApp default "{{project}} projects/{{project}}/iosApps/{{app_id}}" * ``` * * ```sh * $ pulumi import gcp:firebase/appleApp:AppleApp default projects/{{project}}/iosApps/{{app_id}} * ``` * * ```sh * $ pulumi import gcp:firebase/appleApp:AppleApp default {{project}}/{{project}}/{{app_id}} * ``` * * ```sh * $ pulumi import gcp:firebase/appleApp:AppleApp default iosApps/{{app_id}} * ``` * * ```sh * $ pulumi import gcp:firebase/appleApp:AppleApp default {{app_id}} * ``` */ export declare class AppleApp extends pulumi.CustomResource { /** * Get an existing AppleApp resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AppleAppState, opts?: pulumi.CustomResourceOptions): AppleApp; /** * Returns true if the given object is an instance of AppleApp. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is AppleApp; /** * The globally unique, Google-assigned identifier (UID) for the Firebase API key associated with the AppleApp. * If apiKeyId is not set during creation, then Firebase automatically associates an apiKeyId with the AppleApp. * This auto-associated key may be an existing valid key or, if no valid key exists, a new one will be provisioned. */ readonly apiKeyId: pulumi.Output<string>; /** * The globally unique, Firebase-assigned identifier of the App. * This identifier should be treated as an opaque token, as the data format is not specified. */ readonly appId: pulumi.Output<string>; /** * The automatically generated Apple ID assigned to the Apple app by Apple in the Apple App Store. */ readonly appStoreId: pulumi.Output<string | undefined>; /** * The canonical bundle ID of the Apple app as it would appear in the Apple AppStore. */ readonly bundleId: pulumi.Output<string>; readonly deletionPolicy: pulumi.Output<string | undefined>; /** * The user-assigned display name of the App. */ readonly displayName: pulumi.Output<string>; /** * The fully qualified resource name of the App, for example: * projects/projectId/iosApps/appId */ readonly name: pulumi.Output<string>; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ readonly project: pulumi.Output<string>; /** * The Apple Developer Team ID associated with the App in the App Store. */ readonly teamId: pulumi.Output<string | undefined>; /** * Create a AppleApp resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: AppleAppArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AppleApp resources. */ export interface AppleAppState { /** * The globally unique, Google-assigned identifier (UID) for the Firebase API key associated with the AppleApp. * If apiKeyId is not set during creation, then Firebase automatically associates an apiKeyId with the AppleApp. * This auto-associated key may be an existing valid key or, if no valid key exists, a new one will be provisioned. */ apiKeyId?: pulumi.Input<string>; /** * The globally unique, Firebase-assigned identifier of the App. * This identifier should be treated as an opaque token, as the data format is not specified. */ appId?: pulumi.Input<string>; /** * The automatically generated Apple ID assigned to the Apple app by Apple in the Apple App Store. */ appStoreId?: pulumi.Input<string>; /** * The canonical bundle ID of the Apple app as it would appear in the Apple AppStore. */ bundleId?: pulumi.Input<string>; deletionPolicy?: pulumi.Input<string>; /** * The user-assigned display name of the App. */ displayName?: pulumi.Input<string>; /** * The fully qualified resource name of the App, for example: * projects/projectId/iosApps/appId */ name?: pulumi.Input<string>; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input<string>; /** * The Apple Developer Team ID associated with the App in the App Store. */ teamId?: pulumi.Input<string>; } /** * The set of arguments for constructing a AppleApp resource. */ export interface AppleAppArgs { /** * The globally unique, Google-assigned identifier (UID) for the Firebase API key associated with the AppleApp. * If apiKeyId is not set during creation, then Firebase automatically associates an apiKeyId with the AppleApp. * This auto-associated key may be an existing valid key or, if no valid key exists, a new one will be provisioned. */ apiKeyId?: pulumi.Input<string>; /** * The automatically generated Apple ID assigned to the Apple app by Apple in the Apple App Store. */ appStoreId?: pulumi.Input<string>; /** * The canonical bundle ID of the Apple app as it would appear in the Apple AppStore. */ bundleId: pulumi.Input<string>; deletionPolicy?: pulumi.Input<string>; /** * The user-assigned display name of the App. */ displayName: pulumi.Input<string>; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input<string>; /** * The Apple Developer Team ID associated with the App in the App Store. */ teamId?: pulumi.Input<string>; }