import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the Software Source Add 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/SoftwareSourceAddPackagesManagement * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/os_management_hub * * Adds packages to a software source. This operation can only be done for custom and versioned custom software sources that are not created using filters. * For a versioned custom software source, you can only add packages when the source is created. Once content is added to a versioned custom software source, it is immutable. * Packages can be of the format: * * name (for example: git). If isLatestContentOnly is true, only the latest version of the package will be added, otherwise all versions of the package will be added. * * 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 testSoftwareSourceAddPackagesManagement = new oci.osmanagementhub.SoftwareSourceAddPackagesManagement("test_software_source_add_packages_management", { * packages: softwareSourceAddPackagesManagementPackages, * softwareSourceId: testSoftwareSource.id, * isContinueOnMissingPackages: softwareSourceAddPackagesManagementIsContinueOnMissingPackages === "true", * }); * ``` * * ## Import * * SoftwareSourceAddPackagesManagement can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:OsManagementHub/softwareSourceAddPackagesManagement:SoftwareSourceAddPackagesManagement test_software_source_add_packages_management "id" * ``` */ export declare class SoftwareSourceAddPackagesManagement extends pulumi.CustomResource { /** * Get an existing SoftwareSourceAddPackagesManagement 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?: SoftwareSourceAddPackagesManagementState, opts?: pulumi.CustomResourceOptions): SoftwareSourceAddPackagesManagement; /** * Returns true if the given object is an instance of SoftwareSourceAddPackagesManagement. 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 SoftwareSourceAddPackagesManagement; /** * Indicates whether the service should generate a custom software source when the package list contains invalid values. When set to true, the service ignores any invalid packages and generates the custom software source with using the valid packages. */ readonly isContinueOnMissingPackages: pulumi.Output; /** * 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 SoftwareSourceAddPackagesManagement 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: SoftwareSourceAddPackagesManagementArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SoftwareSourceAddPackagesManagement resources. */ export interface SoftwareSourceAddPackagesManagementState { /** * Indicates whether the service should generate a custom software source when the package list contains invalid values. When set to true, the service ignores any invalid packages and generates the custom software source with using the valid packages. */ isContinueOnMissingPackages?: pulumi.Input; /** * 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 SoftwareSourceAddPackagesManagement resource. */ export interface SoftwareSourceAddPackagesManagementArgs { /** * Indicates whether the service should generate a custom software source when the package list contains invalid values. When set to true, the service ignores any invalid packages and generates the custom software source with using the valid packages. */ isContinueOnMissingPackages?: pulumi.Input; /** * 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=softwareSourceAddPackagesManagement.d.ts.map