Store

Create a Store Resource

new Store(name: string, args: StoreArgs, opts?: CustomResourceOptions);
def Store(resource_name, opts=None, append_meta=None, auto_split=None, enable_web_tracking=None, max_split_shard_count=None, name=None, project=None, retention_period=None, shard_count=None, __props__=None);
func NewStore(ctx *Context, name string, args StoreArgs, opts ...ResourceOption) (*Store, error)
public Store(string name, StoreArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args StoreArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args StoreArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args StoreArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Store Resource Properties

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

Inputs

The Store resource accepts the following input properties:

Project string

The project name to the log store belongs.

AppendMeta bool

Determines whether to append log meta automatically. The meta includes log receive time and client IP address. Default to true.

AutoSplit bool

Determines whether to automatically split a shard. Default to true.

EnableWebTracking bool

Determines whether to enable Web Tracking. Default false.

MaxSplitShardCount int

The maximum number of shards for automatic split, which is in the range of 1 to 64. You must specify this parameter when autoSplit is true.

Name string

The log store, which is unique in the same project.

RetentionPeriod int

The data retention time (in days). Valid values: [1-3650]. Default to 30. Log store data will be stored permanently when the value is “3650”.

ShardCount int

The number of shards in this log store. Default to 2. You can modify it by “Split” or “Merge” operations. Refer to details

Project string

The project name to the log store belongs.

AppendMeta bool

Determines whether to append log meta automatically. The meta includes log receive time and client IP address. Default to true.

AutoSplit bool

Determines whether to automatically split a shard. Default to true.

EnableWebTracking bool

Determines whether to enable Web Tracking. Default false.

MaxSplitShardCount int

The maximum number of shards for automatic split, which is in the range of 1 to 64. You must specify this parameter when autoSplit is true.

Name string

The log store, which is unique in the same project.

RetentionPeriod int

The data retention time (in days). Valid values: [1-3650]. Default to 30. Log store data will be stored permanently when the value is “3650”.

ShardCount int

The number of shards in this log store. Default to 2. You can modify it by “Split” or “Merge” operations. Refer to details

project string

The project name to the log store belongs.

appendMeta boolean

Determines whether to append log meta automatically. The meta includes log receive time and client IP address. Default to true.

autoSplit boolean

Determines whether to automatically split a shard. Default to true.

enableWebTracking boolean

Determines whether to enable Web Tracking. Default false.

maxSplitShardCount number

The maximum number of shards for automatic split, which is in the range of 1 to 64. You must specify this parameter when autoSplit is true.

name string

The log store, which is unique in the same project.

retentionPeriod number

The data retention time (in days). Valid values: [1-3650]. Default to 30. Log store data will be stored permanently when the value is “3650”.

shardCount number

The number of shards in this log store. Default to 2. You can modify it by “Split” or “Merge” operations. Refer to details

project str

The project name to the log store belongs.

append_meta bool

Determines whether to append log meta automatically. The meta includes log receive time and client IP address. Default to true.

auto_split bool

Determines whether to automatically split a shard. Default to true.

enable_web_tracking bool

Determines whether to enable Web Tracking. Default false.

max_split_shard_count float

The maximum number of shards for automatic split, which is in the range of 1 to 64. You must specify this parameter when autoSplit is true.

name str

The log store, which is unique in the same project.

retention_period float

The data retention time (in days). Valid values: [1-3650]. Default to 30. Log store data will be stored permanently when the value is “3650”.

shard_count float

The number of shards in this log store. Default to 2. You can modify it by “Split” or “Merge” operations. Refer to details

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Shards List<Pulumi.AliCloud.Log.Outputs.StoreShard>
Id string
The provider-assigned unique ID for this managed resource.
Shards []StoreShard
id string
The provider-assigned unique ID for this managed resource.
shards StoreShard[]
id str
The provider-assigned unique ID for this managed resource.
shards List[StoreShard]

Look up an Existing Store Resource

Get an existing Store 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?: StoreState, opts?: CustomResourceOptions): Store
static get(resource_name, id, opts=None, append_meta=None, auto_split=None, enable_web_tracking=None, max_split_shard_count=None, name=None, project=None, retention_period=None, shard_count=None, shards=None, __props__=None);
func GetStore(ctx *Context, name string, id IDInput, state *StoreState, opts ...ResourceOption) (*Store, error)
public static Store Get(string name, Input<string> id, StoreState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

AppendMeta bool

Determines whether to append log meta automatically. The meta includes log receive time and client IP address. Default to true.

AutoSplit bool

Determines whether to automatically split a shard. Default to true.

EnableWebTracking bool

Determines whether to enable Web Tracking. Default false.

MaxSplitShardCount int

The maximum number of shards for automatic split, which is in the range of 1 to 64. You must specify this parameter when autoSplit is true.

Name string

The log store, which is unique in the same project.

Project string

The project name to the log store belongs.

RetentionPeriod int

The data retention time (in days). Valid values: [1-3650]. Default to 30. Log store data will be stored permanently when the value is “3650”.

ShardCount int

The number of shards in this log store. Default to 2. You can modify it by “Split” or “Merge” operations. Refer to details

Shards List<Pulumi.AliCloud.Log.Inputs.StoreShardArgs>
AppendMeta bool

Determines whether to append log meta automatically. The meta includes log receive time and client IP address. Default to true.

AutoSplit bool

Determines whether to automatically split a shard. Default to true.

EnableWebTracking bool

Determines whether to enable Web Tracking. Default false.

MaxSplitShardCount int

The maximum number of shards for automatic split, which is in the range of 1 to 64. You must specify this parameter when autoSplit is true.

Name string

The log store, which is unique in the same project.

Project string

The project name to the log store belongs.

RetentionPeriod int

The data retention time (in days). Valid values: [1-3650]. Default to 30. Log store data will be stored permanently when the value is “3650”.

ShardCount int

The number of shards in this log store. Default to 2. You can modify it by “Split” or “Merge” operations. Refer to details

Shards []StoreShard
appendMeta boolean

Determines whether to append log meta automatically. The meta includes log receive time and client IP address. Default to true.

autoSplit boolean

Determines whether to automatically split a shard. Default to true.

enableWebTracking boolean

Determines whether to enable Web Tracking. Default false.

maxSplitShardCount number

The maximum number of shards for automatic split, which is in the range of 1 to 64. You must specify this parameter when autoSplit is true.

name string

The log store, which is unique in the same project.

project string

The project name to the log store belongs.

retentionPeriod number

The data retention time (in days). Valid values: [1-3650]. Default to 30. Log store data will be stored permanently when the value is “3650”.

shardCount number

The number of shards in this log store. Default to 2. You can modify it by “Split” or “Merge” operations. Refer to details

shards StoreShard[]
append_meta bool

Determines whether to append log meta automatically. The meta includes log receive time and client IP address. Default to true.

auto_split bool

Determines whether to automatically split a shard. Default to true.

enable_web_tracking bool

Determines whether to enable Web Tracking. Default false.

max_split_shard_count float

The maximum number of shards for automatic split, which is in the range of 1 to 64. You must specify this parameter when autoSplit is true.

name str

The log store, which is unique in the same project.

project str

The project name to the log store belongs.

retention_period float

The data retention time (in days). Valid values: [1-3650]. Default to 30. Log store data will be stored permanently when the value is “3650”.

shard_count float

The number of shards in this log store. Default to 2. You can modify it by “Split” or “Merge” operations. Refer to details

shards List[StoreShard]

Supporting Types

StoreShard

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

BeginKey string
EndKey string
Id int

The ID of the log project. It formats of <project>:<name>.

Status string
BeginKey string
EndKey string
Id int

The ID of the log project. It formats of <project>:<name>.

Status string
beginKey string
endKey string
id number

The ID of the log project. It formats of <project>:<name>.

status string
beginKey str
endKey str
id float

The ID of the log project. It formats of <project>:<name>.

status str

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.