1. Packages
  2. Ucloud Provider
  3. API Docs
  4. IamProject
ucloud 1.39.1 published on Monday, Apr 14, 2025 by ucloud

ucloud.IamProject

Explore with Pulumi AI

ucloud logo
ucloud 1.39.1 published on Monday, Apr 14, 2025 by ucloud

    Provides an IAM project resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ucloud from "@pulumi/ucloud";
    
    const foo = new ucloud.IamProject("foo", {});
    
    import pulumi
    import pulumi_ucloud as ucloud
    
    foo = ucloud.IamProject("foo")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ucloud/ucloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ucloud.NewIamProject(ctx, "foo", nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ucloud = Pulumi.Ucloud;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Ucloud.IamProject("foo");
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ucloud.IamProject;
    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 foo = new IamProject("foo");
    
        }
    }
    
    resources:
      foo:
        type: ucloud:IamProject
    

    Create IamProject Resource

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

    Constructor syntax

    new IamProject(name: string, args?: IamProjectArgs, opts?: CustomResourceOptions);
    @overload
    def IamProject(resource_name: str,
                   args: Optional[IamProjectArgs] = None,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def IamProject(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   iam_project_id: Optional[str] = None,
                   name: Optional[str] = None)
    func NewIamProject(ctx *Context, name string, args *IamProjectArgs, opts ...ResourceOption) (*IamProject, error)
    public IamProject(string name, IamProjectArgs? args = null, CustomResourceOptions? opts = null)
    public IamProject(String name, IamProjectArgs args)
    public IamProject(String name, IamProjectArgs args, CustomResourceOptions options)
    
    type: ucloud:IamProject
    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 IamProjectArgs
    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 IamProjectArgs
    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 IamProjectArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IamProjectArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IamProjectArgs
    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 iamProjectResource = new Ucloud.IamProject("iamProjectResource", new()
    {
        IamProjectId = "string",
        Name = "string",
    });
    
    example, err := ucloud.NewIamProject(ctx, "iamProjectResource", &ucloud.IamProjectArgs{
    	IamProjectId: pulumi.String("string"),
    	Name:         pulumi.String("string"),
    })
    
    var iamProjectResource = new IamProject("iamProjectResource", IamProjectArgs.builder()
        .iamProjectId("string")
        .name("string")
        .build());
    
    iam_project_resource = ucloud.IamProject("iamProjectResource",
        iam_project_id="string",
        name="string")
    
    const iamProjectResource = new ucloud.IamProject("iamProjectResource", {
        iamProjectId: "string",
        name: "string",
    });
    
    type: ucloud:IamProject
    properties:
        iamProjectId: string
        name: string
    

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

    IamProjectId string
    Name string
    Name of the IAM project.
    IamProjectId string
    Name string
    Name of the IAM project.
    iamProjectId String
    name String
    Name of the IAM project.
    iamProjectId string
    name string
    Name of the IAM project.
    iam_project_id str
    name str
    Name of the IAM project.
    iamProjectId String
    name String
    Name of the IAM project.

    Outputs

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

    CreateTime string
    The time of creation of project, formatted in RFC3339 time string.
    Id string
    The provider-assigned unique ID for this managed resource.
    CreateTime string
    The time of creation of project, formatted in RFC3339 time string.
    Id string
    The provider-assigned unique ID for this managed resource.
    createTime String
    The time of creation of project, formatted in RFC3339 time string.
    id String
    The provider-assigned unique ID for this managed resource.
    createTime string
    The time of creation of project, formatted in RFC3339 time string.
    id string
    The provider-assigned unique ID for this managed resource.
    create_time str
    The time of creation of project, formatted in RFC3339 time string.
    id str
    The provider-assigned unique ID for this managed resource.
    createTime String
    The time of creation of project, formatted in RFC3339 time string.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing IamProject Resource

    Get an existing IamProject 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?: IamProjectState, opts?: CustomResourceOptions): IamProject
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[str] = None,
            iam_project_id: Optional[str] = None,
            name: Optional[str] = None) -> IamProject
    func GetIamProject(ctx *Context, name string, id IDInput, state *IamProjectState, opts ...ResourceOption) (*IamProject, error)
    public static IamProject Get(string name, Input<string> id, IamProjectState? state, CustomResourceOptions? opts = null)
    public static IamProject get(String name, Output<String> id, IamProjectState state, CustomResourceOptions options)
    resources:  _:    type: ucloud:IamProject    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:
    CreateTime string
    The time of creation of project, formatted in RFC3339 time string.
    IamProjectId string
    Name string
    Name of the IAM project.
    CreateTime string
    The time of creation of project, formatted in RFC3339 time string.
    IamProjectId string
    Name string
    Name of the IAM project.
    createTime String
    The time of creation of project, formatted in RFC3339 time string.
    iamProjectId String
    name String
    Name of the IAM project.
    createTime string
    The time of creation of project, formatted in RFC3339 time string.
    iamProjectId string
    name string
    Name of the IAM project.
    create_time str
    The time of creation of project, formatted in RFC3339 time string.
    iam_project_id str
    name str
    Name of the IAM project.
    createTime String
    The time of creation of project, formatted in RFC3339 time string.
    iamProjectId String
    name String
    Name of the IAM project.

    Import

    IAM group can be imported using project ID, e.g.

    $ pulumi import ucloud:index/iamProject:IamProject example org-xxx
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    ucloud ucloud/terraform-provider-ucloud
    License
    Notes
    This Pulumi package is based on the ucloud Terraform Provider.
    ucloud logo
    ucloud 1.39.1 published on Monday, Apr 14, 2025 by ucloud