1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagementHub
  5. SoftwareSourceChangeAvailabilityManagement
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.OsManagementHub.SoftwareSourceChangeAvailabilityManagement

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

    This resource provides the Software Source Change Availability Management resource in Oracle Cloud Infrastructure Os Management Hub service.

    Updates the availability for a list of specified software sources.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testSoftwareSourceChangeAvailabilityManagement = new oci.osmanagementhub.SoftwareSourceChangeAvailabilityManagement("test_software_source_change_availability_management", {softwareSourceAvailabilities: [{
        softwareSourceId: testSoftwareSource.id,
        availability: softwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilitiesAvailability,
        availabilityAtOci: softwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilitiesAvailabilityAtOci,
    }]});
    
    import pulumi
    import pulumi_oci as oci
    
    test_software_source_change_availability_management = oci.os_management_hub.SoftwareSourceChangeAvailabilityManagement("test_software_source_change_availability_management", software_source_availabilities=[oci.os_management_hub.SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilityArgs(
        software_source_id=test_software_source["id"],
        availability=software_source_change_availability_management_software_source_availabilities_availability,
        availability_at_oci=software_source_change_availability_management_software_source_availabilities_availability_at_oci,
    )])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/OsManagementHub"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := OsManagementHub.NewSoftwareSourceChangeAvailabilityManagement(ctx, "test_software_source_change_availability_management", &OsManagementHub.SoftwareSourceChangeAvailabilityManagementArgs{
    			SoftwareSourceAvailabilities: osmanagementhub.SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilityArray{
    				&osmanagementhub.SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilityArgs{
    					SoftwareSourceId:  pulumi.Any(testSoftwareSource.Id),
    					Availability:      pulumi.Any(softwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilitiesAvailability),
    					AvailabilityAtOci: pulumi.Any(softwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilitiesAvailabilityAtOci),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testSoftwareSourceChangeAvailabilityManagement = new Oci.OsManagementHub.SoftwareSourceChangeAvailabilityManagement("test_software_source_change_availability_management", new()
        {
            SoftwareSourceAvailabilities = new[]
            {
                new Oci.OsManagementHub.Inputs.SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilityArgs
                {
                    SoftwareSourceId = testSoftwareSource.Id,
                    Availability = softwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilitiesAvailability,
                    AvailabilityAtOci = softwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilitiesAvailabilityAtOci,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.OsManagementHub.SoftwareSourceChangeAvailabilityManagement;
    import com.pulumi.oci.OsManagementHub.SoftwareSourceChangeAvailabilityManagementArgs;
    import com.pulumi.oci.OsManagementHub.inputs.SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilityArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var testSoftwareSourceChangeAvailabilityManagement = new SoftwareSourceChangeAvailabilityManagement("testSoftwareSourceChangeAvailabilityManagement", SoftwareSourceChangeAvailabilityManagementArgs.builder()
                .softwareSourceAvailabilities(SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilityArgs.builder()
                    .softwareSourceId(testSoftwareSource.id())
                    .availability(softwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilitiesAvailability)
                    .availabilityAtOci(softwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilitiesAvailabilityAtOci)
                    .build())
                .build());
    
        }
    }
    
    resources:
      testSoftwareSourceChangeAvailabilityManagement:
        type: oci:OsManagementHub:SoftwareSourceChangeAvailabilityManagement
        name: test_software_source_change_availability_management
        properties:
          softwareSourceAvailabilities:
            - softwareSourceId: ${testSoftwareSource.id}
              availability: ${softwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilitiesAvailability}
              availabilityAtOci: ${softwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilitiesAvailabilityAtOci}
    

    Create SoftwareSourceChangeAvailabilityManagement Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SoftwareSourceChangeAvailabilityManagement(name: string, args: SoftwareSourceChangeAvailabilityManagementArgs, opts?: CustomResourceOptions);
    @overload
    def SoftwareSourceChangeAvailabilityManagement(resource_name: str,
                                                   args: SoftwareSourceChangeAvailabilityManagementArgs,
                                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def SoftwareSourceChangeAvailabilityManagement(resource_name: str,
                                                   opts: Optional[ResourceOptions] = None,
                                                   software_source_availabilities: Optional[Sequence[_osmanagementhub.SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilityArgs]] = None)
    func NewSoftwareSourceChangeAvailabilityManagement(ctx *Context, name string, args SoftwareSourceChangeAvailabilityManagementArgs, opts ...ResourceOption) (*SoftwareSourceChangeAvailabilityManagement, error)
    public SoftwareSourceChangeAvailabilityManagement(string name, SoftwareSourceChangeAvailabilityManagementArgs args, CustomResourceOptions? opts = null)
    public SoftwareSourceChangeAvailabilityManagement(String name, SoftwareSourceChangeAvailabilityManagementArgs args)
    public SoftwareSourceChangeAvailabilityManagement(String name, SoftwareSourceChangeAvailabilityManagementArgs args, CustomResourceOptions options)
    
    type: oci:OsManagementHub:SoftwareSourceChangeAvailabilityManagement
    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 SoftwareSourceChangeAvailabilityManagementArgs
    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 SoftwareSourceChangeAvailabilityManagementArgs
    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 SoftwareSourceChangeAvailabilityManagementArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SoftwareSourceChangeAvailabilityManagementArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SoftwareSourceChangeAvailabilityManagementArgs
    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 softwareSourceChangeAvailabilityManagementResource = new Oci.OsManagementHub.SoftwareSourceChangeAvailabilityManagement("softwareSourceChangeAvailabilityManagementResource", new()
    {
        SoftwareSourceAvailabilities = new[]
        {
            new Oci.OsManagementHub.Inputs.SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilityArgs
            {
                SoftwareSourceId = "string",
                Availability = "string",
                AvailabilityAtOci = "string",
            },
        },
    });
    
    example, err := OsManagementHub.NewSoftwareSourceChangeAvailabilityManagement(ctx, "softwareSourceChangeAvailabilityManagementResource", &OsManagementHub.SoftwareSourceChangeAvailabilityManagementArgs{
    	SoftwareSourceAvailabilities: osmanagementhub.SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilityArray{
    		&osmanagementhub.SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilityArgs{
    			SoftwareSourceId:  pulumi.String("string"),
    			Availability:      pulumi.String("string"),
    			AvailabilityAtOci: pulumi.String("string"),
    		},
    	},
    })
    
    var softwareSourceChangeAvailabilityManagementResource = new SoftwareSourceChangeAvailabilityManagement("softwareSourceChangeAvailabilityManagementResource", SoftwareSourceChangeAvailabilityManagementArgs.builder()
        .softwareSourceAvailabilities(SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilityArgs.builder()
            .softwareSourceId("string")
            .availability("string")
            .availabilityAtOci("string")
            .build())
        .build());
    
    software_source_change_availability_management_resource = oci.os_management_hub.SoftwareSourceChangeAvailabilityManagement("softwareSourceChangeAvailabilityManagementResource", software_source_availabilities=[oci.os_management_hub.SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilityArgs(
        software_source_id="string",
        availability="string",
        availability_at_oci="string",
    )])
    
    const softwareSourceChangeAvailabilityManagementResource = new oci.osmanagementhub.SoftwareSourceChangeAvailabilityManagement("softwareSourceChangeAvailabilityManagementResource", {softwareSourceAvailabilities: [{
        softwareSourceId: "string",
        availability: "string",
        availabilityAtOci: "string",
    }]});
    
    type: oci:OsManagementHub:SoftwareSourceChangeAvailabilityManagement
    properties:
        softwareSourceAvailabilities:
            - availability: string
              availabilityAtOci: string
              softwareSourceId: string
    

    SoftwareSourceChangeAvailabilityManagement Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The SoftwareSourceChangeAvailabilityManagement resource accepts the following input properties:

    softwareSourceAvailabilities List<Property Map>
    List of vendor software sources and their availability statuses.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing SoftwareSourceChangeAvailabilityManagement Resource

    Get an existing SoftwareSourceChangeAvailabilityManagement 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?: SoftwareSourceChangeAvailabilityManagementState, opts?: CustomResourceOptions): SoftwareSourceChangeAvailabilityManagement
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            software_source_availabilities: Optional[Sequence[_osmanagementhub.SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilityArgs]] = None) -> SoftwareSourceChangeAvailabilityManagement
    func GetSoftwareSourceChangeAvailabilityManagement(ctx *Context, name string, id IDInput, state *SoftwareSourceChangeAvailabilityManagementState, opts ...ResourceOption) (*SoftwareSourceChangeAvailabilityManagement, error)
    public static SoftwareSourceChangeAvailabilityManagement Get(string name, Input<string> id, SoftwareSourceChangeAvailabilityManagementState? state, CustomResourceOptions? opts = null)
    public static SoftwareSourceChangeAvailabilityManagement get(String name, Output<String> id, SoftwareSourceChangeAvailabilityManagementState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    softwareSourceAvailabilities List<Property Map>
    List of vendor software sources and their availability statuses.

    Supporting Types

    SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailability, SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilityArgs

    SoftwareSourceId string

    The OCID of the vendor 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

    Availability string
    Availability of the software source to instances in private data centers or third-party clouds.
    AvailabilityAtOci string
    Availability of the software source to Oracle Cloud Infrastructure instances.
    SoftwareSourceId string

    The OCID of the vendor 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

    Availability string
    Availability of the software source to instances in private data centers or third-party clouds.
    AvailabilityAtOci string
    Availability of the software source to Oracle Cloud Infrastructure instances.
    softwareSourceId String

    The OCID of the vendor 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

    availability String
    Availability of the software source to instances in private data centers or third-party clouds.
    availabilityAtOci String
    Availability of the software source to Oracle Cloud Infrastructure instances.
    softwareSourceId string

    The OCID of the vendor 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

    availability string
    Availability of the software source to instances in private data centers or third-party clouds.
    availabilityAtOci string
    Availability of the software source to Oracle Cloud Infrastructure instances.
    software_source_id str

    The OCID of the vendor 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

    availability str
    Availability of the software source to instances in private data centers or third-party clouds.
    availability_at_oci str
    Availability of the software source to Oracle Cloud Infrastructure instances.
    softwareSourceId String

    The OCID of the vendor 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

    availability String
    Availability of the software source to instances in private data centers or third-party clouds.
    availabilityAtOci String
    Availability of the software source to Oracle Cloud Infrastructure instances.

    Import

    SoftwareSourceChangeAvailabilityManagement can be imported using the id, e.g.

    $ pulumi import oci:OsManagementHub/softwareSourceChangeAvailabilityManagement:SoftwareSourceChangeAvailabilityManagement test_software_source_change_availability_management "id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi