Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

DrgAttachmentsList

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

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testDrgAttachmentsList = new Oci.Core.DrgAttachmentsList("testDrgAttachmentsList", new Oci.Core.DrgAttachmentsListArgs
        {
            DrgId = oci_core_drg.Test_drg.Id,
            AttachmentType = @var.Drg_attachments_list_attachment_type,
            IsCrossTenancy = @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
	})
}

Coming soon!

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"])
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,
});

Coming soon!

Create a DrgAttachmentsList Resource

new DrgAttachmentsList(name: string, args: DrgAttachmentsListArgs, opts?: CustomResourceOptions);
@overload
def DrgAttachmentsList(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       attachment_type: Optional[str] = None,
                       drg_id: Optional[str] = None,
                       is_cross_tenancy: Optional[bool] = None)
@overload
def DrgAttachmentsList(resource_name: str,
                       args: DrgAttachmentsListArgs,
                       opts: Optional[ResourceOptions] = 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.

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.

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.

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.

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.

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.

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.

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.

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 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 an 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<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.

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.

attachmentType String

The type for the network resource attached to the DRG.

drgAllAttachments List<DrgAttachmentsListDrgAllAttachmentArgs>

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.

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 boolean

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

attachment_type str

The type for the network resource attached to the DRG.

drg_all_attachments 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.

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.

Supporting Types

DrgAttachmentsListDrgAllAttachment

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.

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.