published on Monday, May 11, 2026 by Volcengine
published on Monday, May 11, 2026 by Volcengine
{ .Description | trimspace }
Example Usage
{ tffile (printf “examples/resources/%s/tos_bucket_realtime_log.tf” .Name)}
{ .SchemaMarkdown | trimspace } {- if .HasImport }
Create BucketRealtimeLog Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BucketRealtimeLog(name: string, args: BucketRealtimeLogArgs, opts?: CustomResourceOptions);@overload
def BucketRealtimeLog(resource_name: str,
args: BucketRealtimeLogArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BucketRealtimeLog(resource_name: str,
opts: Optional[ResourceOptions] = None,
bucket_name: Optional[str] = None,
real_time_log: Optional[BucketRealtimeLogRealTimeLogArgs] = None)func NewBucketRealtimeLog(ctx *Context, name string, args BucketRealtimeLogArgs, opts ...ResourceOption) (*BucketRealtimeLog, error)public BucketRealtimeLog(string name, BucketRealtimeLogArgs args, CustomResourceOptions? opts = null)
public BucketRealtimeLog(String name, BucketRealtimeLogArgs args)
public BucketRealtimeLog(String name, BucketRealtimeLogArgs args, CustomResourceOptions options)
type: volcenginecc:tos:BucketRealtimeLog
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "volcenginecc_tos_bucketrealtimelog" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args BucketRealtimeLogArgs
- 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 BucketRealtimeLogArgs
- 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 BucketRealtimeLogArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BucketRealtimeLogArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BucketRealtimeLogArgs
- 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 bucketRealtimeLogResource = new Volcenginecc.Tos.BucketRealtimeLog("bucketRealtimeLogResource", new()
{
BucketName = "string",
RealTimeLog = new Volcenginecc.Tos.Inputs.BucketRealtimeLogRealTimeLogArgs
{
Role = "string",
UseServiceTopic = false,
TlsProjectId = "string",
TlsTopicId = "string",
},
});
example, err := tos.NewBucketRealtimeLog(ctx, "bucketRealtimeLogResource", &tos.BucketRealtimeLogArgs{
BucketName: pulumi.String("string"),
RealTimeLog: &tos.BucketRealtimeLogRealTimeLogArgs{
Role: pulumi.String("string"),
UseServiceTopic: pulumi.Bool(false),
TlsProjectId: pulumi.String("string"),
TlsTopicId: pulumi.String("string"),
},
})
resource "volcenginecc_tos_bucketrealtimelog" "bucketRealtimeLogResource" {
bucket_name = "string"
real_time_log = {
role = "string"
use_service_topic = false
tls_project_id = "string"
tls_topic_id = "string"
}
}
var bucketRealtimeLogResource = new BucketRealtimeLog("bucketRealtimeLogResource", BucketRealtimeLogArgs.builder()
.bucketName("string")
.realTimeLog(BucketRealtimeLogRealTimeLogArgs.builder()
.role("string")
.useServiceTopic(false)
.tlsProjectId("string")
.tlsTopicId("string")
.build())
.build());
bucket_realtime_log_resource = volcenginecc.tos.BucketRealtimeLog("bucketRealtimeLogResource",
bucket_name="string",
real_time_log={
"role": "string",
"use_service_topic": False,
"tls_project_id": "string",
"tls_topic_id": "string",
})
const bucketRealtimeLogResource = new volcenginecc.tos.BucketRealtimeLog("bucketRealtimeLogResource", {
bucketName: "string",
realTimeLog: {
role: "string",
useServiceTopic: false,
tlsProjectId: "string",
tlsTopicId: "string",
},
});
type: volcenginecc:tos:BucketRealtimeLog
properties:
bucketName: string
realTimeLog:
role: string
tlsProjectId: string
tlsTopicId: string
useServiceTopic: false
BucketRealtimeLog Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The BucketRealtimeLog resource accepts the following input properties:
- Bucket
Name string - Bucket name
- Real
Time Volcengine.Log Bucket Realtime Log Real Time Log - Log analysis feature for the bucket
- Bucket
Name string - Bucket name
- Real
Time BucketLog Realtime Log Real Time Log Args - Log analysis feature for the bucket
- bucket_
name string - Bucket name
- real_
time_ objectlog - Log analysis feature for the bucket
- bucket
Name String - Bucket name
- real
Time BucketLog Realtime Log Real Time Log - Log analysis feature for the bucket
- bucket
Name string - Bucket name
- real
Time BucketLog Realtime Log Real Time Log - Log analysis feature for the bucket
- bucket_
name str - Bucket name
- real_
time_ Bucketlog Realtime Log Real Time Log Args - Log analysis feature for the bucket
- bucket
Name String - Bucket name
- real
Time Property MapLog - Log analysis feature for the bucket
Outputs
All input properties are implicitly available as output properties. Additionally, the BucketRealtimeLog resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing BucketRealtimeLog Resource
Get an existing BucketRealtimeLog resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: BucketRealtimeLogState, opts?: CustomResourceOptions): BucketRealtimeLog@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bucket_name: Optional[str] = None,
real_time_log: Optional[BucketRealtimeLogRealTimeLogArgs] = None) -> BucketRealtimeLogfunc GetBucketRealtimeLog(ctx *Context, name string, id IDInput, state *BucketRealtimeLogState, opts ...ResourceOption) (*BucketRealtimeLog, error)public static BucketRealtimeLog Get(string name, Input<string> id, BucketRealtimeLogState? state, CustomResourceOptions? opts = null)public static BucketRealtimeLog get(String name, Output<String> id, BucketRealtimeLogState state, CustomResourceOptions options)resources: _: type: volcenginecc:tos:BucketRealtimeLog get: id: ${id}import {
to = volcenginecc_tos_bucketrealtimelog.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Bucket
Name string - Bucket name
- Real
Time Volcengine.Log Bucket Realtime Log Real Time Log - Log analysis feature for the bucket
- Bucket
Name string - Bucket name
- Real
Time BucketLog Realtime Log Real Time Log Args - Log analysis feature for the bucket
- bucket_
name string - Bucket name
- real_
time_ objectlog - Log analysis feature for the bucket
- bucket
Name String - Bucket name
- real
Time BucketLog Realtime Log Real Time Log - Log analysis feature for the bucket
- bucket
Name string - Bucket name
- real
Time BucketLog Realtime Log Real Time Log - Log analysis feature for the bucket
- bucket_
name str - Bucket name
- real_
time_ Bucketlog Realtime Log Real Time Log Args - Log analysis feature for the bucket
- bucket
Name String - Bucket name
- real
Time Property MapLog - Log analysis feature for the bucket
Supporting Types
BucketRealtimeLogRealTimeLog, BucketRealtimeLogRealTimeLogArgs
- Role string
- Role name. Used to grant TOS Object Storage permission to create resources such as projects and topics in Log Service TLS and to write logs
- Use
Service boolTopic - For topics created using the TOS service, only "true" is allowed as a value
- Tls
Project stringId - Log project ID
- Tls
Topic stringId - Log topic ID
- Role string
- Role name. Used to grant TOS Object Storage permission to create resources such as projects and topics in Log Service TLS and to write logs
- Use
Service boolTopic - For topics created using the TOS service, only "true" is allowed as a value
- Tls
Project stringId - Log project ID
- Tls
Topic stringId - Log topic ID
- role string
- Role name. Used to grant TOS Object Storage permission to create resources such as projects and topics in Log Service TLS and to write logs
- use_
service_ booltopic - For topics created using the TOS service, only "true" is allowed as a value
- tls_
project_ stringid - Log project ID
- tls_
topic_ stringid - Log topic ID
- role String
- Role name. Used to grant TOS Object Storage permission to create resources such as projects and topics in Log Service TLS and to write logs
- use
Service BooleanTopic - For topics created using the TOS service, only "true" is allowed as a value
- tls
Project StringId - Log project ID
- tls
Topic StringId - Log topic ID
- role string
- Role name. Used to grant TOS Object Storage permission to create resources such as projects and topics in Log Service TLS and to write logs
- use
Service booleanTopic - For topics created using the TOS service, only "true" is allowed as a value
- tls
Project stringId - Log project ID
- tls
Topic stringId - Log topic ID
- role str
- Role name. Used to grant TOS Object Storage permission to create resources such as projects and topics in Log Service TLS and to write logs
- use_
service_ booltopic - For topics created using the TOS service, only "true" is allowed as a value
- tls_
project_ strid - Log project ID
- tls_
topic_ strid - Log topic ID
- role String
- Role name. Used to grant TOS Object Storage permission to create resources such as projects and topics in Log Service TLS and to write logs
- use
Service BooleanTopic - For topics created using the TOS service, only "true" is allowed as a value
- tls
Project StringId - Log project ID
- tls
Topic StringId - Log topic ID
Import
{ codefile “shell” .ImportFile }
{- end }
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcengineccTerraform Provider.
published on Monday, May 11, 2026 by Volcengine
