oci.FusionApps.FusionEnvironmentServiceAttachment
Explore with Pulumi AI
This resource provides the Fusion Environment Service Attachment resource in Oracle Cloud Infrastructure Fusion Apps service.
Attaches a service instance to the fusion pod.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testFusionEnvironmentServiceAttachment = new oci.fusionapps.FusionEnvironmentServiceAttachment("test_fusion_environment_service_attachment", {
fusionEnvironmentId: testFusionEnvironment.id,
serviceInstanceId: testInstance.id,
serviceInstanceType: fusionEnvironmentServiceAttachmentServiceInstanceType,
});
import pulumi
import pulumi_oci as oci
test_fusion_environment_service_attachment = oci.fusion_apps.FusionEnvironmentServiceAttachment("test_fusion_environment_service_attachment",
fusion_environment_id=test_fusion_environment["id"],
service_instance_id=test_instance["id"],
service_instance_type=fusion_environment_service_attachment_service_instance_type)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/FusionApps"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := FusionApps.NewFusionEnvironmentServiceAttachment(ctx, "test_fusion_environment_service_attachment", &FusionApps.FusionEnvironmentServiceAttachmentArgs{
FusionEnvironmentId: pulumi.Any(testFusionEnvironment.Id),
ServiceInstanceId: pulumi.Any(testInstance.Id),
ServiceInstanceType: pulumi.Any(fusionEnvironmentServiceAttachmentServiceInstanceType),
})
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 testFusionEnvironmentServiceAttachment = new Oci.FusionApps.FusionEnvironmentServiceAttachment("test_fusion_environment_service_attachment", new()
{
FusionEnvironmentId = testFusionEnvironment.Id,
ServiceInstanceId = testInstance.Id,
ServiceInstanceType = fusionEnvironmentServiceAttachmentServiceInstanceType,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.FusionApps.FusionEnvironmentServiceAttachment;
import com.pulumi.oci.FusionApps.FusionEnvironmentServiceAttachmentArgs;
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 testFusionEnvironmentServiceAttachment = new FusionEnvironmentServiceAttachment("testFusionEnvironmentServiceAttachment", FusionEnvironmentServiceAttachmentArgs.builder()
.fusionEnvironmentId(testFusionEnvironment.id())
.serviceInstanceId(testInstance.id())
.serviceInstanceType(fusionEnvironmentServiceAttachmentServiceInstanceType)
.build());
}
}
resources:
testFusionEnvironmentServiceAttachment:
type: oci:FusionApps:FusionEnvironmentServiceAttachment
name: test_fusion_environment_service_attachment
properties:
fusionEnvironmentId: ${testFusionEnvironment.id}
serviceInstanceId: ${testInstance.id}
serviceInstanceType: ${fusionEnvironmentServiceAttachmentServiceInstanceType}
Create FusionEnvironmentServiceAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FusionEnvironmentServiceAttachment(name: string, args: FusionEnvironmentServiceAttachmentArgs, opts?: CustomResourceOptions);
@overload
def FusionEnvironmentServiceAttachment(resource_name: str,
args: FusionEnvironmentServiceAttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def FusionEnvironmentServiceAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
fusion_environment_id: Optional[str] = None,
service_instance_id: Optional[str] = None,
service_instance_type: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None)
func NewFusionEnvironmentServiceAttachment(ctx *Context, name string, args FusionEnvironmentServiceAttachmentArgs, opts ...ResourceOption) (*FusionEnvironmentServiceAttachment, error)
public FusionEnvironmentServiceAttachment(string name, FusionEnvironmentServiceAttachmentArgs args, CustomResourceOptions? opts = null)
public FusionEnvironmentServiceAttachment(String name, FusionEnvironmentServiceAttachmentArgs args)
public FusionEnvironmentServiceAttachment(String name, FusionEnvironmentServiceAttachmentArgs args, CustomResourceOptions options)
type: oci:FusionApps:FusionEnvironmentServiceAttachment
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 FusionEnvironmentServiceAttachmentArgs
- 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 FusionEnvironmentServiceAttachmentArgs
- 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 FusionEnvironmentServiceAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FusionEnvironmentServiceAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FusionEnvironmentServiceAttachmentArgs
- 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 fusionEnvironmentServiceAttachmentResource = new Oci.FusionApps.FusionEnvironmentServiceAttachment("fusionEnvironmentServiceAttachmentResource", new()
{
FusionEnvironmentId = "string",
ServiceInstanceId = "string",
ServiceInstanceType = "string",
DefinedTags =
{
{ "string", "string" },
},
});
example, err := FusionApps.NewFusionEnvironmentServiceAttachment(ctx, "fusionEnvironmentServiceAttachmentResource", &FusionApps.FusionEnvironmentServiceAttachmentArgs{
FusionEnvironmentId: pulumi.String("string"),
ServiceInstanceId: pulumi.String("string"),
ServiceInstanceType: pulumi.String("string"),
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var fusionEnvironmentServiceAttachmentResource = new FusionEnvironmentServiceAttachment("fusionEnvironmentServiceAttachmentResource", FusionEnvironmentServiceAttachmentArgs.builder()
.fusionEnvironmentId("string")
.serviceInstanceId("string")
.serviceInstanceType("string")
.definedTags(Map.of("string", "string"))
.build());
fusion_environment_service_attachment_resource = oci.fusion_apps.FusionEnvironmentServiceAttachment("fusionEnvironmentServiceAttachmentResource",
fusion_environment_id="string",
service_instance_id="string",
service_instance_type="string",
defined_tags={
"string": "string",
})
const fusionEnvironmentServiceAttachmentResource = new oci.fusionapps.FusionEnvironmentServiceAttachment("fusionEnvironmentServiceAttachmentResource", {
fusionEnvironmentId: "string",
serviceInstanceId: "string",
serviceInstanceType: "string",
definedTags: {
string: "string",
},
});
type: oci:FusionApps:FusionEnvironmentServiceAttachment
properties:
definedTags:
string: string
fusionEnvironmentId: string
serviceInstanceId: string
serviceInstanceType: string
FusionEnvironmentServiceAttachment 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 FusionEnvironmentServiceAttachment resource accepts the following input properties:
- Fusion
Environment stringId - unique FusionEnvironment identifier
- Service
Instance stringId - The service instance OCID of the instance being attached
- Service
Instance stringType Type of the ServiceInstance being attached.
** 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
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Fusion
Environment stringId - unique FusionEnvironment identifier
- Service
Instance stringId - The service instance OCID of the instance being attached
- Service
Instance stringType Type of the ServiceInstance being attached.
** 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
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- fusion
Environment StringId - unique FusionEnvironment identifier
- service
Instance StringId - The service instance OCID of the instance being attached
- service
Instance StringType Type of the ServiceInstance being attached.
** 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
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- fusion
Environment stringId - unique FusionEnvironment identifier
- service
Instance stringId - The service instance OCID of the instance being attached
- service
Instance stringType Type of the ServiceInstance being attached.
** 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
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- fusion_
environment_ strid - unique FusionEnvironment identifier
- service_
instance_ strid - The service instance OCID of the instance being attached
- service_
instance_ strtype Type of the ServiceInstance being attached.
** 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
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- fusion
Environment StringId - unique FusionEnvironment identifier
- service
Instance StringId - The service instance OCID of the instance being attached
- service
Instance StringType Type of the ServiceInstance being attached.
** 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
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
Outputs
All input properties are implicitly available as output properties. Additionally, the FusionEnvironmentServiceAttachment resource produces the following output properties:
- Compartment
Id string - Compartment Identifier
- Display
Name string - Service Attachment Display name, can be renamed
- Dictionary<string, string>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Sku boolBased - Whether this service is provisioned due to the customer being subscribed to a specific SKU
- Service
Url string - Public URL
- State string
- The current state of the ServiceInstance.
- Time
Created string - The time the the ServiceInstance was created. An RFC3339 formatted datetime string
- Time
Updated string - The time the ServiceInstance was updated. An RFC3339 formatted datetime string
- Compartment
Id string - Compartment Identifier
- Display
Name string - Service Attachment Display name, can be renamed
- map[string]string
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Sku boolBased - Whether this service is provisioned due to the customer being subscribed to a specific SKU
- Service
Url string - Public URL
- State string
- The current state of the ServiceInstance.
- Time
Created string - The time the the ServiceInstance was created. An RFC3339 formatted datetime string
- Time
Updated string - The time the ServiceInstance was updated. An RFC3339 formatted datetime string
- compartment
Id String - Compartment Identifier
- display
Name String - Service Attachment Display name, can be renamed
- Map<String,String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id String
- The provider-assigned unique ID for this managed resource.
- is
Sku BooleanBased - Whether this service is provisioned due to the customer being subscribed to a specific SKU
- service
Url String - Public URL
- state String
- The current state of the ServiceInstance.
- time
Created String - The time the the ServiceInstance was created. An RFC3339 formatted datetime string
- time
Updated String - The time the ServiceInstance was updated. An RFC3339 formatted datetime string
- compartment
Id string - Compartment Identifier
- display
Name string - Service Attachment Display name, can be renamed
- {[key: string]: string}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id string
- The provider-assigned unique ID for this managed resource.
- is
Sku booleanBased - Whether this service is provisioned due to the customer being subscribed to a specific SKU
- service
Url string - Public URL
- state string
- The current state of the ServiceInstance.
- time
Created string - The time the the ServiceInstance was created. An RFC3339 formatted datetime string
- time
Updated string - The time the ServiceInstance was updated. An RFC3339 formatted datetime string
- compartment_
id str - Compartment Identifier
- display_
name str - Service Attachment Display name, can be renamed
- Mapping[str, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id str
- The provider-assigned unique ID for this managed resource.
- is_
sku_ boolbased - Whether this service is provisioned due to the customer being subscribed to a specific SKU
- service_
url str - Public URL
- state str
- The current state of the ServiceInstance.
- time_
created str - The time the the ServiceInstance was created. An RFC3339 formatted datetime string
- time_
updated str - The time the ServiceInstance was updated. An RFC3339 formatted datetime string
- compartment
Id String - Compartment Identifier
- display
Name String - Service Attachment Display name, can be renamed
- Map<String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id String
- The provider-assigned unique ID for this managed resource.
- is
Sku BooleanBased - Whether this service is provisioned due to the customer being subscribed to a specific SKU
- service
Url String - Public URL
- state String
- The current state of the ServiceInstance.
- time
Created String - The time the the ServiceInstance was created. An RFC3339 formatted datetime string
- time
Updated String - The time the ServiceInstance was updated. An RFC3339 formatted datetime string
Look up Existing FusionEnvironmentServiceAttachment Resource
Get an existing FusionEnvironmentServiceAttachment 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?: FusionEnvironmentServiceAttachmentState, opts?: CustomResourceOptions): FusionEnvironmentServiceAttachment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
fusion_environment_id: Optional[str] = None,
is_sku_based: Optional[bool] = None,
service_instance_id: Optional[str] = None,
service_instance_type: Optional[str] = None,
service_url: Optional[str] = None,
state: Optional[str] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None) -> FusionEnvironmentServiceAttachment
func GetFusionEnvironmentServiceAttachment(ctx *Context, name string, id IDInput, state *FusionEnvironmentServiceAttachmentState, opts ...ResourceOption) (*FusionEnvironmentServiceAttachment, error)
public static FusionEnvironmentServiceAttachment Get(string name, Input<string> id, FusionEnvironmentServiceAttachmentState? state, CustomResourceOptions? opts = null)
public static FusionEnvironmentServiceAttachment get(String name, Output<String> id, FusionEnvironmentServiceAttachmentState 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.
- Compartment
Id string - Compartment Identifier
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string - Service Attachment Display name, can be renamed
- Dictionary<string, string>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Fusion
Environment stringId - unique FusionEnvironment identifier
- Is
Sku boolBased - Whether this service is provisioned due to the customer being subscribed to a specific SKU
- Service
Instance stringId - The service instance OCID of the instance being attached
- Service
Instance stringType Type of the ServiceInstance being attached.
** 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
- Service
Url string - Public URL
- State string
- The current state of the ServiceInstance.
- Time
Created string - The time the the ServiceInstance was created. An RFC3339 formatted datetime string
- Time
Updated string - The time the ServiceInstance was updated. An RFC3339 formatted datetime string
- Compartment
Id string - Compartment Identifier
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string - Service Attachment Display name, can be renamed
- map[string]string
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Fusion
Environment stringId - unique FusionEnvironment identifier
- Is
Sku boolBased - Whether this service is provisioned due to the customer being subscribed to a specific SKU
- Service
Instance stringId - The service instance OCID of the instance being attached
- Service
Instance stringType Type of the ServiceInstance being attached.
** 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
- Service
Url string - Public URL
- State string
- The current state of the ServiceInstance.
- Time
Created string - The time the the ServiceInstance was created. An RFC3339 formatted datetime string
- Time
Updated string - The time the ServiceInstance was updated. An RFC3339 formatted datetime string
- compartment
Id String - Compartment Identifier
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String - Service Attachment Display name, can be renamed
- Map<String,String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- fusion
Environment StringId - unique FusionEnvironment identifier
- is
Sku BooleanBased - Whether this service is provisioned due to the customer being subscribed to a specific SKU
- service
Instance StringId - The service instance OCID of the instance being attached
- service
Instance StringType Type of the ServiceInstance being attached.
** 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
- service
Url String - Public URL
- state String
- The current state of the ServiceInstance.
- time
Created String - The time the the ServiceInstance was created. An RFC3339 formatted datetime string
- time
Updated String - The time the ServiceInstance was updated. An RFC3339 formatted datetime string
- compartment
Id string - Compartment Identifier
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name string - Service Attachment Display name, can be renamed
- {[key: string]: string}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- fusion
Environment stringId - unique FusionEnvironment identifier
- is
Sku booleanBased - Whether this service is provisioned due to the customer being subscribed to a specific SKU
- service
Instance stringId - The service instance OCID of the instance being attached
- service
Instance stringType Type of the ServiceInstance being attached.
** 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
- service
Url string - Public URL
- state string
- The current state of the ServiceInstance.
- time
Created string - The time the the ServiceInstance was created. An RFC3339 formatted datetime string
- time
Updated string - The time the ServiceInstance was updated. An RFC3339 formatted datetime string
- compartment_
id str - Compartment Identifier
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display_
name str - Service Attachment Display name, can be renamed
- Mapping[str, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- fusion_
environment_ strid - unique FusionEnvironment identifier
- is_
sku_ boolbased - Whether this service is provisioned due to the customer being subscribed to a specific SKU
- service_
instance_ strid - The service instance OCID of the instance being attached
- service_
instance_ strtype Type of the ServiceInstance being attached.
** 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
- service_
url str - Public URL
- state str
- The current state of the ServiceInstance.
- time_
created str - The time the the ServiceInstance was created. An RFC3339 formatted datetime string
- time_
updated str - The time the ServiceInstance was updated. An RFC3339 formatted datetime string
- compartment
Id String - Compartment Identifier
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String - Service Attachment Display name, can be renamed
- Map<String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- fusion
Environment StringId - unique FusionEnvironment identifier
- is
Sku BooleanBased - Whether this service is provisioned due to the customer being subscribed to a specific SKU
- service
Instance StringId - The service instance OCID of the instance being attached
- service
Instance StringType Type of the ServiceInstance being attached.
** 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
- service
Url String - Public URL
- state String
- The current state of the ServiceInstance.
- time
Created String - The time the the ServiceInstance was created. An RFC3339 formatted datetime string
- time
Updated String - The time the ServiceInstance was updated. An RFC3339 formatted datetime string
Import
FusionEnvironmentServiceAttachments can be imported using the id
, e.g.
$ pulumi import oci:FusionApps/fusionEnvironmentServiceAttachment:FusionEnvironmentServiceAttachment test_fusion_environment_service_attachment "fusionEnvironments/{fusionEnvironmentId}/serviceAttachments/{serviceAttachmentId}"
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.