oci.ServiceCatalog.CatalogAssociation
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testServiceCatalogAssociation = new oci.servicecatalog.CatalogAssociation("test_service_catalog_association", {
entityId: testEntity.id,
serviceCatalogId: testServiceCatalog.id,
entityType: serviceCatalogAssociationEntityType,
});
import pulumi
import pulumi_oci as oci
test_service_catalog_association = oci.service_catalog.CatalogAssociation("test_service_catalog_association",
entity_id=test_entity["id"],
service_catalog_id=test_service_catalog["id"],
entity_type=service_catalog_association_entity_type)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/ServiceCatalog"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ServiceCatalog.NewCatalogAssociation(ctx, "test_service_catalog_association", &ServiceCatalog.CatalogAssociationArgs{
EntityId: pulumi.Any(testEntity.Id),
ServiceCatalogId: pulumi.Any(testServiceCatalog.Id),
EntityType: pulumi.Any(serviceCatalogAssociationEntityType),
})
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 testServiceCatalogAssociation = new Oci.ServiceCatalog.CatalogAssociation("test_service_catalog_association", new()
{
EntityId = testEntity.Id,
ServiceCatalogId = testServiceCatalog.Id,
EntityType = serviceCatalogAssociationEntityType,
});
});
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(testEntity.id())
.serviceCatalogId(testServiceCatalog.id())
.entityType(serviceCatalogAssociationEntityType)
.build());
}
}
resources:
testServiceCatalogAssociation:
type: oci:ServiceCatalog:CatalogAssociation
name: test_service_catalog_association
properties:
entityId: ${testEntity.id}
serviceCatalogId: ${testServiceCatalog.id}
entityType: ${serviceCatalogAssociationEntityType}
Create CatalogAssociation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CatalogAssociation(name: string, args: CatalogAssociationArgs, opts?: CustomResourceOptions);
@overload
def CatalogAssociation(resource_name: str,
args: CatalogAssociationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CatalogAssociation(resource_name: str,
opts: Optional[ResourceOptions] = None,
entity_id: Optional[str] = None,
service_catalog_id: Optional[str] = None,
entity_type: Optional[str] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var catalogAssociationResource = new Oci.ServiceCatalog.CatalogAssociation("catalogAssociationResource", new()
{
EntityId = "string",
ServiceCatalogId = "string",
EntityType = "string",
});
example, err := ServiceCatalog.NewCatalogAssociation(ctx, "catalogAssociationResource", &ServiceCatalog.CatalogAssociationArgs{
EntityId: pulumi.String("string"),
ServiceCatalogId: pulumi.String("string"),
EntityType: pulumi.String("string"),
})
var catalogAssociationResource = new CatalogAssociation("catalogAssociationResource", CatalogAssociationArgs.builder()
.entityId("string")
.serviceCatalogId("string")
.entityType("string")
.build());
catalog_association_resource = oci.service_catalog.CatalogAssociation("catalogAssociationResource",
entity_id="string",
service_catalog_id="string",
entity_type="string")
const catalogAssociationResource = new oci.servicecatalog.CatalogAssociation("catalogAssociationResource", {
entityId: "string",
serviceCatalogId: "string",
entityType: "string",
});
type: oci:ServiceCatalog:CatalogAssociation
properties:
entityId: string
entityType: string
serviceCatalogId: string
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:
- Entity
Id string - Identifier of the entity being associated with service catalog.
- Service
Catalog stringId Identifier of the service catalog.
** 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
- Entity
Type string - The type of the entity that is associated with the service catalog.
- Entity
Id string - Identifier of the entity being associated with service catalog.
- Service
Catalog stringId Identifier of the service catalog.
** 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
- Entity
Type string - The type of the entity that is associated with the service catalog.
- entity
Id String - Identifier of the entity being associated with service catalog.
- service
Catalog StringId Identifier of the service catalog.
** 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
- entity
Type String - The type of the entity that is associated with the service catalog.
- entity
Id string - Identifier of the entity being associated with service catalog.
- service
Catalog stringId Identifier of the service catalog.
** 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
- entity
Type 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_ strid Identifier of the service catalog.
** 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
- entity_
type str - The type of the entity that is associated with the service catalog.
- entity
Id String - Identifier of the entity being associated with service catalog.
- service
Catalog StringId Identifier of the service catalog.
** 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
- entity
Type 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.
- Time
Created string - Timestamp of when the resource was associated with service catalog.
- Id string
- The provider-assigned unique ID for this managed resource.
- Time
Created string - Timestamp of when the resource was associated with service catalog.
- id String
- The provider-assigned unique ID for this managed resource.
- time
Created String - Timestamp of when the resource was associated with service catalog.
- id string
- The provider-assigned unique ID for this managed resource.
- time
Created 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.
- time
Created 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.
- Entity
Id string - Identifier of the entity being associated with service catalog.
- Entity
Type string - The type of the entity that is associated with the service catalog.
- Service
Catalog stringId Identifier of the service catalog.
** 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
- Time
Created string - Timestamp of when the resource was associated with service catalog.
- Entity
Id string - Identifier of the entity being associated with service catalog.
- Entity
Type string - The type of the entity that is associated with the service catalog.
- Service
Catalog stringId Identifier of the service catalog.
** 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
- Time
Created string - Timestamp of when the resource was associated with service catalog.
- entity
Id String - Identifier of the entity being associated with service catalog.
- entity
Type String - The type of the entity that is associated with the service catalog.
- service
Catalog StringId Identifier of the service catalog.
** 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
- time
Created String - Timestamp of when the resource was associated with service catalog.
- entity
Id string - Identifier of the entity being associated with service catalog.
- entity
Type string - The type of the entity that is associated with the service catalog.
- service
Catalog stringId Identifier of the service catalog.
** 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
- time
Created 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_ strid Identifier of the service catalog.
** 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
- time_
created str - Timestamp of when the resource was associated with service catalog.
- entity
Id String - Identifier of the entity being associated with service catalog.
- entity
Type String - The type of the entity that is associated with the service catalog.
- service
Catalog StringId Identifier of the service catalog.
** 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
- time
Created 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"
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.