UNPKG

@pulumiverse/harbor

Version:

A Pulumi package for creating and managing Harbor resources.

76 lines (75 loc) 3.73 kB
import * as pulumi from "@pulumi/pulumi"; /** * ## Example Usage */ export declare class PurgeAuditLog extends pulumi.CustomResource { /** * Get an existing PurgeAuditLog resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PurgeAuditLogState, opts?: pulumi.CustomResourceOptions): PurgeAuditLog; /** * Returns true if the given object is an instance of PurgeAuditLog. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is PurgeAuditLog; /** * To configure how long audit logs should be kept. For example, if you set this to 24 Harbor will only purge audit logs that are 24 or more hours old. */ readonly auditRetentionHour: pulumi.Output<number>; /** * Valid values are `create` `delete` `pull`, thoses values can be comma separated. When Create, Delete, or Pull is set, Harbor will include audit logs for those operations in the purge. */ readonly includeOperations: pulumi.Output<string>; /** * Sets the schedule how often the Garbage Collection will run. Can be to `"Hourly"`, `"Daily"`, `"Weekly"` or can be a custom cron string ie, `"5 4 * * *"` */ readonly schedule: pulumi.Output<string>; /** * Create a PurgeAuditLog resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: PurgeAuditLogArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering PurgeAuditLog resources. */ export interface PurgeAuditLogState { /** * To configure how long audit logs should be kept. For example, if you set this to 24 Harbor will only purge audit logs that are 24 or more hours old. */ auditRetentionHour?: pulumi.Input<number>; /** * Valid values are `create` `delete` `pull`, thoses values can be comma separated. When Create, Delete, or Pull is set, Harbor will include audit logs for those operations in the purge. */ includeOperations?: pulumi.Input<string>; /** * Sets the schedule how often the Garbage Collection will run. Can be to `"Hourly"`, `"Daily"`, `"Weekly"` or can be a custom cron string ie, `"5 4 * * *"` */ schedule?: pulumi.Input<string>; } /** * The set of arguments for constructing a PurgeAuditLog resource. */ export interface PurgeAuditLogArgs { /** * To configure how long audit logs should be kept. For example, if you set this to 24 Harbor will only purge audit logs that are 24 or more hours old. */ auditRetentionHour: pulumi.Input<number>; /** * Valid values are `create` `delete` `pull`, thoses values can be comma separated. When Create, Delete, or Pull is set, Harbor will include audit logs for those operations in the purge. */ includeOperations: pulumi.Input<string>; /** * Sets the schedule how often the Garbage Collection will run. Can be to `"Hourly"`, `"Daily"`, `"Weekly"` or can be a custom cron string ie, `"5 4 * * *"` */ schedule: pulumi.Input<string>; }