Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.runtimeconfig/v1beta1.Waiter
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a Waiter resource. This operation returns a long-running Operation resource which can be polled for completion. However, a waiter with the given name will exist (and can be retrieved) prior to the operation completing. If the operation fails, the failed Waiter resource will still exist and must be deleted prior to subsequent creation attempts.
Create Waiter Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Waiter(name: string, args: WaiterArgs, opts?: CustomResourceOptions);
@overload
def Waiter(resource_name: str,
args: WaiterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Waiter(resource_name: str,
opts: Optional[ResourceOptions] = None,
config_id: Optional[str] = None,
failure: Optional[EndConditionArgs] = None,
name: Optional[str] = None,
project: Optional[str] = None,
request_id: Optional[str] = None,
success: Optional[EndConditionArgs] = None,
timeout: Optional[str] = None)
func NewWaiter(ctx *Context, name string, args WaiterArgs, opts ...ResourceOption) (*Waiter, error)
public Waiter(string name, WaiterArgs args, CustomResourceOptions? opts = null)
public Waiter(String name, WaiterArgs args)
public Waiter(String name, WaiterArgs args, CustomResourceOptions options)
type: google-native:runtimeconfig/v1beta1:Waiter
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 WaiterArgs
- 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 WaiterArgs
- 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 WaiterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WaiterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WaiterArgs
- 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 waiterResource = new GoogleNative.RuntimeConfig.V1Beta1.Waiter("waiterResource", new()
{
ConfigId = "string",
Failure = new GoogleNative.RuntimeConfig.V1Beta1.Inputs.EndConditionArgs
{
Cardinality = new GoogleNative.RuntimeConfig.V1Beta1.Inputs.CardinalityArgs
{
Number = 0,
Path = "string",
},
},
Name = "string",
Project = "string",
RequestId = "string",
Success = new GoogleNative.RuntimeConfig.V1Beta1.Inputs.EndConditionArgs
{
Cardinality = new GoogleNative.RuntimeConfig.V1Beta1.Inputs.CardinalityArgs
{
Number = 0,
Path = "string",
},
},
Timeout = "string",
});
example, err := runtimeconfig.NewWaiter(ctx, "waiterResource", &runtimeconfig.WaiterArgs{
ConfigId: pulumi.String("string"),
Failure: &runtimeconfig.EndConditionArgs{
Cardinality: &runtimeconfig.CardinalityArgs{
Number: pulumi.Int(0),
Path: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
Project: pulumi.String("string"),
RequestId: pulumi.String("string"),
Success: &runtimeconfig.EndConditionArgs{
Cardinality: &runtimeconfig.CardinalityArgs{
Number: pulumi.Int(0),
Path: pulumi.String("string"),
},
},
Timeout: pulumi.String("string"),
})
var waiterResource = new Waiter("waiterResource", WaiterArgs.builder()
.configId("string")
.failure(EndConditionArgs.builder()
.cardinality(CardinalityArgs.builder()
.number(0)
.path("string")
.build())
.build())
.name("string")
.project("string")
.requestId("string")
.success(EndConditionArgs.builder()
.cardinality(CardinalityArgs.builder()
.number(0)
.path("string")
.build())
.build())
.timeout("string")
.build());
waiter_resource = google_native.runtimeconfig.v1beta1.Waiter("waiterResource",
config_id="string",
failure={
"cardinality": {
"number": 0,
"path": "string",
},
},
name="string",
project="string",
request_id="string",
success={
"cardinality": {
"number": 0,
"path": "string",
},
},
timeout="string")
const waiterResource = new google_native.runtimeconfig.v1beta1.Waiter("waiterResource", {
configId: "string",
failure: {
cardinality: {
number: 0,
path: "string",
},
},
name: "string",
project: "string",
requestId: "string",
success: {
cardinality: {
number: 0,
path: "string",
},
},
timeout: "string",
});
type: google-native:runtimeconfig/v1beta1:Waiter
properties:
configId: string
failure:
cardinality:
number: 0
path: string
name: string
project: string
requestId: string
success:
cardinality:
number: 0
path: string
timeout: string
Waiter 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 Waiter resource accepts the following input properties:
- Config
Id string - Failure
Pulumi.
Google Native. Runtime Config. V1Beta1. Inputs. End Condition - [Optional] The failure condition of this waiter. If this condition is met,
done
will be set totrue
and theerror
code will be set toABORTED
. The failure condition takes precedence over the success condition. If both conditions are met, a failure will be indicated. This value is optional; if no failure condition is set, the only failure scenario will be a timeout. - Name string
- The name of the Waiter resource, in the format: projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME] The
[PROJECT_ID]
must be a valid Google Cloud project ID, the[CONFIG_NAME]
must be a valid RuntimeConfig resource, the[WAITER_NAME]
must match RFC 1035 segment specification, and the length of[WAITER_NAME]
must be less than 64 bytes. After you create a Waiter resource, you cannot change the resource name. - Project string
- Request
Id string - An optional but recommended unique
request_id
. If the server receives twocreate()
requests with the samerequest_id
, then the second request will be ignored and the first resource created and stored in the backend is returned. Emptyrequest_id
fields are ignored. It is responsibility of the client to ensure uniqueness of therequest_id
strings.request_id
strings are limited to 64 characters. - Success
Pulumi.
Google Native. Runtime Config. V1Beta1. Inputs. End Condition - [Required] The success condition. If this condition is met,
done
will be set totrue
and theerror
value will remain unset. The failure condition takes precedence over the success condition. If both conditions are met, a failure will be indicated. - Timeout string
- [Required] Specifies the timeout of the waiter in seconds, beginning from the instant that
waiters().create
method is called. If this time elapses before the success or failure conditions are met, the waiter fails and sets theerror
code toDEADLINE_EXCEEDED
.
- Config
Id string - Failure
End
Condition Args - [Optional] The failure condition of this waiter. If this condition is met,
done
will be set totrue
and theerror
code will be set toABORTED
. The failure condition takes precedence over the success condition. If both conditions are met, a failure will be indicated. This value is optional; if no failure condition is set, the only failure scenario will be a timeout. - Name string
- The name of the Waiter resource, in the format: projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME] The
[PROJECT_ID]
must be a valid Google Cloud project ID, the[CONFIG_NAME]
must be a valid RuntimeConfig resource, the[WAITER_NAME]
must match RFC 1035 segment specification, and the length of[WAITER_NAME]
must be less than 64 bytes. After you create a Waiter resource, you cannot change the resource name. - Project string
- Request
Id string - An optional but recommended unique
request_id
. If the server receives twocreate()
requests with the samerequest_id
, then the second request will be ignored and the first resource created and stored in the backend is returned. Emptyrequest_id
fields are ignored. It is responsibility of the client to ensure uniqueness of therequest_id
strings.request_id
strings are limited to 64 characters. - Success
End
Condition Args - [Required] The success condition. If this condition is met,
done
will be set totrue
and theerror
value will remain unset. The failure condition takes precedence over the success condition. If both conditions are met, a failure will be indicated. - Timeout string
- [Required] Specifies the timeout of the waiter in seconds, beginning from the instant that
waiters().create
method is called. If this time elapses before the success or failure conditions are met, the waiter fails and sets theerror
code toDEADLINE_EXCEEDED
.
- config
Id String - failure
End
Condition - [Optional] The failure condition of this waiter. If this condition is met,
done
will be set totrue
and theerror
code will be set toABORTED
. The failure condition takes precedence over the success condition. If both conditions are met, a failure will be indicated. This value is optional; if no failure condition is set, the only failure scenario will be a timeout. - name String
- The name of the Waiter resource, in the format: projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME] The
[PROJECT_ID]
must be a valid Google Cloud project ID, the[CONFIG_NAME]
must be a valid RuntimeConfig resource, the[WAITER_NAME]
must match RFC 1035 segment specification, and the length of[WAITER_NAME]
must be less than 64 bytes. After you create a Waiter resource, you cannot change the resource name. - project String
- request
Id String - An optional but recommended unique
request_id
. If the server receives twocreate()
requests with the samerequest_id
, then the second request will be ignored and the first resource created and stored in the backend is returned. Emptyrequest_id
fields are ignored. It is responsibility of the client to ensure uniqueness of therequest_id
strings.request_id
strings are limited to 64 characters. - success
End
Condition - [Required] The success condition. If this condition is met,
done
will be set totrue
and theerror
value will remain unset. The failure condition takes precedence over the success condition. If both conditions are met, a failure will be indicated. - timeout String
- [Required] Specifies the timeout of the waiter in seconds, beginning from the instant that
waiters().create
method is called. If this time elapses before the success or failure conditions are met, the waiter fails and sets theerror
code toDEADLINE_EXCEEDED
.
- config
Id string - failure
End
Condition - [Optional] The failure condition of this waiter. If this condition is met,
done
will be set totrue
and theerror
code will be set toABORTED
. The failure condition takes precedence over the success condition. If both conditions are met, a failure will be indicated. This value is optional; if no failure condition is set, the only failure scenario will be a timeout. - name string
- The name of the Waiter resource, in the format: projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME] The
[PROJECT_ID]
must be a valid Google Cloud project ID, the[CONFIG_NAME]
must be a valid RuntimeConfig resource, the[WAITER_NAME]
must match RFC 1035 segment specification, and the length of[WAITER_NAME]
must be less than 64 bytes. After you create a Waiter resource, you cannot change the resource name. - project string
- request
Id string - An optional but recommended unique
request_id
. If the server receives twocreate()
requests with the samerequest_id
, then the second request will be ignored and the first resource created and stored in the backend is returned. Emptyrequest_id
fields are ignored. It is responsibility of the client to ensure uniqueness of therequest_id
strings.request_id
strings are limited to 64 characters. - success
End
Condition - [Required] The success condition. If this condition is met,
done
will be set totrue
and theerror
value will remain unset. The failure condition takes precedence over the success condition. If both conditions are met, a failure will be indicated. - timeout string
- [Required] Specifies the timeout of the waiter in seconds, beginning from the instant that
waiters().create
method is called. If this time elapses before the success or failure conditions are met, the waiter fails and sets theerror
code toDEADLINE_EXCEEDED
.
- config_
id str - failure
End
Condition Args - [Optional] The failure condition of this waiter. If this condition is met,
done
will be set totrue
and theerror
code will be set toABORTED
. The failure condition takes precedence over the success condition. If both conditions are met, a failure will be indicated. This value is optional; if no failure condition is set, the only failure scenario will be a timeout. - name str
- The name of the Waiter resource, in the format: projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME] The
[PROJECT_ID]
must be a valid Google Cloud project ID, the[CONFIG_NAME]
must be a valid RuntimeConfig resource, the[WAITER_NAME]
must match RFC 1035 segment specification, and the length of[WAITER_NAME]
must be less than 64 bytes. After you create a Waiter resource, you cannot change the resource name. - project str
- request_
id str - An optional but recommended unique
request_id
. If the server receives twocreate()
requests with the samerequest_id
, then the second request will be ignored and the first resource created and stored in the backend is returned. Emptyrequest_id
fields are ignored. It is responsibility of the client to ensure uniqueness of therequest_id
strings.request_id
strings are limited to 64 characters. - success
End
Condition Args - [Required] The success condition. If this condition is met,
done
will be set totrue
and theerror
value will remain unset. The failure condition takes precedence over the success condition. If both conditions are met, a failure will be indicated. - timeout str
- [Required] Specifies the timeout of the waiter in seconds, beginning from the instant that
waiters().create
method is called. If this time elapses before the success or failure conditions are met, the waiter fails and sets theerror
code toDEADLINE_EXCEEDED
.
- config
Id String - failure Property Map
- [Optional] The failure condition of this waiter. If this condition is met,
done
will be set totrue
and theerror
code will be set toABORTED
. The failure condition takes precedence over the success condition. If both conditions are met, a failure will be indicated. This value is optional; if no failure condition is set, the only failure scenario will be a timeout. - name String
- The name of the Waiter resource, in the format: projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME] The
[PROJECT_ID]
must be a valid Google Cloud project ID, the[CONFIG_NAME]
must be a valid RuntimeConfig resource, the[WAITER_NAME]
must match RFC 1035 segment specification, and the length of[WAITER_NAME]
must be less than 64 bytes. After you create a Waiter resource, you cannot change the resource name. - project String
- request
Id String - An optional but recommended unique
request_id
. If the server receives twocreate()
requests with the samerequest_id
, then the second request will be ignored and the first resource created and stored in the backend is returned. Emptyrequest_id
fields are ignored. It is responsibility of the client to ensure uniqueness of therequest_id
strings.request_id
strings are limited to 64 characters. - success Property Map
- [Required] The success condition. If this condition is met,
done
will be set totrue
and theerror
value will remain unset. The failure condition takes precedence over the success condition. If both conditions are met, a failure will be indicated. - timeout String
- [Required] Specifies the timeout of the waiter in seconds, beginning from the instant that
waiters().create
method is called. If this time elapses before the success or failure conditions are met, the waiter fails and sets theerror
code toDEADLINE_EXCEEDED
.
Outputs
All input properties are implicitly available as output properties. Additionally, the Waiter resource produces the following output properties:
- Create
Time string - The instant at which this Waiter resource was created. Adding the value of
timeout
to this instant yields the timeout deadline for the waiter. - Done bool
- If the value is
false
, it means the waiter is still waiting for one of its conditions to be met. If true, the waiter has finished. If the waiter finished due to a timeout or failure,error
will be set. - Error
Pulumi.
Google Native. Runtime Config. V1Beta1. Outputs. Status Response - If the waiter ended due to a failure or timeout, this value will be set.
- Id string
- The provider-assigned unique ID for this managed resource.
- Create
Time string - The instant at which this Waiter resource was created. Adding the value of
timeout
to this instant yields the timeout deadline for the waiter. - Done bool
- If the value is
false
, it means the waiter is still waiting for one of its conditions to be met. If true, the waiter has finished. If the waiter finished due to a timeout or failure,error
will be set. - Error
Status
Response - If the waiter ended due to a failure or timeout, this value will be set.
- Id string
- The provider-assigned unique ID for this managed resource.
- create
Time String - The instant at which this Waiter resource was created. Adding the value of
timeout
to this instant yields the timeout deadline for the waiter. - done Boolean
- If the value is
false
, it means the waiter is still waiting for one of its conditions to be met. If true, the waiter has finished. If the waiter finished due to a timeout or failure,error
will be set. - error
Status
Response - If the waiter ended due to a failure or timeout, this value will be set.
- id String
- The provider-assigned unique ID for this managed resource.
- create
Time string - The instant at which this Waiter resource was created. Adding the value of
timeout
to this instant yields the timeout deadline for the waiter. - done boolean
- If the value is
false
, it means the waiter is still waiting for one of its conditions to be met. If true, the waiter has finished. If the waiter finished due to a timeout or failure,error
will be set. - error
Status
Response - If the waiter ended due to a failure or timeout, this value will be set.
- id string
- The provider-assigned unique ID for this managed resource.
- create_
time str - The instant at which this Waiter resource was created. Adding the value of
timeout
to this instant yields the timeout deadline for the waiter. - done bool
- If the value is
false
, it means the waiter is still waiting for one of its conditions to be met. If true, the waiter has finished. If the waiter finished due to a timeout or failure,error
will be set. - error
Status
Response - If the waiter ended due to a failure or timeout, this value will be set.
- id str
- The provider-assigned unique ID for this managed resource.
- create
Time String - The instant at which this Waiter resource was created. Adding the value of
timeout
to this instant yields the timeout deadline for the waiter. - done Boolean
- If the value is
false
, it means the waiter is still waiting for one of its conditions to be met. If true, the waiter has finished. If the waiter finished due to a timeout or failure,error
will be set. - error Property Map
- If the waiter ended due to a failure or timeout, this value will be set.
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
Cardinality, CardinalityArgs
CardinalityResponse, CardinalityResponseArgs
EndCondition, EndConditionArgs
- Cardinality
Pulumi.
Google Native. Runtime Config. V1Beta1. Inputs. Cardinality - The cardinality of the
EndCondition
.
- Cardinality Cardinality
- The cardinality of the
EndCondition
.
- cardinality Cardinality
- The cardinality of the
EndCondition
.
- cardinality Cardinality
- The cardinality of the
EndCondition
.
- cardinality Cardinality
- The cardinality of the
EndCondition
.
- cardinality Property Map
- The cardinality of the
EndCondition
.
EndConditionResponse, EndConditionResponseArgs
- Cardinality
Pulumi.
Google Native. Runtime Config. V1Beta1. Inputs. Cardinality Response - The cardinality of the
EndCondition
.
- Cardinality
Cardinality
Response - The cardinality of the
EndCondition
.
- cardinality
Cardinality
Response - The cardinality of the
EndCondition
.
- cardinality
Cardinality
Response - The cardinality of the
EndCondition
.
- cardinality
Cardinality
Response - The cardinality of the
EndCondition
.
- cardinality Property Map
- The cardinality of the
EndCondition
.
StatusResponse, StatusResponseArgs
- Code int
- The status code, which should be an enum value of google.rpc.Code.
- Details
List<Immutable
Dictionary<string, string>> - A list of messages that carry the error details. There is a common set of message types for APIs to use.
- Message string
- A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
- Code int
- The status code, which should be an enum value of google.rpc.Code.
- Details []map[string]string
- A list of messages that carry the error details. There is a common set of message types for APIs to use.
- Message string
- A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
- code Integer
- The status code, which should be an enum value of google.rpc.Code.
- details List<Map<String,String>>
- A list of messages that carry the error details. There is a common set of message types for APIs to use.
- message String
- A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
- code number
- The status code, which should be an enum value of google.rpc.Code.
- details {[key: string]: string}[]
- A list of messages that carry the error details. There is a common set of message types for APIs to use.
- message string
- A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
- code int
- The status code, which should be an enum value of google.rpc.Code.
- details Sequence[Mapping[str, str]]
- A list of messages that carry the error details. There is a common set of message types for APIs to use.
- message str
- A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
- code Number
- The status code, which should be an enum value of google.rpc.Code.
- details List<Map<String>>
- A list of messages that carry the error details. There is a common set of message types for APIs to use.
- message String
- A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.