1. Packages
  2. Google Cloud Native
  3. API Docs
  4. cloudtrace
  5. cloudtrace/v2beta1
  6. TraceSink

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.cloudtrace/v2beta1.TraceSink

Explore with Pulumi AI

google-native logo

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

    Creates a sink that exports trace spans to a destination. The export of newly-ingested traces begins immediately, unless the sink’s writer_identity is not permitted to write to the destination. A sink can export traces only from the resource owning the sink (the ‘parent’).

    Create TraceSink Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new TraceSink(name: string, args: TraceSinkArgs, opts?: CustomResourceOptions);
    @overload
    def TraceSink(resource_name: str,
                  args: TraceSinkArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def TraceSink(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  output_config: Optional[OutputConfigArgs] = None,
                  name: Optional[str] = None,
                  project: Optional[str] = None)
    func NewTraceSink(ctx *Context, name string, args TraceSinkArgs, opts ...ResourceOption) (*TraceSink, error)
    public TraceSink(string name, TraceSinkArgs args, CustomResourceOptions? opts = null)
    public TraceSink(String name, TraceSinkArgs args)
    public TraceSink(String name, TraceSinkArgs args, CustomResourceOptions options)
    
    type: google-native:cloudtrace/v2beta1:TraceSink
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args TraceSinkArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args TraceSinkArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args TraceSinkArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TraceSinkArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TraceSinkArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var traceSinkResource = new GoogleNative.CloudTrace.V2Beta1.TraceSink("traceSinkResource", new()
    {
        OutputConfig = new GoogleNative.CloudTrace.V2Beta1.Inputs.OutputConfigArgs
        {
            Destination = "string",
        },
        Name = "string",
        Project = "string",
    });
    
    example, err := cloudtrace.NewTraceSink(ctx, "traceSinkResource", &cloudtrace.TraceSinkArgs{
    	OutputConfig: &cloudtrace.OutputConfigArgs{
    		Destination: pulumi.String("string"),
    	},
    	Name:    pulumi.String("string"),
    	Project: pulumi.String("string"),
    })
    
    var traceSinkResource = new TraceSink("traceSinkResource", TraceSinkArgs.builder()
        .outputConfig(OutputConfigArgs.builder()
            .destination("string")
            .build())
        .name("string")
        .project("string")
        .build());
    
    trace_sink_resource = google_native.cloudtrace.v2beta1.TraceSink("traceSinkResource",
        output_config=google_native.cloudtrace.v2beta1.OutputConfigArgs(
            destination="string",
        ),
        name="string",
        project="string")
    
    const traceSinkResource = new google_native.cloudtrace.v2beta1.TraceSink("traceSinkResource", {
        outputConfig: {
            destination: "string",
        },
        name: "string",
        project: "string",
    });
    
    type: google-native:cloudtrace/v2beta1:TraceSink
    properties:
        name: string
        outputConfig:
            destination: string
        project: string
    

    TraceSink Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The TraceSink resource accepts the following input properties:

    OutputConfig Pulumi.GoogleNative.CloudTrace.V2Beta1.Inputs.OutputConfig
    The export destination.
    Name string
    The canonical sink resource name, unique within the project. Must be of the form: projects/[PROJECT_NUMBER]/traceSinks/[SINK_ID]. E.g.: "projects/12345/traceSinks/my-project-trace-sink". Sink identifiers are limited to 256 characters and can include only the following characters: upper and lower-case alphanumeric characters, underscores, hyphens, and periods.
    Project string
    OutputConfig OutputConfigArgs
    The export destination.
    Name string
    The canonical sink resource name, unique within the project. Must be of the form: projects/[PROJECT_NUMBER]/traceSinks/[SINK_ID]. E.g.: "projects/12345/traceSinks/my-project-trace-sink". Sink identifiers are limited to 256 characters and can include only the following characters: upper and lower-case alphanumeric characters, underscores, hyphens, and periods.
    Project string
    outputConfig OutputConfig
    The export destination.
    name String
    The canonical sink resource name, unique within the project. Must be of the form: projects/[PROJECT_NUMBER]/traceSinks/[SINK_ID]. E.g.: "projects/12345/traceSinks/my-project-trace-sink". Sink identifiers are limited to 256 characters and can include only the following characters: upper and lower-case alphanumeric characters, underscores, hyphens, and periods.
    project String
    outputConfig OutputConfig
    The export destination.
    name string
    The canonical sink resource name, unique within the project. Must be of the form: projects/[PROJECT_NUMBER]/traceSinks/[SINK_ID]. E.g.: "projects/12345/traceSinks/my-project-trace-sink". Sink identifiers are limited to 256 characters and can include only the following characters: upper and lower-case alphanumeric characters, underscores, hyphens, and periods.
    project string
    output_config OutputConfigArgs
    The export destination.
    name str
    The canonical sink resource name, unique within the project. Must be of the form: projects/[PROJECT_NUMBER]/traceSinks/[SINK_ID]. E.g.: "projects/12345/traceSinks/my-project-trace-sink". Sink identifiers are limited to 256 characters and can include only the following characters: upper and lower-case alphanumeric characters, underscores, hyphens, and periods.
    project str
    outputConfig Property Map
    The export destination.
    name String
    The canonical sink resource name, unique within the project. Must be of the form: projects/[PROJECT_NUMBER]/traceSinks/[SINK_ID]. E.g.: "projects/12345/traceSinks/my-project-trace-sink". Sink identifiers are limited to 256 characters and can include only the following characters: upper and lower-case alphanumeric characters, underscores, hyphens, and periods.
    project String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TraceSink resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    WriterIdentity string
    A service account name for exporting the data. This field is set by sinks.create and sinks.update. The service account will need to be granted write access to the destination specified in the output configuration, see Granting access for a resource. To create tables and to write data, this account needs the dataEditor role. Read more about roles in the BigQuery documentation. E.g.: "service-00000001@00000002.iam.gserviceaccount.com"
    Id string
    The provider-assigned unique ID for this managed resource.
    WriterIdentity string
    A service account name for exporting the data. This field is set by sinks.create and sinks.update. The service account will need to be granted write access to the destination specified in the output configuration, see Granting access for a resource. To create tables and to write data, this account needs the dataEditor role. Read more about roles in the BigQuery documentation. E.g.: "service-00000001@00000002.iam.gserviceaccount.com"
    id String
    The provider-assigned unique ID for this managed resource.
    writerIdentity String
    A service account name for exporting the data. This field is set by sinks.create and sinks.update. The service account will need to be granted write access to the destination specified in the output configuration, see Granting access for a resource. To create tables and to write data, this account needs the dataEditor role. Read more about roles in the BigQuery documentation. E.g.: "service-00000001@00000002.iam.gserviceaccount.com"
    id string
    The provider-assigned unique ID for this managed resource.
    writerIdentity string
    A service account name for exporting the data. This field is set by sinks.create and sinks.update. The service account will need to be granted write access to the destination specified in the output configuration, see Granting access for a resource. To create tables and to write data, this account needs the dataEditor role. Read more about roles in the BigQuery documentation. E.g.: "service-00000001@00000002.iam.gserviceaccount.com"
    id str
    The provider-assigned unique ID for this managed resource.
    writer_identity str
    A service account name for exporting the data. This field is set by sinks.create and sinks.update. The service account will need to be granted write access to the destination specified in the output configuration, see Granting access for a resource. To create tables and to write data, this account needs the dataEditor role. Read more about roles in the BigQuery documentation. E.g.: "service-00000001@00000002.iam.gserviceaccount.com"
    id String
    The provider-assigned unique ID for this managed resource.
    writerIdentity String
    A service account name for exporting the data. This field is set by sinks.create and sinks.update. The service account will need to be granted write access to the destination specified in the output configuration, see Granting access for a resource. To create tables and to write data, this account needs the dataEditor role. Read more about roles in the BigQuery documentation. E.g.: "service-00000001@00000002.iam.gserviceaccount.com"

    Supporting Types

    OutputConfig, OutputConfigArgs

    Destination string
    The destination for writing trace data. Supported formats include: "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
    Destination string
    The destination for writing trace data. Supported formats include: "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
    destination String
    The destination for writing trace data. Supported formats include: "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
    destination string
    The destination for writing trace data. Supported formats include: "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
    destination str
    The destination for writing trace data. Supported formats include: "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
    destination String
    The destination for writing trace data. Supported formats include: "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"

    OutputConfigResponse, OutputConfigResponseArgs

    Destination string
    The destination for writing trace data. Supported formats include: "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
    Destination string
    The destination for writing trace data. Supported formats include: "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
    destination String
    The destination for writing trace data. Supported formats include: "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
    destination string
    The destination for writing trace data. Supported formats include: "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
    destination str
    The destination for writing trace data. Supported formats include: "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
    destination String
    The destination for writing trace data. Supported formats include: "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"

    Package Details

    Repository
    Google Cloud Native pulumi/pulumi-google-native
    License
    Apache-2.0
    google-native logo

    Google Cloud Native is in preview. Google Cloud Classic is fully supported.

    Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi