ucloud.IamGroup
Explore with Pulumi AI
Provides an IAM group resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ucloud from "@pulumi/ucloud";
const foo = new ucloud.IamGroup("foo", {comment: "comment"});
import pulumi
import pulumi_ucloud as ucloud
foo = ucloud.IamGroup("foo", comment="comment")
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.NewIamGroup(ctx, "foo", &ucloud.IamGroupArgs{
Comment: pulumi.String("comment"),
})
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.IamGroup("foo", new()
{
Comment = "comment",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ucloud.IamGroup;
import com.pulumi.ucloud.IamGroupArgs;
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 IamGroup("foo", IamGroupArgs.builder()
.comment("comment")
.build());
}
}
resources:
foo:
type: ucloud:IamGroup
properties:
comment: comment
Create IamGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IamGroup(name: string, args?: IamGroupArgs, opts?: CustomResourceOptions);
@overload
def IamGroup(resource_name: str,
args: Optional[IamGroupArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def IamGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
comment: Optional[str] = None,
iam_group_id: Optional[str] = None,
name: Optional[str] = None)
func NewIamGroup(ctx *Context, name string, args *IamGroupArgs, opts ...ResourceOption) (*IamGroup, error)
public IamGroup(string name, IamGroupArgs? args = null, CustomResourceOptions? opts = null)
public IamGroup(String name, IamGroupArgs args)
public IamGroup(String name, IamGroupArgs args, CustomResourceOptions options)
type: ucloud:IamGroup
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 IamGroupArgs
- 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 IamGroupArgs
- 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 IamGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IamGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IamGroupArgs
- 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 iamGroupResource = new Ucloud.IamGroup("iamGroupResource", new()
{
Comment = "string",
IamGroupId = "string",
Name = "string",
});
example, err := ucloud.NewIamGroup(ctx, "iamGroupResource", &ucloud.IamGroupArgs{
Comment: pulumi.String("string"),
IamGroupId: pulumi.String("string"),
Name: pulumi.String("string"),
})
var iamGroupResource = new IamGroup("iamGroupResource", IamGroupArgs.builder()
.comment("string")
.iamGroupId("string")
.name("string")
.build());
iam_group_resource = ucloud.IamGroup("iamGroupResource",
comment="string",
iam_group_id="string",
name="string")
const iamGroupResource = new ucloud.IamGroup("iamGroupResource", {
comment: "string",
iamGroupId: "string",
name: "string",
});
type: ucloud:IamGroup
properties:
comment: string
iamGroupId: string
name: string
IamGroup 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 IamGroup resource accepts the following input properties:
- Comment string
- Comment of the IAM group.
- Iam
Group stringId - Name string
- Name of the IAM group.
- Comment string
- Comment of the IAM group.
- Iam
Group stringId - Name string
- Name of the IAM group.
- comment String
- Comment of the IAM group.
- iam
Group StringId - name String
- Name of the IAM group.
- comment string
- Comment of the IAM group.
- iam
Group stringId - name string
- Name of the IAM group.
- comment str
- Comment of the IAM group.
- iam_
group_ strid - name str
- Name of the IAM group.
- comment String
- Comment of the IAM group.
- iam
Group StringId - name String
- Name of the IAM group.
Outputs
All input properties are implicitly available as output properties. Additionally, the IamGroup resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing IamGroup Resource
Get an existing IamGroup 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?: IamGroupState, opts?: CustomResourceOptions): IamGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
comment: Optional[str] = None,
iam_group_id: Optional[str] = None,
name: Optional[str] = None) -> IamGroup
func GetIamGroup(ctx *Context, name string, id IDInput, state *IamGroupState, opts ...ResourceOption) (*IamGroup, error)
public static IamGroup Get(string name, Input<string> id, IamGroupState? state, CustomResourceOptions? opts = null)
public static IamGroup get(String name, Output<String> id, IamGroupState state, CustomResourceOptions options)
resources: _: type: ucloud:IamGroup 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.
- Comment string
- Comment of the IAM group.
- Iam
Group stringId - Name string
- Name of the IAM group.
- Comment string
- Comment of the IAM group.
- Iam
Group stringId - Name string
- Name of the IAM group.
- comment String
- Comment of the IAM group.
- iam
Group StringId - name String
- Name of the IAM group.
- comment string
- Comment of the IAM group.
- iam
Group stringId - name string
- Name of the IAM group.
- comment str
- Comment of the IAM group.
- iam_
group_ strid - name str
- Name of the IAM group.
- comment String
- Comment of the IAM group.
- iam
Group StringId - name String
- Name of the IAM group.
Import
IAM group can be imported using group name, e.g.
$ pulumi import ucloud:index/iamGroup:IamGroup example Administrator
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.