Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from . import outputs
from ._inputs import *
__all__ = [
'GetLaunchTemplateResult',
'AwaitableGetLaunchTemplateResult',
'get_launch_template',
]
@pulumi.output_type
class GetLaunchTemplateResult:
"""
A collection of values returned by getLaunchTemplate.
"""
def __init__(__self__, arn=None, block_device_mappings=None, credit_specifications=None, default_version=None, description=None, disable_api_termination=None, ebs_optimized=None, elastic_gpu_specifications=None, enclave_options=None, filters=None, hibernation_options=None, iam_instance_profiles=None, id=None, image_id=None, instance_initiated_shutdown_behavior=None, instance_market_options=None, instance_type=None, kernel_id=None, key_name=None, latest_version=None, metadata_options=None, monitorings=None, name=None, network_interfaces=None, placements=None, ram_disk_id=None, security_group_names=None, tag_specifications=None, tags=None, user_data=None, vpc_security_group_ids=None):
if arn and not isinstance(arn, str):
raise TypeError("Expected argument 'arn' to be a str")
pulumi.set(__self__, "arn", arn)
if block_device_mappings and not isinstance(block_device_mappings, list):
raise TypeError("Expected argument 'block_device_mappings' to be a list")
pulumi.set(__self__, "block_device_mappings", block_device_mappings)
if credit_specifications and not isinstance(credit_specifications, list):
raise TypeError("Expected argument 'credit_specifications' to be a list")
pulumi.set(__self__, "credit_specifications", credit_specifications)
if default_version and not isinstance(default_version, int):
raise TypeError("Expected argument 'default_version' to be a int")
def members(self) -> Sequence[str]:
"""
Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
"""
return pulumi.get(self, "members")
@property
@pulumi.getter
def role(self) -> str:
"""
Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
"""
return pulumi.get(self, "role")
@pulumi.output_type
class ExprResponse(dict):
"""
Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.
"""
def __init__(__self__, *,
description: str,
expression: str,
location: str,
title: str):
"""
Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.
:param str description: Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
:param str expression: Textual representation of an expression in Common Expression Language syntax.
:param str location: Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
:param str title: Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
"""
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = [
'GetBotResult',
'AwaitableGetBotResult',
'get_bot',
]
@pulumi.output_type
class GetBotResult:
"""
A collection of values returned by getBot.
"""
def __init__(__self__, arn=None, checksum=None, child_directed=None, created_date=None, description=None, detect_sentiment=None, enable_model_improvements=None, failure_reason=None, id=None, idle_session_ttl_in_seconds=None, last_updated_date=None, locale=None, name=None, nlu_intent_confidence_threshold=None, status=None, version=None, voice_id=None):
if arn and not isinstance(arn, str):
raise TypeError("Expected argument 'arn' to be a str")
pulumi.set(__self__, "arn", arn)
if checksum and not isinstance(checksum, str):
raise TypeError("Expected argument 'checksum' to be a str")
pulumi.set(__self__, "checksum", checksum)
if child_directed and not isinstance(child_directed, bool):
raise TypeError("Expected argument 'child_directed' to be a bool")
pulumi.set(__self__, "child_directed", child_directed)
if created_date and not isinstance(created_date, str):
raise TypeError("Expected argument 'created_date' to be a str")
def project(self) -> str:
"""
Project id containing the defined network and subnetwork. For a peered VPC, this will be the same as the project_id in which the workers are created. For a shared VPC, this will be the project sharing the network with the project_id project in which workers will be created. For custom workers with no VPC, this will be the same as project_id.
"""
return pulumi.get(self, "project")
@property
@pulumi.getter
def subnetwork(self) -> str:
"""
Subnetwork on which the workers are created. "default" subnetwork is used if empty.
"""
return pulumi.get(self, "subnetwork")
@pulumi.output_type
class WorkerConfigResponse(dict):
"""
WorkerConfig defines the configuration to be used for a creating workers in the pool.
"""
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "diskSizeGb":
suggest = "disk_size_gb"
elif key == "machineType":
suggest = "machine_type"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in WorkerConfigResponse. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
def status(self) -> Optional[str]:
"""
`status` is the status of the condition. Can be True, False, Unknown. Required.
"""
return pulumi.get(self, "status")
@property
@pulumi.getter
def type(self) -> Optional[str]:
"""
`type` is the type of the condition. Required.
"""
return pulumi.get(self, "type")
@pulumi.output_type
class FlowSchemaSpec(dict):
"""
FlowSchemaSpec describes how the FlowSchema's specification looks like.
"""
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "priorityLevelConfiguration":
suggest = "priority_level_configuration"
elif key == "distinguisherMethod":
suggest = "distinguisher_method"
elif key == "matchingPrecedence":
suggest = "matching_precedence"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in FlowSchemaSpec. Access the value via the '{suggest}' property getter instead.")
"""
Network describes the network configuration for a `WorkerPool`.
:param str peered_network: Required. Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to `WorkerPool.project_id` on the service producer network. Must be in the format `projects/{project}/global/networks/{network}`, where `{project}` is a project number, such as `12345`, and `{network}` is the name of a VPC network in the project. See [Understanding network configuration options](https://cloud.google.com/cloud-build/docs/custom-workers/set-up-custom-worker-pool-environment#understanding_the_network_configuration_options)
"""
pulumi.set(__self__, "peered_network", peered_network)
@property
@pulumi.getter(name="peeredNetwork")
def peered_network(self) -> str:
"""
Required. Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to `WorkerPool.project_id` on the service producer network. Must be in the format `projects/{project}/global/networks/{network}`, where `{project}` is a project number, such as `12345`, and `{network}` is the name of a VPC network in the project. See [Understanding network configuration options](https://cloud.google.com/cloud-build/docs/custom-workers/set-up-custom-worker-pool-environment#understanding_the_network_configuration_options)
"""
return pulumi.get(self, "peered_network")
@pulumi.output_type
class WorkerConfigResponse(dict):
"""
Defines the configuration to be used for creating workers in the pool.
"""
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "diskSizeGb":
suggest = "disk_size_gb"
elif key == "machineType":
suggest = "machine_type"
elif key == "noExternalIp":
suggest = "no_external_ip"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in WorkerConfigResponse. Access the value via the '{suggest}' property getter instead.")
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
from . import outputs
__all__ = [
'AuthenticationResponse',
'CustomAccountResponse',
'GoogleAccountResponse',
'ScanRunResponse',
'ScheduleResponse',
]
@pulumi.output_type
class AuthenticationResponse(dict):
"""
Scan authentication configuration.
"""
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "customAccount":
suggest = "custom_account"
elif key == "googleAccount":
suggest = "google_account"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in AuthenticationResponse. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from . import outputs
__all__ = [
'GetClusterResult',
'AwaitableGetClusterResult',
'get_cluster',
]
@pulumi.output_type
class GetClusterResult:
"""
A collection of values returned by getCluster.
"""
def __init__(__self__, cluster_certificates=None, cluster_id=None, cluster_state=None, id=None, security_group_id=None, subnet_ids=None, vpc_id=None):
if cluster_certificates and not isinstance(cluster_certificates, dict):
raise TypeError("Expected argument 'cluster_certificates' to be a dict")
pulumi.set(__self__, "cluster_certificates", cluster_certificates)
if cluster_id and not isinstance(cluster_id, str):
raise TypeError("Expected argument 'cluster_id' to be a str")
pulumi.set(__self__, "cluster_id", cluster_id)
if cluster_state and not isinstance(cluster_state, str):
raise TypeError("Expected argument 'cluster_state' to be a str")
pulumi.set(__self__, "cluster_state", cluster_state)
if id and not isinstance(id, str):
raise TypeError("Expected argument 'id' to be a str")
Overhead structure represents the resource overhead associated with running a pod.
:param Mapping[str, str] pod_fixed: PodFixed represents the fixed resource overhead associated with running a pod.
"""
if pod_fixed is not None:
pulumi.set(__self__, "pod_fixed", pod_fixed)
@property
@pulumi.getter(name="podFixed")
def pod_fixed(self) -> Optional[Mapping[str, str]]:
"""
PodFixed represents the fixed resource overhead associated with running a pod.
"""
return pulumi.get(self, "pod_fixed")
@pulumi.output_type
class RuntimeClass(dict):
"""
RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/
"""
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "apiVersion":
suggest = "api_version"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in RuntimeClass. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
RuntimeClass.__key_warning(key)
return super().__getitem__(key)
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = [
'GetAliasResult',
'AwaitableGetAliasResult',
'get_alias',
]
@pulumi.output_type
class GetAliasResult:
"""
A collection of values returned by getAlias.
"""
def __init__(__self__, arn=None, description=None, function_name=None, function_version=None, id=None, invoke_arn=None, name=None):
if arn and not isinstance(arn, str):
raise TypeError("Expected argument 'arn' to be a str")
pulumi.set(__self__, "arn", arn)
if description and not isinstance(description, str):
raise TypeError("Expected argument 'description' to be a str")
pulumi.set(__self__, "description", description)
if function_name and not isinstance(function_name, str):
raise TypeError("Expected argument 'function_name' to be a str")
pulumi.set(__self__, "function_name", function_name)
if function_version and not isinstance(function_version, str):
raise TypeError("Expected argument 'function_version' to be a str")