Google Cloud (GCP) Classic
EngineSplitTraffic
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:
Create a EngineSplitTraffic Resource
new EngineSplitTraffic(name: string, args: EngineSplitTrafficArgs, opts?: CustomResourceOptions);
@overload
def EngineSplitTraffic(resource_name: str,
opts: Optional[ResourceOptions] = None,
migrate_traffic: Optional[bool] = None,
project: Optional[str] = None,
service: Optional[str] = None,
split: Optional[EngineSplitTrafficSplitArgs] = None)
@overload
def EngineSplitTraffic(resource_name: str,
args: EngineSplitTrafficArgs,
opts: Optional[ResourceOptions] = None)
func NewEngineSplitTraffic(ctx *Context, name string, args EngineSplitTrafficArgs, opts ...ResourceOption) (*EngineSplitTraffic, error)
public EngineSplitTraffic(string name, EngineSplitTrafficArgs args, CustomResourceOptions? opts = null)
public EngineSplitTraffic(String name, EngineSplitTrafficArgs args)
public EngineSplitTraffic(String name, EngineSplitTrafficArgs args, CustomResourceOptions options)
type: gcp:appengine:EngineSplitTraffic
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EngineSplitTrafficArgs
- 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 EngineSplitTrafficArgs
- 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 EngineSplitTrafficArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EngineSplitTrafficArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EngineSplitTrafficArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
EngineSplitTraffic Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The EngineSplitTraffic resource accepts the following input properties:
- Service string
The name of the service these settings apply to.
- Split
Engine
Split Traffic Split Args Mapping that defines fractional HTTP traffic diversion to different versions within the service. Structure is documented below.
- Migrate
Traffic bool If set to true traffic will be migrated to this version.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Service string
The name of the service these settings apply to.
- Split
Engine
Split Traffic Split Args Mapping that defines fractional HTTP traffic diversion to different versions within the service. Structure is documented below.
- Migrate
Traffic bool If set to true traffic will be migrated to this version.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- service String
The name of the service these settings apply to.
- split
Engine
Split Traffic Split Args Mapping that defines fractional HTTP traffic diversion to different versions within the service. Structure is documented below.
- migrate
Traffic Boolean If set to true traffic will be migrated to this version.
- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- service string
The name of the service these settings apply to.
- split
Engine
Split Traffic Split Args Mapping that defines fractional HTTP traffic diversion to different versions within the service. Structure is documented below.
- migrate
Traffic boolean If set to true traffic will be migrated to this version.
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- service str
The name of the service these settings apply to.
- split
Engine
Split Traffic Split Args Mapping that defines fractional HTTP traffic diversion to different versions within the service. Structure is documented below.
- migrate_
traffic bool If set to true traffic will be migrated to this version.
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- service String
The name of the service these settings apply to.
- split Property Map
Mapping that defines fractional HTTP traffic diversion to different versions within the service. Structure is documented below.
- migrate
Traffic Boolean If set to true traffic will be migrated to this version.
- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Outputs
All input properties are implicitly available as output properties. Additionally, the EngineSplitTraffic resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up an Existing EngineSplitTraffic Resource
Get an existing EngineSplitTraffic 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?: EngineSplitTrafficState, opts?: CustomResourceOptions): EngineSplitTraffic
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
migrate_traffic: Optional[bool] = None,
project: Optional[str] = None,
service: Optional[str] = None,
split: Optional[EngineSplitTrafficSplitArgs] = None) -> EngineSplitTraffic
func GetEngineSplitTraffic(ctx *Context, name string, id IDInput, state *EngineSplitTrafficState, opts ...ResourceOption) (*EngineSplitTraffic, error)
public static EngineSplitTraffic Get(string name, Input<string> id, EngineSplitTrafficState? state, CustomResourceOptions? opts = null)
public static EngineSplitTraffic get(String name, Output<String> id, EngineSplitTrafficState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Migrate
Traffic bool If set to true traffic will be migrated to this version.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Service string
The name of the service these settings apply to.
- Split
Engine
Split Traffic Split Args Mapping that defines fractional HTTP traffic diversion to different versions within the service. Structure is documented below.
- Migrate
Traffic bool If set to true traffic will be migrated to this version.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Service string
The name of the service these settings apply to.
- Split
Engine
Split Traffic Split Args Mapping that defines fractional HTTP traffic diversion to different versions within the service. Structure is documented below.
- migrate
Traffic Boolean If set to true traffic will be migrated to this version.
- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- service String
The name of the service these settings apply to.
- split
Engine
Split Traffic Split Args Mapping that defines fractional HTTP traffic diversion to different versions within the service. Structure is documented below.
- migrate
Traffic boolean If set to true traffic will be migrated to this version.
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- service string
The name of the service these settings apply to.
- split
Engine
Split Traffic Split Args Mapping that defines fractional HTTP traffic diversion to different versions within the service. Structure is documented below.
- migrate_
traffic bool If set to true traffic will be migrated to this version.
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- service str
The name of the service these settings apply to.
- split
Engine
Split Traffic Split Args Mapping that defines fractional HTTP traffic diversion to different versions within the service. Structure is documented below.
- migrate
Traffic Boolean If set to true traffic will be migrated to this version.
- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- service String
The name of the service these settings apply to.
- split Property Map
Mapping that defines fractional HTTP traffic diversion to different versions within the service. Structure is documented below.
Supporting Types
EngineSplitTrafficSplit
- Allocations Dictionary<string, string>
Mapping from version IDs within the service to fractional (0.000, 1] allocations of traffic for that version. Each version can be specified only once, but some versions in the service may not have any traffic allocation. Services that have traffic allocated cannot be deleted until either the service is deleted or their traffic allocation is removed. Allocations must sum to 1. Up to two decimal place precision is supported for IP-based splits and up to three decimal places is supported for cookie-based splits.
- string
Mechanism used to determine which version a request is sent to. The traffic selection algorithm will be stable for either type until allocations are changed. Possible values are
UNSPECIFIED
,COOKIE
,IP
, andRANDOM
.
- Allocations map[string]string
Mapping from version IDs within the service to fractional (0.000, 1] allocations of traffic for that version. Each version can be specified only once, but some versions in the service may not have any traffic allocation. Services that have traffic allocated cannot be deleted until either the service is deleted or their traffic allocation is removed. Allocations must sum to 1. Up to two decimal place precision is supported for IP-based splits and up to three decimal places is supported for cookie-based splits.
- string
Mechanism used to determine which version a request is sent to. The traffic selection algorithm will be stable for either type until allocations are changed. Possible values are
UNSPECIFIED
,COOKIE
,IP
, andRANDOM
.
- allocations Map<String,String>
Mapping from version IDs within the service to fractional (0.000, 1] allocations of traffic for that version. Each version can be specified only once, but some versions in the service may not have any traffic allocation. Services that have traffic allocated cannot be deleted until either the service is deleted or their traffic allocation is removed. Allocations must sum to 1. Up to two decimal place precision is supported for IP-based splits and up to three decimal places is supported for cookie-based splits.
- String
Mechanism used to determine which version a request is sent to. The traffic selection algorithm will be stable for either type until allocations are changed. Possible values are
UNSPECIFIED
,COOKIE
,IP
, andRANDOM
.
- allocations {[key: string]: string}
Mapping from version IDs within the service to fractional (0.000, 1] allocations of traffic for that version. Each version can be specified only once, but some versions in the service may not have any traffic allocation. Services that have traffic allocated cannot be deleted until either the service is deleted or their traffic allocation is removed. Allocations must sum to 1. Up to two decimal place precision is supported for IP-based splits and up to three decimal places is supported for cookie-based splits.
- string
Mechanism used to determine which version a request is sent to. The traffic selection algorithm will be stable for either type until allocations are changed. Possible values are
UNSPECIFIED
,COOKIE
,IP
, andRANDOM
.
- allocations Mapping[str, str]
Mapping from version IDs within the service to fractional (0.000, 1] allocations of traffic for that version. Each version can be specified only once, but some versions in the service may not have any traffic allocation. Services that have traffic allocated cannot be deleted until either the service is deleted or their traffic allocation is removed. Allocations must sum to 1. Up to two decimal place precision is supported for IP-based splits and up to three decimal places is supported for cookie-based splits.
- str
Mechanism used to determine which version a request is sent to. The traffic selection algorithm will be stable for either type until allocations are changed. Possible values are
UNSPECIFIED
,COOKIE
,IP
, andRANDOM
.
- allocations Map<String>
Mapping from version IDs within the service to fractional (0.000, 1] allocations of traffic for that version. Each version can be specified only once, but some versions in the service may not have any traffic allocation. Services that have traffic allocated cannot be deleted until either the service is deleted or their traffic allocation is removed. Allocations must sum to 1. Up to two decimal place precision is supported for IP-based splits and up to three decimal places is supported for cookie-based splits.
- String
Mechanism used to determine which version a request is sent to. The traffic selection algorithm will be stable for either type until allocations are changed. Possible values are
UNSPECIFIED
,COOKIE
,IP
, andRANDOM
.
Import
ServiceSplitTraffic can be imported using any of these accepted formats
$ pulumi import gcp:appengine/engineSplitTraffic:EngineSplitTraffic default apps/{{project}}/services/{{service}}
$ pulumi import gcp:appengine/engineSplitTraffic:EngineSplitTraffic default {{project}}/{{service}}
$ pulumi import gcp:appengine/engineSplitTraffic:EngineSplitTraffic default {{service}}
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
google-beta
Terraform Provider.