Alibaba Cloud

v3.28.0 published on Tuesday, Aug 16, 2022 by Pulumi

Store

Import

Log store can be imported using the id, e.g.

 $ pulumi import alicloud:log/store:Store example tf-log:tf-log-store

Create Store Resource

new Store(name: string, args: StoreArgs, opts?: CustomResourceOptions);
@overload
def Store(resource_name: str,
          opts: Optional[ResourceOptions] = None,
          append_meta: Optional[bool] = None,
          auto_split: Optional[bool] = None,
          enable_web_tracking: Optional[bool] = None,
          encrypt_conf: Optional[StoreEncryptConfArgs] = None,
          max_split_shard_count: Optional[int] = None,
          name: Optional[str] = None,
          project: Optional[str] = None,
          retention_period: Optional[int] = None,
          shard_count: Optional[int] = None,
          telemetry_type: Optional[str] = None)
@overload
def Store(resource_name: str,
          args: StoreArgs,
          opts: Optional[ResourceOptions] = None)
func NewStore(ctx *Context, name string, args StoreArgs, opts ...ResourceOption) (*Store, error)
public Store(string name, StoreArgs args, CustomResourceOptions? opts = null)
public Store(String name, StoreArgs args)
public Store(String name, StoreArgs args, CustomResourceOptions options)
type: alicloud:log:Store
properties: # The arguments to resource properties.
options: # 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.
resource_name str
The unique name of the resource.
args StoreArgs
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 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.
name String
The unique name of the resource.
args StoreArgs
The arguments to resource properties.
options 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 Architecture and Concepts 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 false.

EnableWebTracking bool

Determines whether to enable Web Tracking. Default false.

EncryptConf Pulumi.AliCloud.Log.Inputs.StoreEncryptConfArgs

Encrypted storage of data, providing data static protection capability, only supported at creation time.

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

TelemetryType string

Determines whether store type is metric. Metrics means metric store, empty means log store.

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 false.

EnableWebTracking bool

Determines whether to enable Web Tracking. Default false.

EncryptConf StoreEncryptConfArgs

Encrypted storage of data, providing data static protection capability, only supported at creation time.

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

TelemetryType string

Determines whether store type is metric. Metrics means metric store, empty means log store.

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 false.

enableWebTracking Boolean

Determines whether to enable Web Tracking. Default false.

encryptConf StoreEncryptConfArgs

Encrypted storage of data, providing data static protection capability, only supported at creation time.

maxSplitShardCount Integer

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 Integer

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 Integer

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

telemetryType String

Determines whether store type is metric. Metrics means metric store, empty means log store.

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 false.

enableWebTracking boolean

Determines whether to enable Web Tracking. Default false.

encryptConf StoreEncryptConfArgs

Encrypted storage of data, providing data static protection capability, only supported at creation time.

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

telemetryType string

Determines whether store type is metric. Metrics means metric store, empty means log store.

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 false.

enable_web_tracking bool

Determines whether to enable Web Tracking. Default false.

encrypt_conf StoreEncryptConfArgs

Encrypted storage of data, providing data static protection capability, only supported at creation time.

max_split_shard_count 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 str

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

retention_period 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.

shard_count int

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

telemetry_type str

Determines whether store type is metric. Metrics means metric store, empty means log store.

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 false.

enableWebTracking Boolean

Determines whether to enable Web Tracking. Default false.

encryptConf Property Map

Encrypted storage of data, providing data static protection capability, only supported at creation time.

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

telemetryType String

Determines whether store type is metric. Metrics means metric store, empty means log store.

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>

The shard attribute.

Id string

The provider-assigned unique ID for this managed resource.

Shards []StoreShard

The shard attribute.

id String

The provider-assigned unique ID for this managed resource.

shards List<StoreShard>

The shard attribute.

id string

The provider-assigned unique ID for this managed resource.

shards StoreShard[]

The shard attribute.

id str

The provider-assigned unique ID for this managed resource.

shards Sequence[StoreShard]

The shard attribute.

id String

The provider-assigned unique ID for this managed resource.

shards List<Property Map>

The shard attribute.

Look up 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
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        append_meta: Optional[bool] = None,
        auto_split: Optional[bool] = None,
        enable_web_tracking: Optional[bool] = None,
        encrypt_conf: Optional[StoreEncryptConfArgs] = None,
        max_split_shard_count: Optional[int] = None,
        name: Optional[str] = None,
        project: Optional[str] = None,
        retention_period: Optional[int] = None,
        shard_count: Optional[int] = None,
        shards: Optional[Sequence[StoreShardArgs]] = None,
        telemetry_type: Optional[str] = None) -> Store
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)
public static Store get(String name, Output<String> id, StoreState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
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.
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 false.

EnableWebTracking bool

Determines whether to enable Web Tracking. Default false.

EncryptConf Pulumi.AliCloud.Log.Inputs.StoreEncryptConfArgs

Encrypted storage of data, providing data static protection capability, only supported at creation time.

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>

The shard attribute.

TelemetryType string

Determines whether store type is metric. Metrics means metric store, empty means log store.

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 false.

EnableWebTracking bool

Determines whether to enable Web Tracking. Default false.

EncryptConf StoreEncryptConfArgs

Encrypted storage of data, providing data static protection capability, only supported at creation time.

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 []StoreShardArgs

The shard attribute.

TelemetryType string

Determines whether store type is metric. Metrics means metric store, empty means log store.

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 false.

enableWebTracking Boolean

Determines whether to enable Web Tracking. Default false.

encryptConf StoreEncryptConfArgs

Encrypted storage of data, providing data static protection capability, only supported at creation time.

maxSplitShardCount Integer

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 Integer

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 Integer

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<StoreShardArgs>

The shard attribute.

telemetryType String

Determines whether store type is metric. Metrics means metric store, empty means log store.

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 false.

enableWebTracking boolean

Determines whether to enable Web Tracking. Default false.

encryptConf StoreEncryptConfArgs

Encrypted storage of data, providing data static protection capability, only supported at creation time.

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 StoreShardArgs[]

The shard attribute.

telemetryType string

Determines whether store type is metric. Metrics means metric store, empty means log store.

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 false.

enable_web_tracking bool

Determines whether to enable Web Tracking. Default false.

encrypt_conf StoreEncryptConfArgs

Encrypted storage of data, providing data static protection capability, only supported at creation time.

max_split_shard_count 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 str

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

project str

The project name to the log store belongs.

retention_period 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.

shard_count 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 Sequence[StoreShardArgs]

The shard attribute.

telemetry_type str

Determines whether store type is metric. Metrics means metric store, empty means log store.

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 false.

enableWebTracking Boolean

Determines whether to enable Web Tracking. Default false.

encryptConf Property Map

Encrypted storage of data, providing data static protection capability, only supported at creation time.

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 List<Property Map>

The shard attribute.

telemetryType String

Determines whether store type is metric. Metrics means metric store, empty means log store.

Supporting Types

StoreEncryptConf

Enable bool

enable encryption. Default false

EncryptType string

Supported encryption type, only supports default(AES), m4

UserCmkInfo Pulumi.AliCloud.Log.Inputs.StoreEncryptConfUserCmkInfo

User bring your own key (BYOK) encryption Refer to details, the format is as follows:

Enable bool

enable encryption. Default false

EncryptType string

Supported encryption type, only supports default(AES), m4

UserCmkInfo StoreEncryptConfUserCmkInfo

User bring your own key (BYOK) encryption Refer to details, the format is as follows:

enable Boolean

enable encryption. Default false

encryptType String

Supported encryption type, only supports default(AES), m4

userCmkInfo StoreEncryptConfUserCmkInfo

User bring your own key (BYOK) encryption Refer to details, the format is as follows:

enable boolean

enable encryption. Default false

encryptType string

Supported encryption type, only supports default(AES), m4

userCmkInfo StoreEncryptConfUserCmkInfo

User bring your own key (BYOK) encryption Refer to details, the format is as follows:

enable bool

enable encryption. Default false

encrypt_type str

Supported encryption type, only supports default(AES), m4

user_cmk_info StoreEncryptConfUserCmkInfo

User bring your own key (BYOK) encryption Refer to details, the format is as follows:

enable Boolean

enable encryption. Default false

encryptType String

Supported encryption type, only supports default(AES), m4

userCmkInfo Property Map

User bring your own key (BYOK) encryption Refer to details, the format is as follows:

StoreEncryptConfUserCmkInfo

Arn string

role arn.

CmkKeyId string

User master key id.

RegionId string

Region id where the user master key id is located.

Arn string

role arn.

CmkKeyId string

User master key id.

RegionId string

Region id where the user master key id is located.

arn String

role arn.

cmkKeyId String

User master key id.

regionId String

Region id where the user master key id is located.

arn string

role arn.

cmkKeyId string

User master key id.

regionId string

Region id where the user master key id is located.

arn str

role arn.

cmk_key_id str

User master key id.

region_id str

Region id where the user master key id is located.

arn String

role arn.

cmkKeyId String

User master key id.

regionId String

Region id where the user master key id is located.

StoreShard

BeginKey string

The begin value of the shard range(MD5), included in the shard range.

EndKey string

The end value of the shard range(MD5), not included in shard range.

Id int

The ID of the shard.

Status string

Shard status, only two status of readwrite and readonly.

BeginKey string

The begin value of the shard range(MD5), included in the shard range.

EndKey string

The end value of the shard range(MD5), not included in shard range.

Id int

The ID of the shard.

Status string

Shard status, only two status of readwrite and readonly.

beginKey String

The begin value of the shard range(MD5), included in the shard range.

endKey String

The end value of the shard range(MD5), not included in shard range.

id Integer

The ID of the shard.

status String

Shard status, only two status of readwrite and readonly.

beginKey string

The begin value of the shard range(MD5), included in the shard range.

endKey string

The end value of the shard range(MD5), not included in shard range.

id number

The ID of the shard.

status string

Shard status, only two status of readwrite and readonly.

begin_key str

The begin value of the shard range(MD5), included in the shard range.

end_key str

The end value of the shard range(MD5), not included in shard range.

id int

The ID of the shard.

status str

Shard status, only two status of readwrite and readonly.

beginKey String

The begin value of the shard range(MD5), included in the shard range.

endKey String

The end value of the shard range(MD5), not included in shard range.

id Number

The ID of the shard.

status String

Shard status, only two status of readwrite and readonly.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.