Class EngineSplitTraffic


  • public class EngineSplitTraffic
    extends com.pulumi.resources.CustomResource
    Traffic routing configuration for versions within a single service. Traffic splits define how traffic directed to the service is assigned to versions. To get more information about ServiceSplitTraffic, see: * [API documentation](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services) ## Example Usage ## Import ServiceSplitTraffic can be imported using any of these accepted formats* `apps/{{project}}/services/{{service}}` * `{{project}}/{{service}}` * `{{service}}` In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import ServiceSplitTraffic using one of the formats above. For exampletf import { id = "apps/{{project}}/services/{{service}}" to = google_app_engine_service_split_traffic.default } ```sh $ pulumi import gcp:appengine/engineSplitTraffic:EngineSplitTraffic When using the [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import), ServiceSplitTraffic can be imported using one of the formats above. For example ``` ```sh $ pulumi import gcp:appengine/engineSplitTraffic:EngineSplitTraffic default apps/{{project}}/services/{{service}} ``` ```sh $ pulumi import gcp:appengine/engineSplitTraffic:EngineSplitTraffic default {{project}}/{{service}} ``` ```sh $ pulumi import gcp:appengine/engineSplitTraffic:EngineSplitTraffic default {{service}} ```
    • 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
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static EngineSplitTraffic get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, EngineSplitTrafficState 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.util.Optional<java.lang.Boolean>> migrateTraffic()  
      com.pulumi.core.Output<java.lang.String> project()  
      com.pulumi.core.Output<java.lang.String> service()  
      com.pulumi.core.Output<EngineSplitTrafficSplit> split()  
      • Methods inherited from class com.pulumi.resources.CustomResource

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

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

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

      • EngineSplitTraffic

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

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

        public EngineSplitTraffic​(java.lang.String name,
                                  EngineSplitTrafficArgs 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

      • migrateTraffic

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> migrateTraffic()
        Returns:
        If set to true traffic will be migrated to this version.
      • 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.
      • service

        public com.pulumi.core.Output<java.lang.String> service()
        Returns:
        The name of the service these settings apply to.
      • split

        public com.pulumi.core.Output<EngineSplitTrafficSplit> split()
        Returns:
        Mapping that defines fractional HTTP traffic diversion to different versions within the service. Structure is documented below.
      • get

        public static EngineSplitTraffic get​(java.lang.String name,
                                             com.pulumi.core.Output<java.lang.String> id,
                                             @Nullable
                                             EngineSplitTrafficState 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.