1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. DrgAttachmentsList
Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi

oci.Core.DrgAttachmentsList

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi

    This resource provides the Drg Attachments List resource in Oracle Cloud Infrastructure Core service.

    Returns a complete list of DRG attachments that belong to a particular DRG.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDrgAttachmentsList = new oci.core.DrgAttachmentsList("testDrgAttachmentsList", {
        drgId: oci_core_drg.test_drg.id,
        attachmentType: _var.drg_attachments_list_attachment_type,
        isCrossTenancy: _var.drg_attachments_list_is_cross_tenancy,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_drg_attachments_list = oci.core.DrgAttachmentsList("testDrgAttachmentsList",
        drg_id=oci_core_drg["test_drg"]["id"],
        attachment_type=var["drg_attachments_list_attachment_type"],
        is_cross_tenancy=var["drg_attachments_list_is_cross_tenancy"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Core"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Core.NewDrgAttachmentsList(ctx, "testDrgAttachmentsList", &Core.DrgAttachmentsListArgs{
    			DrgId:          pulumi.Any(oci_core_drg.Test_drg.Id),
    			AttachmentType: pulumi.Any(_var.Drg_attachments_list_attachment_type),
    			IsCrossTenancy: pulumi.Any(_var.Drg_attachments_list_is_cross_tenancy),
    		})
    		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 testDrgAttachmentsList = new Oci.Core.DrgAttachmentsList("testDrgAttachmentsList", new()
        {
            DrgId = oci_core_drg.Test_drg.Id,
            AttachmentType = @var.Drg_attachments_list_attachment_type,
            IsCrossTenancy = @var.Drg_attachments_list_is_cross_tenancy,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Core.DrgAttachmentsList;
    import com.pulumi.oci.Core.DrgAttachmentsListArgs;
    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 testDrgAttachmentsList = new DrgAttachmentsList("testDrgAttachmentsList", DrgAttachmentsListArgs.builder()        
                .drgId(oci_core_drg.test_drg().id())
                .attachmentType(var_.drg_attachments_list_attachment_type())
                .isCrossTenancy(var_.drg_attachments_list_is_cross_tenancy())
                .build());
    
        }
    }
    
    resources:
      testDrgAttachmentsList:
        type: oci:Core:DrgAttachmentsList
        properties:
          #Required
          drgId: ${oci_core_drg.test_drg.id}
          #Optional
          attachmentType: ${var.drg_attachments_list_attachment_type}
          isCrossTenancy: ${var.drg_attachments_list_is_cross_tenancy}
    

    Create DrgAttachmentsList Resource

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

    Constructor syntax

    new DrgAttachmentsList(name: string, args: DrgAttachmentsListArgs, opts?: CustomResourceOptions);
    @overload
    def DrgAttachmentsList(resource_name: str,
                           args: DrgAttachmentsListArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def DrgAttachmentsList(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           drg_id: Optional[str] = None,
                           attachment_type: Optional[str] = None,
                           is_cross_tenancy: Optional[bool] = None)
    func NewDrgAttachmentsList(ctx *Context, name string, args DrgAttachmentsListArgs, opts ...ResourceOption) (*DrgAttachmentsList, error)
    public DrgAttachmentsList(string name, DrgAttachmentsListArgs args, CustomResourceOptions? opts = null)
    public DrgAttachmentsList(String name, DrgAttachmentsListArgs args)
    public DrgAttachmentsList(String name, DrgAttachmentsListArgs args, CustomResourceOptions options)
    
    type: oci:Core:DrgAttachmentsList
    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 DrgAttachmentsListArgs
    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 DrgAttachmentsListArgs
    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 DrgAttachmentsListArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DrgAttachmentsListArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DrgAttachmentsListArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var drgAttachmentsListResource = new Oci.Core.DrgAttachmentsList("drgAttachmentsListResource", new()
    {
        DrgId = "string",
        AttachmentType = "string",
        IsCrossTenancy = false,
    });
    
    example, err := Core.NewDrgAttachmentsList(ctx, "drgAttachmentsListResource", &Core.DrgAttachmentsListArgs{
    	DrgId:          pulumi.String("string"),
    	AttachmentType: pulumi.String("string"),
    	IsCrossTenancy: pulumi.Bool(false),
    })
    
    var drgAttachmentsListResource = new DrgAttachmentsList("drgAttachmentsListResource", DrgAttachmentsListArgs.builder()        
        .drgId("string")
        .attachmentType("string")
        .isCrossTenancy(false)
        .build());
    
    drg_attachments_list_resource = oci.core.DrgAttachmentsList("drgAttachmentsListResource",
        drg_id="string",
        attachment_type="string",
        is_cross_tenancy=False)
    
    const drgAttachmentsListResource = new oci.core.DrgAttachmentsList("drgAttachmentsListResource", {
        drgId: "string",
        attachmentType: "string",
        isCrossTenancy: false,
    });
    
    type: oci:Core:DrgAttachmentsList
    properties:
        attachmentType: string
        drgId: string
        isCrossTenancy: false
    

    DrgAttachmentsList 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 DrgAttachmentsList resource accepts the following input properties:

    DrgId string
    The OCID of the DRG.
    AttachmentType string
    The type for the network resource attached to the DRG.
    IsCrossTenancy bool

    Whether the DRG attachment lives in a different tenancy than the DRG.

    ** 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

    DrgId string
    The OCID of the DRG.
    AttachmentType string
    The type for the network resource attached to the DRG.
    IsCrossTenancy bool

    Whether the DRG attachment lives in a different tenancy than the DRG.

    ** 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

    drgId String
    The OCID of the DRG.
    attachmentType String
    The type for the network resource attached to the DRG.
    isCrossTenancy Boolean

    Whether the DRG attachment lives in a different tenancy than the DRG.

    ** 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

    drgId string
    The OCID of the DRG.
    attachmentType string
    The type for the network resource attached to the DRG.
    isCrossTenancy boolean

    Whether the DRG attachment lives in a different tenancy than the DRG.

    ** 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

    drg_id str
    The OCID of the DRG.
    attachment_type str
    The type for the network resource attached to the DRG.
    is_cross_tenancy bool

    Whether the DRG attachment lives in a different tenancy than the DRG.

    ** 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

    drgId String
    The OCID of the DRG.
    attachmentType String
    The type for the network resource attached to the DRG.
    isCrossTenancy Boolean

    Whether the DRG attachment lives in a different tenancy than the DRG.

    ** 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

    Outputs

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

    DrgAllAttachments List<DrgAttachmentsListDrgAllAttachment>
    The list of drg_attachments.
    Id string
    The provider-assigned unique ID for this managed resource.
    DrgAllAttachments []DrgAttachmentsListDrgAllAttachment
    The list of drg_attachments.
    Id string
    The provider-assigned unique ID for this managed resource.
    drgAllAttachments List<DrgAttachmentsListDrgAllAttachment>
    The list of drg_attachments.
    id String
    The provider-assigned unique ID for this managed resource.
    drgAllAttachments DrgAttachmentsListDrgAllAttachment[]
    The list of drg_attachments.
    id string
    The provider-assigned unique ID for this managed resource.
    drg_all_attachments Sequence[core.DrgAttachmentsListDrgAllAttachment]
    The list of drg_attachments.
    id str
    The provider-assigned unique ID for this managed resource.
    drgAllAttachments List<Property Map>
    The list of drg_attachments.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing DrgAttachmentsList Resource

    Get an existing DrgAttachmentsList 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?: DrgAttachmentsListState, opts?: CustomResourceOptions): DrgAttachmentsList
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            attachment_type: Optional[str] = None,
            drg_all_attachments: Optional[Sequence[_core.DrgAttachmentsListDrgAllAttachmentArgs]] = None,
            drg_id: Optional[str] = None,
            is_cross_tenancy: Optional[bool] = None) -> DrgAttachmentsList
    func GetDrgAttachmentsList(ctx *Context, name string, id IDInput, state *DrgAttachmentsListState, opts ...ResourceOption) (*DrgAttachmentsList, error)
    public static DrgAttachmentsList Get(string name, Input<string> id, DrgAttachmentsListState? state, CustomResourceOptions? opts = null)
    public static DrgAttachmentsList get(String name, Output<String> id, DrgAttachmentsListState 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:
    AttachmentType string
    The type for the network resource attached to the DRG.
    DrgAllAttachments List<DrgAttachmentsListDrgAllAttachment>
    The list of drg_attachments.
    DrgId string
    The OCID of the DRG.
    IsCrossTenancy bool

    Whether the DRG attachment lives in a different tenancy than the DRG.

    ** 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

    AttachmentType string
    The type for the network resource attached to the DRG.
    DrgAllAttachments []DrgAttachmentsListDrgAllAttachmentArgs
    The list of drg_attachments.
    DrgId string
    The OCID of the DRG.
    IsCrossTenancy bool

    Whether the DRG attachment lives in a different tenancy than the DRG.

    ** 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

    attachmentType String
    The type for the network resource attached to the DRG.
    drgAllAttachments List<DrgAttachmentsListDrgAllAttachment>
    The list of drg_attachments.
    drgId String
    The OCID of the DRG.
    isCrossTenancy Boolean

    Whether the DRG attachment lives in a different tenancy than the DRG.

    ** 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

    attachmentType string
    The type for the network resource attached to the DRG.
    drgAllAttachments DrgAttachmentsListDrgAllAttachment[]
    The list of drg_attachments.
    drgId string
    The OCID of the DRG.
    isCrossTenancy boolean

    Whether the DRG attachment lives in a different tenancy than the DRG.

    ** 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

    attachment_type str
    The type for the network resource attached to the DRG.
    drg_all_attachments Sequence[core.DrgAttachmentsListDrgAllAttachmentArgs]
    The list of drg_attachments.
    drg_id str
    The OCID of the DRG.
    is_cross_tenancy bool

    Whether the DRG attachment lives in a different tenancy than the DRG.

    ** 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

    attachmentType String
    The type for the network resource attached to the DRG.
    drgAllAttachments List<Property Map>
    The list of drg_attachments.
    drgId String
    The OCID of the DRG.
    isCrossTenancy Boolean

    Whether the DRG attachment lives in a different tenancy than the DRG.

    ** 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

    Supporting Types

    DrgAttachmentsListDrgAllAttachment, DrgAttachmentsListDrgAllAttachmentArgs

    Id string
    The Oracle-assigned ID of the DRG attachment
    Id string
    The Oracle-assigned ID of the DRG attachment
    id String
    The Oracle-assigned ID of the DRG attachment
    id string
    The Oracle-assigned ID of the DRG attachment
    id str
    The Oracle-assigned ID of the DRG attachment
    id String
    The Oracle-assigned ID of the DRG attachment

    Import

    Import is not supported for this resource.

    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.31.0 published on Wednesday, Apr 10, 2024 by Pulumi