Oracle Cloud Infrastructure

v0.5.0 published on Monday, Sep 12, 2022 by Pulumi

CatalogAssociation

This resource provides the Service Catalog Association resource in Oracle Cloud Infrastructure Service Catalog service.

Creates an association between service catalog and a resource.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testServiceCatalogAssociation = new Oci.ServiceCatalog.CatalogAssociation("testServiceCatalogAssociation", new()
    {
        EntityId = oci_service_catalog_entity.Test_entity.Id,
        ServiceCatalogId = oci_service_catalog_service_catalog.Test_service_catalog.Id,
        EntityType = @var.Service_catalog_association_entity_type,
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/ServiceCatalog"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ServiceCatalog.NewCatalogAssociation(ctx, "testServiceCatalogAssociation", &ServiceCatalog.CatalogAssociationArgs{
			EntityId:         pulumi.Any(oci_service_catalog_entity.Test_entity.Id),
			ServiceCatalogId: pulumi.Any(oci_service_catalog_service_catalog.Test_service_catalog.Id),
			EntityType:       pulumi.Any(_var.Service_catalog_association_entity_type),
		})
		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.ServiceCatalog.CatalogAssociation;
import com.pulumi.oci.ServiceCatalog.CatalogAssociationArgs;
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 testServiceCatalogAssociation = new CatalogAssociation("testServiceCatalogAssociation", CatalogAssociationArgs.builder()        
            .entityId(oci_service_catalog_entity.test_entity().id())
            .serviceCatalogId(oci_service_catalog_service_catalog.test_service_catalog().id())
            .entityType(var_.service_catalog_association_entity_type())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_service_catalog_association = oci.service_catalog.CatalogAssociation("testServiceCatalogAssociation",
    entity_id=oci_service_catalog_entity["test_entity"]["id"],
    service_catalog_id=oci_service_catalog_service_catalog["test_service_catalog"]["id"],
    entity_type=var["service_catalog_association_entity_type"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testServiceCatalogAssociation = new oci.servicecatalog.CatalogAssociation("testServiceCatalogAssociation", {
    entityId: oci_service_catalog_entity.test_entity.id,
    serviceCatalogId: oci_service_catalog_service_catalog.test_service_catalog.id,
    entityType: _var.service_catalog_association_entity_type,
});
resources:
  testServiceCatalogAssociation:
    type: oci:ServiceCatalog:CatalogAssociation
    properties:
      #Required
      entityId: ${oci_service_catalog_entity.test_entity.id}
      serviceCatalogId: ${oci_service_catalog_service_catalog.test_service_catalog.id}
      #Optional
      entityType: ${var.service_catalog_association_entity_type}

Create CatalogAssociation Resource

new CatalogAssociation(name: string, args: CatalogAssociationArgs, opts?: CustomResourceOptions);
@overload
def CatalogAssociation(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       entity_id: Optional[str] = None,
                       entity_type: Optional[str] = None,
                       service_catalog_id: Optional[str] = None)
@overload
def CatalogAssociation(resource_name: str,
                       args: CatalogAssociationArgs,
                       opts: Optional[ResourceOptions] = None)
func NewCatalogAssociation(ctx *Context, name string, args CatalogAssociationArgs, opts ...ResourceOption) (*CatalogAssociation, error)
public CatalogAssociation(string name, CatalogAssociationArgs args, CustomResourceOptions? opts = null)
public CatalogAssociation(String name, CatalogAssociationArgs args)
public CatalogAssociation(String name, CatalogAssociationArgs args, CustomResourceOptions options)
type: oci:ServiceCatalog:CatalogAssociation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args CatalogAssociationArgs
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 CatalogAssociationArgs
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 CatalogAssociationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args CatalogAssociationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args CatalogAssociationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

EntityId string

Identifier of the entity being associated with service catalog.

ServiceCatalogId string

Identifier of the service catalog.

EntityType string

The type of the entity that is associated with the service catalog.

EntityId string

Identifier of the entity being associated with service catalog.

ServiceCatalogId string

Identifier of the service catalog.

EntityType string

The type of the entity that is associated with the service catalog.

entityId String

Identifier of the entity being associated with service catalog.

serviceCatalogId String

Identifier of the service catalog.

entityType String

The type of the entity that is associated with the service catalog.

entityId string

Identifier of the entity being associated with service catalog.

serviceCatalogId string

Identifier of the service catalog.

entityType string

The type of the entity that is associated with the service catalog.

entity_id str

Identifier of the entity being associated with service catalog.

service_catalog_id str

Identifier of the service catalog.

entity_type str

The type of the entity that is associated with the service catalog.

entityId String

Identifier of the entity being associated with service catalog.

serviceCatalogId String

Identifier of the service catalog.

entityType String

The type of the entity that is associated with the service catalog.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

TimeCreated string

Timestamp of when the resource was associated with service catalog.

Id string

The provider-assigned unique ID for this managed resource.

TimeCreated string

Timestamp of when the resource was associated with service catalog.

id String

The provider-assigned unique ID for this managed resource.

timeCreated String

Timestamp of when the resource was associated with service catalog.

id string

The provider-assigned unique ID for this managed resource.

timeCreated string

Timestamp of when the resource was associated with service catalog.

id str

The provider-assigned unique ID for this managed resource.

time_created str

Timestamp of when the resource was associated with service catalog.

id String

The provider-assigned unique ID for this managed resource.

timeCreated String

Timestamp of when the resource was associated with service catalog.

Look up Existing CatalogAssociation Resource

Get an existing CatalogAssociation 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?: CatalogAssociationState, opts?: CustomResourceOptions): CatalogAssociation
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        entity_id: Optional[str] = None,
        entity_type: Optional[str] = None,
        service_catalog_id: Optional[str] = None,
        time_created: Optional[str] = None) -> CatalogAssociation
func GetCatalogAssociation(ctx *Context, name string, id IDInput, state *CatalogAssociationState, opts ...ResourceOption) (*CatalogAssociation, error)
public static CatalogAssociation Get(string name, Input<string> id, CatalogAssociationState? state, CustomResourceOptions? opts = null)
public static CatalogAssociation get(String name, Output<String> id, CatalogAssociationState 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:
EntityId string

Identifier of the entity being associated with service catalog.

EntityType string

The type of the entity that is associated with the service catalog.

ServiceCatalogId string

Identifier of the service catalog.

TimeCreated string

Timestamp of when the resource was associated with service catalog.

EntityId string

Identifier of the entity being associated with service catalog.

EntityType string

The type of the entity that is associated with the service catalog.

ServiceCatalogId string

Identifier of the service catalog.

TimeCreated string

Timestamp of when the resource was associated with service catalog.

entityId String

Identifier of the entity being associated with service catalog.

entityType String

The type of the entity that is associated with the service catalog.

serviceCatalogId String

Identifier of the service catalog.

timeCreated String

Timestamp of when the resource was associated with service catalog.

entityId string

Identifier of the entity being associated with service catalog.

entityType string

The type of the entity that is associated with the service catalog.

serviceCatalogId string

Identifier of the service catalog.

timeCreated string

Timestamp of when the resource was associated with service catalog.

entity_id str

Identifier of the entity being associated with service catalog.

entity_type str

The type of the entity that is associated with the service catalog.

service_catalog_id str

Identifier of the service catalog.

time_created str

Timestamp of when the resource was associated with service catalog.

entityId String

Identifier of the entity being associated with service catalog.

entityType String

The type of the entity that is associated with the service catalog.

serviceCatalogId String

Identifier of the service catalog.

timeCreated String

Timestamp of when the resource was associated with service catalog.

Import

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

 $ pulumi import oci:ServiceCatalog/catalogAssociation:CatalogAssociation test_service_catalog_association "id"

Package Details

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

This Pulumi package is based on the oci Terraform Provider.