1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. OceanusResource
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.OceanusResource

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a oceanus resource

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.OceanusResource("example", {
        folderId: "folder-7ctl246z",
        remark: "remark.",
        resourceConfigRemark: "config remark.",
        resourceLoc: {
            param: {
                bucket: "keep-terraform-1257058945",
                path: "OceanusResource/junit-4.13.2.jar",
                region: "ap-guangzhou",
            },
            storageType: 1,
        },
        resourceType: 1,
        workSpaceId: "space-2idq8wbr",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.OceanusResource("example",
        folder_id="folder-7ctl246z",
        remark="remark.",
        resource_config_remark="config remark.",
        resource_loc={
            "param": {
                "bucket": "keep-terraform-1257058945",
                "path": "OceanusResource/junit-4.13.2.jar",
                "region": "ap-guangzhou",
            },
            "storage_type": 1,
        },
        resource_type=1,
        work_space_id="space-2idq8wbr")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewOceanusResource(ctx, "example", &tencentcloud.OceanusResourceArgs{
    			FolderId:             pulumi.String("folder-7ctl246z"),
    			Remark:               pulumi.String("remark."),
    			ResourceConfigRemark: pulumi.String("config remark."),
    			ResourceLoc: &tencentcloud.OceanusResourceResourceLocArgs{
    				Param: &tencentcloud.OceanusResourceResourceLocParamArgs{
    					Bucket: pulumi.String("keep-terraform-1257058945"),
    					Path:   pulumi.String("OceanusResource/junit-4.13.2.jar"),
    					Region: pulumi.String("ap-guangzhou"),
    				},
    				StorageType: pulumi.Float64(1),
    			},
    			ResourceType: pulumi.Float64(1),
    			WorkSpaceId:  pulumi.String("space-2idq8wbr"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Tencentcloud.OceanusResource("example", new()
        {
            FolderId = "folder-7ctl246z",
            Remark = "remark.",
            ResourceConfigRemark = "config remark.",
            ResourceLoc = new Tencentcloud.Inputs.OceanusResourceResourceLocArgs
            {
                Param = new Tencentcloud.Inputs.OceanusResourceResourceLocParamArgs
                {
                    Bucket = "keep-terraform-1257058945",
                    Path = "OceanusResource/junit-4.13.2.jar",
                    Region = "ap-guangzhou",
                },
                StorageType = 1,
            },
            ResourceType = 1,
            WorkSpaceId = "space-2idq8wbr",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.OceanusResource;
    import com.pulumi.tencentcloud.OceanusResourceArgs;
    import com.pulumi.tencentcloud.inputs.OceanusResourceResourceLocArgs;
    import com.pulumi.tencentcloud.inputs.OceanusResourceResourceLocParamArgs;
    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 example = new OceanusResource("example", OceanusResourceArgs.builder()
                .folderId("folder-7ctl246z")
                .remark("remark.")
                .resourceConfigRemark("config remark.")
                .resourceLoc(OceanusResourceResourceLocArgs.builder()
                    .param(OceanusResourceResourceLocParamArgs.builder()
                        .bucket("keep-terraform-1257058945")
                        .path("OceanusResource/junit-4.13.2.jar")
                        .region("ap-guangzhou")
                        .build())
                    .storageType(1)
                    .build())
                .resourceType(1)
                .workSpaceId("space-2idq8wbr")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:OceanusResource
        properties:
          folderId: folder-7ctl246z
          remark: remark.
          resourceConfigRemark: config remark.
          resourceLoc:
            param:
              bucket: keep-terraform-1257058945
              path: OceanusResource/junit-4.13.2.jar
              region: ap-guangzhou
            storageType: 1
          resourceType: 1
          workSpaceId: space-2idq8wbr
    

    Create OceanusResource Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new OceanusResource(name: string, args: OceanusResourceArgs, opts?: CustomResourceOptions);
    @overload
    def OceanusResource(resource_name: str,
                        args: OceanusResourceArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def OceanusResource(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        resource_loc: Optional[OceanusResourceResourceLocArgs] = None,
                        resource_type: Optional[float] = None,
                        folder_id: Optional[str] = None,
                        name: Optional[str] = None,
                        oceanus_resource_id: Optional[str] = None,
                        remark: Optional[str] = None,
                        resource_config_remark: Optional[str] = None,
                        work_space_id: Optional[str] = None)
    func NewOceanusResource(ctx *Context, name string, args OceanusResourceArgs, opts ...ResourceOption) (*OceanusResource, error)
    public OceanusResource(string name, OceanusResourceArgs args, CustomResourceOptions? opts = null)
    public OceanusResource(String name, OceanusResourceArgs args)
    public OceanusResource(String name, OceanusResourceArgs args, CustomResourceOptions options)
    
    type: tencentcloud:OceanusResource
    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 OceanusResourceArgs
    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 OceanusResourceArgs
    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 OceanusResourceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OceanusResourceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OceanusResourceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    ResourceLoc OceanusResourceResourceLoc
    Resource location.
    ResourceType double
    Resource type, only support JAR now, value is 1.
    FolderId string
    Folder id.
    Name string
    Resource name.
    OceanusResourceId string
    ID of the resource.
    Remark string
    Resource description.
    ResourceConfigRemark string
    Resource version description.
    WorkSpaceId string
    Workspace serialId.
    ResourceLoc OceanusResourceResourceLocArgs
    Resource location.
    ResourceType float64
    Resource type, only support JAR now, value is 1.
    FolderId string
    Folder id.
    Name string
    Resource name.
    OceanusResourceId string
    ID of the resource.
    Remark string
    Resource description.
    ResourceConfigRemark string
    Resource version description.
    WorkSpaceId string
    Workspace serialId.
    resourceLoc OceanusResourceResourceLoc
    Resource location.
    resourceType Double
    Resource type, only support JAR now, value is 1.
    folderId String
    Folder id.
    name String
    Resource name.
    oceanusResourceId String
    ID of the resource.
    remark String
    Resource description.
    resourceConfigRemark String
    Resource version description.
    workSpaceId String
    Workspace serialId.
    resourceLoc OceanusResourceResourceLoc
    Resource location.
    resourceType number
    Resource type, only support JAR now, value is 1.
    folderId string
    Folder id.
    name string
    Resource name.
    oceanusResourceId string
    ID of the resource.
    remark string
    Resource description.
    resourceConfigRemark string
    Resource version description.
    workSpaceId string
    Workspace serialId.
    resource_loc OceanusResourceResourceLocArgs
    Resource location.
    resource_type float
    Resource type, only support JAR now, value is 1.
    folder_id str
    Folder id.
    name str
    Resource name.
    oceanus_resource_id str
    ID of the resource.
    remark str
    Resource description.
    resource_config_remark str
    Resource version description.
    work_space_id str
    Workspace serialId.
    resourceLoc Property Map
    Resource location.
    resourceType Number
    Resource type, only support JAR now, value is 1.
    folderId String
    Folder id.
    name String
    Resource name.
    oceanusResourceId String
    ID of the resource.
    remark String
    Resource description.
    resourceConfigRemark String
    Resource version description.
    workSpaceId String
    Workspace serialId.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceId string
    Resource ID.
    Version double
    Resource Version.
    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceId string
    Resource ID.
    Version float64
    Resource Version.
    id String
    The provider-assigned unique ID for this managed resource.
    resourceId String
    Resource ID.
    version Double
    Resource Version.
    id string
    The provider-assigned unique ID for this managed resource.
    resourceId string
    Resource ID.
    version number
    Resource Version.
    id str
    The provider-assigned unique ID for this managed resource.
    resource_id str
    Resource ID.
    version float
    Resource Version.
    id String
    The provider-assigned unique ID for this managed resource.
    resourceId String
    Resource ID.
    version Number
    Resource Version.

    Look up Existing OceanusResource Resource

    Get an existing OceanusResource 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?: OceanusResourceState, opts?: CustomResourceOptions): OceanusResource
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            folder_id: Optional[str] = None,
            name: Optional[str] = None,
            oceanus_resource_id: Optional[str] = None,
            remark: Optional[str] = None,
            resource_config_remark: Optional[str] = None,
            resource_id: Optional[str] = None,
            resource_loc: Optional[OceanusResourceResourceLocArgs] = None,
            resource_type: Optional[float] = None,
            version: Optional[float] = None,
            work_space_id: Optional[str] = None) -> OceanusResource
    func GetOceanusResource(ctx *Context, name string, id IDInput, state *OceanusResourceState, opts ...ResourceOption) (*OceanusResource, error)
    public static OceanusResource Get(string name, Input<string> id, OceanusResourceState? state, CustomResourceOptions? opts = null)
    public static OceanusResource get(String name, Output<String> id, OceanusResourceState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:OceanusResource    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.
    The following state arguments are supported:
    FolderId string
    Folder id.
    Name string
    Resource name.
    OceanusResourceId string
    ID of the resource.
    Remark string
    Resource description.
    ResourceConfigRemark string
    Resource version description.
    ResourceId string
    Resource ID.
    ResourceLoc OceanusResourceResourceLoc
    Resource location.
    ResourceType double
    Resource type, only support JAR now, value is 1.
    Version double
    Resource Version.
    WorkSpaceId string
    Workspace serialId.
    FolderId string
    Folder id.
    Name string
    Resource name.
    OceanusResourceId string
    ID of the resource.
    Remark string
    Resource description.
    ResourceConfigRemark string
    Resource version description.
    ResourceId string
    Resource ID.
    ResourceLoc OceanusResourceResourceLocArgs
    Resource location.
    ResourceType float64
    Resource type, only support JAR now, value is 1.
    Version float64
    Resource Version.
    WorkSpaceId string
    Workspace serialId.
    folderId String
    Folder id.
    name String
    Resource name.
    oceanusResourceId String
    ID of the resource.
    remark String
    Resource description.
    resourceConfigRemark String
    Resource version description.
    resourceId String
    Resource ID.
    resourceLoc OceanusResourceResourceLoc
    Resource location.
    resourceType Double
    Resource type, only support JAR now, value is 1.
    version Double
    Resource Version.
    workSpaceId String
    Workspace serialId.
    folderId string
    Folder id.
    name string
    Resource name.
    oceanusResourceId string
    ID of the resource.
    remark string
    Resource description.
    resourceConfigRemark string
    Resource version description.
    resourceId string
    Resource ID.
    resourceLoc OceanusResourceResourceLoc
    Resource location.
    resourceType number
    Resource type, only support JAR now, value is 1.
    version number
    Resource Version.
    workSpaceId string
    Workspace serialId.
    folder_id str
    Folder id.
    name str
    Resource name.
    oceanus_resource_id str
    ID of the resource.
    remark str
    Resource description.
    resource_config_remark str
    Resource version description.
    resource_id str
    Resource ID.
    resource_loc OceanusResourceResourceLocArgs
    Resource location.
    resource_type float
    Resource type, only support JAR now, value is 1.
    version float
    Resource Version.
    work_space_id str
    Workspace serialId.
    folderId String
    Folder id.
    name String
    Resource name.
    oceanusResourceId String
    ID of the resource.
    remark String
    Resource description.
    resourceConfigRemark String
    Resource version description.
    resourceId String
    Resource ID.
    resourceLoc Property Map
    Resource location.
    resourceType Number
    Resource type, only support JAR now, value is 1.
    version Number
    Resource Version.
    workSpaceId String
    Workspace serialId.

    Supporting Types

    OceanusResourceResourceLoc, OceanusResourceResourceLocArgs

    Param OceanusResourceResourceLocParam
    Json to describe resource location.
    StorageType double
    The available storage types for resource location are currently limited to 1:COS.
    Param OceanusResourceResourceLocParam
    Json to describe resource location.
    StorageType float64
    The available storage types for resource location are currently limited to 1:COS.
    param OceanusResourceResourceLocParam
    Json to describe resource location.
    storageType Double
    The available storage types for resource location are currently limited to 1:COS.
    param OceanusResourceResourceLocParam
    Json to describe resource location.
    storageType number
    The available storage types for resource location are currently limited to 1:COS.
    param OceanusResourceResourceLocParam
    Json to describe resource location.
    storage_type float
    The available storage types for resource location are currently limited to 1:COS.
    param Property Map
    Json to describe resource location.
    storageType Number
    The available storage types for resource location are currently limited to 1:COS.

    OceanusResourceResourceLocParam, OceanusResourceResourceLocParamArgs

    Bucket string
    Resource bucket.
    Path string
    Resource path.
    Region string
    Resource region, if not set, use resource region, note: this field may return null, indicating that no valid values can be obtained.
    Bucket string
    Resource bucket.
    Path string
    Resource path.
    Region string
    Resource region, if not set, use resource region, note: this field may return null, indicating that no valid values can be obtained.
    bucket String
    Resource bucket.
    path String
    Resource path.
    region String
    Resource region, if not set, use resource region, note: this field may return null, indicating that no valid values can be obtained.
    bucket string
    Resource bucket.
    path string
    Resource path.
    region string
    Resource region, if not set, use resource region, note: this field may return null, indicating that no valid values can be obtained.
    bucket str
    Resource bucket.
    path str
    Resource path.
    region str
    Resource region, if not set, use resource region, note: this field may return null, indicating that no valid values can be obtained.
    bucket String
    Resource bucket.
    path String
    Resource path.
    region String
    Resource region, if not set, use resource region, note: this field may return null, indicating that no valid values can be obtained.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack