import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the Software Source Remove Packages Management resource in Oracle Cloud Infrastructure Os Management Hub service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/os-management/latest/SoftwareSourceRemovePackagesManagement * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/os_management_hub * * Removes packages from a software source. This operation can only be done for custom software sources that are not created using filters. * Packages can be of the format: * * name (for example: git). This removes all versions of the package. * * name-version-release.architecture (for example: git-2.43.5-1.el8_10.x86_64) * * name-epoch:version-release.architecture (for example: git-0:2.43.5-1.el8_10.x86_64) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testSoftwareSourceRemovePackagesManagement = new oci.osmanagementhub.SoftwareSourceRemovePackagesManagement("test_software_source_remove_packages_management", { * packages: softwareSourceRemovePackagesManagementPackages, * softwareSourceId: testSoftwareSource.id, * }); * ``` * * ## Import * * SoftwareSourceRemovePackagesManagement can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:OsManagementHub/softwareSourceRemovePackagesManagement:SoftwareSourceRemovePackagesManagement test_software_source_remove_packages_management "id" * ``` */ export declare class SoftwareSourceRemovePackagesManagement extends pulumi.CustomResource { /** * Get an existing SoftwareSourceRemovePackagesManagement 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, state?: SoftwareSourceRemovePackagesManagementState, opts?: pulumi.CustomResourceOptions): SoftwareSourceRemovePackagesManagement; /** * Returns true if the given object is an instance of SoftwareSourceRemovePackagesManagement. 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 SoftwareSourceRemovePackagesManagement; /** * List of packages specified by the name of the package (N) or the full package name (NVRA or NEVRA). */ readonly packages: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the software source. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ readonly softwareSourceId: pulumi.Output; /** * Create a SoftwareSourceRemovePackagesManagement 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: SoftwareSourceRemovePackagesManagementArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SoftwareSourceRemovePackagesManagement resources. */ export interface SoftwareSourceRemovePackagesManagementState { /** * List of packages specified by the name of the package (N) or the full package name (NVRA or NEVRA). */ packages?: pulumi.Input[] | undefined>; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the software source. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ softwareSourceId?: pulumi.Input; } /** * The set of arguments for constructing a SoftwareSourceRemovePackagesManagement resource. */ export interface SoftwareSourceRemovePackagesManagementArgs { /** * List of packages specified by the name of the package (N) or the full package name (NVRA or NEVRA). */ packages: pulumi.Input[]>; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the software source. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ softwareSourceId: pulumi.Input; } //# sourceMappingURL=softwareSourceRemovePackagesManagement.d.ts.map