Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.workloadmanager/v1.Evaluation
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a new Evaluation in a given project and location. Note - this resource’s API doesn’t support deletion. When deleted, the resource will persist on Google Cloud even though it will be deleted from Pulumi state.
Create Evaluation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Evaluation(name: string, args: EvaluationArgs, opts?: CustomResourceOptions);
@overload
def Evaluation(resource_name: str,
args: EvaluationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Evaluation(resource_name: str,
opts: Optional[ResourceOptions] = None,
evaluation_id: Optional[str] = None,
custom_rules_bucket: Optional[str] = None,
description: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
request_id: Optional[str] = None,
resource_filter: Optional[ResourceFilterArgs] = None,
rule_names: Optional[Sequence[str]] = None,
schedule: Optional[str] = None)
func NewEvaluation(ctx *Context, name string, args EvaluationArgs, opts ...ResourceOption) (*Evaluation, error)
public Evaluation(string name, EvaluationArgs args, CustomResourceOptions? opts = null)
public Evaluation(String name, EvaluationArgs args)
public Evaluation(String name, EvaluationArgs args, CustomResourceOptions options)
type: google-native:workloadmanager/v1:Evaluation
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 EvaluationArgs
- 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 EvaluationArgs
- 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 EvaluationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EvaluationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EvaluationArgs
- 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 google_nativeEvaluationResource = new GoogleNative.WorkloadManager.V1.Evaluation("google-nativeEvaluationResource", new()
{
EvaluationId = "string",
CustomRulesBucket = "string",
Description = "string",
Labels =
{
{ "string", "string" },
},
Location = "string",
Name = "string",
Project = "string",
RequestId = "string",
ResourceFilter = new GoogleNative.WorkloadManager.V1.Inputs.ResourceFilterArgs
{
GceInstanceFilter = new GoogleNative.WorkloadManager.V1.Inputs.GceInstanceFilterArgs
{
ServiceAccounts = new[]
{
"string",
},
},
InclusionLabels =
{
{ "string", "string" },
},
ResourceIdPatterns = new[]
{
"string",
},
Scopes = new[]
{
"string",
},
},
RuleNames = new[]
{
"string",
},
Schedule = "string",
});
example, err := workloadmanager.NewEvaluation(ctx, "google-nativeEvaluationResource", &workloadmanager.EvaluationArgs{
EvaluationId: pulumi.String("string"),
CustomRulesBucket: pulumi.String("string"),
Description: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Project: pulumi.String("string"),
RequestId: pulumi.String("string"),
ResourceFilter: &workloadmanager.ResourceFilterArgs{
GceInstanceFilter: &workloadmanager.GceInstanceFilterArgs{
ServiceAccounts: pulumi.StringArray{
pulumi.String("string"),
},
},
InclusionLabels: pulumi.StringMap{
"string": pulumi.String("string"),
},
ResourceIdPatterns: pulumi.StringArray{
pulumi.String("string"),
},
Scopes: pulumi.StringArray{
pulumi.String("string"),
},
},
RuleNames: pulumi.StringArray{
pulumi.String("string"),
},
Schedule: pulumi.String("string"),
})
var google_nativeEvaluationResource = new Evaluation("google-nativeEvaluationResource", EvaluationArgs.builder()
.evaluationId("string")
.customRulesBucket("string")
.description("string")
.labels(Map.of("string", "string"))
.location("string")
.name("string")
.project("string")
.requestId("string")
.resourceFilter(ResourceFilterArgs.builder()
.gceInstanceFilter(GceInstanceFilterArgs.builder()
.serviceAccounts("string")
.build())
.inclusionLabels(Map.of("string", "string"))
.resourceIdPatterns("string")
.scopes("string")
.build())
.ruleNames("string")
.schedule("string")
.build());
google_native_evaluation_resource = google_native.workloadmanager.v1.Evaluation("google-nativeEvaluationResource",
evaluation_id="string",
custom_rules_bucket="string",
description="string",
labels={
"string": "string",
},
location="string",
name="string",
project="string",
request_id="string",
resource_filter={
"gce_instance_filter": {
"service_accounts": ["string"],
},
"inclusion_labels": {
"string": "string",
},
"resource_id_patterns": ["string"],
"scopes": ["string"],
},
rule_names=["string"],
schedule="string")
const google_nativeEvaluationResource = new google_native.workloadmanager.v1.Evaluation("google-nativeEvaluationResource", {
evaluationId: "string",
customRulesBucket: "string",
description: "string",
labels: {
string: "string",
},
location: "string",
name: "string",
project: "string",
requestId: "string",
resourceFilter: {
gceInstanceFilter: {
serviceAccounts: ["string"],
},
inclusionLabels: {
string: "string",
},
resourceIdPatterns: ["string"],
scopes: ["string"],
},
ruleNames: ["string"],
schedule: "string",
});
type: google-native:workloadmanager/v1:Evaluation
properties:
customRulesBucket: string
description: string
evaluationId: string
labels:
string: string
location: string
name: string
project: string
requestId: string
resourceFilter:
gceInstanceFilter:
serviceAccounts:
- string
inclusionLabels:
string: string
resourceIdPatterns:
- string
scopes:
- string
ruleNames:
- string
schedule: string
Evaluation 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 Evaluation resource accepts the following input properties:
- Evaluation
Id string - Required. Id of the requesting object
- Custom
Rules stringBucket - The Cloud Storage bucket name for custom rules.
- Description string
- Description of the Evaluation
- Labels Dictionary<string, string>
- Labels as key value pairs
- Location string
- Name string
- name of resource names have the form 'projects/{project_id}/locations/{location_id}/evaluations/{evaluation_id}'
- Project string
- Request
Id string - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- Resource
Filter Pulumi.Google Native. Workload Manager. V1. Inputs. Resource Filter - annotations as key value pairs
- Rule
Names List<string> - the name of the rule
- Schedule string
- crontab format schedule for scheduled evaluation, currently only support the following schedule: "0 */1 * * *", "0 */6 * * *", "0 */12 * * *", "0 0 */1 * *", "0 0 */7 * *",
- Evaluation
Id string - Required. Id of the requesting object
- Custom
Rules stringBucket - The Cloud Storage bucket name for custom rules.
- Description string
- Description of the Evaluation
- Labels map[string]string
- Labels as key value pairs
- Location string
- Name string
- name of resource names have the form 'projects/{project_id}/locations/{location_id}/evaluations/{evaluation_id}'
- Project string
- Request
Id string - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- Resource
Filter ResourceFilter Args - annotations as key value pairs
- Rule
Names []string - the name of the rule
- Schedule string
- crontab format schedule for scheduled evaluation, currently only support the following schedule: "0 */1 * * *", "0 */6 * * *", "0 */12 * * *", "0 0 */1 * *", "0 0 */7 * *",
- evaluation
Id String - Required. Id of the requesting object
- custom
Rules StringBucket - The Cloud Storage bucket name for custom rules.
- description String
- Description of the Evaluation
- labels Map<String,String>
- Labels as key value pairs
- location String
- name String
- name of resource names have the form 'projects/{project_id}/locations/{location_id}/evaluations/{evaluation_id}'
- project String
- request
Id String - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- resource
Filter ResourceFilter - annotations as key value pairs
- rule
Names List<String> - the name of the rule
- schedule String
- crontab format schedule for scheduled evaluation, currently only support the following schedule: "0 */1 * * *", "0 */6 * * *", "0 */12 * * *", "0 0 */1 * *", "0 0 */7 * *",
- evaluation
Id string - Required. Id of the requesting object
- custom
Rules stringBucket - The Cloud Storage bucket name for custom rules.
- description string
- Description of the Evaluation
- labels {[key: string]: string}
- Labels as key value pairs
- location string
- name string
- name of resource names have the form 'projects/{project_id}/locations/{location_id}/evaluations/{evaluation_id}'
- project string
- request
Id string - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- resource
Filter ResourceFilter - annotations as key value pairs
- rule
Names string[] - the name of the rule
- schedule string
- crontab format schedule for scheduled evaluation, currently only support the following schedule: "0 */1 * * *", "0 */6 * * *", "0 */12 * * *", "0 0 */1 * *", "0 0 */7 * *",
- evaluation_
id str - Required. Id of the requesting object
- custom_
rules_ strbucket - The Cloud Storage bucket name for custom rules.
- description str
- Description of the Evaluation
- labels Mapping[str, str]
- Labels as key value pairs
- location str
- name str
- name of resource names have the form 'projects/{project_id}/locations/{location_id}/evaluations/{evaluation_id}'
- project str
- request_
id str - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- resource_
filter ResourceFilter Args - annotations as key value pairs
- rule_
names Sequence[str] - the name of the rule
- schedule str
- crontab format schedule for scheduled evaluation, currently only support the following schedule: "0 */1 * * *", "0 */6 * * *", "0 */12 * * *", "0 0 */1 * *", "0 0 */7 * *",
- evaluation
Id String - Required. Id of the requesting object
- custom
Rules StringBucket - The Cloud Storage bucket name for custom rules.
- description String
- Description of the Evaluation
- labels Map<String>
- Labels as key value pairs
- location String
- name String
- name of resource names have the form 'projects/{project_id}/locations/{location_id}/evaluations/{evaluation_id}'
- project String
- request
Id String - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- resource
Filter Property Map - annotations as key value pairs
- rule
Names List<String> - the name of the rule
- schedule String
- crontab format schedule for scheduled evaluation, currently only support the following schedule: "0 */1 * * *", "0 */6 * * *", "0 */12 * * *", "0 0 */1 * *", "0 0 */7 * *",
Outputs
All input properties are implicitly available as output properties. Additionally, the Evaluation resource produces the following output properties:
- Create
Time string - [Output only] Create time stamp
- Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Status Pulumi.Google Native. Workload Manager. V1. Outputs. Resource Status Response - [Output only] The updated rule ids if exist.
- Rule
Versions List<string> - [Output only] The updated rule ids if exist.
- Update
Time string - [Output only] Update time stamp
- Create
Time string - [Output only] Create time stamp
- Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Status ResourceStatus Response - [Output only] The updated rule ids if exist.
- Rule
Versions []string - [Output only] The updated rule ids if exist.
- Update
Time string - [Output only] Update time stamp
- create
Time String - [Output only] Create time stamp
- id String
- The provider-assigned unique ID for this managed resource.
- resource
Status ResourceStatus Response - [Output only] The updated rule ids if exist.
- rule
Versions List<String> - [Output only] The updated rule ids if exist.
- update
Time String - [Output only] Update time stamp
- create
Time string - [Output only] Create time stamp
- id string
- The provider-assigned unique ID for this managed resource.
- resource
Status ResourceStatus Response - [Output only] The updated rule ids if exist.
- rule
Versions string[] - [Output only] The updated rule ids if exist.
- update
Time string - [Output only] Update time stamp
- create_
time str - [Output only] Create time stamp
- id str
- The provider-assigned unique ID for this managed resource.
- resource_
status ResourceStatus Response - [Output only] The updated rule ids if exist.
- rule_
versions Sequence[str] - [Output only] The updated rule ids if exist.
- update_
time str - [Output only] Update time stamp
- create
Time String - [Output only] Create time stamp
- id String
- The provider-assigned unique ID for this managed resource.
- resource
Status Property Map - [Output only] The updated rule ids if exist.
- rule
Versions List<String> - [Output only] The updated rule ids if exist.
- update
Time String - [Output only] Update time stamp
Supporting Types
GceInstanceFilter, GceInstanceFilterArgs
- Service
Accounts List<string> - Service account of compute engine
- Service
Accounts []string - Service account of compute engine
- service
Accounts List<String> - Service account of compute engine
- service
Accounts string[] - Service account of compute engine
- service_
accounts Sequence[str] - Service account of compute engine
- service
Accounts List<String> - Service account of compute engine
GceInstanceFilterResponse, GceInstanceFilterResponseArgs
- Service
Accounts List<string> - Service account of compute engine
- Service
Accounts []string - Service account of compute engine
- service
Accounts List<String> - Service account of compute engine
- service
Accounts string[] - Service account of compute engine
- service_
accounts Sequence[str] - Service account of compute engine
- service
Accounts List<String> - Service account of compute engine
ResourceFilter, ResourceFilterArgs
- Gce
Instance Pulumi.Filter Google Native. Workload Manager. V1. Inputs. Gce Instance Filter - Filter compute engine resource
- Inclusion
Labels Dictionary<string, string> - The label used for filter resource
- Resource
Id List<string>Patterns - The id pattern for filter resource
- Scopes List<string>
- The scopes of evaluation resource
- Gce
Instance GceFilter Instance Filter - Filter compute engine resource
- Inclusion
Labels map[string]string - The label used for filter resource
- Resource
Id []stringPatterns - The id pattern for filter resource
- Scopes []string
- The scopes of evaluation resource
- gce
Instance GceFilter Instance Filter - Filter compute engine resource
- inclusion
Labels Map<String,String> - The label used for filter resource
- resource
Id List<String>Patterns - The id pattern for filter resource
- scopes List<String>
- The scopes of evaluation resource
- gce
Instance GceFilter Instance Filter - Filter compute engine resource
- inclusion
Labels {[key: string]: string} - The label used for filter resource
- resource
Id string[]Patterns - The id pattern for filter resource
- scopes string[]
- The scopes of evaluation resource
- gce_
instance_ Gcefilter Instance Filter - Filter compute engine resource
- inclusion_
labels Mapping[str, str] - The label used for filter resource
- resource_
id_ Sequence[str]patterns - The id pattern for filter resource
- scopes Sequence[str]
- The scopes of evaluation resource
- gce
Instance Property MapFilter - Filter compute engine resource
- inclusion
Labels Map<String> - The label used for filter resource
- resource
Id List<String>Patterns - The id pattern for filter resource
- scopes List<String>
- The scopes of evaluation resource
ResourceFilterResponse, ResourceFilterResponseArgs
- Gce
Instance Pulumi.Filter Google Native. Workload Manager. V1. Inputs. Gce Instance Filter Response - Filter compute engine resource
- Inclusion
Labels Dictionary<string, string> - The label used for filter resource
- Resource
Id List<string>Patterns - The id pattern for filter resource
- Scopes List<string>
- The scopes of evaluation resource
- Gce
Instance GceFilter Instance Filter Response - Filter compute engine resource
- Inclusion
Labels map[string]string - The label used for filter resource
- Resource
Id []stringPatterns - The id pattern for filter resource
- Scopes []string
- The scopes of evaluation resource
- gce
Instance GceFilter Instance Filter Response - Filter compute engine resource
- inclusion
Labels Map<String,String> - The label used for filter resource
- resource
Id List<String>Patterns - The id pattern for filter resource
- scopes List<String>
- The scopes of evaluation resource
- gce
Instance GceFilter Instance Filter Response - Filter compute engine resource
- inclusion
Labels {[key: string]: string} - The label used for filter resource
- resource
Id string[]Patterns - The id pattern for filter resource
- scopes string[]
- The scopes of evaluation resource
- gce_
instance_ Gcefilter Instance Filter Response - Filter compute engine resource
- inclusion_
labels Mapping[str, str] - The label used for filter resource
- resource_
id_ Sequence[str]patterns - The id pattern for filter resource
- scopes Sequence[str]
- The scopes of evaluation resource
- gce
Instance Property MapFilter - Filter compute engine resource
- inclusion
Labels Map<String> - The label used for filter resource
- resource
Id List<String>Patterns - The id pattern for filter resource
- scopes List<String>
- The scopes of evaluation resource
ResourceStatusResponse, ResourceStatusResponseArgs
- Rules
Newer List<string>Versions - Historical: Used before 2023-05-22 the new version of rule id if exists
- State string
- State of the resource
- Rules
Newer []stringVersions - Historical: Used before 2023-05-22 the new version of rule id if exists
- State string
- State of the resource
- rules
Newer List<String>Versions - Historical: Used before 2023-05-22 the new version of rule id if exists
- state String
- State of the resource
- rules
Newer string[]Versions - Historical: Used before 2023-05-22 the new version of rule id if exists
- state string
- State of the resource
- rules_
newer_ Sequence[str]versions - Historical: Used before 2023-05-22 the new version of rule id if exists
- state str
- State of the resource
- rules
Newer List<String>Versions - Historical: Used before 2023-05-22 the new version of rule id if exists
- state String
- State of the resource
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.