1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Oda
  5. OdaPrivateEndpointAttachment
Oracle Cloud Infrastructure v1.24.0 published on Thursday, Feb 22, 2024 by Pulumi

oci.Oda.OdaPrivateEndpointAttachment

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.24.0 published on Thursday, Feb 22, 2024 by Pulumi

    This resource provides the Oda Private Endpoint Attachment resource in Oracle Cloud Infrastructure Digital Assistant service.

    Starts an asynchronous job to create an ODA Private Endpoint Attachment.

    To monitor the status of the job, take the opc-work-request-id response header value and use it to call GET /workRequests/{workRequestID}.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testOdaPrivateEndpointAttachment = new Oci.Oda.OdaPrivateEndpointAttachment("testOdaPrivateEndpointAttachment", new()
        {
            OdaInstanceId = oci_oda_oda_instance.Test_oda_instance.Id,
            OdaPrivateEndpointId = oci_oda_oda_private_endpoint.Test_oda_private_endpoint.Id,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Oda"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Oda.NewOdaPrivateEndpointAttachment(ctx, "testOdaPrivateEndpointAttachment", &Oda.OdaPrivateEndpointAttachmentArgs{
    			OdaInstanceId:        pulumi.Any(oci_oda_oda_instance.Test_oda_instance.Id),
    			OdaPrivateEndpointId: pulumi.Any(oci_oda_oda_private_endpoint.Test_oda_private_endpoint.Id),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Oda.OdaPrivateEndpointAttachment;
    import com.pulumi.oci.Oda.OdaPrivateEndpointAttachmentArgs;
    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 testOdaPrivateEndpointAttachment = new OdaPrivateEndpointAttachment("testOdaPrivateEndpointAttachment", OdaPrivateEndpointAttachmentArgs.builder()        
                .odaInstanceId(oci_oda_oda_instance.test_oda_instance().id())
                .odaPrivateEndpointId(oci_oda_oda_private_endpoint.test_oda_private_endpoint().id())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_oci as oci
    
    test_oda_private_endpoint_attachment = oci.oda.OdaPrivateEndpointAttachment("testOdaPrivateEndpointAttachment",
        oda_instance_id=oci_oda_oda_instance["test_oda_instance"]["id"],
        oda_private_endpoint_id=oci_oda_oda_private_endpoint["test_oda_private_endpoint"]["id"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testOdaPrivateEndpointAttachment = new oci.oda.OdaPrivateEndpointAttachment("testOdaPrivateEndpointAttachment", {
        odaInstanceId: oci_oda_oda_instance.test_oda_instance.id,
        odaPrivateEndpointId: oci_oda_oda_private_endpoint.test_oda_private_endpoint.id,
    });
    
    resources:
      testOdaPrivateEndpointAttachment:
        type: oci:Oda:OdaPrivateEndpointAttachment
        properties:
          #Required
          odaInstanceId: ${oci_oda_oda_instance.test_oda_instance.id}
          odaPrivateEndpointId: ${oci_oda_oda_private_endpoint.test_oda_private_endpoint.id}
    

    Create OdaPrivateEndpointAttachment Resource

    new OdaPrivateEndpointAttachment(name: string, args: OdaPrivateEndpointAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def OdaPrivateEndpointAttachment(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     oda_instance_id: Optional[str] = None,
                                     oda_private_endpoint_id: Optional[str] = None)
    @overload
    def OdaPrivateEndpointAttachment(resource_name: str,
                                     args: OdaPrivateEndpointAttachmentArgs,
                                     opts: Optional[ResourceOptions] = None)
    func NewOdaPrivateEndpointAttachment(ctx *Context, name string, args OdaPrivateEndpointAttachmentArgs, opts ...ResourceOption) (*OdaPrivateEndpointAttachment, error)
    public OdaPrivateEndpointAttachment(string name, OdaPrivateEndpointAttachmentArgs args, CustomResourceOptions? opts = null)
    public OdaPrivateEndpointAttachment(String name, OdaPrivateEndpointAttachmentArgs args)
    public OdaPrivateEndpointAttachment(String name, OdaPrivateEndpointAttachmentArgs args, CustomResourceOptions options)
    
    type: oci:Oda:OdaPrivateEndpointAttachment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args OdaPrivateEndpointAttachmentArgs
    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 OdaPrivateEndpointAttachmentArgs
    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 OdaPrivateEndpointAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OdaPrivateEndpointAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OdaPrivateEndpointAttachmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    OdaInstanceId string
    The OCID of the attached ODA Instance.
    OdaPrivateEndpointId string

    The OCID of the ODA Private Endpoint.

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

    OdaInstanceId string
    The OCID of the attached ODA Instance.
    OdaPrivateEndpointId string

    The OCID of the ODA Private Endpoint.

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

    odaInstanceId String
    The OCID of the attached ODA Instance.
    odaPrivateEndpointId String

    The OCID of the ODA Private Endpoint.

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

    odaInstanceId string
    The OCID of the attached ODA Instance.
    odaPrivateEndpointId string

    The OCID of the ODA Private Endpoint.

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

    oda_instance_id str
    The OCID of the attached ODA Instance.
    oda_private_endpoint_id str

    The OCID of the ODA Private Endpoint.

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

    odaInstanceId String
    The OCID of the attached ODA Instance.
    odaPrivateEndpointId String

    The OCID of the ODA Private Endpoint.

    ** 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 OdaPrivateEndpointAttachment resource produces the following output properties:

    CompartmentId string
    The OCID of the compartment that the ODA private endpoint attachment belongs to.
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The current state of the ODA Private Endpoint attachment.
    TimeCreated string
    When the resource was created. A date-time string as described in RFC 3339, section 14.29.
    TimeUpdated string
    When the resource was last updated. A date-time string as described in RFC 3339, section 14.29.
    CompartmentId string
    The OCID of the compartment that the ODA private endpoint attachment belongs to.
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The current state of the ODA Private Endpoint attachment.
    TimeCreated string
    When the resource was created. A date-time string as described in RFC 3339, section 14.29.
    TimeUpdated string
    When the resource was last updated. A date-time string as described in RFC 3339, section 14.29.
    compartmentId String
    The OCID of the compartment that the ODA private endpoint attachment belongs to.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The current state of the ODA Private Endpoint attachment.
    timeCreated String
    When the resource was created. A date-time string as described in RFC 3339, section 14.29.
    timeUpdated String
    When the resource was last updated. A date-time string as described in RFC 3339, section 14.29.
    compartmentId string
    The OCID of the compartment that the ODA private endpoint attachment belongs to.
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    The current state of the ODA Private Endpoint attachment.
    timeCreated string
    When the resource was created. A date-time string as described in RFC 3339, section 14.29.
    timeUpdated string
    When the resource was last updated. A date-time string as described in RFC 3339, section 14.29.
    compartment_id str
    The OCID of the compartment that the ODA private endpoint attachment belongs to.
    id str
    The provider-assigned unique ID for this managed resource.
    state str
    The current state of the ODA Private Endpoint attachment.
    time_created str
    When the resource was created. A date-time string as described in RFC 3339, section 14.29.
    time_updated str
    When the resource was last updated. A date-time string as described in RFC 3339, section 14.29.
    compartmentId String
    The OCID of the compartment that the ODA private endpoint attachment belongs to.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The current state of the ODA Private Endpoint attachment.
    timeCreated String
    When the resource was created. A date-time string as described in RFC 3339, section 14.29.
    timeUpdated String
    When the resource was last updated. A date-time string as described in RFC 3339, section 14.29.

    Look up Existing OdaPrivateEndpointAttachment Resource

    Get an existing OdaPrivateEndpointAttachment 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?: OdaPrivateEndpointAttachmentState, opts?: CustomResourceOptions): OdaPrivateEndpointAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compartment_id: Optional[str] = None,
            oda_instance_id: Optional[str] = None,
            oda_private_endpoint_id: Optional[str] = None,
            state: Optional[str] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None) -> OdaPrivateEndpointAttachment
    func GetOdaPrivateEndpointAttachment(ctx *Context, name string, id IDInput, state *OdaPrivateEndpointAttachmentState, opts ...ResourceOption) (*OdaPrivateEndpointAttachment, error)
    public static OdaPrivateEndpointAttachment Get(string name, Input<string> id, OdaPrivateEndpointAttachmentState? state, CustomResourceOptions? opts = null)
    public static OdaPrivateEndpointAttachment get(String name, Output<String> id, OdaPrivateEndpointAttachmentState 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:
    CompartmentId string
    The OCID of the compartment that the ODA private endpoint attachment belongs to.
    OdaInstanceId string
    The OCID of the attached ODA Instance.
    OdaPrivateEndpointId string

    The OCID of the ODA Private Endpoint.

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

    State string
    The current state of the ODA Private Endpoint attachment.
    TimeCreated string
    When the resource was created. A date-time string as described in RFC 3339, section 14.29.
    TimeUpdated string
    When the resource was last updated. A date-time string as described in RFC 3339, section 14.29.
    CompartmentId string
    The OCID of the compartment that the ODA private endpoint attachment belongs to.
    OdaInstanceId string
    The OCID of the attached ODA Instance.
    OdaPrivateEndpointId string

    The OCID of the ODA Private Endpoint.

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

    State string
    The current state of the ODA Private Endpoint attachment.
    TimeCreated string
    When the resource was created. A date-time string as described in RFC 3339, section 14.29.
    TimeUpdated string
    When the resource was last updated. A date-time string as described in RFC 3339, section 14.29.
    compartmentId String
    The OCID of the compartment that the ODA private endpoint attachment belongs to.
    odaInstanceId String
    The OCID of the attached ODA Instance.
    odaPrivateEndpointId String

    The OCID of the ODA Private Endpoint.

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

    state String
    The current state of the ODA Private Endpoint attachment.
    timeCreated String
    When the resource was created. A date-time string as described in RFC 3339, section 14.29.
    timeUpdated String
    When the resource was last updated. A date-time string as described in RFC 3339, section 14.29.
    compartmentId string
    The OCID of the compartment that the ODA private endpoint attachment belongs to.
    odaInstanceId string
    The OCID of the attached ODA Instance.
    odaPrivateEndpointId string

    The OCID of the ODA Private Endpoint.

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

    state string
    The current state of the ODA Private Endpoint attachment.
    timeCreated string
    When the resource was created. A date-time string as described in RFC 3339, section 14.29.
    timeUpdated string
    When the resource was last updated. A date-time string as described in RFC 3339, section 14.29.
    compartment_id str
    The OCID of the compartment that the ODA private endpoint attachment belongs to.
    oda_instance_id str
    The OCID of the attached ODA Instance.
    oda_private_endpoint_id str

    The OCID of the ODA Private Endpoint.

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

    state str
    The current state of the ODA Private Endpoint attachment.
    time_created str
    When the resource was created. A date-time string as described in RFC 3339, section 14.29.
    time_updated str
    When the resource was last updated. A date-time string as described in RFC 3339, section 14.29.
    compartmentId String
    The OCID of the compartment that the ODA private endpoint attachment belongs to.
    odaInstanceId String
    The OCID of the attached ODA Instance.
    odaPrivateEndpointId String

    The OCID of the ODA Private Endpoint.

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

    state String
    The current state of the ODA Private Endpoint attachment.
    timeCreated String
    When the resource was created. A date-time string as described in RFC 3339, section 14.29.
    timeUpdated String
    When the resource was last updated. A date-time string as described in RFC 3339, section 14.29.

    Import

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

     $ pulumi import oci:Oda/odaPrivateEndpointAttachment:OdaPrivateEndpointAttachment test_oda_private_endpoint_attachment "id"
    

    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.24.0 published on Thursday, Feb 22, 2024 by Pulumi