1. Packages
  2. Logzio Provider
  3. API Docs
  4. ArchiveLogs
logzio 1.17.1 published on Monday, Apr 14, 2025 by logzio

logzio.ArchiveLogs

Explore with Pulumi AI

logzio logo
logzio 1.17.1 published on Monday, Apr 14, 2025 by logzio

    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:

    Outputs

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

    ArchiveId double
    Id string
    The provider-assigned unique ID for this managed resource.
    ArchiveId float64
    Id string
    The provider-assigned unique ID for this managed resource.
    archiveId Double
    id String
    The provider-assigned unique ID for this managed resource.
    archiveId number
    id string
    The provider-assigned unique ID for this managed resource.
    archive_id float
    id str
    The provider-assigned unique ID for this managed resource.
    archiveId Number
    id String
    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.
    The following state arguments are supported:

    Package Details

    Repository
    logzio logzio/terraform-provider-logzio
    License
    Notes
    This Pulumi package is based on the logzio Terraform Provider.
    logzio logo
    logzio 1.17.1 published on Monday, Apr 14, 2025 by logzio