logging

package
v0.14.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BillingAccountSink

type BillingAccountSink struct {
	// contains filtered or unexported fields
}

Manages a billing account logging sink. For more information see [the official documentation](https://cloud.google.com/logging/docs/) and [Exporting Logs in the API](https://cloud.google.com/logging/docs/api/tasks/exporting-logs).

Note that you must have the "Logs Configuration Writer" IAM role (`roles/logging.configWriter`) granted to the credentials used with terraform.

func GetBillingAccountSink

func GetBillingAccountSink(ctx *pulumi.Context,
	name string, id pulumi.ID, state *BillingAccountSinkState, opts ...pulumi.ResourceOpt) (*BillingAccountSink, error)

GetBillingAccountSink gets an existing BillingAccountSink resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewBillingAccountSink

func NewBillingAccountSink(ctx *pulumi.Context,
	name string, args *BillingAccountSinkArgs, opts ...pulumi.ResourceOpt) (*BillingAccountSink, error)

NewBillingAccountSink registers a new resource with the given unique name, arguments, and options.

func (*BillingAccountSink) BillingAccount

func (r *BillingAccountSink) BillingAccount() *pulumi.StringOutput

The billing account exported to the sink.

func (*BillingAccountSink) Destination

func (r *BillingAccountSink) Destination() *pulumi.StringOutput

The destination of the sink (or, in other words, where logs are written to). Can be a Cloud Storage bucket, a PubSub topic, or a BigQuery dataset. Examples: ``` "storage.googleapis.com/[GCS_BUCKET]" "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" ``` The writer associated with the sink must have access to write to the above resource.

func (*BillingAccountSink) Filter

func (r *BillingAccountSink) Filter() *pulumi.StringOutput

The filter to apply when exporting logs. Only log entries that match the filter are exported. See [Advanced Log Filters](https://cloud.google.com/logging/docs/view/advanced_filters) for information on how to write a filter.

func (*BillingAccountSink) ID

ID is this resource's unique identifier assigned by its provider.

func (*BillingAccountSink) Name

The name of the logging sink.

func (*BillingAccountSink) URN

URN is this resource's unique name assigned by Pulumi.

func (*BillingAccountSink) WriterIdentity

func (r *BillingAccountSink) WriterIdentity() *pulumi.StringOutput

The identity associated with this sink. This identity must be granted write access to the configured `destination`.

type BillingAccountSinkArgs

type BillingAccountSinkArgs struct {
	// The billing account exported to the sink.
	BillingAccount interface{}
	// The destination of the sink (or, in other words, where logs are written to). Can be a
	// Cloud Storage bucket, a PubSub topic, or a BigQuery dataset. Examples:
	// “`
	// "storage.googleapis.com/[GCS_BUCKET]"
	// "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
	// "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
	// “`
	// The writer associated with the sink must have access to write to the above resource.
	Destination interface{}
	// The filter to apply when exporting logs. Only log entries that match the filter are exported.
	// See [Advanced Log Filters](https://cloud.google.com/logging/docs/view/advanced_filters) for information on how to
	// write a filter.
	Filter interface{}
	// The name of the logging sink.
	Name interface{}
}

The set of arguments for constructing a BillingAccountSink resource.

type BillingAccountSinkState

type BillingAccountSinkState struct {
	// The billing account exported to the sink.
	BillingAccount interface{}
	// The destination of the sink (or, in other words, where logs are written to). Can be a
	// Cloud Storage bucket, a PubSub topic, or a BigQuery dataset. Examples:
	// “`
	// "storage.googleapis.com/[GCS_BUCKET]"
	// "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
	// "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
	// “`
	// The writer associated with the sink must have access to write to the above resource.
	Destination interface{}
	// The filter to apply when exporting logs. Only log entries that match the filter are exported.
	// See [Advanced Log Filters](https://cloud.google.com/logging/docs/view/advanced_filters) for information on how to
	// write a filter.
	Filter interface{}
	// The name of the logging sink.
	Name interface{}
	// The identity associated with this sink. This identity must be granted write access to the
	// configured `destination`.
	WriterIdentity interface{}
}

Input properties used for looking up and filtering BillingAccountSink resources.

type FolderSink

type FolderSink struct {
	// contains filtered or unexported fields
}

Manages a folder-level logging sink. For more information see [the official documentation](https://cloud.google.com/logging/docs/) and [Exporting Logs in the API](https://cloud.google.com/logging/docs/api/tasks/exporting-logs).

Note that you must have the "Logs Configuration Writer" IAM role (`roles/logging.configWriter`) granted to the credentials used with terraform.

func GetFolderSink

func GetFolderSink(ctx *pulumi.Context,
	name string, id pulumi.ID, state *FolderSinkState, opts ...pulumi.ResourceOpt) (*FolderSink, error)

GetFolderSink gets an existing FolderSink resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewFolderSink

func NewFolderSink(ctx *pulumi.Context,
	name string, args *FolderSinkArgs, opts ...pulumi.ResourceOpt) (*FolderSink, error)

NewFolderSink registers a new resource with the given unique name, arguments, and options.

func (*FolderSink) Destination

func (r *FolderSink) Destination() *pulumi.StringOutput

The destination of the sink (or, in other words, where logs are written to). Can be a Cloud Storage bucket, a PubSub topic, or a BigQuery dataset. Examples: ``` "storage.googleapis.com/[GCS_BUCKET]" "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" ``` The writer associated with the sink must have access to write to the above resource.

func (*FolderSink) Filter

func (r *FolderSink) Filter() *pulumi.StringOutput

The filter to apply when exporting logs. Only log entries that match the filter are exported. See [Advanced Log Filters](https://cloud.google.com/logging/docs/view/advanced_filters) for information on how to write a filter.

func (*FolderSink) Folder

func (r *FolderSink) Folder() *pulumi.StringOutput

The folder to be exported to the sink. Note that either [FOLDER_ID] or "folders/[FOLDER_ID]" is accepted.

func (*FolderSink) ID

func (r *FolderSink) ID() *pulumi.IDOutput

ID is this resource's unique identifier assigned by its provider.

func (*FolderSink) IncludeChildren

func (r *FolderSink) IncludeChildren() *pulumi.BoolOutput

Whether or not to include children folders in the sink export. If true, logs associated with child projects are also exported; otherwise only logs relating to the provided folder are included.

func (*FolderSink) Name

func (r *FolderSink) Name() *pulumi.StringOutput

The name of the logging sink.

func (*FolderSink) URN

func (r *FolderSink) URN() *pulumi.URNOutput

URN is this resource's unique name assigned by Pulumi.

func (*FolderSink) WriterIdentity

func (r *FolderSink) WriterIdentity() *pulumi.StringOutput

The identity associated with this sink. This identity must be granted write access to the configured `destination`.

type FolderSinkArgs

type FolderSinkArgs struct {
	// The destination of the sink (or, in other words, where logs are written to). Can be a
	// Cloud Storage bucket, a PubSub topic, or a BigQuery dataset. Examples:
	// “`
	// "storage.googleapis.com/[GCS_BUCKET]"
	// "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
	// "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
	// “`
	// The writer associated with the sink must have access to write to the above resource.
	Destination interface{}
	// The filter to apply when exporting logs. Only log entries that match the filter are exported.
	// See [Advanced Log Filters](https://cloud.google.com/logging/docs/view/advanced_filters) for information on how to
	// write a filter.
	Filter interface{}
	// The folder to be exported to the sink. Note that either [FOLDER_ID] or "folders/[FOLDER_ID]" is
	// accepted.
	Folder interface{}
	// Whether or not to include children folders in the sink export. If true, logs
	// associated with child projects are also exported; otherwise only logs relating to the provided folder are included.
	IncludeChildren interface{}
	// The name of the logging sink.
	Name interface{}
}

The set of arguments for constructing a FolderSink resource.

type FolderSinkState

type FolderSinkState struct {
	// The destination of the sink (or, in other words, where logs are written to). Can be a
	// Cloud Storage bucket, a PubSub topic, or a BigQuery dataset. Examples:
	// “`
	// "storage.googleapis.com/[GCS_BUCKET]"
	// "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
	// "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
	// “`
	// The writer associated with the sink must have access to write to the above resource.
	Destination interface{}
	// The filter to apply when exporting logs. Only log entries that match the filter are exported.
	// See [Advanced Log Filters](https://cloud.google.com/logging/docs/view/advanced_filters) for information on how to
	// write a filter.
	Filter interface{}
	// The folder to be exported to the sink. Note that either [FOLDER_ID] or "folders/[FOLDER_ID]" is
	// accepted.
	Folder interface{}
	// Whether or not to include children folders in the sink export. If true, logs
	// associated with child projects are also exported; otherwise only logs relating to the provided folder are included.
	IncludeChildren interface{}
	// The name of the logging sink.
	Name interface{}
	// The identity associated with this sink. This identity must be granted write access to the
	// configured `destination`.
	WriterIdentity interface{}
}

Input properties used for looking up and filtering FolderSink resources.

type OrganizationSink

type OrganizationSink struct {
	// contains filtered or unexported fields
}

Manages a organization-level logging sink. For more information see [the official documentation](https://cloud.google.com/logging/docs/) and [Exporting Logs in the API](https://cloud.google.com/logging/docs/api/tasks/exporting-logs).

Note that you must have the "Logs Configuration Writer" IAM role (`roles/logging.configWriter`) granted to the credentials used with terraform.

func GetOrganizationSink

func GetOrganizationSink(ctx *pulumi.Context,
	name string, id pulumi.ID, state *OrganizationSinkState, opts ...pulumi.ResourceOpt) (*OrganizationSink, error)

GetOrganizationSink gets an existing OrganizationSink resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewOrganizationSink

func NewOrganizationSink(ctx *pulumi.Context,
	name string, args *OrganizationSinkArgs, opts ...pulumi.ResourceOpt) (*OrganizationSink, error)

NewOrganizationSink registers a new resource with the given unique name, arguments, and options.

func (*OrganizationSink) Destination

func (r *OrganizationSink) Destination() *pulumi.StringOutput

The destination of the sink (or, in other words, where logs are written to). Can be a Cloud Storage bucket, a PubSub topic, or a BigQuery dataset. Examples: ``` "storage.googleapis.com/[GCS_BUCKET]" "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" ``` The writer associated with the sink must have access to write to the above resource.

func (*OrganizationSink) Filter

func (r *OrganizationSink) Filter() *pulumi.StringOutput

The filter to apply when exporting logs. Only log entries that match the filter are exported. See [Advanced Log Filters](https://cloud.google.com/logging/docs/view/advanced_filters) for information on how to write a filter.

func (*OrganizationSink) ID

func (r *OrganizationSink) ID() *pulumi.IDOutput

ID is this resource's unique identifier assigned by its provider.

func (*OrganizationSink) IncludeChildren

func (r *OrganizationSink) IncludeChildren() *pulumi.BoolOutput

Whether or not to include children organizations in the sink export. If true, logs associated with child projects are also exported; otherwise only logs relating to the provided organization are included.

func (*OrganizationSink) Name

The name of the logging sink.

func (*OrganizationSink) OrgId

func (r *OrganizationSink) OrgId() *pulumi.StringOutput

The numeric ID of the organization to be exported to the sink.

func (*OrganizationSink) URN

func (r *OrganizationSink) URN() *pulumi.URNOutput

URN is this resource's unique name assigned by Pulumi.

func (*OrganizationSink) WriterIdentity

func (r *OrganizationSink) WriterIdentity() *pulumi.StringOutput

The identity associated with this sink. This identity must be granted write access to the configured `destination`.

type OrganizationSinkArgs

type OrganizationSinkArgs struct {
	// The destination of the sink (or, in other words, where logs are written to). Can be a
	// Cloud Storage bucket, a PubSub topic, or a BigQuery dataset. Examples:
	// “`
	// "storage.googleapis.com/[GCS_BUCKET]"
	// "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
	// "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
	// “`
	// The writer associated with the sink must have access to write to the above resource.
	Destination interface{}
	// The filter to apply when exporting logs. Only log entries that match the filter are exported.
	// See [Advanced Log Filters](https://cloud.google.com/logging/docs/view/advanced_filters) for information on how to
	// write a filter.
	Filter interface{}
	// Whether or not to include children organizations in the sink export. If true, logs
	// associated with child projects are also exported; otherwise only logs relating to the provided organization are included.
	IncludeChildren interface{}
	// The name of the logging sink.
	Name interface{}
	// The numeric ID of the organization to be exported to the sink.
	OrgId interface{}
}

The set of arguments for constructing a OrganizationSink resource.

type OrganizationSinkState

type OrganizationSinkState struct {
	// The destination of the sink (or, in other words, where logs are written to). Can be a
	// Cloud Storage bucket, a PubSub topic, or a BigQuery dataset. Examples:
	// “`
	// "storage.googleapis.com/[GCS_BUCKET]"
	// "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
	// "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
	// “`
	// The writer associated with the sink must have access to write to the above resource.
	Destination interface{}
	// The filter to apply when exporting logs. Only log entries that match the filter are exported.
	// See [Advanced Log Filters](https://cloud.google.com/logging/docs/view/advanced_filters) for information on how to
	// write a filter.
	Filter interface{}
	// Whether or not to include children organizations in the sink export. If true, logs
	// associated with child projects are also exported; otherwise only logs relating to the provided organization are included.
	IncludeChildren interface{}
	// The name of the logging sink.
	Name interface{}
	// The numeric ID of the organization to be exported to the sink.
	OrgId interface{}
	// The identity associated with this sink. This identity must be granted write access to the
	// configured `destination`.
	WriterIdentity interface{}
}

Input properties used for looking up and filtering OrganizationSink resources.

type ProjectSink

type ProjectSink struct {
	// contains filtered or unexported fields
}

Manages a project-level logging sink. For more information see [the official documentation](https://cloud.google.com/logging/docs/), [Exporting Logs in the API](https://cloud.google.com/logging/docs/api/tasks/exporting-logs) and [API](https://cloud.google.com/logging/docs/reference/v2/rest/).

Note that you must have the "Logs Configuration Writer" IAM role (`roles/logging.configWriter`) granted to the credentials used with terraform.

func GetProjectSink

func GetProjectSink(ctx *pulumi.Context,
	name string, id pulumi.ID, state *ProjectSinkState, opts ...pulumi.ResourceOpt) (*ProjectSink, error)

GetProjectSink gets an existing ProjectSink resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewProjectSink

func NewProjectSink(ctx *pulumi.Context,
	name string, args *ProjectSinkArgs, opts ...pulumi.ResourceOpt) (*ProjectSink, error)

NewProjectSink registers a new resource with the given unique name, arguments, and options.

func (*ProjectSink) Destination

func (r *ProjectSink) Destination() *pulumi.StringOutput

The destination of the sink (or, in other words, where logs are written to). Can be a Cloud Storage bucket, a PubSub topic, or a BigQuery dataset. Examples: ``` "storage.googleapis.com/[GCS_BUCKET]" "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" ``` The writer associated with the sink must have access to write to the above resource.

func (*ProjectSink) Filter

func (r *ProjectSink) Filter() *pulumi.StringOutput

The filter to apply when exporting logs. Only log entries that match the filter are exported. See [Advanced Log Filters](https://cloud.google.com/logging/docs/view/advanced_filters) for information on how to write a filter.

func (*ProjectSink) ID

func (r *ProjectSink) ID() *pulumi.IDOutput

ID is this resource's unique identifier assigned by its provider.

func (*ProjectSink) Name

func (r *ProjectSink) Name() *pulumi.StringOutput

The name of the logging sink.

func (*ProjectSink) Project

func (r *ProjectSink) Project() *pulumi.StringOutput

The ID of the project to create the sink in. If omitted, the project associated with the provider is used.

func (*ProjectSink) URN

func (r *ProjectSink) URN() *pulumi.URNOutput

URN is this resource's unique name assigned by Pulumi.

func (*ProjectSink) UniqueWriterIdentity

func (r *ProjectSink) UniqueWriterIdentity() *pulumi.BoolOutput

Whether or not to create a unique identity associated with this sink. If `false` (the default), then the `writer_identity` used is `serviceAccount:cloud-logs@system.gserviceaccount.com`. If `true`, then a unique service account is created and used for this sink. If you wish to publish logs across projects, you must set `unique_writer_identity` to true.

func (*ProjectSink) WriterIdentity

func (r *ProjectSink) WriterIdentity() *pulumi.StringOutput

The identity associated with this sink. This identity must be granted write access to the configured `destination`.

type ProjectSinkArgs

type ProjectSinkArgs struct {
	// The destination of the sink (or, in other words, where logs are written to). Can be a
	// Cloud Storage bucket, a PubSub topic, or a BigQuery dataset. Examples:
	// “`
	// "storage.googleapis.com/[GCS_BUCKET]"
	// "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
	// "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
	// “`
	// The writer associated with the sink must have access to write to the above resource.
	Destination interface{}
	// The filter to apply when exporting logs. Only log entries that match the filter are exported.
	// See [Advanced Log Filters](https://cloud.google.com/logging/docs/view/advanced_filters) for information on how to
	// write a filter.
	Filter interface{}
	// The name of the logging sink.
	Name interface{}
	// The ID of the project to create the sink in. If omitted, the project associated with the provider is
	// used.
	Project interface{}
	// Whether or not to create a unique identity associated with this sink. If `false`
	// (the default), then the `writer_identity` used is `serviceAccount:cloud-logs@system.gserviceaccount.com`. If `true`,
	// then a unique service account is created and used for this sink. If you wish to publish logs across projects, you
	// must set `unique_writer_identity` to true.
	UniqueWriterIdentity interface{}
}

The set of arguments for constructing a ProjectSink resource.

type ProjectSinkState

type ProjectSinkState struct {
	// The destination of the sink (or, in other words, where logs are written to). Can be a
	// Cloud Storage bucket, a PubSub topic, or a BigQuery dataset. Examples:
	// “`
	// "storage.googleapis.com/[GCS_BUCKET]"
	// "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
	// "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
	// “`
	// The writer associated with the sink must have access to write to the above resource.
	Destination interface{}
	// The filter to apply when exporting logs. Only log entries that match the filter are exported.
	// See [Advanced Log Filters](https://cloud.google.com/logging/docs/view/advanced_filters) for information on how to
	// write a filter.
	Filter interface{}
	// The name of the logging sink.
	Name interface{}
	// The ID of the project to create the sink in. If omitted, the project associated with the provider is
	// used.
	Project interface{}
	// Whether or not to create a unique identity associated with this sink. If `false`
	// (the default), then the `writer_identity` used is `serviceAccount:cloud-logs@system.gserviceaccount.com`. If `true`,
	// then a unique service account is created and used for this sink. If you wish to publish logs across projects, you
	// must set `unique_writer_identity` to true.
	UniqueWriterIdentity interface{}
	// The identity associated with this sink. This identity must be granted write access to the
	// configured `destination`.
	WriterIdentity interface{}
}

Input properties used for looking up and filtering ProjectSink resources.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL