Class AppleApp


  • public class AppleApp
    extends com.pulumi.resources.CustomResource
    ## Example Usage ### Firebase Apple App Basic ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.firebase.AppleApp; import com.pulumi.gcp.firebase.AppleAppArgs; import com.pulumi.resources.CustomResourceOptions; 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 default_ = new AppleApp("default", AppleAppArgs.builder() .project("my-project-name") .displayName("Display Name Basic") .bundleId("apple.app.12345") .build(), CustomResourceOptions.builder() .provider(google_beta) .build()); } } ``` ### Firebase Apple App Full ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.projects.ApiKey; import com.pulumi.gcp.projects.ApiKeyArgs; import com.pulumi.gcp.projects.inputs.ApiKeyRestrictionsArgs; import com.pulumi.gcp.projects.inputs.ApiKeyRestrictionsIosKeyRestrictionsArgs; import com.pulumi.gcp.firebase.AppleApp; import com.pulumi.gcp.firebase.AppleAppArgs; import com.pulumi.resources.CustomResourceOptions; 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 apple = new ApiKey("apple", ApiKeyArgs.builder() .displayName("Display Name Full") .project("my-project-name") .restrictions(ApiKeyRestrictionsArgs.builder() .iosKeyRestrictions(ApiKeyRestrictionsIosKeyRestrictionsArgs.builder() .allowedBundleIds("apple.app.12345") .build()) .build()) .build(), CustomResourceOptions.builder() .provider(google_beta) .build()); var full = new AppleApp("full", AppleAppArgs.builder() .project("my-project-name") .displayName("Display Name Full") .bundleId("apple.app.12345") .appStoreId("12345") .teamId("9987654321") .apiKeyId(apple.uid()) .build(), CustomResourceOptions.builder() .provider(google_beta) .build()); } } ``` ## Import AppleApp can be imported using any of these accepted formats ```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}} ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Constructor Summary

      Constructors 
      Constructor Description
      AppleApp​(java.lang.String name)  
      AppleApp​(java.lang.String name, AppleAppArgs args)  
      AppleApp​(java.lang.String name, AppleAppArgs args, com.pulumi.resources.CustomResourceOptions options)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<java.lang.String> apiKeyId()  
      com.pulumi.core.Output<java.lang.String> appId()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> appStoreId()  
      com.pulumi.core.Output<java.lang.String> bundleId()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> deletionPolicy()  
      com.pulumi.core.Output<java.lang.String> displayName()  
      static AppleApp get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, AppleAppState state, com.pulumi.resources.CustomResourceOptions options)
      Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
      com.pulumi.core.Output<java.lang.String> name()  
      com.pulumi.core.Output<java.lang.String> project()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> teamId()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AppleApp

        public AppleApp​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • AppleApp

        public AppleApp​(java.lang.String name,
                        AppleAppArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • AppleApp

        public AppleApp​(java.lang.String name,
                        AppleAppArgs args,
                        @Nullable
                        com.pulumi.resources.CustomResourceOptions options)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
        options - A bag of options that control this resource's behavior.
    • Method Detail

      • apiKeyId

        public com.pulumi.core.Output<java.lang.String> apiKeyId()
        Returns:
        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.
      • appId

        public com.pulumi.core.Output<java.lang.String> appId()
        Returns:
        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.
      • appStoreId

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> appStoreId()
        Returns:
        The automatically generated Apple ID assigned to the Apple app by Apple in the Apple App Store.
      • bundleId

        public com.pulumi.core.Output<java.lang.String> bundleId()
        Returns:
        The canonical bundle ID of the Apple app as it would appear in the Apple AppStore. ***
      • deletionPolicy

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> deletionPolicy()
        Returns:
        (Optional) Set to 'ABANDON' to allow the Apple to be untracked from terraform state rather than deleted upon 'terraform destroy'. This is useful because the Apple may be serving traffic. Set to 'DELETE' to delete the Apple. Defaults to 'DELETE'.
      • displayName

        public com.pulumi.core.Output<java.lang.String> displayName()
        Returns:
        The user-assigned display name of the App.
      • name

        public com.pulumi.core.Output<java.lang.String> name()
        Returns:
        The fully qualified resource name of the App, for example: projects/projectId/iosApps/appId
      • project

        public com.pulumi.core.Output<java.lang.String> project()
        Returns:
        The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
      • teamId

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> teamId()
        Returns:
        The Apple Developer Team ID associated with the App in the App Store.
      • get

        public static AppleApp get​(java.lang.String name,
                                   com.pulumi.core.Output<java.lang.String> id,
                                   @Nullable
                                   AppleAppState state,
                                   @Nullable
                                   com.pulumi.resources.CustomResourceOptions options)
        Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
        Parameters:
        name - The _unique_ name of the resulting resource.
        id - The _unique_ provider ID of the resource to lookup.
        state -
        options - Optional settings to control the behavior of the CustomResource.