oci.oci.ResourceAnalyticsTenancyAttachment
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testTenancyAttachment = new oci.oci.ResourceAnalyticsTenancyAttachment("test_tenancy_attachment", {
resourceAnalyticsInstanceId: testResourceAnalyticsInstance.id,
tenancyId: testTenancy.id,
description: tenancyAttachmentDescription,
});
import pulumi
import pulumi_oci as oci
test_tenancy_attachment = oci.oci.ResourceAnalyticsTenancyAttachment("test_tenancy_attachment",
resource_analytics_instance_id=test_resource_analytics_instance["id"],
tenancy_id=test_tenancy["id"],
description=tenancy_attachment_description)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/oci"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := oci.NewResourceAnalyticsTenancyAttachment(ctx, "test_tenancy_attachment", &oci.ResourceAnalyticsTenancyAttachmentArgs{
ResourceAnalyticsInstanceId: pulumi.Any(testResourceAnalyticsInstance.Id),
TenancyId: pulumi.Any(testTenancy.Id),
Description: pulumi.Any(tenancyAttachmentDescription),
})
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 testTenancyAttachment = new Oci.Oci.ResourceAnalyticsTenancyAttachment("test_tenancy_attachment", new()
{
ResourceAnalyticsInstanceId = testResourceAnalyticsInstance.Id,
TenancyId = testTenancy.Id,
Description = tenancyAttachmentDescription,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.oci.ResourceAnalyticsTenancyAttachment;
import com.pulumi.oci.oci.ResourceAnalyticsTenancyAttachmentArgs;
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 testTenancyAttachment = new ResourceAnalyticsTenancyAttachment("testTenancyAttachment", ResourceAnalyticsTenancyAttachmentArgs.builder()
.resourceAnalyticsInstanceId(testResourceAnalyticsInstance.id())
.tenancyId(testTenancy.id())
.description(tenancyAttachmentDescription)
.build());
}
}
resources:
testTenancyAttachment:
type: oci:oci:ResourceAnalyticsTenancyAttachment
name: test_tenancy_attachment
properties:
resourceAnalyticsInstanceId: ${testResourceAnalyticsInstance.id}
tenancyId: ${testTenancy.id}
description: ${tenancyAttachmentDescription}
Create ResourceAnalyticsTenancyAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ResourceAnalyticsTenancyAttachment(name: string, args: ResourceAnalyticsTenancyAttachmentArgs, opts?: CustomResourceOptions);@overload
def ResourceAnalyticsTenancyAttachment(resource_name: str,
args: ResourceAnalyticsTenancyAttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ResourceAnalyticsTenancyAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_analytics_instance_id: Optional[str] = None,
tenancy_id: Optional[str] = None,
description: Optional[str] = None)func NewResourceAnalyticsTenancyAttachment(ctx *Context, name string, args ResourceAnalyticsTenancyAttachmentArgs, opts ...ResourceOption) (*ResourceAnalyticsTenancyAttachment, error)public ResourceAnalyticsTenancyAttachment(string name, ResourceAnalyticsTenancyAttachmentArgs args, CustomResourceOptions? opts = null)
public ResourceAnalyticsTenancyAttachment(String name, ResourceAnalyticsTenancyAttachmentArgs args)
public ResourceAnalyticsTenancyAttachment(String name, ResourceAnalyticsTenancyAttachmentArgs args, CustomResourceOptions options)
type: oci:oci:ResourceAnalyticsTenancyAttachment
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 ResourceAnalyticsTenancyAttachmentArgs
- 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 ResourceAnalyticsTenancyAttachmentArgs
- 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 ResourceAnalyticsTenancyAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ResourceAnalyticsTenancyAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ResourceAnalyticsTenancyAttachmentArgs
- 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 resourceAnalyticsTenancyAttachmentResource = new Oci.Oci.ResourceAnalyticsTenancyAttachment("resourceAnalyticsTenancyAttachmentResource", new()
{
ResourceAnalyticsInstanceId = "string",
TenancyId = "string",
Description = "string",
});
example, err := oci.NewResourceAnalyticsTenancyAttachment(ctx, "resourceAnalyticsTenancyAttachmentResource", &oci.ResourceAnalyticsTenancyAttachmentArgs{
ResourceAnalyticsInstanceId: pulumi.String("string"),
TenancyId: pulumi.String("string"),
Description: pulumi.String("string"),
})
var resourceAnalyticsTenancyAttachmentResource = new ResourceAnalyticsTenancyAttachment("resourceAnalyticsTenancyAttachmentResource", ResourceAnalyticsTenancyAttachmentArgs.builder()
.resourceAnalyticsInstanceId("string")
.tenancyId("string")
.description("string")
.build());
resource_analytics_tenancy_attachment_resource = oci.oci.ResourceAnalyticsTenancyAttachment("resourceAnalyticsTenancyAttachmentResource",
resource_analytics_instance_id="string",
tenancy_id="string",
description="string")
const resourceAnalyticsTenancyAttachmentResource = new oci.oci.ResourceAnalyticsTenancyAttachment("resourceAnalyticsTenancyAttachmentResource", {
resourceAnalyticsInstanceId: "string",
tenancyId: "string",
description: "string",
});
type: oci:oci:ResourceAnalyticsTenancyAttachment
properties:
description: string
resourceAnalyticsInstanceId: string
tenancyId: string
ResourceAnalyticsTenancyAttachment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ResourceAnalyticsTenancyAttachment resource accepts the following input properties:
- Resource
Analytics stringInstance Id - The OCID of the ResourceAnalyticsInstance associated with this TenancyAttachment.
- Tenancy
Id string The OCID of the tenancy associated with this TenancyAttachment.
** 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
- Description string
- (Updatable) A description of the tenancy.
- Resource
Analytics stringInstance Id - The OCID of the ResourceAnalyticsInstance associated with this TenancyAttachment.
- Tenancy
Id string The OCID of the tenancy associated with this TenancyAttachment.
** 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
- Description string
- (Updatable) A description of the tenancy.
- resource
Analytics StringInstance Id - The OCID of the ResourceAnalyticsInstance associated with this TenancyAttachment.
- tenancy
Id String The OCID of the tenancy associated with this TenancyAttachment.
** 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
- description String
- (Updatable) A description of the tenancy.
- resource
Analytics stringInstance Id - The OCID of the ResourceAnalyticsInstance associated with this TenancyAttachment.
- tenancy
Id string The OCID of the tenancy associated with this TenancyAttachment.
** 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
- description string
- (Updatable) A description of the tenancy.
- resource_
analytics_ strinstance_ id - The OCID of the ResourceAnalyticsInstance associated with this TenancyAttachment.
- tenancy_
id str The OCID of the tenancy associated with this TenancyAttachment.
** 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
- description str
- (Updatable) A description of the tenancy.
- resource
Analytics StringInstance Id - The OCID of the ResourceAnalyticsInstance associated with this TenancyAttachment.
- tenancy
Id String The OCID of the tenancy associated with this TenancyAttachment.
** 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
- description String
- (Updatable) A description of the tenancy.
Outputs
All input properties are implicitly available as output properties. Additionally, the ResourceAnalyticsTenancyAttachment resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Reporting boolTenancy - Whether the tenancy is the tenancy used when creating Resource Analytics Instance.
- Lifecycle
Details string - A message that describes the current state of the TenancyAttachment in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- State string
- The current state of the TenancyAttachment.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The date and time the TenancyAttachment was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - Time
Updated string - The date and time the TenancyAttachment was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Reporting boolTenancy - Whether the tenancy is the tenancy used when creating Resource Analytics Instance.
- Lifecycle
Details string - A message that describes the current state of the TenancyAttachment in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- State string
- The current state of the TenancyAttachment.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The date and time the TenancyAttachment was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - Time
Updated string - The date and time the TenancyAttachment was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- id String
- The provider-assigned unique ID for this managed resource.
- is
Reporting BooleanTenancy - Whether the tenancy is the tenancy used when creating Resource Analytics Instance.
- lifecycle
Details String - A message that describes the current state of the TenancyAttachment in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- state String
- The current state of the TenancyAttachment.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The date and time the TenancyAttachment was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Updated String - The date and time the TenancyAttachment was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- id string
- The provider-assigned unique ID for this managed resource.
- is
Reporting booleanTenancy - Whether the tenancy is the tenancy used when creating Resource Analytics Instance.
- lifecycle
Details string - A message that describes the current state of the TenancyAttachment in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- state string
- The current state of the TenancyAttachment.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created string - The date and time the TenancyAttachment was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Updated string - The date and time the TenancyAttachment was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- id str
- The provider-assigned unique ID for this managed resource.
- is_
reporting_ booltenancy - Whether the tenancy is the tenancy used when creating Resource Analytics Instance.
- lifecycle_
details str - A message that describes the current state of the TenancyAttachment in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- state str
- The current state of the TenancyAttachment.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time_
created str - The date and time the TenancyAttachment was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time_
updated str - The date and time the TenancyAttachment was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- id String
- The provider-assigned unique ID for this managed resource.
- is
Reporting BooleanTenancy - Whether the tenancy is the tenancy used when creating Resource Analytics Instance.
- lifecycle
Details String - A message that describes the current state of the TenancyAttachment in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- state String
- The current state of the TenancyAttachment.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The date and time the TenancyAttachment was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Updated String - The date and time the TenancyAttachment was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
Look up Existing ResourceAnalyticsTenancyAttachment Resource
Get an existing ResourceAnalyticsTenancyAttachment 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?: ResourceAnalyticsTenancyAttachmentState, opts?: CustomResourceOptions): ResourceAnalyticsTenancyAttachment@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
is_reporting_tenancy: Optional[bool] = None,
lifecycle_details: Optional[str] = None,
resource_analytics_instance_id: Optional[str] = None,
state: Optional[str] = None,
system_tags: Optional[Mapping[str, str]] = None,
tenancy_id: Optional[str] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None) -> ResourceAnalyticsTenancyAttachmentfunc GetResourceAnalyticsTenancyAttachment(ctx *Context, name string, id IDInput, state *ResourceAnalyticsTenancyAttachmentState, opts ...ResourceOption) (*ResourceAnalyticsTenancyAttachment, error)public static ResourceAnalyticsTenancyAttachment Get(string name, Input<string> id, ResourceAnalyticsTenancyAttachmentState? state, CustomResourceOptions? opts = null)public static ResourceAnalyticsTenancyAttachment get(String name, Output<String> id, ResourceAnalyticsTenancyAttachmentState state, CustomResourceOptions options)resources: _: type: oci:oci:ResourceAnalyticsTenancyAttachment get: id: ${id}- 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.
- Description string
- (Updatable) A description of the tenancy.
- Is
Reporting boolTenancy - Whether the tenancy is the tenancy used when creating Resource Analytics Instance.
- Lifecycle
Details string - A message that describes the current state of the TenancyAttachment in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- Resource
Analytics stringInstance Id - The OCID of the ResourceAnalyticsInstance associated with this TenancyAttachment.
- State string
- The current state of the TenancyAttachment.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Tenancy
Id string The OCID of the tenancy associated with this TenancyAttachment.
** 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 - The date and time the TenancyAttachment was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - Time
Updated string - The date and time the TenancyAttachment was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- Description string
- (Updatable) A description of the tenancy.
- Is
Reporting boolTenancy - Whether the tenancy is the tenancy used when creating Resource Analytics Instance.
- Lifecycle
Details string - A message that describes the current state of the TenancyAttachment in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- Resource
Analytics stringInstance Id - The OCID of the ResourceAnalyticsInstance associated with this TenancyAttachment.
- State string
- The current state of the TenancyAttachment.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Tenancy
Id string The OCID of the tenancy associated with this TenancyAttachment.
** 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 - The date and time the TenancyAttachment was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - Time
Updated string - The date and time the TenancyAttachment was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- description String
- (Updatable) A description of the tenancy.
- is
Reporting BooleanTenancy - Whether the tenancy is the tenancy used when creating Resource Analytics Instance.
- lifecycle
Details String - A message that describes the current state of the TenancyAttachment in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- resource
Analytics StringInstance Id - The OCID of the ResourceAnalyticsInstance associated with this TenancyAttachment.
- state String
- The current state of the TenancyAttachment.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - tenancy
Id String The OCID of the tenancy associated with this TenancyAttachment.
** 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 - The date and time the TenancyAttachment was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Updated String - The date and time the TenancyAttachment was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- description string
- (Updatable) A description of the tenancy.
- is
Reporting booleanTenancy - Whether the tenancy is the tenancy used when creating Resource Analytics Instance.
- lifecycle
Details string - A message that describes the current state of the TenancyAttachment in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- resource
Analytics stringInstance Id - The OCID of the ResourceAnalyticsInstance associated with this TenancyAttachment.
- state string
- The current state of the TenancyAttachment.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - tenancy
Id string The OCID of the tenancy associated with this TenancyAttachment.
** 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 - The date and time the TenancyAttachment was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Updated string - The date and time the TenancyAttachment was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- description str
- (Updatable) A description of the tenancy.
- is_
reporting_ booltenancy - Whether the tenancy is the tenancy used when creating Resource Analytics Instance.
- lifecycle_
details str - A message that describes the current state of the TenancyAttachment in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- resource_
analytics_ strinstance_ id - The OCID of the ResourceAnalyticsInstance associated with this TenancyAttachment.
- state str
- The current state of the TenancyAttachment.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - tenancy_
id str The OCID of the tenancy associated with this TenancyAttachment.
** 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 - The date and time the TenancyAttachment was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time_
updated str - The date and time the TenancyAttachment was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- description String
- (Updatable) A description of the tenancy.
- is
Reporting BooleanTenancy - Whether the tenancy is the tenancy used when creating Resource Analytics Instance.
- lifecycle
Details String - A message that describes the current state of the TenancyAttachment in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- resource
Analytics StringInstance Id - The OCID of the ResourceAnalyticsInstance associated with this TenancyAttachment.
- state String
- The current state of the TenancyAttachment.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - tenancy
Id String The OCID of the tenancy associated with this TenancyAttachment.
** 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 - The date and time the TenancyAttachment was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Updated String - The date and time the TenancyAttachment was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
Import
TenancyAttachments can be imported using the id, e.g.
$ pulumi import oci:oci/resourceAnalyticsTenancyAttachment:ResourceAnalyticsTenancyAttachment test_tenancy_attachment "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
ociTerraform Provider.
