|
| 1 | +# Copyright 2024 Google Inc. |
| 2 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 3 | +# you may not use this file except in compliance with the License. |
| 4 | +# You may obtain a copy of the License at |
| 5 | +# |
| 6 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 7 | +# |
| 8 | +# Unless required by applicable law or agreed to in writing, software |
| 9 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 | +# See the License for the specific language governing permissions and |
| 12 | +# limitations under the License. |
| 13 | + |
| 14 | +--- !ruby/object:Api::Resource |
| 15 | +name: 'ProjectSccBigQueryExports' |
| 16 | +base_url: projects/{{project}}/locations/{{location}}/bigQueryExports |
| 17 | +self_link: projects/{{project}}/locations/{{location}}/bigQueryExports/{{big_query_export_id}} |
| 18 | +create_url: projects/{{project}}/locations/{{location}}/bigQueryExports?bigQueryExportId={{big_query_export_id}} |
| 19 | +update_verb: :PATCH |
| 20 | +update_mask: true |
| 21 | +import_format: |
| 22 | + - 'projects/{{project}}/locations/{{location}}/bigQueryExports/{{big_query_export_id}}' |
| 23 | +description: | |
| 24 | + A Cloud Security Command Center (Cloud SCC) Big Query Export Config. |
| 25 | + It represents exporting Security Command Center data, including assets, findings, and security marks |
| 26 | + using gcloud scc bqexports |
| 27 | + ~> **Note:** In order to use Cloud SCC resources, your organization must be enrolled |
| 28 | + in [SCC Standard/Premium](https://cloud.google.com/security-command-center/docs/quickstart-security-command-center). |
| 29 | + Without doing so, you may run into errors during resource creation. |
| 30 | +references: !ruby/object:Api::Resource::ReferenceLinks |
| 31 | + guides: |
| 32 | + 'Official Documentation': 'https://cloud.google.com/security-command-center/docs/how-to-analyze-findings-in-big-query' |
| 33 | + api: 'https://cloud.google.com/security-command-center/docs/reference/rest/v2/projects.locations.bigQueryExports' |
| 34 | +examples: |
| 35 | + - !ruby/object:Provider::Terraform::Examples |
| 36 | + name: 'scc_v2_project_big_query_export_config_basic' |
| 37 | + primary_resource_id: 'custom_big_query_export_config' |
| 38 | + external_providers: ["random", "time"] |
| 39 | + skip_test: true |
| 40 | + vars: |
| 41 | + big_query_export_id: 'my-export' |
| 42 | + dataset: 'my-dataset' |
| 43 | + dataset_id: 'my_dataset_id' |
| 44 | + name: 'my-export' |
| 45 | + test_env_vars: |
| 46 | + org_id: :ORG_ID |
| 47 | + project: :PROJECT_NAME |
| 48 | + ignore_read_extra: |
| 49 | + - 'project' |
| 50 | + |
| 51 | +parameters: |
| 52 | + - !ruby/object:Api::Type::String |
| 53 | + name: bigQueryExportId |
| 54 | + required: true |
| 55 | + immutable: true |
| 56 | + url_param_only: true |
| 57 | + description: | |
| 58 | + This must be unique within the organization. |
| 59 | + - !ruby/object:Api::Type::String |
| 60 | + name: location |
| 61 | + immutable: true |
| 62 | + url_param_only: true |
| 63 | + default_value: global |
| 64 | + description: | |
| 65 | + location Id is provided by organization. If not provided, Use global as default. |
| 66 | +properties: |
| 67 | + - !ruby/object:Api::Type::String |
| 68 | + name: name |
| 69 | + output: true |
| 70 | + description: | |
| 71 | + The resource name of this export, in the format |
| 72 | + `projects/{{project}}/locations/{{location}}/bigQueryExports/{{big_query_export_id}}`. |
| 73 | + This field is provided in responses, and is ignored when provided in create requests. |
| 74 | + - !ruby/object:Api::Type::String |
| 75 | + name: description |
| 76 | + description: | |
| 77 | + The description of the notification config (max of 1024 characters). |
| 78 | + validation: !ruby/object:Provider::Terraform::Validation |
| 79 | + function: 'validation.StringLenBetween(0, 1024)' |
| 80 | + - !ruby/object:Api::Type::String |
| 81 | + name: dataset |
| 82 | + description: | |
| 83 | + The dataset to write findings' updates to. |
| 84 | + Its format is "projects/[projectId]/datasets/[bigquery_dataset_id]". |
| 85 | + BigQuery Dataset unique ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). |
| 86 | + - !ruby/object:Api::Type::String |
| 87 | + name: createTime |
| 88 | + output: true |
| 89 | + description: | |
| 90 | + The time at which the BigQuery export was created. This field is set by the server and will be ignored if provided on export on creation. |
| 91 | + A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. |
| 92 | + Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z". |
| 93 | + - !ruby/object:Api::Type::String |
| 94 | + name: updateTime |
| 95 | + output: true |
| 96 | + description: | |
| 97 | + The most recent time at which the BigQuery export was updated. This field is set by the server and will be ignored if provided on export creation or update. |
| 98 | + A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. |
| 99 | + Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z". |
| 100 | + - !ruby/object:Api::Type::String |
| 101 | + name: mostRecentEditor |
| 102 | + output: true |
| 103 | + description: | |
| 104 | + Email address of the user who last edited the BigQuery export. |
| 105 | + This field is set by the server and will be ignored if provided on export creation or update. |
| 106 | + - !ruby/object:Api::Type::String |
| 107 | + name: principal |
| 108 | + output: true |
| 109 | + description: | |
| 110 | + The service account that needs permission to create table and upload data to the BigQuery dataset. |
| 111 | + - !ruby/object:Api::Type::String |
| 112 | + name: filter |
| 113 | + description: | |
| 114 | + Expression that defines the filter to apply across create/update |
| 115 | + events of findings. The |
| 116 | + expression is a list of zero or more restrictions combined via |
| 117 | + logical operators AND and OR. Parentheses are supported, and OR |
| 118 | + has higher precedence than AND. |
| 119 | +
|
| 120 | + Restrictions have the form <field> <operator> <value> and may have |
| 121 | + a - character in front of them to indicate negation. The fields |
| 122 | + map to those defined in the corresponding resource. |
| 123 | +
|
| 124 | + The supported operators are: |
| 125 | +
|
| 126 | + * = for all value types. |
| 127 | + * >, <, >=, <= for integer values. |
| 128 | + * :, meaning substring matching, for strings. |
| 129 | +
|
| 130 | + The supported value types are: |
| 131 | +
|
| 132 | + * string literals in quotes. |
| 133 | + * integer literals without quotes. |
| 134 | + * boolean literals true and false without quotes. |
| 135 | +
|
| 136 | + See |
| 137 | + [Filtering notifications](https://cloud.google.com/security-command-center/docs/how-to-api-filter-notifications) |
| 138 | + for information on how to write a filter. |
0 commit comments