Expand description
Represents an inventory report configuration.
To get more information about ReportConfig, see:
- API documentation
- How-to Guides
§Example Usage
§Storage Insights Report Config
resources:
config:
type: gcp:storage:InsightsReportConfig
properties:
displayName: Test Report Config
location: us-central1
frequencyOptions:
frequency: WEEKLY
startDate:
day: 15
month: 3
year: 2050
endDate:
day: 15
month: 4
year: 2050
csvOptions:
recordSeparator: |2+
delimiter: ','
headerRequired: false
objectMetadataReportOptions:
metadataFields:
- bucket
- name
- project
storageFilters:
bucket: ${reportBucket.name}
storageDestinationOptions:
bucket: ${reportBucket.name}
destinationPath: test-insights-reports
options:
dependsOn:
- ${admin}
reportBucket:
type: gcp:storage:Bucket
name: report_bucket
properties:
name: my-bucket
location: us-central1
forceDestroy: true
uniformBucketLevelAccess: true
admin:
type: gcp:storage:BucketIAMMember
properties:
bucket: ${reportBucket.name}
role: roles/storage.admin
member: serviceAccount:service-${project.number}@gcp-sa-storageinsights.iam.gserviceaccount.com
variables:
project:
fn::invoke:
function: gcp:organizations:getProject
arguments: {}
§Import
ReportConfig can be imported using any of these accepted formats:
-
projects/{{project}}/locations/{{location}}/reportConfigs/{{name}}
-
{{project}}/{{location}}/{{name}}
-
{{location}}/{{name}}
When using the pulumi import
command, ReportConfig can be imported using one of the formats above. For example:
$ pulumi import gcp:storage/insightsReportConfig:InsightsReportConfig default projects/{{project}}/locations/{{location}}/reportConfigs/{{name}}
$ pulumi import gcp:storage/insightsReportConfig:InsightsReportConfig default {{project}}/{{location}}/{{name}}
$ pulumi import gcp:storage/insightsReportConfig:InsightsReportConfig default {{location}}/{{name}}
Structs§
- Use builder syntax to set the inputs and finish with
build_struct()
.
Functions§
- Registers a new resource with the given unique name and arguments