pulumi-gcp 8.42.0a1758133038__py3-none-any.whl → 9.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_gcp/__init__.py +83 -48
- pulumi_gcp/activedirectory/peering.py +16 -0
- pulumi_gcp/alloydb/backup.py +8 -4
- pulumi_gcp/alloydb/cluster.py +56 -10
- pulumi_gcp/alloydb/get_cluster.py +12 -1
- pulumi_gcp/alloydb/instance.py +10 -4
- pulumi_gcp/alloydb/user.py +8 -4
- pulumi_gcp/apigateway/api_config_iam_binding.py +4 -4
- pulumi_gcp/apigateway/api_config_iam_member.py +4 -4
- pulumi_gcp/apigateway/api_config_iam_policy.py +4 -4
- pulumi_gcp/apigateway/api_iam_binding.py +4 -4
- pulumi_gcp/apigateway/api_iam_member.py +4 -4
- pulumi_gcp/apigateway/api_iam_policy.py +4 -4
- pulumi_gcp/apigateway/gateway_iam_binding.py +4 -4
- pulumi_gcp/apigateway/gateway_iam_member.py +4 -4
- pulumi_gcp/apigateway/gateway_iam_policy.py +4 -4
- pulumi_gcp/apigee/_inputs.py +151 -108
- pulumi_gcp/apigee/keystores_aliases_key_cert_file.py +52 -40
- pulumi_gcp/apigee/outputs.py +92 -88
- pulumi_gcp/artifactregistry/__init__.py +2 -0
- pulumi_gcp/artifactregistry/_inputs.py +0 -12
- pulumi_gcp/artifactregistry/get_npm_package.py +251 -0
- pulumi_gcp/artifactregistry/get_python_package.py +237 -0
- pulumi_gcp/artifactregistry/get_repository.py +12 -1
- pulumi_gcp/artifactregistry/outputs.py +8 -16
- pulumi_gcp/artifactregistry/repository.py +28 -0
- pulumi_gcp/backupdisasterrecovery/__init__.py +1 -0
- pulumi_gcp/backupdisasterrecovery/backup_plan.py +4 -4
- pulumi_gcp/backupdisasterrecovery/get_backup.py +12 -1
- pulumi_gcp/backupdisasterrecovery/get_backup_plan_association.py +4 -0
- pulumi_gcp/backupdisasterrecovery/get_data_source_references.py +135 -0
- pulumi_gcp/backupdisasterrecovery/get_management_server.py +4 -0
- pulumi_gcp/backupdisasterrecovery/outputs.py +103 -0
- pulumi_gcp/beyondcorp/__init__.py +0 -5
- pulumi_gcp/beyondcorp/_inputs.py +0 -312
- pulumi_gcp/beyondcorp/outputs.py +0 -200
- pulumi_gcp/bigquery/_inputs.py +114 -4
- pulumi_gcp/bigquery/app_profile.py +3 -5
- pulumi_gcp/bigquery/outputs.py +75 -5
- pulumi_gcp/bigqueryanalyticshub/data_exchange_subscription.py +20 -0
- pulumi_gcp/bigtable/app_profile.py +1 -1
- pulumi_gcp/bigtable/get_table_iam_policy.py +16 -18
- pulumi_gcp/bigtable/table_iam_binding.py +43 -43
- pulumi_gcp/bigtable/table_iam_member.py +43 -43
- pulumi_gcp/bigtable/table_iam_policy.py +43 -43
- pulumi_gcp/billing/_inputs.py +0 -6
- pulumi_gcp/billing/outputs.py +0 -4
- pulumi_gcp/certificatemanager/__init__.py +1 -0
- pulumi_gcp/certificatemanager/certificate_map_entry.py +7 -7
- pulumi_gcp/certificatemanager/get_dns_authorization.py +229 -0
- pulumi_gcp/certificatemanager/outputs.py +41 -0
- pulumi_gcp/chronicle/_inputs.py +6 -5
- pulumi_gcp/chronicle/outputs.py +4 -3
- pulumi_gcp/chronicle/reference_list.py +53 -5
- pulumi_gcp/cloudasset/get_resources_search_all.py +8 -0
- pulumi_gcp/cloudbuild/_inputs.py +309 -45
- pulumi_gcp/cloudbuild/bitbucket_server_config.py +2 -6
- pulumi_gcp/cloudbuild/get_trigger.py +12 -1
- pulumi_gcp/cloudbuild/outputs.py +380 -30
- pulumi_gcp/cloudbuild/trigger.py +160 -2
- pulumi_gcp/cloudbuild/worker_pool.py +2 -6
- pulumi_gcp/cloudfunctionsv2/_inputs.py +23 -21
- pulumi_gcp/cloudfunctionsv2/outputs.py +17 -16
- pulumi_gcp/cloudquota/s_quota_adjuster_settings.py +16 -0
- pulumi_gcp/cloudrunv2/_inputs.py +80 -26
- pulumi_gcp/cloudrunv2/get_service.py +12 -1
- pulumi_gcp/cloudrunv2/outputs.py +109 -30
- pulumi_gcp/cloudrunv2/service.py +72 -12
- pulumi_gcp/cloudrunv2/worker_pool.py +2 -2
- pulumi_gcp/cloudtasks/queue.py +98 -2
- pulumi_gcp/colab/_inputs.py +1 -114
- pulumi_gcp/colab/outputs.py +1 -106
- pulumi_gcp/compute/_inputs.py +884 -24
- pulumi_gcp/compute/backend_bucket.py +68 -0
- pulumi_gcp/compute/backend_bucket_iam_binding.py +236 -0
- pulumi_gcp/compute/backend_bucket_iam_member.py +236 -0
- pulumi_gcp/compute/backend_bucket_iam_policy.py +236 -0
- pulumi_gcp/compute/backend_service.py +54 -0
- pulumi_gcp/compute/backend_service_iam_binding.py +464 -0
- pulumi_gcp/compute/backend_service_iam_member.py +464 -0
- pulumi_gcp/compute/backend_service_iam_policy.py +464 -0
- pulumi_gcp/compute/cross_site_network.py +16 -0
- pulumi_gcp/compute/future_reservation.py +32 -0
- pulumi_gcp/compute/get_backend_bucket.py +12 -1
- pulumi_gcp/compute/get_backend_service.py +12 -1
- pulumi_gcp/compute/get_region_backend_service.py +12 -1
- pulumi_gcp/compute/get_resource_policy.py +2 -20
- pulumi_gcp/compute/machine_image_iam_binding.py +8 -4
- pulumi_gcp/compute/machine_image_iam_member.py +8 -4
- pulumi_gcp/compute/machine_image_iam_policy.py +8 -4
- pulumi_gcp/compute/network_edge_security_service.py +16 -0
- pulumi_gcp/compute/network_firewall_policy_packet_mirroring_rule.py +12 -0
- pulumi_gcp/compute/network_peering_routes_config.py +0 -100
- pulumi_gcp/compute/organization_security_policy.py +83 -51
- pulumi_gcp/compute/outputs.py +799 -16
- pulumi_gcp/compute/packet_mirroring.py +6 -0
- pulumi_gcp/compute/preview_feature.py +16 -0
- pulumi_gcp/compute/public_delegated_prefix.py +42 -0
- pulumi_gcp/compute/region_backend_service.py +54 -0
- pulumi_gcp/compute/region_backend_service_iam_binding.py +488 -0
- pulumi_gcp/compute/region_backend_service_iam_member.py +488 -0
- pulumi_gcp/compute/region_backend_service_iam_policy.py +488 -0
- pulumi_gcp/compute/region_network_endpoint_group.py +1 -3
- pulumi_gcp/compute/region_resize_request.py +24 -0
- pulumi_gcp/compute/region_url_map.py +75 -0
- pulumi_gcp/compute/subnetwork.py +0 -98
- pulumi_gcp/compute/wire_group.py +16 -0
- pulumi_gcp/config/__init__.pyi +2 -2
- pulumi_gcp/config/vars.py +4 -4
- pulumi_gcp/container/_inputs.py +466 -18
- pulumi_gcp/container/cluster.py +16 -7
- pulumi_gcp/container/outputs.py +448 -15
- pulumi_gcp/databasemigrationservice/connection_profile.py +4 -2
- pulumi_gcp/databasemigrationservice/migration_job.py +4 -2
- pulumi_gcp/dataflow/flex_template_job.py +10 -0
- pulumi_gcp/dataform/repository.py +16 -0
- pulumi_gcp/dataform/repository_release_config.py +16 -0
- pulumi_gcp/dataform/repository_workflow_config.py +16 -0
- pulumi_gcp/diagflow/_inputs.py +152 -0
- pulumi_gcp/diagflow/cx_agent.py +425 -0
- pulumi_gcp/diagflow/outputs.py +143 -0
- pulumi_gcp/discoveryengine/__init__.py +1 -0
- pulumi_gcp/discoveryengine/_inputs.py +94 -0
- pulumi_gcp/discoveryengine/acl_config.py +393 -0
- pulumi_gcp/discoveryengine/outputs.py +92 -0
- pulumi_gcp/firebase/android_app.py +16 -0
- pulumi_gcp/firebase/app_check_play_integrity_config.py +4 -8
- pulumi_gcp/firebase/app_check_recaptcha_enterprise_config.py +2 -4
- pulumi_gcp/firebase/app_check_service_config.py +6 -12
- pulumi_gcp/firebase/app_hosting_backend.py +4 -8
- pulumi_gcp/firebase/app_hosting_build.py +4 -8
- pulumi_gcp/firebase/app_hosting_traffic.py +6 -12
- pulumi_gcp/firebase/apple_app.py +16 -0
- pulumi_gcp/firebase/data_connect_service.py +4 -8
- pulumi_gcp/firebase/database_instance.py +20 -8
- pulumi_gcp/firebase/extensions_instance.py +12 -0
- pulumi_gcp/firebase/get_android_app.py +4 -2
- pulumi_gcp/firebase/get_apple_app.py +4 -2
- pulumi_gcp/firebase/get_apple_app_config.py +16 -2
- pulumi_gcp/firebase/get_hosting_channel.py +4 -2
- pulumi_gcp/firebase/hosting_channel.py +20 -0
- pulumi_gcp/firebase/hosting_custom_domain.py +20 -0
- pulumi_gcp/firebase/hosting_release.py +16 -0
- pulumi_gcp/firebase/hosting_site.py +16 -0
- pulumi_gcp/firebase/hosting_version.py +16 -0
- pulumi_gcp/firebase/storage_bucket.py +18 -0
- pulumi_gcp/firestore/index.py +118 -3
- pulumi_gcp/folder/service_identity.py +26 -0
- pulumi_gcp/gkehub/_inputs.py +0 -60
- pulumi_gcp/gkehub/get_membership.py +1 -12
- pulumi_gcp/gkehub/membership.py +0 -70
- pulumi_gcp/gkehub/membership_rbac_role_binding.py +16 -0
- pulumi_gcp/gkehub/outputs.py +0 -36
- pulumi_gcp/healthcare/_inputs.py +205 -0
- pulumi_gcp/healthcare/fhir_store.py +128 -0
- pulumi_gcp/healthcare/outputs.py +163 -0
- pulumi_gcp/iam/workload_identity_pool_iam_binding.py +464 -0
- pulumi_gcp/iam/workload_identity_pool_iam_member.py +464 -0
- pulumi_gcp/iam/workload_identity_pool_iam_policy.py +464 -0
- pulumi_gcp/iam/workload_identity_pool_managed_identity.py +18 -0
- pulumi_gcp/iam/workload_identity_pool_namespace.py +20 -0
- pulumi_gcp/iap/__init__.py +8 -0
- pulumi_gcp/iap/_inputs.py +260 -0
- pulumi_gcp/iap/get_web_forwarding_rule_service_iam_policy.py +159 -0
- pulumi_gcp/iap/get_web_region_forwarding_rule_service_iam_policy.py +182 -0
- pulumi_gcp/iap/outputs.py +152 -0
- pulumi_gcp/{beyondcorp/application_iam_binding.py → iap/web_forwarding_rule_service_iam_binding.py} +233 -315
- pulumi_gcp/{beyondcorp/application_iam_member.py → iap/web_forwarding_rule_service_iam_member.py} +233 -315
- pulumi_gcp/{beyondcorp/application_iam_policy.py → iap/web_forwarding_rule_service_iam_policy.py} +212 -294
- pulumi_gcp/iap/web_region_forwarding_rule_service_iam_binding.py +1091 -0
- pulumi_gcp/iap/web_region_forwarding_rule_service_iam_member.py +1091 -0
- pulumi_gcp/iap/web_region_forwarding_rule_service_iam_policy.py +910 -0
- pulumi_gcp/kms/autokey_config.py +0 -2
- pulumi_gcp/kms/get_kms_secret_asymmetric.py +22 -0
- pulumi_gcp/kms/key_handle.py +0 -2
- pulumi_gcp/logging/organization_sink.py +7 -7
- pulumi_gcp/managedkafka/connect_cluster.py +4 -0
- pulumi_gcp/managedkafka/connector.py +4 -0
- pulumi_gcp/memorystore/get_instance.py +1 -12
- pulumi_gcp/memorystore/instance.py +14 -84
- pulumi_gcp/netapp/storage_pool.py +91 -2
- pulumi_gcp/netapp/volume.py +47 -0
- pulumi_gcp/networkmanagement/__init__.py +1 -0
- pulumi_gcp/networkmanagement/organization_vpc_flow_logs_config.py +1028 -0
- pulumi_gcp/networksecurity/authorization_policy.py +12 -0
- pulumi_gcp/networkservices/gateway.py +7 -7
- pulumi_gcp/networkservices/lb_traffic_extension.py +24 -23
- pulumi_gcp/networkservices/service_lb_policies.py +12 -0
- pulumi_gcp/notebooks/__init__.py +0 -1
- pulumi_gcp/oracledatabase/autonomous_database.py +2 -2
- pulumi_gcp/oracledatabase/cloud_vm_cluster.py +3 -3
- pulumi_gcp/projects/service.py +2 -11
- pulumi_gcp/provider.py +20 -20
- pulumi_gcp/pulumi-plugin.json +1 -1
- pulumi_gcp/redis/cluster.py +0 -70
- pulumi_gcp/redis/get_cluster.py +1 -12
- pulumi_gcp/resourcemanager/capability.py +16 -0
- pulumi_gcp/runtimeconfig/config.py +16 -0
- pulumi_gcp/runtimeconfig/config_iam_binding.py +236 -0
- pulumi_gcp/runtimeconfig/config_iam_member.py +236 -0
- pulumi_gcp/runtimeconfig/config_iam_policy.py +236 -0
- pulumi_gcp/runtimeconfig/variable.py +10 -0
- pulumi_gcp/saasruntime/__init__.py +12 -0
- pulumi_gcp/saasruntime/_inputs.py +513 -0
- pulumi_gcp/saasruntime/outputs.py +431 -0
- pulumi_gcp/saasruntime/saa_s.py +819 -0
- pulumi_gcp/saasruntime/unit_kind.py +1024 -0
- pulumi_gcp/securesourcemanager/_inputs.py +20 -19
- pulumi_gcp/securesourcemanager/instance.py +7 -7
- pulumi_gcp/securesourcemanager/outputs.py +15 -14
- pulumi_gcp/securesourcemanager/repository.py +7 -7
- pulumi_gcp/serviceaccount/get_account_key.py +1 -21
- pulumi_gcp/servicedirectory/namespace_iam_binding.py +4 -4
- pulumi_gcp/servicedirectory/namespace_iam_member.py +4 -4
- pulumi_gcp/servicedirectory/namespace_iam_policy.py +4 -4
- pulumi_gcp/servicedirectory/service_iam_binding.py +4 -4
- pulumi_gcp/servicedirectory/service_iam_member.py +4 -4
- pulumi_gcp/servicedirectory/service_iam_policy.py +4 -4
- pulumi_gcp/sql/_inputs.py +135 -1
- pulumi_gcp/sql/database_instance.py +94 -0
- pulumi_gcp/sql/get_database_instance.py +23 -1
- pulumi_gcp/sql/outputs.py +276 -3
- pulumi_gcp/sql/user.py +61 -0
- pulumi_gcp/storage/_inputs.py +253 -7
- pulumi_gcp/storage/bucket_object.py +0 -9
- pulumi_gcp/storage/outputs.py +198 -8
- pulumi_gcp/storage/transfer_job.py +47 -0
- pulumi_gcp/tpu/__init__.py +0 -2
- pulumi_gcp/tpu/_inputs.py +0 -93
- pulumi_gcp/tpu/outputs.py +0 -72
- pulumi_gcp/tpu/v2_queued_resource.py +16 -0
- pulumi_gcp/tpu/v2_vm.py +16 -0
- pulumi_gcp/vertex/_inputs.py +8 -9
- pulumi_gcp/vertex/ai_endpoint.py +2 -4
- pulumi_gcp/vertex/ai_feature_group_iam_binding.py +236 -0
- pulumi_gcp/vertex/ai_feature_group_iam_member.py +236 -0
- pulumi_gcp/vertex/ai_feature_group_iam_policy.py +236 -0
- pulumi_gcp/vertex/ai_feature_online_store_featureview.py +0 -2
- pulumi_gcp/vertex/ai_feature_online_store_featureview_iam_binding.py +248 -0
- pulumi_gcp/vertex/ai_feature_online_store_featureview_iam_member.py +248 -0
- pulumi_gcp/vertex/ai_feature_online_store_featureview_iam_policy.py +248 -0
- pulumi_gcp/vertex/ai_feature_online_store_iam_binding.py +236 -0
- pulumi_gcp/vertex/ai_feature_online_store_iam_member.py +236 -0
- pulumi_gcp/vertex/ai_feature_online_store_iam_policy.py +236 -0
- pulumi_gcp/vertex/ai_feature_store_entity_type_iam_binding.py +238 -0
- pulumi_gcp/vertex/ai_feature_store_entity_type_iam_member.py +238 -0
- pulumi_gcp/vertex/ai_feature_store_entity_type_iam_policy.py +238 -0
- pulumi_gcp/vertex/ai_feature_store_iam_binding.py +248 -0
- pulumi_gcp/vertex/ai_feature_store_iam_member.py +248 -0
- pulumi_gcp/vertex/ai_feature_store_iam_policy.py +248 -0
- pulumi_gcp/vertex/ai_index.py +24 -23
- pulumi_gcp/vertex/ai_metadata_store.py +16 -0
- pulumi_gcp/vertex/outputs.py +7 -8
- pulumi_gcp/workstations/workstation.py +16 -0
- pulumi_gcp/workstations/workstation_cluster.py +16 -0
- pulumi_gcp/workstations/workstation_config.py +16 -0
- pulumi_gcp/workstations/workstation_config_iam_binding.py +260 -0
- pulumi_gcp/workstations/workstation_config_iam_member.py +260 -0
- pulumi_gcp/workstations/workstation_config_iam_policy.py +260 -0
- pulumi_gcp/workstations/workstation_iam_binding.py +272 -0
- pulumi_gcp/workstations/workstation_iam_member.py +272 -0
- pulumi_gcp/workstations/workstation_iam_policy.py +272 -0
- {pulumi_gcp-8.42.0a1758133038.dist-info → pulumi_gcp-9.0.0.dist-info}/METADATA +1 -1
- {pulumi_gcp-8.42.0a1758133038.dist-info → pulumi_gcp-9.0.0.dist-info}/RECORD +266 -255
- pulumi_gcp/beyondcorp/application.py +0 -746
- pulumi_gcp/beyondcorp/get_application_iam_policy.py +0 -182
- pulumi_gcp/notebooks/location.py +0 -285
- pulumi_gcp/tpu/get_tensorflow_versions.py +0 -184
- pulumi_gcp/tpu/node.py +0 -1062
- {pulumi_gcp-8.42.0a1758133038.dist-info → pulumi_gcp-9.0.0.dist-info}/WHEEL +0 -0
- {pulumi_gcp-8.42.0a1758133038.dist-info → pulumi_gcp-9.0.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,1028 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import builtins as _builtins
|
6
|
+
import warnings
|
7
|
+
import sys
|
8
|
+
import pulumi
|
9
|
+
import pulumi.runtime
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
+
if sys.version_info >= (3, 11):
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
+
else:
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
15
|
+
from .. import _utilities
|
16
|
+
|
17
|
+
__all__ = ['OrganizationVpcFlowLogsConfigArgs', 'OrganizationVpcFlowLogsConfig']
|
18
|
+
|
19
|
+
@pulumi.input_type
|
20
|
+
class OrganizationVpcFlowLogsConfigArgs:
|
21
|
+
def __init__(__self__, *,
|
22
|
+
location: pulumi.Input[_builtins.str],
|
23
|
+
organization: pulumi.Input[_builtins.str],
|
24
|
+
vpc_flow_logs_config_id: pulumi.Input[_builtins.str],
|
25
|
+
aggregation_interval: Optional[pulumi.Input[_builtins.str]] = None,
|
26
|
+
cross_project_metadata: Optional[pulumi.Input[_builtins.str]] = None,
|
27
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
28
|
+
filter_expr: Optional[pulumi.Input[_builtins.str]] = None,
|
29
|
+
flow_sampling: Optional[pulumi.Input[_builtins.float]] = None,
|
30
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
31
|
+
metadata: Optional[pulumi.Input[_builtins.str]] = None,
|
32
|
+
metadata_fields: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
33
|
+
state: Optional[pulumi.Input[_builtins.str]] = None):
|
34
|
+
"""
|
35
|
+
The set of arguments for constructing a OrganizationVpcFlowLogsConfig resource.
|
36
|
+
:param pulumi.Input[_builtins.str] location: Resource ID segment making up resource `name`. It identifies the resource
|
37
|
+
within its parent collection as described in https://google.aip.dev/122. See documentation
|
38
|
+
for resource type `networkmanagement.googleapis.com/VpcFlowLogsConfig`.
|
39
|
+
:param pulumi.Input[_builtins.str] organization: Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
|
40
|
+
:param pulumi.Input[_builtins.str] vpc_flow_logs_config_id: Required. ID of the `VpcFlowLogsConfig`.
|
41
|
+
:param pulumi.Input[_builtins.str] aggregation_interval: Optional. The aggregation interval for the logs. Default value is
|
42
|
+
INTERVAL_5_SEC. Possible values: INTERVAL_5_SEC INTERVAL_30_SEC INTERVAL_1_MIN INTERVAL_5_MIN INTERVAL_10_MIN INTERVAL_15_MIN
|
43
|
+
:param pulumi.Input[_builtins.str] cross_project_metadata: Determines whether to include cross project annotations in the logs.
|
44
|
+
This field is available only for organization configurations. If not
|
45
|
+
specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
|
46
|
+
Possible values:
|
47
|
+
CROSS_PROJECT_METADATA_ENABLED
|
48
|
+
CROSS_PROJECT_METADATA_DISABLED
|
49
|
+
Possible values are: `CROSS_PROJECT_METADATA_ENABLED`, `CROSS_PROJECT_METADATA_DISABLED`.
|
50
|
+
:param pulumi.Input[_builtins.str] description: Optional. The user-supplied description of the VPC Flow Logs configuration. Maximum
|
51
|
+
of 512 characters.
|
52
|
+
:param pulumi.Input[_builtins.str] filter_expr: Optional. Export filter used to define which VPC Flow Logs should be logged.
|
53
|
+
:param pulumi.Input[_builtins.float] flow_sampling: Optional. The value of the field must be in (0, 1]. The sampling rate
|
54
|
+
of VPC Flow Logs where 1.0 means all collected logs are reported. Setting the
|
55
|
+
sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, use
|
56
|
+
the state field instead. Default value is 1.0.
|
57
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] labels: Optional. Resource labels to represent the user-provided metadata.
|
58
|
+
|
59
|
+
**Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
|
60
|
+
Please refer to the field `effective_labels` for all of the labels present on the resource.
|
61
|
+
:param pulumi.Input[_builtins.str] metadata: Optional. Configures whether all, none or a subset of metadata fields
|
62
|
+
should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.
|
63
|
+
Possible values: METADATA_UNSPECIFIED INCLUDE_ALL_METADATA EXCLUDE_ALL_METADATA CUSTOM_METADATA
|
64
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] metadata_fields: Optional. Custom metadata fields to include in the reported VPC flow
|
65
|
+
logs. Can only be specified if \\"metadata\\" was set to CUSTOM_METADATA.
|
66
|
+
:param pulumi.Input[_builtins.str] state: Optional. The state of the VPC Flow Log configuration. Default value
|
67
|
+
is ENABLED. When creating a new configuration, it must be enabled.
|
68
|
+
Possible values: ENABLED DISABLED
|
69
|
+
"""
|
70
|
+
pulumi.set(__self__, "location", location)
|
71
|
+
pulumi.set(__self__, "organization", organization)
|
72
|
+
pulumi.set(__self__, "vpc_flow_logs_config_id", vpc_flow_logs_config_id)
|
73
|
+
if aggregation_interval is not None:
|
74
|
+
pulumi.set(__self__, "aggregation_interval", aggregation_interval)
|
75
|
+
if cross_project_metadata is not None:
|
76
|
+
pulumi.set(__self__, "cross_project_metadata", cross_project_metadata)
|
77
|
+
if description is not None:
|
78
|
+
pulumi.set(__self__, "description", description)
|
79
|
+
if filter_expr is not None:
|
80
|
+
pulumi.set(__self__, "filter_expr", filter_expr)
|
81
|
+
if flow_sampling is not None:
|
82
|
+
pulumi.set(__self__, "flow_sampling", flow_sampling)
|
83
|
+
if labels is not None:
|
84
|
+
pulumi.set(__self__, "labels", labels)
|
85
|
+
if metadata is not None:
|
86
|
+
pulumi.set(__self__, "metadata", metadata)
|
87
|
+
if metadata_fields is not None:
|
88
|
+
pulumi.set(__self__, "metadata_fields", metadata_fields)
|
89
|
+
if state is not None:
|
90
|
+
pulumi.set(__self__, "state", state)
|
91
|
+
|
92
|
+
@_builtins.property
|
93
|
+
@pulumi.getter
|
94
|
+
def location(self) -> pulumi.Input[_builtins.str]:
|
95
|
+
"""
|
96
|
+
Resource ID segment making up resource `name`. It identifies the resource
|
97
|
+
within its parent collection as described in https://google.aip.dev/122. See documentation
|
98
|
+
for resource type `networkmanagement.googleapis.com/VpcFlowLogsConfig`.
|
99
|
+
"""
|
100
|
+
return pulumi.get(self, "location")
|
101
|
+
|
102
|
+
@location.setter
|
103
|
+
def location(self, value: pulumi.Input[_builtins.str]):
|
104
|
+
pulumi.set(self, "location", value)
|
105
|
+
|
106
|
+
@_builtins.property
|
107
|
+
@pulumi.getter
|
108
|
+
def organization(self) -> pulumi.Input[_builtins.str]:
|
109
|
+
"""
|
110
|
+
Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
|
111
|
+
"""
|
112
|
+
return pulumi.get(self, "organization")
|
113
|
+
|
114
|
+
@organization.setter
|
115
|
+
def organization(self, value: pulumi.Input[_builtins.str]):
|
116
|
+
pulumi.set(self, "organization", value)
|
117
|
+
|
118
|
+
@_builtins.property
|
119
|
+
@pulumi.getter(name="vpcFlowLogsConfigId")
|
120
|
+
def vpc_flow_logs_config_id(self) -> pulumi.Input[_builtins.str]:
|
121
|
+
"""
|
122
|
+
Required. ID of the `VpcFlowLogsConfig`.
|
123
|
+
"""
|
124
|
+
return pulumi.get(self, "vpc_flow_logs_config_id")
|
125
|
+
|
126
|
+
@vpc_flow_logs_config_id.setter
|
127
|
+
def vpc_flow_logs_config_id(self, value: pulumi.Input[_builtins.str]):
|
128
|
+
pulumi.set(self, "vpc_flow_logs_config_id", value)
|
129
|
+
|
130
|
+
@_builtins.property
|
131
|
+
@pulumi.getter(name="aggregationInterval")
|
132
|
+
def aggregation_interval(self) -> Optional[pulumi.Input[_builtins.str]]:
|
133
|
+
"""
|
134
|
+
Optional. The aggregation interval for the logs. Default value is
|
135
|
+
INTERVAL_5_SEC. Possible values: INTERVAL_5_SEC INTERVAL_30_SEC INTERVAL_1_MIN INTERVAL_5_MIN INTERVAL_10_MIN INTERVAL_15_MIN
|
136
|
+
"""
|
137
|
+
return pulumi.get(self, "aggregation_interval")
|
138
|
+
|
139
|
+
@aggregation_interval.setter
|
140
|
+
def aggregation_interval(self, value: Optional[pulumi.Input[_builtins.str]]):
|
141
|
+
pulumi.set(self, "aggregation_interval", value)
|
142
|
+
|
143
|
+
@_builtins.property
|
144
|
+
@pulumi.getter(name="crossProjectMetadata")
|
145
|
+
def cross_project_metadata(self) -> Optional[pulumi.Input[_builtins.str]]:
|
146
|
+
"""
|
147
|
+
Determines whether to include cross project annotations in the logs.
|
148
|
+
This field is available only for organization configurations. If not
|
149
|
+
specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
|
150
|
+
Possible values:
|
151
|
+
CROSS_PROJECT_METADATA_ENABLED
|
152
|
+
CROSS_PROJECT_METADATA_DISABLED
|
153
|
+
Possible values are: `CROSS_PROJECT_METADATA_ENABLED`, `CROSS_PROJECT_METADATA_DISABLED`.
|
154
|
+
"""
|
155
|
+
return pulumi.get(self, "cross_project_metadata")
|
156
|
+
|
157
|
+
@cross_project_metadata.setter
|
158
|
+
def cross_project_metadata(self, value: Optional[pulumi.Input[_builtins.str]]):
|
159
|
+
pulumi.set(self, "cross_project_metadata", value)
|
160
|
+
|
161
|
+
@_builtins.property
|
162
|
+
@pulumi.getter
|
163
|
+
def description(self) -> Optional[pulumi.Input[_builtins.str]]:
|
164
|
+
"""
|
165
|
+
Optional. The user-supplied description of the VPC Flow Logs configuration. Maximum
|
166
|
+
of 512 characters.
|
167
|
+
"""
|
168
|
+
return pulumi.get(self, "description")
|
169
|
+
|
170
|
+
@description.setter
|
171
|
+
def description(self, value: Optional[pulumi.Input[_builtins.str]]):
|
172
|
+
pulumi.set(self, "description", value)
|
173
|
+
|
174
|
+
@_builtins.property
|
175
|
+
@pulumi.getter(name="filterExpr")
|
176
|
+
def filter_expr(self) -> Optional[pulumi.Input[_builtins.str]]:
|
177
|
+
"""
|
178
|
+
Optional. Export filter used to define which VPC Flow Logs should be logged.
|
179
|
+
"""
|
180
|
+
return pulumi.get(self, "filter_expr")
|
181
|
+
|
182
|
+
@filter_expr.setter
|
183
|
+
def filter_expr(self, value: Optional[pulumi.Input[_builtins.str]]):
|
184
|
+
pulumi.set(self, "filter_expr", value)
|
185
|
+
|
186
|
+
@_builtins.property
|
187
|
+
@pulumi.getter(name="flowSampling")
|
188
|
+
def flow_sampling(self) -> Optional[pulumi.Input[_builtins.float]]:
|
189
|
+
"""
|
190
|
+
Optional. The value of the field must be in (0, 1]. The sampling rate
|
191
|
+
of VPC Flow Logs where 1.0 means all collected logs are reported. Setting the
|
192
|
+
sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, use
|
193
|
+
the state field instead. Default value is 1.0.
|
194
|
+
"""
|
195
|
+
return pulumi.get(self, "flow_sampling")
|
196
|
+
|
197
|
+
@flow_sampling.setter
|
198
|
+
def flow_sampling(self, value: Optional[pulumi.Input[_builtins.float]]):
|
199
|
+
pulumi.set(self, "flow_sampling", value)
|
200
|
+
|
201
|
+
@_builtins.property
|
202
|
+
@pulumi.getter
|
203
|
+
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
204
|
+
"""
|
205
|
+
Optional. Resource labels to represent the user-provided metadata.
|
206
|
+
|
207
|
+
**Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
|
208
|
+
Please refer to the field `effective_labels` for all of the labels present on the resource.
|
209
|
+
"""
|
210
|
+
return pulumi.get(self, "labels")
|
211
|
+
|
212
|
+
@labels.setter
|
213
|
+
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
|
214
|
+
pulumi.set(self, "labels", value)
|
215
|
+
|
216
|
+
@_builtins.property
|
217
|
+
@pulumi.getter
|
218
|
+
def metadata(self) -> Optional[pulumi.Input[_builtins.str]]:
|
219
|
+
"""
|
220
|
+
Optional. Configures whether all, none or a subset of metadata fields
|
221
|
+
should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.
|
222
|
+
Possible values: METADATA_UNSPECIFIED INCLUDE_ALL_METADATA EXCLUDE_ALL_METADATA CUSTOM_METADATA
|
223
|
+
"""
|
224
|
+
return pulumi.get(self, "metadata")
|
225
|
+
|
226
|
+
@metadata.setter
|
227
|
+
def metadata(self, value: Optional[pulumi.Input[_builtins.str]]):
|
228
|
+
pulumi.set(self, "metadata", value)
|
229
|
+
|
230
|
+
@_builtins.property
|
231
|
+
@pulumi.getter(name="metadataFields")
|
232
|
+
def metadata_fields(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
233
|
+
"""
|
234
|
+
Optional. Custom metadata fields to include in the reported VPC flow
|
235
|
+
logs. Can only be specified if \\"metadata\\" was set to CUSTOM_METADATA.
|
236
|
+
"""
|
237
|
+
return pulumi.get(self, "metadata_fields")
|
238
|
+
|
239
|
+
@metadata_fields.setter
|
240
|
+
def metadata_fields(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
241
|
+
pulumi.set(self, "metadata_fields", value)
|
242
|
+
|
243
|
+
@_builtins.property
|
244
|
+
@pulumi.getter
|
245
|
+
def state(self) -> Optional[pulumi.Input[_builtins.str]]:
|
246
|
+
"""
|
247
|
+
Optional. The state of the VPC Flow Log configuration. Default value
|
248
|
+
is ENABLED. When creating a new configuration, it must be enabled.
|
249
|
+
Possible values: ENABLED DISABLED
|
250
|
+
"""
|
251
|
+
return pulumi.get(self, "state")
|
252
|
+
|
253
|
+
@state.setter
|
254
|
+
def state(self, value: Optional[pulumi.Input[_builtins.str]]):
|
255
|
+
pulumi.set(self, "state", value)
|
256
|
+
|
257
|
+
|
258
|
+
@pulumi.input_type
|
259
|
+
class _OrganizationVpcFlowLogsConfigState:
|
260
|
+
def __init__(__self__, *,
|
261
|
+
aggregation_interval: Optional[pulumi.Input[_builtins.str]] = None,
|
262
|
+
create_time: Optional[pulumi.Input[_builtins.str]] = None,
|
263
|
+
cross_project_metadata: Optional[pulumi.Input[_builtins.str]] = None,
|
264
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
265
|
+
effective_labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
266
|
+
filter_expr: Optional[pulumi.Input[_builtins.str]] = None,
|
267
|
+
flow_sampling: Optional[pulumi.Input[_builtins.float]] = None,
|
268
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
269
|
+
location: Optional[pulumi.Input[_builtins.str]] = None,
|
270
|
+
metadata: Optional[pulumi.Input[_builtins.str]] = None,
|
271
|
+
metadata_fields: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
272
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
273
|
+
organization: Optional[pulumi.Input[_builtins.str]] = None,
|
274
|
+
pulumi_labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
275
|
+
state: Optional[pulumi.Input[_builtins.str]] = None,
|
276
|
+
update_time: Optional[pulumi.Input[_builtins.str]] = None,
|
277
|
+
vpc_flow_logs_config_id: Optional[pulumi.Input[_builtins.str]] = None):
|
278
|
+
"""
|
279
|
+
Input properties used for looking up and filtering OrganizationVpcFlowLogsConfig resources.
|
280
|
+
:param pulumi.Input[_builtins.str] aggregation_interval: Optional. The aggregation interval for the logs. Default value is
|
281
|
+
INTERVAL_5_SEC. Possible values: INTERVAL_5_SEC INTERVAL_30_SEC INTERVAL_1_MIN INTERVAL_5_MIN INTERVAL_10_MIN INTERVAL_15_MIN
|
282
|
+
:param pulumi.Input[_builtins.str] create_time: Output only. The time the config was created.
|
283
|
+
:param pulumi.Input[_builtins.str] cross_project_metadata: Determines whether to include cross project annotations in the logs.
|
284
|
+
This field is available only for organization configurations. If not
|
285
|
+
specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
|
286
|
+
Possible values:
|
287
|
+
CROSS_PROJECT_METADATA_ENABLED
|
288
|
+
CROSS_PROJECT_METADATA_DISABLED
|
289
|
+
Possible values are: `CROSS_PROJECT_METADATA_ENABLED`, `CROSS_PROJECT_METADATA_DISABLED`.
|
290
|
+
:param pulumi.Input[_builtins.str] description: Optional. The user-supplied description of the VPC Flow Logs configuration. Maximum
|
291
|
+
of 512 characters.
|
292
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] effective_labels: All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
|
293
|
+
:param pulumi.Input[_builtins.str] filter_expr: Optional. Export filter used to define which VPC Flow Logs should be logged.
|
294
|
+
:param pulumi.Input[_builtins.float] flow_sampling: Optional. The value of the field must be in (0, 1]. The sampling rate
|
295
|
+
of VPC Flow Logs where 1.0 means all collected logs are reported. Setting the
|
296
|
+
sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, use
|
297
|
+
the state field instead. Default value is 1.0.
|
298
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] labels: Optional. Resource labels to represent the user-provided metadata.
|
299
|
+
|
300
|
+
**Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
|
301
|
+
Please refer to the field `effective_labels` for all of the labels present on the resource.
|
302
|
+
:param pulumi.Input[_builtins.str] location: Resource ID segment making up resource `name`. It identifies the resource
|
303
|
+
within its parent collection as described in https://google.aip.dev/122. See documentation
|
304
|
+
for resource type `networkmanagement.googleapis.com/VpcFlowLogsConfig`.
|
305
|
+
:param pulumi.Input[_builtins.str] metadata: Optional. Configures whether all, none or a subset of metadata fields
|
306
|
+
should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.
|
307
|
+
Possible values: METADATA_UNSPECIFIED INCLUDE_ALL_METADATA EXCLUDE_ALL_METADATA CUSTOM_METADATA
|
308
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] metadata_fields: Optional. Custom metadata fields to include in the reported VPC flow
|
309
|
+
logs. Can only be specified if \\"metadata\\" was set to CUSTOM_METADATA.
|
310
|
+
:param pulumi.Input[_builtins.str] name: Identifier. Unique name of the configuration using the form: `organizations/{org_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
|
311
|
+
:param pulumi.Input[_builtins.str] organization: Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
|
312
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] pulumi_labels: The combination of labels configured directly on the resource
|
313
|
+
and default labels configured on the provider.
|
314
|
+
:param pulumi.Input[_builtins.str] state: Optional. The state of the VPC Flow Log configuration. Default value
|
315
|
+
is ENABLED. When creating a new configuration, it must be enabled.
|
316
|
+
Possible values: ENABLED DISABLED
|
317
|
+
:param pulumi.Input[_builtins.str] update_time: Output only. The time the config was updated.
|
318
|
+
:param pulumi.Input[_builtins.str] vpc_flow_logs_config_id: Required. ID of the `VpcFlowLogsConfig`.
|
319
|
+
"""
|
320
|
+
if aggregation_interval is not None:
|
321
|
+
pulumi.set(__self__, "aggregation_interval", aggregation_interval)
|
322
|
+
if create_time is not None:
|
323
|
+
pulumi.set(__self__, "create_time", create_time)
|
324
|
+
if cross_project_metadata is not None:
|
325
|
+
pulumi.set(__self__, "cross_project_metadata", cross_project_metadata)
|
326
|
+
if description is not None:
|
327
|
+
pulumi.set(__self__, "description", description)
|
328
|
+
if effective_labels is not None:
|
329
|
+
pulumi.set(__self__, "effective_labels", effective_labels)
|
330
|
+
if filter_expr is not None:
|
331
|
+
pulumi.set(__self__, "filter_expr", filter_expr)
|
332
|
+
if flow_sampling is not None:
|
333
|
+
pulumi.set(__self__, "flow_sampling", flow_sampling)
|
334
|
+
if labels is not None:
|
335
|
+
pulumi.set(__self__, "labels", labels)
|
336
|
+
if location is not None:
|
337
|
+
pulumi.set(__self__, "location", location)
|
338
|
+
if metadata is not None:
|
339
|
+
pulumi.set(__self__, "metadata", metadata)
|
340
|
+
if metadata_fields is not None:
|
341
|
+
pulumi.set(__self__, "metadata_fields", metadata_fields)
|
342
|
+
if name is not None:
|
343
|
+
pulumi.set(__self__, "name", name)
|
344
|
+
if organization is not None:
|
345
|
+
pulumi.set(__self__, "organization", organization)
|
346
|
+
if pulumi_labels is not None:
|
347
|
+
pulumi.set(__self__, "pulumi_labels", pulumi_labels)
|
348
|
+
if state is not None:
|
349
|
+
pulumi.set(__self__, "state", state)
|
350
|
+
if update_time is not None:
|
351
|
+
pulumi.set(__self__, "update_time", update_time)
|
352
|
+
if vpc_flow_logs_config_id is not None:
|
353
|
+
pulumi.set(__self__, "vpc_flow_logs_config_id", vpc_flow_logs_config_id)
|
354
|
+
|
355
|
+
@_builtins.property
|
356
|
+
@pulumi.getter(name="aggregationInterval")
|
357
|
+
def aggregation_interval(self) -> Optional[pulumi.Input[_builtins.str]]:
|
358
|
+
"""
|
359
|
+
Optional. The aggregation interval for the logs. Default value is
|
360
|
+
INTERVAL_5_SEC. Possible values: INTERVAL_5_SEC INTERVAL_30_SEC INTERVAL_1_MIN INTERVAL_5_MIN INTERVAL_10_MIN INTERVAL_15_MIN
|
361
|
+
"""
|
362
|
+
return pulumi.get(self, "aggregation_interval")
|
363
|
+
|
364
|
+
@aggregation_interval.setter
|
365
|
+
def aggregation_interval(self, value: Optional[pulumi.Input[_builtins.str]]):
|
366
|
+
pulumi.set(self, "aggregation_interval", value)
|
367
|
+
|
368
|
+
@_builtins.property
|
369
|
+
@pulumi.getter(name="createTime")
|
370
|
+
def create_time(self) -> Optional[pulumi.Input[_builtins.str]]:
|
371
|
+
"""
|
372
|
+
Output only. The time the config was created.
|
373
|
+
"""
|
374
|
+
return pulumi.get(self, "create_time")
|
375
|
+
|
376
|
+
@create_time.setter
|
377
|
+
def create_time(self, value: Optional[pulumi.Input[_builtins.str]]):
|
378
|
+
pulumi.set(self, "create_time", value)
|
379
|
+
|
380
|
+
@_builtins.property
|
381
|
+
@pulumi.getter(name="crossProjectMetadata")
|
382
|
+
def cross_project_metadata(self) -> Optional[pulumi.Input[_builtins.str]]:
|
383
|
+
"""
|
384
|
+
Determines whether to include cross project annotations in the logs.
|
385
|
+
This field is available only for organization configurations. If not
|
386
|
+
specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
|
387
|
+
Possible values:
|
388
|
+
CROSS_PROJECT_METADATA_ENABLED
|
389
|
+
CROSS_PROJECT_METADATA_DISABLED
|
390
|
+
Possible values are: `CROSS_PROJECT_METADATA_ENABLED`, `CROSS_PROJECT_METADATA_DISABLED`.
|
391
|
+
"""
|
392
|
+
return pulumi.get(self, "cross_project_metadata")
|
393
|
+
|
394
|
+
@cross_project_metadata.setter
|
395
|
+
def cross_project_metadata(self, value: Optional[pulumi.Input[_builtins.str]]):
|
396
|
+
pulumi.set(self, "cross_project_metadata", value)
|
397
|
+
|
398
|
+
@_builtins.property
|
399
|
+
@pulumi.getter
|
400
|
+
def description(self) -> Optional[pulumi.Input[_builtins.str]]:
|
401
|
+
"""
|
402
|
+
Optional. The user-supplied description of the VPC Flow Logs configuration. Maximum
|
403
|
+
of 512 characters.
|
404
|
+
"""
|
405
|
+
return pulumi.get(self, "description")
|
406
|
+
|
407
|
+
@description.setter
|
408
|
+
def description(self, value: Optional[pulumi.Input[_builtins.str]]):
|
409
|
+
pulumi.set(self, "description", value)
|
410
|
+
|
411
|
+
@_builtins.property
|
412
|
+
@pulumi.getter(name="effectiveLabels")
|
413
|
+
def effective_labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
414
|
+
"""
|
415
|
+
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
|
416
|
+
"""
|
417
|
+
return pulumi.get(self, "effective_labels")
|
418
|
+
|
419
|
+
@effective_labels.setter
|
420
|
+
def effective_labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
|
421
|
+
pulumi.set(self, "effective_labels", value)
|
422
|
+
|
423
|
+
@_builtins.property
|
424
|
+
@pulumi.getter(name="filterExpr")
|
425
|
+
def filter_expr(self) -> Optional[pulumi.Input[_builtins.str]]:
|
426
|
+
"""
|
427
|
+
Optional. Export filter used to define which VPC Flow Logs should be logged.
|
428
|
+
"""
|
429
|
+
return pulumi.get(self, "filter_expr")
|
430
|
+
|
431
|
+
@filter_expr.setter
|
432
|
+
def filter_expr(self, value: Optional[pulumi.Input[_builtins.str]]):
|
433
|
+
pulumi.set(self, "filter_expr", value)
|
434
|
+
|
435
|
+
@_builtins.property
|
436
|
+
@pulumi.getter(name="flowSampling")
|
437
|
+
def flow_sampling(self) -> Optional[pulumi.Input[_builtins.float]]:
|
438
|
+
"""
|
439
|
+
Optional. The value of the field must be in (0, 1]. The sampling rate
|
440
|
+
of VPC Flow Logs where 1.0 means all collected logs are reported. Setting the
|
441
|
+
sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, use
|
442
|
+
the state field instead. Default value is 1.0.
|
443
|
+
"""
|
444
|
+
return pulumi.get(self, "flow_sampling")
|
445
|
+
|
446
|
+
@flow_sampling.setter
|
447
|
+
def flow_sampling(self, value: Optional[pulumi.Input[_builtins.float]]):
|
448
|
+
pulumi.set(self, "flow_sampling", value)
|
449
|
+
|
450
|
+
@_builtins.property
|
451
|
+
@pulumi.getter
|
452
|
+
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
453
|
+
"""
|
454
|
+
Optional. Resource labels to represent the user-provided metadata.
|
455
|
+
|
456
|
+
**Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
|
457
|
+
Please refer to the field `effective_labels` for all of the labels present on the resource.
|
458
|
+
"""
|
459
|
+
return pulumi.get(self, "labels")
|
460
|
+
|
461
|
+
@labels.setter
|
462
|
+
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
|
463
|
+
pulumi.set(self, "labels", value)
|
464
|
+
|
465
|
+
@_builtins.property
|
466
|
+
@pulumi.getter
|
467
|
+
def location(self) -> Optional[pulumi.Input[_builtins.str]]:
|
468
|
+
"""
|
469
|
+
Resource ID segment making up resource `name`. It identifies the resource
|
470
|
+
within its parent collection as described in https://google.aip.dev/122. See documentation
|
471
|
+
for resource type `networkmanagement.googleapis.com/VpcFlowLogsConfig`.
|
472
|
+
"""
|
473
|
+
return pulumi.get(self, "location")
|
474
|
+
|
475
|
+
@location.setter
|
476
|
+
def location(self, value: Optional[pulumi.Input[_builtins.str]]):
|
477
|
+
pulumi.set(self, "location", value)
|
478
|
+
|
479
|
+
@_builtins.property
|
480
|
+
@pulumi.getter
|
481
|
+
def metadata(self) -> Optional[pulumi.Input[_builtins.str]]:
|
482
|
+
"""
|
483
|
+
Optional. Configures whether all, none or a subset of metadata fields
|
484
|
+
should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.
|
485
|
+
Possible values: METADATA_UNSPECIFIED INCLUDE_ALL_METADATA EXCLUDE_ALL_METADATA CUSTOM_METADATA
|
486
|
+
"""
|
487
|
+
return pulumi.get(self, "metadata")
|
488
|
+
|
489
|
+
@metadata.setter
|
490
|
+
def metadata(self, value: Optional[pulumi.Input[_builtins.str]]):
|
491
|
+
pulumi.set(self, "metadata", value)
|
492
|
+
|
493
|
+
@_builtins.property
|
494
|
+
@pulumi.getter(name="metadataFields")
|
495
|
+
def metadata_fields(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
496
|
+
"""
|
497
|
+
Optional. Custom metadata fields to include in the reported VPC flow
|
498
|
+
logs. Can only be specified if \\"metadata\\" was set to CUSTOM_METADATA.
|
499
|
+
"""
|
500
|
+
return pulumi.get(self, "metadata_fields")
|
501
|
+
|
502
|
+
@metadata_fields.setter
|
503
|
+
def metadata_fields(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
504
|
+
pulumi.set(self, "metadata_fields", value)
|
505
|
+
|
506
|
+
@_builtins.property
|
507
|
+
@pulumi.getter
|
508
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
509
|
+
"""
|
510
|
+
Identifier. Unique name of the configuration using the form: `organizations/{org_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
|
511
|
+
"""
|
512
|
+
return pulumi.get(self, "name")
|
513
|
+
|
514
|
+
@name.setter
|
515
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
516
|
+
pulumi.set(self, "name", value)
|
517
|
+
|
518
|
+
@_builtins.property
|
519
|
+
@pulumi.getter
|
520
|
+
def organization(self) -> Optional[pulumi.Input[_builtins.str]]:
|
521
|
+
"""
|
522
|
+
Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
|
523
|
+
"""
|
524
|
+
return pulumi.get(self, "organization")
|
525
|
+
|
526
|
+
@organization.setter
|
527
|
+
def organization(self, value: Optional[pulumi.Input[_builtins.str]]):
|
528
|
+
pulumi.set(self, "organization", value)
|
529
|
+
|
530
|
+
@_builtins.property
|
531
|
+
@pulumi.getter(name="pulumiLabels")
|
532
|
+
def pulumi_labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
533
|
+
"""
|
534
|
+
The combination of labels configured directly on the resource
|
535
|
+
and default labels configured on the provider.
|
536
|
+
"""
|
537
|
+
return pulumi.get(self, "pulumi_labels")
|
538
|
+
|
539
|
+
@pulumi_labels.setter
|
540
|
+
def pulumi_labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
|
541
|
+
pulumi.set(self, "pulumi_labels", value)
|
542
|
+
|
543
|
+
@_builtins.property
|
544
|
+
@pulumi.getter
|
545
|
+
def state(self) -> Optional[pulumi.Input[_builtins.str]]:
|
546
|
+
"""
|
547
|
+
Optional. The state of the VPC Flow Log configuration. Default value
|
548
|
+
is ENABLED. When creating a new configuration, it must be enabled.
|
549
|
+
Possible values: ENABLED DISABLED
|
550
|
+
"""
|
551
|
+
return pulumi.get(self, "state")
|
552
|
+
|
553
|
+
@state.setter
|
554
|
+
def state(self, value: Optional[pulumi.Input[_builtins.str]]):
|
555
|
+
pulumi.set(self, "state", value)
|
556
|
+
|
557
|
+
@_builtins.property
|
558
|
+
@pulumi.getter(name="updateTime")
|
559
|
+
def update_time(self) -> Optional[pulumi.Input[_builtins.str]]:
|
560
|
+
"""
|
561
|
+
Output only. The time the config was updated.
|
562
|
+
"""
|
563
|
+
return pulumi.get(self, "update_time")
|
564
|
+
|
565
|
+
@update_time.setter
|
566
|
+
def update_time(self, value: Optional[pulumi.Input[_builtins.str]]):
|
567
|
+
pulumi.set(self, "update_time", value)
|
568
|
+
|
569
|
+
@_builtins.property
|
570
|
+
@pulumi.getter(name="vpcFlowLogsConfigId")
|
571
|
+
def vpc_flow_logs_config_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
572
|
+
"""
|
573
|
+
Required. ID of the `VpcFlowLogsConfig`.
|
574
|
+
"""
|
575
|
+
return pulumi.get(self, "vpc_flow_logs_config_id")
|
576
|
+
|
577
|
+
@vpc_flow_logs_config_id.setter
|
578
|
+
def vpc_flow_logs_config_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
579
|
+
pulumi.set(self, "vpc_flow_logs_config_id", value)
|
580
|
+
|
581
|
+
|
582
|
+
@pulumi.type_token("gcp:networkmanagement/organizationVpcFlowLogsConfig:OrganizationVpcFlowLogsConfig")
|
583
|
+
class OrganizationVpcFlowLogsConfig(pulumi.CustomResource):
|
584
|
+
@overload
|
585
|
+
def __init__(__self__,
|
586
|
+
resource_name: str,
|
587
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
588
|
+
aggregation_interval: Optional[pulumi.Input[_builtins.str]] = None,
|
589
|
+
cross_project_metadata: Optional[pulumi.Input[_builtins.str]] = None,
|
590
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
591
|
+
filter_expr: Optional[pulumi.Input[_builtins.str]] = None,
|
592
|
+
flow_sampling: Optional[pulumi.Input[_builtins.float]] = None,
|
593
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
594
|
+
location: Optional[pulumi.Input[_builtins.str]] = None,
|
595
|
+
metadata: Optional[pulumi.Input[_builtins.str]] = None,
|
596
|
+
metadata_fields: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
597
|
+
organization: Optional[pulumi.Input[_builtins.str]] = None,
|
598
|
+
state: Optional[pulumi.Input[_builtins.str]] = None,
|
599
|
+
vpc_flow_logs_config_id: Optional[pulumi.Input[_builtins.str]] = None,
|
600
|
+
__props__=None):
|
601
|
+
"""
|
602
|
+
VPC Flow Logs Config is a resource that lets you configure Flow Logs for Organization.
|
603
|
+
|
604
|
+
## Example Usage
|
605
|
+
|
606
|
+
### Network Management Org Vpc Flow Logs Config Basic
|
607
|
+
|
608
|
+
```python
|
609
|
+
import pulumi
|
610
|
+
import pulumi_gcp as gcp
|
611
|
+
|
612
|
+
org_test = gcp.networkmanagement.OrganizationVpcFlowLogsConfig("org-test",
|
613
|
+
vpc_flow_logs_config_id="basic-org-test-id",
|
614
|
+
location="global",
|
615
|
+
organization="123456789")
|
616
|
+
```
|
617
|
+
|
618
|
+
## Import
|
619
|
+
|
620
|
+
OrganizationVpcFlowLogsConfig can be imported using any of these accepted formats:
|
621
|
+
|
622
|
+
* `organizations/{{organization}}/locations/{{location}}/vpcFlowLogsConfigs/{{vpc_flow_logs_config_id}}`
|
623
|
+
|
624
|
+
* `{{organization}}/{{location}}/{{vpc_flow_logs_config_id}}`
|
625
|
+
|
626
|
+
When using the `pulumi import` command, OrganizationVpcFlowLogsConfig can be imported using one of the formats above. For example:
|
627
|
+
|
628
|
+
```sh
|
629
|
+
$ pulumi import gcp:networkmanagement/organizationVpcFlowLogsConfig:OrganizationVpcFlowLogsConfig default organizations/{{organization}}/locations/{{location}}/vpcFlowLogsConfigs/{{vpc_flow_logs_config_id}}
|
630
|
+
```
|
631
|
+
|
632
|
+
```sh
|
633
|
+
$ pulumi import gcp:networkmanagement/organizationVpcFlowLogsConfig:OrganizationVpcFlowLogsConfig default {{organization}}/{{location}}/{{vpc_flow_logs_config_id}}
|
634
|
+
```
|
635
|
+
|
636
|
+
:param str resource_name: The name of the resource.
|
637
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
638
|
+
:param pulumi.Input[_builtins.str] aggregation_interval: Optional. The aggregation interval for the logs. Default value is
|
639
|
+
INTERVAL_5_SEC. Possible values: INTERVAL_5_SEC INTERVAL_30_SEC INTERVAL_1_MIN INTERVAL_5_MIN INTERVAL_10_MIN INTERVAL_15_MIN
|
640
|
+
:param pulumi.Input[_builtins.str] cross_project_metadata: Determines whether to include cross project annotations in the logs.
|
641
|
+
This field is available only for organization configurations. If not
|
642
|
+
specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
|
643
|
+
Possible values:
|
644
|
+
CROSS_PROJECT_METADATA_ENABLED
|
645
|
+
CROSS_PROJECT_METADATA_DISABLED
|
646
|
+
Possible values are: `CROSS_PROJECT_METADATA_ENABLED`, `CROSS_PROJECT_METADATA_DISABLED`.
|
647
|
+
:param pulumi.Input[_builtins.str] description: Optional. The user-supplied description of the VPC Flow Logs configuration. Maximum
|
648
|
+
of 512 characters.
|
649
|
+
:param pulumi.Input[_builtins.str] filter_expr: Optional. Export filter used to define which VPC Flow Logs should be logged.
|
650
|
+
:param pulumi.Input[_builtins.float] flow_sampling: Optional. The value of the field must be in (0, 1]. The sampling rate
|
651
|
+
of VPC Flow Logs where 1.0 means all collected logs are reported. Setting the
|
652
|
+
sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, use
|
653
|
+
the state field instead. Default value is 1.0.
|
654
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] labels: Optional. Resource labels to represent the user-provided metadata.
|
655
|
+
|
656
|
+
**Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
|
657
|
+
Please refer to the field `effective_labels` for all of the labels present on the resource.
|
658
|
+
:param pulumi.Input[_builtins.str] location: Resource ID segment making up resource `name`. It identifies the resource
|
659
|
+
within its parent collection as described in https://google.aip.dev/122. See documentation
|
660
|
+
for resource type `networkmanagement.googleapis.com/VpcFlowLogsConfig`.
|
661
|
+
:param pulumi.Input[_builtins.str] metadata: Optional. Configures whether all, none or a subset of metadata fields
|
662
|
+
should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.
|
663
|
+
Possible values: METADATA_UNSPECIFIED INCLUDE_ALL_METADATA EXCLUDE_ALL_METADATA CUSTOM_METADATA
|
664
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] metadata_fields: Optional. Custom metadata fields to include in the reported VPC flow
|
665
|
+
logs. Can only be specified if \\"metadata\\" was set to CUSTOM_METADATA.
|
666
|
+
:param pulumi.Input[_builtins.str] organization: Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
|
667
|
+
:param pulumi.Input[_builtins.str] state: Optional. The state of the VPC Flow Log configuration. Default value
|
668
|
+
is ENABLED. When creating a new configuration, it must be enabled.
|
669
|
+
Possible values: ENABLED DISABLED
|
670
|
+
:param pulumi.Input[_builtins.str] vpc_flow_logs_config_id: Required. ID of the `VpcFlowLogsConfig`.
|
671
|
+
"""
|
672
|
+
...
|
673
|
+
@overload
|
674
|
+
def __init__(__self__,
|
675
|
+
resource_name: str,
|
676
|
+
args: OrganizationVpcFlowLogsConfigArgs,
|
677
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
678
|
+
"""
|
679
|
+
VPC Flow Logs Config is a resource that lets you configure Flow Logs for Organization.
|
680
|
+
|
681
|
+
## Example Usage
|
682
|
+
|
683
|
+
### Network Management Org Vpc Flow Logs Config Basic
|
684
|
+
|
685
|
+
```python
|
686
|
+
import pulumi
|
687
|
+
import pulumi_gcp as gcp
|
688
|
+
|
689
|
+
org_test = gcp.networkmanagement.OrganizationVpcFlowLogsConfig("org-test",
|
690
|
+
vpc_flow_logs_config_id="basic-org-test-id",
|
691
|
+
location="global",
|
692
|
+
organization="123456789")
|
693
|
+
```
|
694
|
+
|
695
|
+
## Import
|
696
|
+
|
697
|
+
OrganizationVpcFlowLogsConfig can be imported using any of these accepted formats:
|
698
|
+
|
699
|
+
* `organizations/{{organization}}/locations/{{location}}/vpcFlowLogsConfigs/{{vpc_flow_logs_config_id}}`
|
700
|
+
|
701
|
+
* `{{organization}}/{{location}}/{{vpc_flow_logs_config_id}}`
|
702
|
+
|
703
|
+
When using the `pulumi import` command, OrganizationVpcFlowLogsConfig can be imported using one of the formats above. For example:
|
704
|
+
|
705
|
+
```sh
|
706
|
+
$ pulumi import gcp:networkmanagement/organizationVpcFlowLogsConfig:OrganizationVpcFlowLogsConfig default organizations/{{organization}}/locations/{{location}}/vpcFlowLogsConfigs/{{vpc_flow_logs_config_id}}
|
707
|
+
```
|
708
|
+
|
709
|
+
```sh
|
710
|
+
$ pulumi import gcp:networkmanagement/organizationVpcFlowLogsConfig:OrganizationVpcFlowLogsConfig default {{organization}}/{{location}}/{{vpc_flow_logs_config_id}}
|
711
|
+
```
|
712
|
+
|
713
|
+
:param str resource_name: The name of the resource.
|
714
|
+
:param OrganizationVpcFlowLogsConfigArgs args: The arguments to use to populate this resource's properties.
|
715
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
716
|
+
"""
|
717
|
+
...
|
718
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
719
|
+
resource_args, opts = _utilities.get_resource_args_opts(OrganizationVpcFlowLogsConfigArgs, pulumi.ResourceOptions, *args, **kwargs)
|
720
|
+
if resource_args is not None:
|
721
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
722
|
+
else:
|
723
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
724
|
+
|
725
|
+
def _internal_init(__self__,
|
726
|
+
resource_name: str,
|
727
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
728
|
+
aggregation_interval: Optional[pulumi.Input[_builtins.str]] = None,
|
729
|
+
cross_project_metadata: Optional[pulumi.Input[_builtins.str]] = None,
|
730
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
731
|
+
filter_expr: Optional[pulumi.Input[_builtins.str]] = None,
|
732
|
+
flow_sampling: Optional[pulumi.Input[_builtins.float]] = None,
|
733
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
734
|
+
location: Optional[pulumi.Input[_builtins.str]] = None,
|
735
|
+
metadata: Optional[pulumi.Input[_builtins.str]] = None,
|
736
|
+
metadata_fields: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
737
|
+
organization: Optional[pulumi.Input[_builtins.str]] = None,
|
738
|
+
state: Optional[pulumi.Input[_builtins.str]] = None,
|
739
|
+
vpc_flow_logs_config_id: Optional[pulumi.Input[_builtins.str]] = None,
|
740
|
+
__props__=None):
|
741
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
742
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
743
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
744
|
+
if opts.id is None:
|
745
|
+
if __props__ is not None:
|
746
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
747
|
+
__props__ = OrganizationVpcFlowLogsConfigArgs.__new__(OrganizationVpcFlowLogsConfigArgs)
|
748
|
+
|
749
|
+
__props__.__dict__["aggregation_interval"] = aggregation_interval
|
750
|
+
__props__.__dict__["cross_project_metadata"] = cross_project_metadata
|
751
|
+
__props__.__dict__["description"] = description
|
752
|
+
__props__.__dict__["filter_expr"] = filter_expr
|
753
|
+
__props__.__dict__["flow_sampling"] = flow_sampling
|
754
|
+
__props__.__dict__["labels"] = labels
|
755
|
+
if location is None and not opts.urn:
|
756
|
+
raise TypeError("Missing required property 'location'")
|
757
|
+
__props__.__dict__["location"] = location
|
758
|
+
__props__.__dict__["metadata"] = metadata
|
759
|
+
__props__.__dict__["metadata_fields"] = metadata_fields
|
760
|
+
if organization is None and not opts.urn:
|
761
|
+
raise TypeError("Missing required property 'organization'")
|
762
|
+
__props__.__dict__["organization"] = organization
|
763
|
+
__props__.__dict__["state"] = state
|
764
|
+
if vpc_flow_logs_config_id is None and not opts.urn:
|
765
|
+
raise TypeError("Missing required property 'vpc_flow_logs_config_id'")
|
766
|
+
__props__.__dict__["vpc_flow_logs_config_id"] = vpc_flow_logs_config_id
|
767
|
+
__props__.__dict__["create_time"] = None
|
768
|
+
__props__.__dict__["effective_labels"] = None
|
769
|
+
__props__.__dict__["name"] = None
|
770
|
+
__props__.__dict__["pulumi_labels"] = None
|
771
|
+
__props__.__dict__["update_time"] = None
|
772
|
+
secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["effectiveLabels", "pulumiLabels"])
|
773
|
+
opts = pulumi.ResourceOptions.merge(opts, secret_opts)
|
774
|
+
super(OrganizationVpcFlowLogsConfig, __self__).__init__(
|
775
|
+
'gcp:networkmanagement/organizationVpcFlowLogsConfig:OrganizationVpcFlowLogsConfig',
|
776
|
+
resource_name,
|
777
|
+
__props__,
|
778
|
+
opts)
|
779
|
+
|
780
|
+
@staticmethod
|
781
|
+
def get(resource_name: str,
|
782
|
+
id: pulumi.Input[str],
|
783
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
784
|
+
aggregation_interval: Optional[pulumi.Input[_builtins.str]] = None,
|
785
|
+
create_time: Optional[pulumi.Input[_builtins.str]] = None,
|
786
|
+
cross_project_metadata: Optional[pulumi.Input[_builtins.str]] = None,
|
787
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
788
|
+
effective_labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
789
|
+
filter_expr: Optional[pulumi.Input[_builtins.str]] = None,
|
790
|
+
flow_sampling: Optional[pulumi.Input[_builtins.float]] = None,
|
791
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
792
|
+
location: Optional[pulumi.Input[_builtins.str]] = None,
|
793
|
+
metadata: Optional[pulumi.Input[_builtins.str]] = None,
|
794
|
+
metadata_fields: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
795
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
796
|
+
organization: Optional[pulumi.Input[_builtins.str]] = None,
|
797
|
+
pulumi_labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
798
|
+
state: Optional[pulumi.Input[_builtins.str]] = None,
|
799
|
+
update_time: Optional[pulumi.Input[_builtins.str]] = None,
|
800
|
+
vpc_flow_logs_config_id: Optional[pulumi.Input[_builtins.str]] = None) -> 'OrganizationVpcFlowLogsConfig':
|
801
|
+
"""
|
802
|
+
Get an existing OrganizationVpcFlowLogsConfig resource's state with the given name, id, and optional extra
|
803
|
+
properties used to qualify the lookup.
|
804
|
+
|
805
|
+
:param str resource_name: The unique name of the resulting resource.
|
806
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
807
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
808
|
+
:param pulumi.Input[_builtins.str] aggregation_interval: Optional. The aggregation interval for the logs. Default value is
|
809
|
+
INTERVAL_5_SEC. Possible values: INTERVAL_5_SEC INTERVAL_30_SEC INTERVAL_1_MIN INTERVAL_5_MIN INTERVAL_10_MIN INTERVAL_15_MIN
|
810
|
+
:param pulumi.Input[_builtins.str] create_time: Output only. The time the config was created.
|
811
|
+
:param pulumi.Input[_builtins.str] cross_project_metadata: Determines whether to include cross project annotations in the logs.
|
812
|
+
This field is available only for organization configurations. If not
|
813
|
+
specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
|
814
|
+
Possible values:
|
815
|
+
CROSS_PROJECT_METADATA_ENABLED
|
816
|
+
CROSS_PROJECT_METADATA_DISABLED
|
817
|
+
Possible values are: `CROSS_PROJECT_METADATA_ENABLED`, `CROSS_PROJECT_METADATA_DISABLED`.
|
818
|
+
:param pulumi.Input[_builtins.str] description: Optional. The user-supplied description of the VPC Flow Logs configuration. Maximum
|
819
|
+
of 512 characters.
|
820
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] effective_labels: All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
|
821
|
+
:param pulumi.Input[_builtins.str] filter_expr: Optional. Export filter used to define which VPC Flow Logs should be logged.
|
822
|
+
:param pulumi.Input[_builtins.float] flow_sampling: Optional. The value of the field must be in (0, 1]. The sampling rate
|
823
|
+
of VPC Flow Logs where 1.0 means all collected logs are reported. Setting the
|
824
|
+
sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, use
|
825
|
+
the state field instead. Default value is 1.0.
|
826
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] labels: Optional. Resource labels to represent the user-provided metadata.
|
827
|
+
|
828
|
+
**Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
|
829
|
+
Please refer to the field `effective_labels` for all of the labels present on the resource.
|
830
|
+
:param pulumi.Input[_builtins.str] location: Resource ID segment making up resource `name`. It identifies the resource
|
831
|
+
within its parent collection as described in https://google.aip.dev/122. See documentation
|
832
|
+
for resource type `networkmanagement.googleapis.com/VpcFlowLogsConfig`.
|
833
|
+
:param pulumi.Input[_builtins.str] metadata: Optional. Configures whether all, none or a subset of metadata fields
|
834
|
+
should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.
|
835
|
+
Possible values: METADATA_UNSPECIFIED INCLUDE_ALL_METADATA EXCLUDE_ALL_METADATA CUSTOM_METADATA
|
836
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] metadata_fields: Optional. Custom metadata fields to include in the reported VPC flow
|
837
|
+
logs. Can only be specified if \\"metadata\\" was set to CUSTOM_METADATA.
|
838
|
+
:param pulumi.Input[_builtins.str] name: Identifier. Unique name of the configuration using the form: `organizations/{org_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
|
839
|
+
:param pulumi.Input[_builtins.str] organization: Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
|
840
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] pulumi_labels: The combination of labels configured directly on the resource
|
841
|
+
and default labels configured on the provider.
|
842
|
+
:param pulumi.Input[_builtins.str] state: Optional. The state of the VPC Flow Log configuration. Default value
|
843
|
+
is ENABLED. When creating a new configuration, it must be enabled.
|
844
|
+
Possible values: ENABLED DISABLED
|
845
|
+
:param pulumi.Input[_builtins.str] update_time: Output only. The time the config was updated.
|
846
|
+
:param pulumi.Input[_builtins.str] vpc_flow_logs_config_id: Required. ID of the `VpcFlowLogsConfig`.
|
847
|
+
"""
|
848
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
849
|
+
|
850
|
+
__props__ = _OrganizationVpcFlowLogsConfigState.__new__(_OrganizationVpcFlowLogsConfigState)
|
851
|
+
|
852
|
+
__props__.__dict__["aggregation_interval"] = aggregation_interval
|
853
|
+
__props__.__dict__["create_time"] = create_time
|
854
|
+
__props__.__dict__["cross_project_metadata"] = cross_project_metadata
|
855
|
+
__props__.__dict__["description"] = description
|
856
|
+
__props__.__dict__["effective_labels"] = effective_labels
|
857
|
+
__props__.__dict__["filter_expr"] = filter_expr
|
858
|
+
__props__.__dict__["flow_sampling"] = flow_sampling
|
859
|
+
__props__.__dict__["labels"] = labels
|
860
|
+
__props__.__dict__["location"] = location
|
861
|
+
__props__.__dict__["metadata"] = metadata
|
862
|
+
__props__.__dict__["metadata_fields"] = metadata_fields
|
863
|
+
__props__.__dict__["name"] = name
|
864
|
+
__props__.__dict__["organization"] = organization
|
865
|
+
__props__.__dict__["pulumi_labels"] = pulumi_labels
|
866
|
+
__props__.__dict__["state"] = state
|
867
|
+
__props__.__dict__["update_time"] = update_time
|
868
|
+
__props__.__dict__["vpc_flow_logs_config_id"] = vpc_flow_logs_config_id
|
869
|
+
return OrganizationVpcFlowLogsConfig(resource_name, opts=opts, __props__=__props__)
|
870
|
+
|
871
|
+
@_builtins.property
|
872
|
+
@pulumi.getter(name="aggregationInterval")
|
873
|
+
def aggregation_interval(self) -> pulumi.Output[_builtins.str]:
|
874
|
+
"""
|
875
|
+
Optional. The aggregation interval for the logs. Default value is
|
876
|
+
INTERVAL_5_SEC. Possible values: INTERVAL_5_SEC INTERVAL_30_SEC INTERVAL_1_MIN INTERVAL_5_MIN INTERVAL_10_MIN INTERVAL_15_MIN
|
877
|
+
"""
|
878
|
+
return pulumi.get(self, "aggregation_interval")
|
879
|
+
|
880
|
+
@_builtins.property
|
881
|
+
@pulumi.getter(name="createTime")
|
882
|
+
def create_time(self) -> pulumi.Output[_builtins.str]:
|
883
|
+
"""
|
884
|
+
Output only. The time the config was created.
|
885
|
+
"""
|
886
|
+
return pulumi.get(self, "create_time")
|
887
|
+
|
888
|
+
@_builtins.property
|
889
|
+
@pulumi.getter(name="crossProjectMetadata")
|
890
|
+
def cross_project_metadata(self) -> pulumi.Output[_builtins.str]:
|
891
|
+
"""
|
892
|
+
Determines whether to include cross project annotations in the logs.
|
893
|
+
This field is available only for organization configurations. If not
|
894
|
+
specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
|
895
|
+
Possible values:
|
896
|
+
CROSS_PROJECT_METADATA_ENABLED
|
897
|
+
CROSS_PROJECT_METADATA_DISABLED
|
898
|
+
Possible values are: `CROSS_PROJECT_METADATA_ENABLED`, `CROSS_PROJECT_METADATA_DISABLED`.
|
899
|
+
"""
|
900
|
+
return pulumi.get(self, "cross_project_metadata")
|
901
|
+
|
902
|
+
@_builtins.property
|
903
|
+
@pulumi.getter
|
904
|
+
def description(self) -> pulumi.Output[Optional[_builtins.str]]:
|
905
|
+
"""
|
906
|
+
Optional. The user-supplied description of the VPC Flow Logs configuration. Maximum
|
907
|
+
of 512 characters.
|
908
|
+
"""
|
909
|
+
return pulumi.get(self, "description")
|
910
|
+
|
911
|
+
@_builtins.property
|
912
|
+
@pulumi.getter(name="effectiveLabels")
|
913
|
+
def effective_labels(self) -> pulumi.Output[Mapping[str, _builtins.str]]:
|
914
|
+
"""
|
915
|
+
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
|
916
|
+
"""
|
917
|
+
return pulumi.get(self, "effective_labels")
|
918
|
+
|
919
|
+
@_builtins.property
|
920
|
+
@pulumi.getter(name="filterExpr")
|
921
|
+
def filter_expr(self) -> pulumi.Output[Optional[_builtins.str]]:
|
922
|
+
"""
|
923
|
+
Optional. Export filter used to define which VPC Flow Logs should be logged.
|
924
|
+
"""
|
925
|
+
return pulumi.get(self, "filter_expr")
|
926
|
+
|
927
|
+
@_builtins.property
|
928
|
+
@pulumi.getter(name="flowSampling")
|
929
|
+
def flow_sampling(self) -> pulumi.Output[_builtins.float]:
|
930
|
+
"""
|
931
|
+
Optional. The value of the field must be in (0, 1]. The sampling rate
|
932
|
+
of VPC Flow Logs where 1.0 means all collected logs are reported. Setting the
|
933
|
+
sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, use
|
934
|
+
the state field instead. Default value is 1.0.
|
935
|
+
"""
|
936
|
+
return pulumi.get(self, "flow_sampling")
|
937
|
+
|
938
|
+
@_builtins.property
|
939
|
+
@pulumi.getter
|
940
|
+
def labels(self) -> pulumi.Output[Optional[Mapping[str, _builtins.str]]]:
|
941
|
+
"""
|
942
|
+
Optional. Resource labels to represent the user-provided metadata.
|
943
|
+
|
944
|
+
**Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
|
945
|
+
Please refer to the field `effective_labels` for all of the labels present on the resource.
|
946
|
+
"""
|
947
|
+
return pulumi.get(self, "labels")
|
948
|
+
|
949
|
+
@_builtins.property
|
950
|
+
@pulumi.getter
|
951
|
+
def location(self) -> pulumi.Output[_builtins.str]:
|
952
|
+
"""
|
953
|
+
Resource ID segment making up resource `name`. It identifies the resource
|
954
|
+
within its parent collection as described in https://google.aip.dev/122. See documentation
|
955
|
+
for resource type `networkmanagement.googleapis.com/VpcFlowLogsConfig`.
|
956
|
+
"""
|
957
|
+
return pulumi.get(self, "location")
|
958
|
+
|
959
|
+
@_builtins.property
|
960
|
+
@pulumi.getter
|
961
|
+
def metadata(self) -> pulumi.Output[_builtins.str]:
|
962
|
+
"""
|
963
|
+
Optional. Configures whether all, none or a subset of metadata fields
|
964
|
+
should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.
|
965
|
+
Possible values: METADATA_UNSPECIFIED INCLUDE_ALL_METADATA EXCLUDE_ALL_METADATA CUSTOM_METADATA
|
966
|
+
"""
|
967
|
+
return pulumi.get(self, "metadata")
|
968
|
+
|
969
|
+
@_builtins.property
|
970
|
+
@pulumi.getter(name="metadataFields")
|
971
|
+
def metadata_fields(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
|
972
|
+
"""
|
973
|
+
Optional. Custom metadata fields to include in the reported VPC flow
|
974
|
+
logs. Can only be specified if \\"metadata\\" was set to CUSTOM_METADATA.
|
975
|
+
"""
|
976
|
+
return pulumi.get(self, "metadata_fields")
|
977
|
+
|
978
|
+
@_builtins.property
|
979
|
+
@pulumi.getter
|
980
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
981
|
+
"""
|
982
|
+
Identifier. Unique name of the configuration using the form: `organizations/{org_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
|
983
|
+
"""
|
984
|
+
return pulumi.get(self, "name")
|
985
|
+
|
986
|
+
@_builtins.property
|
987
|
+
@pulumi.getter
|
988
|
+
def organization(self) -> pulumi.Output[_builtins.str]:
|
989
|
+
"""
|
990
|
+
Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
|
991
|
+
"""
|
992
|
+
return pulumi.get(self, "organization")
|
993
|
+
|
994
|
+
@_builtins.property
|
995
|
+
@pulumi.getter(name="pulumiLabels")
|
996
|
+
def pulumi_labels(self) -> pulumi.Output[Mapping[str, _builtins.str]]:
|
997
|
+
"""
|
998
|
+
The combination of labels configured directly on the resource
|
999
|
+
and default labels configured on the provider.
|
1000
|
+
"""
|
1001
|
+
return pulumi.get(self, "pulumi_labels")
|
1002
|
+
|
1003
|
+
@_builtins.property
|
1004
|
+
@pulumi.getter
|
1005
|
+
def state(self) -> pulumi.Output[_builtins.str]:
|
1006
|
+
"""
|
1007
|
+
Optional. The state of the VPC Flow Log configuration. Default value
|
1008
|
+
is ENABLED. When creating a new configuration, it must be enabled.
|
1009
|
+
Possible values: ENABLED DISABLED
|
1010
|
+
"""
|
1011
|
+
return pulumi.get(self, "state")
|
1012
|
+
|
1013
|
+
@_builtins.property
|
1014
|
+
@pulumi.getter(name="updateTime")
|
1015
|
+
def update_time(self) -> pulumi.Output[_builtins.str]:
|
1016
|
+
"""
|
1017
|
+
Output only. The time the config was updated.
|
1018
|
+
"""
|
1019
|
+
return pulumi.get(self, "update_time")
|
1020
|
+
|
1021
|
+
@_builtins.property
|
1022
|
+
@pulumi.getter(name="vpcFlowLogsConfigId")
|
1023
|
+
def vpc_flow_logs_config_id(self) -> pulumi.Output[_builtins.str]:
|
1024
|
+
"""
|
1025
|
+
Required. ID of the `VpcFlowLogsConfig`.
|
1026
|
+
"""
|
1027
|
+
return pulumi.get(self, "vpc_flow_logs_config_id")
|
1028
|
+
|