logzio.ArchiveLogs
Explore with Pulumi AI
Create ArchiveLogs Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ArchiveLogs(name: string, args: ArchiveLogsArgs, opts?: CustomResourceOptions);
@overload
def ArchiveLogs(resource_name: str,
args: ArchiveLogsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ArchiveLogs(resource_name: str,
opts: Optional[ResourceOptions] = None,
storage_type: Optional[str] = None,
azure_account_name: Optional[str] = None,
azure_client_id: Optional[str] = None,
aws_s3_iam_credentials_arn: Optional[str] = None,
aws_s3_path: Optional[str] = None,
aws_secret_key: Optional[str] = None,
archive_logs_id: Optional[str] = None,
azure_blob_path: Optional[str] = None,
aws_credentials_type: Optional[str] = None,
azure_client_secret: Optional[str] = None,
azure_container_name: Optional[str] = None,
azure_tenant_id: Optional[str] = None,
compressed: Optional[bool] = None,
enabled: Optional[bool] = None,
aws_access_key: Optional[str] = None)
func NewArchiveLogs(ctx *Context, name string, args ArchiveLogsArgs, opts ...ResourceOption) (*ArchiveLogs, error)
public ArchiveLogs(string name, ArchiveLogsArgs args, CustomResourceOptions? opts = null)
public ArchiveLogs(String name, ArchiveLogsArgs args)
public ArchiveLogs(String name, ArchiveLogsArgs args, CustomResourceOptions options)
type: logzio:ArchiveLogs
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 ArchiveLogsArgs
- 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 ArchiveLogsArgs
- 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 ArchiveLogsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ArchiveLogsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ArchiveLogsArgs
- 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 archiveLogsResource = new Logzio.ArchiveLogs("archiveLogsResource", new()
{
StorageType = "string",
AzureAccountName = "string",
AzureClientId = "string",
AwsS3IamCredentialsArn = "string",
AwsS3Path = "string",
AwsSecretKey = "string",
ArchiveLogsId = "string",
AzureBlobPath = "string",
AwsCredentialsType = "string",
AzureClientSecret = "string",
AzureContainerName = "string",
AzureTenantId = "string",
Compressed = false,
Enabled = false,
AwsAccessKey = "string",
});
example, err := logzio.NewArchiveLogs(ctx, "archiveLogsResource", &logzio.ArchiveLogsArgs{
StorageType: pulumi.String("string"),
AzureAccountName: pulumi.String("string"),
AzureClientId: pulumi.String("string"),
AwsS3IamCredentialsArn: pulumi.String("string"),
AwsS3Path: pulumi.String("string"),
AwsSecretKey: pulumi.String("string"),
ArchiveLogsId: pulumi.String("string"),
AzureBlobPath: pulumi.String("string"),
AwsCredentialsType: pulumi.String("string"),
AzureClientSecret: pulumi.String("string"),
AzureContainerName: pulumi.String("string"),
AzureTenantId: pulumi.String("string"),
Compressed: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
AwsAccessKey: pulumi.String("string"),
})
var archiveLogsResource = new ArchiveLogs("archiveLogsResource", ArchiveLogsArgs.builder()
.storageType("string")
.azureAccountName("string")
.azureClientId("string")
.awsS3IamCredentialsArn("string")
.awsS3Path("string")
.awsSecretKey("string")
.archiveLogsId("string")
.azureBlobPath("string")
.awsCredentialsType("string")
.azureClientSecret("string")
.azureContainerName("string")
.azureTenantId("string")
.compressed(false)
.enabled(false)
.awsAccessKey("string")
.build());
archive_logs_resource = logzio.ArchiveLogs("archiveLogsResource",
storage_type="string",
azure_account_name="string",
azure_client_id="string",
aws_s3_iam_credentials_arn="string",
aws_s3_path="string",
aws_secret_key="string",
archive_logs_id="string",
azure_blob_path="string",
aws_credentials_type="string",
azure_client_secret="string",
azure_container_name="string",
azure_tenant_id="string",
compressed=False,
enabled=False,
aws_access_key="string")
const archiveLogsResource = new logzio.ArchiveLogs("archiveLogsResource", {
storageType: "string",
azureAccountName: "string",
azureClientId: "string",
awsS3IamCredentialsArn: "string",
awsS3Path: "string",
awsSecretKey: "string",
archiveLogsId: "string",
azureBlobPath: "string",
awsCredentialsType: "string",
azureClientSecret: "string",
azureContainerName: "string",
azureTenantId: "string",
compressed: false,
enabled: false,
awsAccessKey: "string",
});
type: logzio:ArchiveLogs
properties:
archiveLogsId: string
awsAccessKey: string
awsCredentialsType: string
awsS3IamCredentialsArn: string
awsS3Path: string
awsSecretKey: string
azureAccountName: string
azureBlobPath: string
azureClientId: string
azureClientSecret: string
azureContainerName: string
azureTenantId: string
compressed: false
enabled: false
storageType: string
ArchiveLogs 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 ArchiveLogs resource accepts the following input properties:
- Storage
Type string - Archive
Logs stringId - Aws
Access stringKey - Aws
Credentials stringType - Aws
S3Iam stringCredentials Arn - Aws
S3Path string - Aws
Secret stringKey - Azure
Account stringName - Azure
Blob stringPath - Azure
Client stringId - Azure
Client stringSecret - Azure
Container stringName - Azure
Tenant stringId - Compressed bool
- Enabled bool
- Storage
Type string - Archive
Logs stringId - Aws
Access stringKey - Aws
Credentials stringType - Aws
S3Iam stringCredentials Arn - Aws
S3Path string - Aws
Secret stringKey - Azure
Account stringName - Azure
Blob stringPath - Azure
Client stringId - Azure
Client stringSecret - Azure
Container stringName - Azure
Tenant stringId - Compressed bool
- Enabled bool
- storage
Type String - archive
Logs StringId - aws
Access StringKey - aws
Credentials StringType - aws
S3Iam StringCredentials Arn - aws
S3Path String - aws
Secret StringKey - azure
Account StringName - azure
Blob StringPath - azure
Client StringId - azure
Client StringSecret - azure
Container StringName - azure
Tenant StringId - compressed Boolean
- enabled Boolean
- storage
Type string - archive
Logs stringId - aws
Access stringKey - aws
Credentials stringType - aws
S3Iam stringCredentials Arn - aws
S3Path string - aws
Secret stringKey - azure
Account stringName - azure
Blob stringPath - azure
Client stringId - azure
Client stringSecret - azure
Container stringName - azure
Tenant stringId - compressed boolean
- enabled boolean
- storage_
type str - archive_
logs_ strid - aws_
access_ strkey - aws_
credentials_ strtype - aws_
s3_ striam_ credentials_ arn - aws_
s3_ strpath - aws_
secret_ strkey - azure_
account_ strname - azure_
blob_ strpath - azure_
client_ strid - azure_
client_ strsecret - azure_
container_ strname - azure_
tenant_ strid - compressed bool
- enabled bool
- storage
Type String - archive
Logs StringId - aws
Access StringKey - aws
Credentials StringType - aws
S3Iam StringCredentials Arn - aws
S3Path String - aws
Secret StringKey - azure
Account StringName - azure
Blob StringPath - azure
Client StringId - azure
Client StringSecret - azure
Container StringName - azure
Tenant StringId - compressed Boolean
- enabled Boolean
Outputs
All input properties are implicitly available as output properties. Additionally, the ArchiveLogs resource produces the following output properties:
- archive_
id float - id str
- The provider-assigned unique ID for this managed resource.
Look up Existing ArchiveLogs Resource
Get an existing ArchiveLogs 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?: ArchiveLogsState, opts?: CustomResourceOptions): ArchiveLogs
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
archive_id: Optional[float] = None,
archive_logs_id: Optional[str] = None,
aws_access_key: Optional[str] = None,
aws_credentials_type: Optional[str] = None,
aws_s3_iam_credentials_arn: Optional[str] = None,
aws_s3_path: Optional[str] = None,
aws_secret_key: Optional[str] = None,
azure_account_name: Optional[str] = None,
azure_blob_path: Optional[str] = None,
azure_client_id: Optional[str] = None,
azure_client_secret: Optional[str] = None,
azure_container_name: Optional[str] = None,
azure_tenant_id: Optional[str] = None,
compressed: Optional[bool] = None,
enabled: Optional[bool] = None,
storage_type: Optional[str] = None) -> ArchiveLogs
func GetArchiveLogs(ctx *Context, name string, id IDInput, state *ArchiveLogsState, opts ...ResourceOption) (*ArchiveLogs, error)
public static ArchiveLogs Get(string name, Input<string> id, ArchiveLogsState? state, CustomResourceOptions? opts = null)
public static ArchiveLogs get(String name, Output<String> id, ArchiveLogsState state, CustomResourceOptions options)
resources: _: type: logzio:ArchiveLogs get: 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.
- Archive
Id double - Archive
Logs stringId - Aws
Access stringKey - Aws
Credentials stringType - Aws
S3Iam stringCredentials Arn - Aws
S3Path string - Aws
Secret stringKey - Azure
Account stringName - Azure
Blob stringPath - Azure
Client stringId - Azure
Client stringSecret - Azure
Container stringName - Azure
Tenant stringId - Compressed bool
- Enabled bool
- Storage
Type string
- Archive
Id float64 - Archive
Logs stringId - Aws
Access stringKey - Aws
Credentials stringType - Aws
S3Iam stringCredentials Arn - Aws
S3Path string - Aws
Secret stringKey - Azure
Account stringName - Azure
Blob stringPath - Azure
Client stringId - Azure
Client stringSecret - Azure
Container stringName - Azure
Tenant stringId - Compressed bool
- Enabled bool
- Storage
Type string
- archive
Id Double - archive
Logs StringId - aws
Access StringKey - aws
Credentials StringType - aws
S3Iam StringCredentials Arn - aws
S3Path String - aws
Secret StringKey - azure
Account StringName - azure
Blob StringPath - azure
Client StringId - azure
Client StringSecret - azure
Container StringName - azure
Tenant StringId - compressed Boolean
- enabled Boolean
- storage
Type String
- archive
Id number - archive
Logs stringId - aws
Access stringKey - aws
Credentials stringType - aws
S3Iam stringCredentials Arn - aws
S3Path string - aws
Secret stringKey - azure
Account stringName - azure
Blob stringPath - azure
Client stringId - azure
Client stringSecret - azure
Container stringName - azure
Tenant stringId - compressed boolean
- enabled boolean
- storage
Type string
- archive_
id float - archive_
logs_ strid - aws_
access_ strkey - aws_
credentials_ strtype - aws_
s3_ striam_ credentials_ arn - aws_
s3_ strpath - aws_
secret_ strkey - azure_
account_ strname - azure_
blob_ strpath - azure_
client_ strid - azure_
client_ strsecret - azure_
container_ strname - azure_
tenant_ strid - compressed bool
- enabled bool
- storage_
type str
- archive
Id Number - archive
Logs StringId - aws
Access StringKey - aws
Credentials StringType - aws
S3Iam StringCredentials Arn - aws
S3Path String - aws
Secret StringKey - azure
Account StringName - azure
Blob StringPath - azure
Client StringId - azure
Client StringSecret - azure
Container StringName - azure
Tenant StringId - compressed Boolean
- enabled Boolean
- storage
Type String
Package Details
- Repository
- logzio logzio/terraform-provider-logzio
- License
- Notes
- This Pulumi package is based on the
logzio
Terraform Provider.