cam

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetGroupMembershipsArgs

type GetGroupMembershipsArgs struct {
	// ID of CAM group to be queried.
	GroupId *string `pulumi:"groupId"`
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getGroupMemberships.

type GetGroupMembershipsMembershipList

type GetGroupMembershipsMembershipList struct {
	// ID of CAM group to be queried.
	GroupId string `pulumi:"groupId"`
	// (**Deprecated**) It has been deprecated from version 1.59.5. Use `userNames` instead. ID set of the CAM group members.
	//
	// Deprecated: It has been deprecated from version 1.59.5. Use `user_names` instead.
	UserIds []string `pulumi:"userIds"`
	// ID set of the CAM group members.
	UserNames []string `pulumi:"userNames"`
}

type GetGroupMembershipsMembershipListArgs

type GetGroupMembershipsMembershipListArgs struct {
	// ID of CAM group to be queried.
	GroupId pulumi.StringInput `pulumi:"groupId"`
	// (**Deprecated**) It has been deprecated from version 1.59.5. Use `userNames` instead. ID set of the CAM group members.
	//
	// Deprecated: It has been deprecated from version 1.59.5. Use `user_names` instead.
	UserIds pulumi.StringArrayInput `pulumi:"userIds"`
	// ID set of the CAM group members.
	UserNames pulumi.StringArrayInput `pulumi:"userNames"`
}

func (GetGroupMembershipsMembershipListArgs) ElementType

func (GetGroupMembershipsMembershipListArgs) ToGetGroupMembershipsMembershipListOutput

func (i GetGroupMembershipsMembershipListArgs) ToGetGroupMembershipsMembershipListOutput() GetGroupMembershipsMembershipListOutput

func (GetGroupMembershipsMembershipListArgs) ToGetGroupMembershipsMembershipListOutputWithContext

func (i GetGroupMembershipsMembershipListArgs) ToGetGroupMembershipsMembershipListOutputWithContext(ctx context.Context) GetGroupMembershipsMembershipListOutput

type GetGroupMembershipsMembershipListArray

type GetGroupMembershipsMembershipListArray []GetGroupMembershipsMembershipListInput

func (GetGroupMembershipsMembershipListArray) ElementType

func (GetGroupMembershipsMembershipListArray) ToGetGroupMembershipsMembershipListArrayOutput

func (i GetGroupMembershipsMembershipListArray) ToGetGroupMembershipsMembershipListArrayOutput() GetGroupMembershipsMembershipListArrayOutput

func (GetGroupMembershipsMembershipListArray) ToGetGroupMembershipsMembershipListArrayOutputWithContext

func (i GetGroupMembershipsMembershipListArray) ToGetGroupMembershipsMembershipListArrayOutputWithContext(ctx context.Context) GetGroupMembershipsMembershipListArrayOutput

type GetGroupMembershipsMembershipListArrayInput

type GetGroupMembershipsMembershipListArrayInput interface {
	pulumi.Input

	ToGetGroupMembershipsMembershipListArrayOutput() GetGroupMembershipsMembershipListArrayOutput
	ToGetGroupMembershipsMembershipListArrayOutputWithContext(context.Context) GetGroupMembershipsMembershipListArrayOutput
}

GetGroupMembershipsMembershipListArrayInput is an input type that accepts GetGroupMembershipsMembershipListArray and GetGroupMembershipsMembershipListArrayOutput values. You can construct a concrete instance of `GetGroupMembershipsMembershipListArrayInput` via:

GetGroupMembershipsMembershipListArray{ GetGroupMembershipsMembershipListArgs{...} }

type GetGroupMembershipsMembershipListArrayOutput

type GetGroupMembershipsMembershipListArrayOutput struct{ *pulumi.OutputState }

func (GetGroupMembershipsMembershipListArrayOutput) ElementType

func (GetGroupMembershipsMembershipListArrayOutput) Index

func (GetGroupMembershipsMembershipListArrayOutput) ToGetGroupMembershipsMembershipListArrayOutput

func (o GetGroupMembershipsMembershipListArrayOutput) ToGetGroupMembershipsMembershipListArrayOutput() GetGroupMembershipsMembershipListArrayOutput

func (GetGroupMembershipsMembershipListArrayOutput) ToGetGroupMembershipsMembershipListArrayOutputWithContext

func (o GetGroupMembershipsMembershipListArrayOutput) ToGetGroupMembershipsMembershipListArrayOutputWithContext(ctx context.Context) GetGroupMembershipsMembershipListArrayOutput

type GetGroupMembershipsMembershipListInput

type GetGroupMembershipsMembershipListInput interface {
	pulumi.Input

	ToGetGroupMembershipsMembershipListOutput() GetGroupMembershipsMembershipListOutput
	ToGetGroupMembershipsMembershipListOutputWithContext(context.Context) GetGroupMembershipsMembershipListOutput
}

GetGroupMembershipsMembershipListInput is an input type that accepts GetGroupMembershipsMembershipListArgs and GetGroupMembershipsMembershipListOutput values. You can construct a concrete instance of `GetGroupMembershipsMembershipListInput` via:

GetGroupMembershipsMembershipListArgs{...}

type GetGroupMembershipsMembershipListOutput

type GetGroupMembershipsMembershipListOutput struct{ *pulumi.OutputState }

func (GetGroupMembershipsMembershipListOutput) ElementType

func (GetGroupMembershipsMembershipListOutput) GroupId

ID of CAM group to be queried.

func (GetGroupMembershipsMembershipListOutput) ToGetGroupMembershipsMembershipListOutput

func (o GetGroupMembershipsMembershipListOutput) ToGetGroupMembershipsMembershipListOutput() GetGroupMembershipsMembershipListOutput

func (GetGroupMembershipsMembershipListOutput) ToGetGroupMembershipsMembershipListOutputWithContext

func (o GetGroupMembershipsMembershipListOutput) ToGetGroupMembershipsMembershipListOutputWithContext(ctx context.Context) GetGroupMembershipsMembershipListOutput

func (GetGroupMembershipsMembershipListOutput) UserIds deprecated

(**Deprecated**) It has been deprecated from version 1.59.5. Use `userNames` instead. ID set of the CAM group members.

Deprecated: It has been deprecated from version 1.59.5. Use `user_names` instead.

func (GetGroupMembershipsMembershipListOutput) UserNames

ID set of the CAM group members.

type GetGroupMembershipsOutputArgs

type GetGroupMembershipsOutputArgs struct {
	// ID of CAM group to be queried.
	GroupId pulumi.StringPtrInput `pulumi:"groupId"`
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getGroupMemberships.

func (GetGroupMembershipsOutputArgs) ElementType

type GetGroupMembershipsResult

type GetGroupMembershipsResult struct {
	// ID of CAM group.
	GroupId *string `pulumi:"groupId"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of CAM group membership. Each element contains the following attributes:
	MembershipLists  []GetGroupMembershipsMembershipList `pulumi:"membershipLists"`
	ResultOutputFile *string                             `pulumi:"resultOutputFile"`
}

A collection of values returned by getGroupMemberships.

func GetGroupMemberships

func GetGroupMemberships(ctx *pulumi.Context, args *GetGroupMembershipsArgs, opts ...pulumi.InvokeOption) (*GetGroupMembershipsResult, error)

Use this data source to query detailed information of CAM group memberships

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Cam"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cam"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cam.GetGroupMemberships(ctx, &cam.GetGroupMembershipsArgs{
			GroupId: pulumi.StringRef(tencentcloud_cam_group.Foo.Id),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetGroupMembershipsResultOutput

type GetGroupMembershipsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getGroupMemberships.

func (GetGroupMembershipsResultOutput) ElementType

func (GetGroupMembershipsResultOutput) GroupId

ID of CAM group.

func (GetGroupMembershipsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetGroupMembershipsResultOutput) MembershipLists

A list of CAM group membership. Each element contains the following attributes:

func (GetGroupMembershipsResultOutput) ResultOutputFile

func (GetGroupMembershipsResultOutput) ToGetGroupMembershipsResultOutput

func (o GetGroupMembershipsResultOutput) ToGetGroupMembershipsResultOutput() GetGroupMembershipsResultOutput

func (GetGroupMembershipsResultOutput) ToGetGroupMembershipsResultOutputWithContext

func (o GetGroupMembershipsResultOutput) ToGetGroupMembershipsResultOutputWithContext(ctx context.Context) GetGroupMembershipsResultOutput

type GetGroupPolicyAttachmentsArgs

type GetGroupPolicyAttachmentsArgs struct {
	// Mode of creation of the CAM user policy attachment. 1 means the cam policy attachment is created by production, and the others indicate syntax strategy ways.
	CreateMode *int `pulumi:"createMode"`
	// ID of the attached CAM group to be queried.
	GroupId string `pulumi:"groupId"`
	// ID of CAM policy to be queried.
	PolicyId *string `pulumi:"policyId"`
	// Type of the policy strategy. 'User' means customer strategy and 'QCS' means preset strategy.
	PolicyType *string `pulumi:"policyType"`
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getGroupPolicyAttachments.

type GetGroupPolicyAttachmentsGroupPolicyAttachmentList

type GetGroupPolicyAttachmentsGroupPolicyAttachmentList struct {
	// Mode of creation of the CAM user policy attachment. 1 means the cam policy attachment is created by production, and the others indicate syntax strategy ways.
	CreateMode int `pulumi:"createMode"`
	// Create time of the CAM group policy attachment.
	CreateTime string `pulumi:"createTime"`
	// ID of the attached CAM group to be queried.
	GroupId string `pulumi:"groupId"`
	// ID of CAM policy to be queried.
	PolicyId string `pulumi:"policyId"`
	// Name of the policy.
	PolicyName string `pulumi:"policyName"`
	// Type of the policy strategy. 'User' means customer strategy and 'QCS' means preset strategy.
	PolicyType string `pulumi:"policyType"`
}

type GetGroupPolicyAttachmentsGroupPolicyAttachmentListArgs

type GetGroupPolicyAttachmentsGroupPolicyAttachmentListArgs struct {
	// Mode of creation of the CAM user policy attachment. 1 means the cam policy attachment is created by production, and the others indicate syntax strategy ways.
	CreateMode pulumi.IntInput `pulumi:"createMode"`
	// Create time of the CAM group policy attachment.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// ID of the attached CAM group to be queried.
	GroupId pulumi.StringInput `pulumi:"groupId"`
	// ID of CAM policy to be queried.
	PolicyId pulumi.StringInput `pulumi:"policyId"`
	// Name of the policy.
	PolicyName pulumi.StringInput `pulumi:"policyName"`
	// Type of the policy strategy. 'User' means customer strategy and 'QCS' means preset strategy.
	PolicyType pulumi.StringInput `pulumi:"policyType"`
}

func (GetGroupPolicyAttachmentsGroupPolicyAttachmentListArgs) ElementType

func (GetGroupPolicyAttachmentsGroupPolicyAttachmentListArgs) ToGetGroupPolicyAttachmentsGroupPolicyAttachmentListOutput

func (GetGroupPolicyAttachmentsGroupPolicyAttachmentListArgs) ToGetGroupPolicyAttachmentsGroupPolicyAttachmentListOutputWithContext

func (i GetGroupPolicyAttachmentsGroupPolicyAttachmentListArgs) ToGetGroupPolicyAttachmentsGroupPolicyAttachmentListOutputWithContext(ctx context.Context) GetGroupPolicyAttachmentsGroupPolicyAttachmentListOutput

type GetGroupPolicyAttachmentsGroupPolicyAttachmentListArray

type GetGroupPolicyAttachmentsGroupPolicyAttachmentListArray []GetGroupPolicyAttachmentsGroupPolicyAttachmentListInput

func (GetGroupPolicyAttachmentsGroupPolicyAttachmentListArray) ElementType

func (GetGroupPolicyAttachmentsGroupPolicyAttachmentListArray) ToGetGroupPolicyAttachmentsGroupPolicyAttachmentListArrayOutput

func (i GetGroupPolicyAttachmentsGroupPolicyAttachmentListArray) ToGetGroupPolicyAttachmentsGroupPolicyAttachmentListArrayOutput() GetGroupPolicyAttachmentsGroupPolicyAttachmentListArrayOutput

func (GetGroupPolicyAttachmentsGroupPolicyAttachmentListArray) ToGetGroupPolicyAttachmentsGroupPolicyAttachmentListArrayOutputWithContext

func (i GetGroupPolicyAttachmentsGroupPolicyAttachmentListArray) ToGetGroupPolicyAttachmentsGroupPolicyAttachmentListArrayOutputWithContext(ctx context.Context) GetGroupPolicyAttachmentsGroupPolicyAttachmentListArrayOutput

type GetGroupPolicyAttachmentsGroupPolicyAttachmentListArrayInput

type GetGroupPolicyAttachmentsGroupPolicyAttachmentListArrayInput interface {
	pulumi.Input

	ToGetGroupPolicyAttachmentsGroupPolicyAttachmentListArrayOutput() GetGroupPolicyAttachmentsGroupPolicyAttachmentListArrayOutput
	ToGetGroupPolicyAttachmentsGroupPolicyAttachmentListArrayOutputWithContext(context.Context) GetGroupPolicyAttachmentsGroupPolicyAttachmentListArrayOutput
}

GetGroupPolicyAttachmentsGroupPolicyAttachmentListArrayInput is an input type that accepts GetGroupPolicyAttachmentsGroupPolicyAttachmentListArray and GetGroupPolicyAttachmentsGroupPolicyAttachmentListArrayOutput values. You can construct a concrete instance of `GetGroupPolicyAttachmentsGroupPolicyAttachmentListArrayInput` via:

GetGroupPolicyAttachmentsGroupPolicyAttachmentListArray{ GetGroupPolicyAttachmentsGroupPolicyAttachmentListArgs{...} }

type GetGroupPolicyAttachmentsGroupPolicyAttachmentListArrayOutput

type GetGroupPolicyAttachmentsGroupPolicyAttachmentListArrayOutput struct{ *pulumi.OutputState }

func (GetGroupPolicyAttachmentsGroupPolicyAttachmentListArrayOutput) ElementType

func (GetGroupPolicyAttachmentsGroupPolicyAttachmentListArrayOutput) Index

func (GetGroupPolicyAttachmentsGroupPolicyAttachmentListArrayOutput) ToGetGroupPolicyAttachmentsGroupPolicyAttachmentListArrayOutput

func (GetGroupPolicyAttachmentsGroupPolicyAttachmentListArrayOutput) ToGetGroupPolicyAttachmentsGroupPolicyAttachmentListArrayOutputWithContext

func (o GetGroupPolicyAttachmentsGroupPolicyAttachmentListArrayOutput) ToGetGroupPolicyAttachmentsGroupPolicyAttachmentListArrayOutputWithContext(ctx context.Context) GetGroupPolicyAttachmentsGroupPolicyAttachmentListArrayOutput

type GetGroupPolicyAttachmentsGroupPolicyAttachmentListInput

type GetGroupPolicyAttachmentsGroupPolicyAttachmentListInput interface {
	pulumi.Input

	ToGetGroupPolicyAttachmentsGroupPolicyAttachmentListOutput() GetGroupPolicyAttachmentsGroupPolicyAttachmentListOutput
	ToGetGroupPolicyAttachmentsGroupPolicyAttachmentListOutputWithContext(context.Context) GetGroupPolicyAttachmentsGroupPolicyAttachmentListOutput
}

GetGroupPolicyAttachmentsGroupPolicyAttachmentListInput is an input type that accepts GetGroupPolicyAttachmentsGroupPolicyAttachmentListArgs and GetGroupPolicyAttachmentsGroupPolicyAttachmentListOutput values. You can construct a concrete instance of `GetGroupPolicyAttachmentsGroupPolicyAttachmentListInput` via:

GetGroupPolicyAttachmentsGroupPolicyAttachmentListArgs{...}

type GetGroupPolicyAttachmentsGroupPolicyAttachmentListOutput

type GetGroupPolicyAttachmentsGroupPolicyAttachmentListOutput struct{ *pulumi.OutputState }

func (GetGroupPolicyAttachmentsGroupPolicyAttachmentListOutput) CreateMode

Mode of creation of the CAM user policy attachment. 1 means the cam policy attachment is created by production, and the others indicate syntax strategy ways.

func (GetGroupPolicyAttachmentsGroupPolicyAttachmentListOutput) CreateTime

Create time of the CAM group policy attachment.

func (GetGroupPolicyAttachmentsGroupPolicyAttachmentListOutput) ElementType

func (GetGroupPolicyAttachmentsGroupPolicyAttachmentListOutput) GroupId

ID of the attached CAM group to be queried.

func (GetGroupPolicyAttachmentsGroupPolicyAttachmentListOutput) PolicyId

ID of CAM policy to be queried.

func (GetGroupPolicyAttachmentsGroupPolicyAttachmentListOutput) PolicyName

Name of the policy.

func (GetGroupPolicyAttachmentsGroupPolicyAttachmentListOutput) PolicyType

Type of the policy strategy. 'User' means customer strategy and 'QCS' means preset strategy.

func (GetGroupPolicyAttachmentsGroupPolicyAttachmentListOutput) ToGetGroupPolicyAttachmentsGroupPolicyAttachmentListOutput

func (GetGroupPolicyAttachmentsGroupPolicyAttachmentListOutput) ToGetGroupPolicyAttachmentsGroupPolicyAttachmentListOutputWithContext

func (o GetGroupPolicyAttachmentsGroupPolicyAttachmentListOutput) ToGetGroupPolicyAttachmentsGroupPolicyAttachmentListOutputWithContext(ctx context.Context) GetGroupPolicyAttachmentsGroupPolicyAttachmentListOutput

type GetGroupPolicyAttachmentsOutputArgs

type GetGroupPolicyAttachmentsOutputArgs struct {
	// Mode of creation of the CAM user policy attachment. 1 means the cam policy attachment is created by production, and the others indicate syntax strategy ways.
	CreateMode pulumi.IntPtrInput `pulumi:"createMode"`
	// ID of the attached CAM group to be queried.
	GroupId pulumi.StringInput `pulumi:"groupId"`
	// ID of CAM policy to be queried.
	PolicyId pulumi.StringPtrInput `pulumi:"policyId"`
	// Type of the policy strategy. 'User' means customer strategy and 'QCS' means preset strategy.
	PolicyType pulumi.StringPtrInput `pulumi:"policyType"`
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getGroupPolicyAttachments.

func (GetGroupPolicyAttachmentsOutputArgs) ElementType

type GetGroupPolicyAttachmentsResult

type GetGroupPolicyAttachmentsResult struct {
	// Mode of Creation of the CAM group policy attachment. 1 means the cam policy attachment is created by production, and the others indicate syntax strategy ways.
	CreateMode *int `pulumi:"createMode"`
	// ID of CAM group.
	GroupId string `pulumi:"groupId"`
	// A list of CAM group policy attachments. Each element contains the following attributes:
	GroupPolicyAttachmentLists []GetGroupPolicyAttachmentsGroupPolicyAttachmentList `pulumi:"groupPolicyAttachmentLists"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// Name of CAM group.
	PolicyId *string `pulumi:"policyId"`
	// Type of the policy strategy. 'User' means customer strategy and 'QCS' means preset strategy.
	PolicyType       *string `pulumi:"policyType"`
	ResultOutputFile *string `pulumi:"resultOutputFile"`
}

A collection of values returned by getGroupPolicyAttachments.

func GetGroupPolicyAttachments

func GetGroupPolicyAttachments(ctx *pulumi.Context, args *GetGroupPolicyAttachmentsArgs, opts ...pulumi.InvokeOption) (*GetGroupPolicyAttachmentsResult, error)

Use this data source to query detailed information of CAM group policy attachments

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Cam"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cam"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cam.GetGroupPolicyAttachments(ctx, &cam.GetGroupPolicyAttachmentsArgs{
			GroupId: tencentcloud_cam_group.Foo.Id,
		}, nil)
		if err != nil {
			return err
		}
		_, err = Cam.GetGroupPolicyAttachments(ctx, &cam.GetGroupPolicyAttachmentsArgs{
			GroupId:  tencentcloud_cam_group.Foo.Id,
			PolicyId: pulumi.StringRef(tencentcloud_cam_policy.Foo.Id),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetGroupPolicyAttachmentsResultOutput

type GetGroupPolicyAttachmentsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getGroupPolicyAttachments.

func (GetGroupPolicyAttachmentsResultOutput) CreateMode

Mode of Creation of the CAM group policy attachment. 1 means the cam policy attachment is created by production, and the others indicate syntax strategy ways.

func (GetGroupPolicyAttachmentsResultOutput) ElementType

func (GetGroupPolicyAttachmentsResultOutput) GroupId

ID of CAM group.

func (GetGroupPolicyAttachmentsResultOutput) GroupPolicyAttachmentLists

A list of CAM group policy attachments. Each element contains the following attributes:

func (GetGroupPolicyAttachmentsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetGroupPolicyAttachmentsResultOutput) PolicyId

Name of CAM group.

func (GetGroupPolicyAttachmentsResultOutput) PolicyType

Type of the policy strategy. 'User' means customer strategy and 'QCS' means preset strategy.

func (GetGroupPolicyAttachmentsResultOutput) ResultOutputFile

func (GetGroupPolicyAttachmentsResultOutput) ToGetGroupPolicyAttachmentsResultOutput

func (o GetGroupPolicyAttachmentsResultOutput) ToGetGroupPolicyAttachmentsResultOutput() GetGroupPolicyAttachmentsResultOutput

func (GetGroupPolicyAttachmentsResultOutput) ToGetGroupPolicyAttachmentsResultOutputWithContext

func (o GetGroupPolicyAttachmentsResultOutput) ToGetGroupPolicyAttachmentsResultOutputWithContext(ctx context.Context) GetGroupPolicyAttachmentsResultOutput

type GetGroupsArgs

type GetGroupsArgs struct {
	// ID of CAM group to be queried.
	GroupId *string `pulumi:"groupId"`
	// Name of the CAM group to be queried.
	Name *string `pulumi:"name"`
	// Description of the cam group to be queried.
	Remark *string `pulumi:"remark"`
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getGroups.

type GetGroupsGroupList

type GetGroupsGroupList struct {
	// Create time of the CAM group.
	CreateTime string `pulumi:"createTime"`
	// ID of CAM group to be queried.
	GroupId string `pulumi:"groupId"`
	// Name of the CAM group to be queried.
	Name string `pulumi:"name"`
	// Description of the cam group to be queried.
	Remark string `pulumi:"remark"`
}

type GetGroupsGroupListArgs

type GetGroupsGroupListArgs struct {
	// Create time of the CAM group.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// ID of CAM group to be queried.
	GroupId pulumi.StringInput `pulumi:"groupId"`
	// Name of the CAM group to be queried.
	Name pulumi.StringInput `pulumi:"name"`
	// Description of the cam group to be queried.
	Remark pulumi.StringInput `pulumi:"remark"`
}

func (GetGroupsGroupListArgs) ElementType

func (GetGroupsGroupListArgs) ElementType() reflect.Type

func (GetGroupsGroupListArgs) ToGetGroupsGroupListOutput

func (i GetGroupsGroupListArgs) ToGetGroupsGroupListOutput() GetGroupsGroupListOutput

func (GetGroupsGroupListArgs) ToGetGroupsGroupListOutputWithContext

func (i GetGroupsGroupListArgs) ToGetGroupsGroupListOutputWithContext(ctx context.Context) GetGroupsGroupListOutput

type GetGroupsGroupListArray

type GetGroupsGroupListArray []GetGroupsGroupListInput

func (GetGroupsGroupListArray) ElementType

func (GetGroupsGroupListArray) ElementType() reflect.Type

func (GetGroupsGroupListArray) ToGetGroupsGroupListArrayOutput

func (i GetGroupsGroupListArray) ToGetGroupsGroupListArrayOutput() GetGroupsGroupListArrayOutput

func (GetGroupsGroupListArray) ToGetGroupsGroupListArrayOutputWithContext

func (i GetGroupsGroupListArray) ToGetGroupsGroupListArrayOutputWithContext(ctx context.Context) GetGroupsGroupListArrayOutput

type GetGroupsGroupListArrayInput

type GetGroupsGroupListArrayInput interface {
	pulumi.Input

	ToGetGroupsGroupListArrayOutput() GetGroupsGroupListArrayOutput
	ToGetGroupsGroupListArrayOutputWithContext(context.Context) GetGroupsGroupListArrayOutput
}

GetGroupsGroupListArrayInput is an input type that accepts GetGroupsGroupListArray and GetGroupsGroupListArrayOutput values. You can construct a concrete instance of `GetGroupsGroupListArrayInput` via:

GetGroupsGroupListArray{ GetGroupsGroupListArgs{...} }

type GetGroupsGroupListArrayOutput

type GetGroupsGroupListArrayOutput struct{ *pulumi.OutputState }

func (GetGroupsGroupListArrayOutput) ElementType

func (GetGroupsGroupListArrayOutput) Index

func (GetGroupsGroupListArrayOutput) ToGetGroupsGroupListArrayOutput

func (o GetGroupsGroupListArrayOutput) ToGetGroupsGroupListArrayOutput() GetGroupsGroupListArrayOutput

func (GetGroupsGroupListArrayOutput) ToGetGroupsGroupListArrayOutputWithContext

func (o GetGroupsGroupListArrayOutput) ToGetGroupsGroupListArrayOutputWithContext(ctx context.Context) GetGroupsGroupListArrayOutput

type GetGroupsGroupListInput

type GetGroupsGroupListInput interface {
	pulumi.Input

	ToGetGroupsGroupListOutput() GetGroupsGroupListOutput
	ToGetGroupsGroupListOutputWithContext(context.Context) GetGroupsGroupListOutput
}

GetGroupsGroupListInput is an input type that accepts GetGroupsGroupListArgs and GetGroupsGroupListOutput values. You can construct a concrete instance of `GetGroupsGroupListInput` via:

GetGroupsGroupListArgs{...}

type GetGroupsGroupListOutput

type GetGroupsGroupListOutput struct{ *pulumi.OutputState }

func (GetGroupsGroupListOutput) CreateTime

Create time of the CAM group.

func (GetGroupsGroupListOutput) ElementType

func (GetGroupsGroupListOutput) ElementType() reflect.Type

func (GetGroupsGroupListOutput) GroupId

ID of CAM group to be queried.

func (GetGroupsGroupListOutput) Name

Name of the CAM group to be queried.

func (GetGroupsGroupListOutput) Remark

Description of the cam group to be queried.

func (GetGroupsGroupListOutput) ToGetGroupsGroupListOutput

func (o GetGroupsGroupListOutput) ToGetGroupsGroupListOutput() GetGroupsGroupListOutput

func (GetGroupsGroupListOutput) ToGetGroupsGroupListOutputWithContext

func (o GetGroupsGroupListOutput) ToGetGroupsGroupListOutputWithContext(ctx context.Context) GetGroupsGroupListOutput

type GetGroupsOutputArgs

type GetGroupsOutputArgs struct {
	// ID of CAM group to be queried.
	GroupId pulumi.StringPtrInput `pulumi:"groupId"`
	// Name of the CAM group to be queried.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// Description of the cam group to be queried.
	Remark pulumi.StringPtrInput `pulumi:"remark"`
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getGroups.

func (GetGroupsOutputArgs) ElementType

func (GetGroupsOutputArgs) ElementType() reflect.Type

type GetGroupsResult

type GetGroupsResult struct {
	// ID of the CAM group.
	GroupId *string `pulumi:"groupId"`
	// A list of CAM groups. Each element contains the following attributes:
	GroupLists []GetGroupsGroupList `pulumi:"groupLists"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// Name of CAM group.
	Name *string `pulumi:"name"`
	// Description of CAM group.
	Remark           *string `pulumi:"remark"`
	ResultOutputFile *string `pulumi:"resultOutputFile"`
}

A collection of values returned by getGroups.

func GetGroups

func GetGroups(ctx *pulumi.Context, args *GetGroupsArgs, opts ...pulumi.InvokeOption) (*GetGroupsResult, error)

Use this data source to query detailed information of CAM groups

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Cam"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cam"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cam.GetGroups(ctx, &cam.GetGroupsArgs{
			GroupId: pulumi.StringRef(tencentcloud_cam_group.Foo.Id),
		}, nil)
		if err != nil {
			return err
		}
		_, err = Cam.GetGroups(ctx, &cam.GetGroupsArgs{
			Name: pulumi.StringRef("cam-group-test"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetGroupsResultOutput

type GetGroupsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getGroups.

func (GetGroupsResultOutput) ElementType

func (GetGroupsResultOutput) ElementType() reflect.Type

func (GetGroupsResultOutput) GroupId

ID of the CAM group.

func (GetGroupsResultOutput) GroupLists

A list of CAM groups. Each element contains the following attributes:

func (GetGroupsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetGroupsResultOutput) Name

Name of CAM group.

func (GetGroupsResultOutput) Remark

Description of CAM group.

func (GetGroupsResultOutput) ResultOutputFile

func (o GetGroupsResultOutput) ResultOutputFile() pulumi.StringPtrOutput

func (GetGroupsResultOutput) ToGetGroupsResultOutput

func (o GetGroupsResultOutput) ToGetGroupsResultOutput() GetGroupsResultOutput

func (GetGroupsResultOutput) ToGetGroupsResultOutputWithContext

func (o GetGroupsResultOutput) ToGetGroupsResultOutputWithContext(ctx context.Context) GetGroupsResultOutput

type GetPoliciesArgs

type GetPoliciesArgs struct {
	// Mode of creation of policy strategy. Valid values: `1`, `2`. `1` means policy was created with console, and `2` means it was created by strategies.
	CreateMode *int `pulumi:"createMode"`
	// The description of the CAM policy.
	Description *string `pulumi:"description"`
	// Name of the CAM policy to be queried.
	Name *string `pulumi:"name"`
	// ID of CAM policy to be queried.
	PolicyId *string `pulumi:"policyId"`
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// Type of the policy strategy. Valid values: `1`, `2`. `1` means customer strategy and `2` means preset strategy.
	Type *int `pulumi:"type"`
}

A collection of arguments for invoking getPolicies.

type GetPoliciesOutputArgs

type GetPoliciesOutputArgs struct {
	// Mode of creation of policy strategy. Valid values: `1`, `2`. `1` means policy was created with console, and `2` means it was created by strategies.
	CreateMode pulumi.IntPtrInput `pulumi:"createMode"`
	// The description of the CAM policy.
	Description pulumi.StringPtrInput `pulumi:"description"`
	// Name of the CAM policy to be queried.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// ID of CAM policy to be queried.
	PolicyId pulumi.StringPtrInput `pulumi:"policyId"`
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
	// Type of the policy strategy. Valid values: `1`, `2`. `1` means customer strategy and `2` means preset strategy.
	Type pulumi.IntPtrInput `pulumi:"type"`
}

A collection of arguments for invoking getPolicies.

func (GetPoliciesOutputArgs) ElementType

func (GetPoliciesOutputArgs) ElementType() reflect.Type

type GetPoliciesPolicyList

type GetPoliciesPolicyList struct {
	// Number of attached users.
	Attachments int `pulumi:"attachments"`
	// Mode of creation of policy strategy. Valid values: `1`, `2`. `1` means policy was created with console, and `2` means it was created by strategies.
	CreateMode int `pulumi:"createMode"`
	// Create time of the CAM policy.
	CreateTime string `pulumi:"createTime"`
	// The description of the CAM policy.
	Description string `pulumi:"description"`
	// Name of the CAM policy to be queried.
	Name string `pulumi:"name"`
	// ID of CAM policy to be queried.
	PolicyId string `pulumi:"policyId"`
	// Name of attached products.
	ServiceType string `pulumi:"serviceType"`
	// Type of the policy strategy. Valid values: `1`, `2`. `1` means customer strategy and `2` means preset strategy.
	Type int `pulumi:"type"`
}

type GetPoliciesPolicyListArgs

type GetPoliciesPolicyListArgs struct {
	// Number of attached users.
	Attachments pulumi.IntInput `pulumi:"attachments"`
	// Mode of creation of policy strategy. Valid values: `1`, `2`. `1` means policy was created with console, and `2` means it was created by strategies.
	CreateMode pulumi.IntInput `pulumi:"createMode"`
	// Create time of the CAM policy.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// The description of the CAM policy.
	Description pulumi.StringInput `pulumi:"description"`
	// Name of the CAM policy to be queried.
	Name pulumi.StringInput `pulumi:"name"`
	// ID of CAM policy to be queried.
	PolicyId pulumi.StringInput `pulumi:"policyId"`
	// Name of attached products.
	ServiceType pulumi.StringInput `pulumi:"serviceType"`
	// Type of the policy strategy. Valid values: `1`, `2`. `1` means customer strategy and `2` means preset strategy.
	Type pulumi.IntInput `pulumi:"type"`
}

func (GetPoliciesPolicyListArgs) ElementType

func (GetPoliciesPolicyListArgs) ElementType() reflect.Type

func (GetPoliciesPolicyListArgs) ToGetPoliciesPolicyListOutput

func (i GetPoliciesPolicyListArgs) ToGetPoliciesPolicyListOutput() GetPoliciesPolicyListOutput

func (GetPoliciesPolicyListArgs) ToGetPoliciesPolicyListOutputWithContext

func (i GetPoliciesPolicyListArgs) ToGetPoliciesPolicyListOutputWithContext(ctx context.Context) GetPoliciesPolicyListOutput

type GetPoliciesPolicyListArray

type GetPoliciesPolicyListArray []GetPoliciesPolicyListInput

func (GetPoliciesPolicyListArray) ElementType

func (GetPoliciesPolicyListArray) ElementType() reflect.Type

func (GetPoliciesPolicyListArray) ToGetPoliciesPolicyListArrayOutput

func (i GetPoliciesPolicyListArray) ToGetPoliciesPolicyListArrayOutput() GetPoliciesPolicyListArrayOutput

func (GetPoliciesPolicyListArray) ToGetPoliciesPolicyListArrayOutputWithContext

func (i GetPoliciesPolicyListArray) ToGetPoliciesPolicyListArrayOutputWithContext(ctx context.Context) GetPoliciesPolicyListArrayOutput

type GetPoliciesPolicyListArrayInput

type GetPoliciesPolicyListArrayInput interface {
	pulumi.Input

	ToGetPoliciesPolicyListArrayOutput() GetPoliciesPolicyListArrayOutput
	ToGetPoliciesPolicyListArrayOutputWithContext(context.Context) GetPoliciesPolicyListArrayOutput
}

GetPoliciesPolicyListArrayInput is an input type that accepts GetPoliciesPolicyListArray and GetPoliciesPolicyListArrayOutput values. You can construct a concrete instance of `GetPoliciesPolicyListArrayInput` via:

GetPoliciesPolicyListArray{ GetPoliciesPolicyListArgs{...} }

type GetPoliciesPolicyListArrayOutput

type GetPoliciesPolicyListArrayOutput struct{ *pulumi.OutputState }

func (GetPoliciesPolicyListArrayOutput) ElementType

func (GetPoliciesPolicyListArrayOutput) Index

func (GetPoliciesPolicyListArrayOutput) ToGetPoliciesPolicyListArrayOutput

func (o GetPoliciesPolicyListArrayOutput) ToGetPoliciesPolicyListArrayOutput() GetPoliciesPolicyListArrayOutput

func (GetPoliciesPolicyListArrayOutput) ToGetPoliciesPolicyListArrayOutputWithContext

func (o GetPoliciesPolicyListArrayOutput) ToGetPoliciesPolicyListArrayOutputWithContext(ctx context.Context) GetPoliciesPolicyListArrayOutput

type GetPoliciesPolicyListInput

type GetPoliciesPolicyListInput interface {
	pulumi.Input

	ToGetPoliciesPolicyListOutput() GetPoliciesPolicyListOutput
	ToGetPoliciesPolicyListOutputWithContext(context.Context) GetPoliciesPolicyListOutput
}

GetPoliciesPolicyListInput is an input type that accepts GetPoliciesPolicyListArgs and GetPoliciesPolicyListOutput values. You can construct a concrete instance of `GetPoliciesPolicyListInput` via:

GetPoliciesPolicyListArgs{...}

type GetPoliciesPolicyListOutput

type GetPoliciesPolicyListOutput struct{ *pulumi.OutputState }

func (GetPoliciesPolicyListOutput) Attachments

Number of attached users.

func (GetPoliciesPolicyListOutput) CreateMode

Mode of creation of policy strategy. Valid values: `1`, `2`. `1` means policy was created with console, and `2` means it was created by strategies.

func (GetPoliciesPolicyListOutput) CreateTime

Create time of the CAM policy.

func (GetPoliciesPolicyListOutput) Description

The description of the CAM policy.

func (GetPoliciesPolicyListOutput) ElementType

func (GetPoliciesPolicyListOutput) Name

Name of the CAM policy to be queried.

func (GetPoliciesPolicyListOutput) PolicyId

ID of CAM policy to be queried.

func (GetPoliciesPolicyListOutput) ServiceType

Name of attached products.

func (GetPoliciesPolicyListOutput) ToGetPoliciesPolicyListOutput

func (o GetPoliciesPolicyListOutput) ToGetPoliciesPolicyListOutput() GetPoliciesPolicyListOutput

func (GetPoliciesPolicyListOutput) ToGetPoliciesPolicyListOutputWithContext

func (o GetPoliciesPolicyListOutput) ToGetPoliciesPolicyListOutputWithContext(ctx context.Context) GetPoliciesPolicyListOutput

func (GetPoliciesPolicyListOutput) Type

Type of the policy strategy. Valid values: `1`, `2`. `1` means customer strategy and `2` means preset strategy.

type GetPoliciesResult

type GetPoliciesResult struct {
	// Mode of creation of policy strategy. `1` means policy was created with console, and `2` means it was created by strategies.
	CreateMode *int `pulumi:"createMode"`
	// Description of CAM policy.
	Description *string `pulumi:"description"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// Name of CAM policy.
	Name *string `pulumi:"name"`
	// ID of the policy strategy.
	PolicyId *string `pulumi:"policyId"`
	// A list of CAM policies. Each element contains the following attributes:
	PolicyLists      []GetPoliciesPolicyList `pulumi:"policyLists"`
	ResultOutputFile *string                 `pulumi:"resultOutputFile"`
	// Type of the policy strategy. `1` means customer strategy and `2` means preset strategy.
	Type *int `pulumi:"type"`
}

A collection of values returned by getPolicies.

func GetPolicies

func GetPolicies(ctx *pulumi.Context, args *GetPoliciesArgs, opts ...pulumi.InvokeOption) (*GetPoliciesResult, error)

Use this data source to query detailed information of CAM policies

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Cam"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cam"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cam.GetPolicies(ctx, &cam.GetPoliciesArgs{
			PolicyId: pulumi.StringRef(tencentcloud_cam_policy.Foo.Id),
		}, nil)
		if err != nil {
			return err
		}
		_, err = Cam.GetPolicies(ctx, &cam.GetPoliciesArgs{
			PolicyId: pulumi.StringRef(tencentcloud_cam_policy.Foo.Id),
			Name:     pulumi.StringRef("tf-auto-test"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetPoliciesResultOutput

type GetPoliciesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getPolicies.

func (GetPoliciesResultOutput) CreateMode

Mode of creation of policy strategy. `1` means policy was created with console, and `2` means it was created by strategies.

func (GetPoliciesResultOutput) Description

Description of CAM policy.

func (GetPoliciesResultOutput) ElementType

func (GetPoliciesResultOutput) ElementType() reflect.Type

func (GetPoliciesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetPoliciesResultOutput) Name

Name of CAM policy.

func (GetPoliciesResultOutput) PolicyId

ID of the policy strategy.

func (GetPoliciesResultOutput) PolicyLists

A list of CAM policies. Each element contains the following attributes:

func (GetPoliciesResultOutput) ResultOutputFile

func (o GetPoliciesResultOutput) ResultOutputFile() pulumi.StringPtrOutput

func (GetPoliciesResultOutput) ToGetPoliciesResultOutput

func (o GetPoliciesResultOutput) ToGetPoliciesResultOutput() GetPoliciesResultOutput

func (GetPoliciesResultOutput) ToGetPoliciesResultOutputWithContext

func (o GetPoliciesResultOutput) ToGetPoliciesResultOutputWithContext(ctx context.Context) GetPoliciesResultOutput

func (GetPoliciesResultOutput) Type

Type of the policy strategy. `1` means customer strategy and `2` means preset strategy.

type GetRolePolicyAttachmentsArgs

type GetRolePolicyAttachmentsArgs struct {
	// Mode of Creation of the CAM user policy attachment. `1` means the cam policy attachment is created by production, and the others indicate syntax strategy ways.
	CreateMode *int `pulumi:"createMode"`
	// ID of CAM policy to be queried.
	PolicyId *string `pulumi:"policyId"`
	// Type of the policy strategy. Valid values are 'User', 'QCS'. 'User' means customer strategy and 'QCS' means preset strategy.
	PolicyType *string `pulumi:"policyType"`
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// ID of the attached CAM role to be queried.
	RoleId string `pulumi:"roleId"`
}

A collection of arguments for invoking getRolePolicyAttachments.

type GetRolePolicyAttachmentsOutputArgs

type GetRolePolicyAttachmentsOutputArgs struct {
	// Mode of Creation of the CAM user policy attachment. `1` means the cam policy attachment is created by production, and the others indicate syntax strategy ways.
	CreateMode pulumi.IntPtrInput `pulumi:"createMode"`
	// ID of CAM policy to be queried.
	PolicyId pulumi.StringPtrInput `pulumi:"policyId"`
	// Type of the policy strategy. Valid values are 'User', 'QCS'. 'User' means customer strategy and 'QCS' means preset strategy.
	PolicyType pulumi.StringPtrInput `pulumi:"policyType"`
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
	// ID of the attached CAM role to be queried.
	RoleId pulumi.StringInput `pulumi:"roleId"`
}

A collection of arguments for invoking getRolePolicyAttachments.

func (GetRolePolicyAttachmentsOutputArgs) ElementType

type GetRolePolicyAttachmentsResult

type GetRolePolicyAttachmentsResult struct {
	// Mode of Creation of the CAM role policy attachment. `1` means the cam policy attachment is created by production, and the others indicate syntax strategy ways.
	CreateMode *int `pulumi:"createMode"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// Name of CAM role.
	PolicyId *string `pulumi:"policyId"`
	// Type of the policy strategy. 'User' means customer strategy and 'QCS' means preset strategy.
	PolicyType       *string `pulumi:"policyType"`
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// ID of CAM role.
	RoleId string `pulumi:"roleId"`
	// A list of CAM role policy attachments. Each element contains the following attributes:
	RolePolicyAttachmentLists []GetRolePolicyAttachmentsRolePolicyAttachmentList `pulumi:"rolePolicyAttachmentLists"`
}

A collection of values returned by getRolePolicyAttachments.

func GetRolePolicyAttachments

func GetRolePolicyAttachments(ctx *pulumi.Context, args *GetRolePolicyAttachmentsArgs, opts ...pulumi.InvokeOption) (*GetRolePolicyAttachmentsResult, error)

Use this data source to query detailed information of CAM role policy attachments

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Cam"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cam"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cam.GetRolePolicyAttachments(ctx, &cam.GetRolePolicyAttachmentsArgs{
			RoleId: tencentcloud_cam_role.Foo.Id,
		}, nil)
		if err != nil {
			return err
		}
		_, err = Cam.GetRolePolicyAttachments(ctx, &cam.GetRolePolicyAttachmentsArgs{
			RoleId:   tencentcloud_cam_role.Foo.Id,
			PolicyId: pulumi.StringRef(tencentcloud_cam_policy.Foo.Id),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetRolePolicyAttachmentsResultOutput

type GetRolePolicyAttachmentsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getRolePolicyAttachments.

func (GetRolePolicyAttachmentsResultOutput) CreateMode

Mode of Creation of the CAM role policy attachment. `1` means the cam policy attachment is created by production, and the others indicate syntax strategy ways.

func (GetRolePolicyAttachmentsResultOutput) ElementType

func (GetRolePolicyAttachmentsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetRolePolicyAttachmentsResultOutput) PolicyId

Name of CAM role.

func (GetRolePolicyAttachmentsResultOutput) PolicyType

Type of the policy strategy. 'User' means customer strategy and 'QCS' means preset strategy.

func (GetRolePolicyAttachmentsResultOutput) ResultOutputFile

func (GetRolePolicyAttachmentsResultOutput) RoleId

ID of CAM role.

func (GetRolePolicyAttachmentsResultOutput) RolePolicyAttachmentLists

A list of CAM role policy attachments. Each element contains the following attributes:

func (GetRolePolicyAttachmentsResultOutput) ToGetRolePolicyAttachmentsResultOutput

func (o GetRolePolicyAttachmentsResultOutput) ToGetRolePolicyAttachmentsResultOutput() GetRolePolicyAttachmentsResultOutput

func (GetRolePolicyAttachmentsResultOutput) ToGetRolePolicyAttachmentsResultOutputWithContext

func (o GetRolePolicyAttachmentsResultOutput) ToGetRolePolicyAttachmentsResultOutputWithContext(ctx context.Context) GetRolePolicyAttachmentsResultOutput

type GetRolePolicyAttachmentsRolePolicyAttachmentList

type GetRolePolicyAttachmentsRolePolicyAttachmentList struct {
	// Mode of Creation of the CAM user policy attachment. `1` means the cam policy attachment is created by production, and the others indicate syntax strategy ways.
	CreateMode int `pulumi:"createMode"`
	// Create time of the CAM role policy attachment.
	CreateTime string `pulumi:"createTime"`
	// ID of CAM policy to be queried.
	PolicyId string `pulumi:"policyId"`
	// Name of the policy.
	PolicyName string `pulumi:"policyName"`
	// Type of the policy strategy. Valid values are 'User', 'QCS'. 'User' means customer strategy and 'QCS' means preset strategy.
	PolicyType string `pulumi:"policyType"`
	// ID of the attached CAM role to be queried.
	RoleId string `pulumi:"roleId"`
}

type GetRolePolicyAttachmentsRolePolicyAttachmentListArgs

type GetRolePolicyAttachmentsRolePolicyAttachmentListArgs struct {
	// Mode of Creation of the CAM user policy attachment. `1` means the cam policy attachment is created by production, and the others indicate syntax strategy ways.
	CreateMode pulumi.IntInput `pulumi:"createMode"`
	// Create time of the CAM role policy attachment.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// ID of CAM policy to be queried.
	PolicyId pulumi.StringInput `pulumi:"policyId"`
	// Name of the policy.
	PolicyName pulumi.StringInput `pulumi:"policyName"`
	// Type of the policy strategy. Valid values are 'User', 'QCS'. 'User' means customer strategy and 'QCS' means preset strategy.
	PolicyType pulumi.StringInput `pulumi:"policyType"`
	// ID of the attached CAM role to be queried.
	RoleId pulumi.StringInput `pulumi:"roleId"`
}

func (GetRolePolicyAttachmentsRolePolicyAttachmentListArgs) ElementType

func (GetRolePolicyAttachmentsRolePolicyAttachmentListArgs) ToGetRolePolicyAttachmentsRolePolicyAttachmentListOutput

func (i GetRolePolicyAttachmentsRolePolicyAttachmentListArgs) ToGetRolePolicyAttachmentsRolePolicyAttachmentListOutput() GetRolePolicyAttachmentsRolePolicyAttachmentListOutput

func (GetRolePolicyAttachmentsRolePolicyAttachmentListArgs) ToGetRolePolicyAttachmentsRolePolicyAttachmentListOutputWithContext

func (i GetRolePolicyAttachmentsRolePolicyAttachmentListArgs) ToGetRolePolicyAttachmentsRolePolicyAttachmentListOutputWithContext(ctx context.Context) GetRolePolicyAttachmentsRolePolicyAttachmentListOutput

type GetRolePolicyAttachmentsRolePolicyAttachmentListArray

type GetRolePolicyAttachmentsRolePolicyAttachmentListArray []GetRolePolicyAttachmentsRolePolicyAttachmentListInput

func (GetRolePolicyAttachmentsRolePolicyAttachmentListArray) ElementType

func (GetRolePolicyAttachmentsRolePolicyAttachmentListArray) ToGetRolePolicyAttachmentsRolePolicyAttachmentListArrayOutput

func (i GetRolePolicyAttachmentsRolePolicyAttachmentListArray) ToGetRolePolicyAttachmentsRolePolicyAttachmentListArrayOutput() GetRolePolicyAttachmentsRolePolicyAttachmentListArrayOutput

func (GetRolePolicyAttachmentsRolePolicyAttachmentListArray) ToGetRolePolicyAttachmentsRolePolicyAttachmentListArrayOutputWithContext

func (i GetRolePolicyAttachmentsRolePolicyAttachmentListArray) ToGetRolePolicyAttachmentsRolePolicyAttachmentListArrayOutputWithContext(ctx context.Context) GetRolePolicyAttachmentsRolePolicyAttachmentListArrayOutput

type GetRolePolicyAttachmentsRolePolicyAttachmentListArrayInput

type GetRolePolicyAttachmentsRolePolicyAttachmentListArrayInput interface {
	pulumi.Input

	ToGetRolePolicyAttachmentsRolePolicyAttachmentListArrayOutput() GetRolePolicyAttachmentsRolePolicyAttachmentListArrayOutput
	ToGetRolePolicyAttachmentsRolePolicyAttachmentListArrayOutputWithContext(context.Context) GetRolePolicyAttachmentsRolePolicyAttachmentListArrayOutput
}

GetRolePolicyAttachmentsRolePolicyAttachmentListArrayInput is an input type that accepts GetRolePolicyAttachmentsRolePolicyAttachmentListArray and GetRolePolicyAttachmentsRolePolicyAttachmentListArrayOutput values. You can construct a concrete instance of `GetRolePolicyAttachmentsRolePolicyAttachmentListArrayInput` via:

GetRolePolicyAttachmentsRolePolicyAttachmentListArray{ GetRolePolicyAttachmentsRolePolicyAttachmentListArgs{...} }

type GetRolePolicyAttachmentsRolePolicyAttachmentListArrayOutput

type GetRolePolicyAttachmentsRolePolicyAttachmentListArrayOutput struct{ *pulumi.OutputState }

func (GetRolePolicyAttachmentsRolePolicyAttachmentListArrayOutput) ElementType

func (GetRolePolicyAttachmentsRolePolicyAttachmentListArrayOutput) Index

func (GetRolePolicyAttachmentsRolePolicyAttachmentListArrayOutput) ToGetRolePolicyAttachmentsRolePolicyAttachmentListArrayOutput

func (GetRolePolicyAttachmentsRolePolicyAttachmentListArrayOutput) ToGetRolePolicyAttachmentsRolePolicyAttachmentListArrayOutputWithContext

func (o GetRolePolicyAttachmentsRolePolicyAttachmentListArrayOutput) ToGetRolePolicyAttachmentsRolePolicyAttachmentListArrayOutputWithContext(ctx context.Context) GetRolePolicyAttachmentsRolePolicyAttachmentListArrayOutput

type GetRolePolicyAttachmentsRolePolicyAttachmentListInput

type GetRolePolicyAttachmentsRolePolicyAttachmentListInput interface {
	pulumi.Input

	ToGetRolePolicyAttachmentsRolePolicyAttachmentListOutput() GetRolePolicyAttachmentsRolePolicyAttachmentListOutput
	ToGetRolePolicyAttachmentsRolePolicyAttachmentListOutputWithContext(context.Context) GetRolePolicyAttachmentsRolePolicyAttachmentListOutput
}

GetRolePolicyAttachmentsRolePolicyAttachmentListInput is an input type that accepts GetRolePolicyAttachmentsRolePolicyAttachmentListArgs and GetRolePolicyAttachmentsRolePolicyAttachmentListOutput values. You can construct a concrete instance of `GetRolePolicyAttachmentsRolePolicyAttachmentListInput` via:

GetRolePolicyAttachmentsRolePolicyAttachmentListArgs{...}

type GetRolePolicyAttachmentsRolePolicyAttachmentListOutput

type GetRolePolicyAttachmentsRolePolicyAttachmentListOutput struct{ *pulumi.OutputState }

func (GetRolePolicyAttachmentsRolePolicyAttachmentListOutput) CreateMode

Mode of Creation of the CAM user policy attachment. `1` means the cam policy attachment is created by production, and the others indicate syntax strategy ways.

func (GetRolePolicyAttachmentsRolePolicyAttachmentListOutput) CreateTime

Create time of the CAM role policy attachment.

func (GetRolePolicyAttachmentsRolePolicyAttachmentListOutput) ElementType

func (GetRolePolicyAttachmentsRolePolicyAttachmentListOutput) PolicyId

ID of CAM policy to be queried.

func (GetRolePolicyAttachmentsRolePolicyAttachmentListOutput) PolicyName

Name of the policy.

func (GetRolePolicyAttachmentsRolePolicyAttachmentListOutput) PolicyType

Type of the policy strategy. Valid values are 'User', 'QCS'. 'User' means customer strategy and 'QCS' means preset strategy.

func (GetRolePolicyAttachmentsRolePolicyAttachmentListOutput) RoleId

ID of the attached CAM role to be queried.

func (GetRolePolicyAttachmentsRolePolicyAttachmentListOutput) ToGetRolePolicyAttachmentsRolePolicyAttachmentListOutput

func (GetRolePolicyAttachmentsRolePolicyAttachmentListOutput) ToGetRolePolicyAttachmentsRolePolicyAttachmentListOutputWithContext

func (o GetRolePolicyAttachmentsRolePolicyAttachmentListOutput) ToGetRolePolicyAttachmentsRolePolicyAttachmentListOutputWithContext(ctx context.Context) GetRolePolicyAttachmentsRolePolicyAttachmentListOutput

type GetRolesArgs

type GetRolesArgs struct {
	// The description of the CAM role to be queried.
	Description *string `pulumi:"description"`
	// Name of the CAM policy to be queried.
	Name *string `pulumi:"name"`
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// ID of the CAM role to be queried.
	RoleId *string `pulumi:"roleId"`
}

A collection of arguments for invoking getRoles.

type GetRolesOutputArgs

type GetRolesOutputArgs struct {
	// The description of the CAM role to be queried.
	Description pulumi.StringPtrInput `pulumi:"description"`
	// Name of the CAM policy to be queried.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
	// ID of the CAM role to be queried.
	RoleId pulumi.StringPtrInput `pulumi:"roleId"`
}

A collection of arguments for invoking getRoles.

func (GetRolesOutputArgs) ElementType

func (GetRolesOutputArgs) ElementType() reflect.Type

type GetRolesResult

type GetRolesResult struct {
	// Description of CAM role.
	Description *string `pulumi:"description"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// Name of CAM role.
	Name             *string `pulumi:"name"`
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// Id of CAM role.
	RoleId *string `pulumi:"roleId"`
	// A list of CAM roles. Each element contains the following attributes:
	RoleLists []GetRolesRoleList `pulumi:"roleLists"`
}

A collection of values returned by getRoles.

func GetRoles

func GetRoles(ctx *pulumi.Context, args *GetRolesArgs, opts ...pulumi.InvokeOption) (*GetRolesResult, error)

Use this data source to query detailed information of CAM roles

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Cam"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cam"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cam.GetRoles(ctx, &cam.GetRolesArgs{
			RoleId: pulumi.StringRef(tencentcloud_cam_role.Foo.Id),
		}, nil)
		if err != nil {
			return err
		}
		_, err = Cam.GetRoles(ctx, &cam.GetRolesArgs{
			Name: pulumi.StringRef("cam-role-test"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetRolesResultOutput

type GetRolesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getRoles.

func (GetRolesResultOutput) Description

Description of CAM role.

func (GetRolesResultOutput) ElementType

func (GetRolesResultOutput) ElementType() reflect.Type

func (GetRolesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetRolesResultOutput) Name

Name of CAM role.

func (GetRolesResultOutput) ResultOutputFile

func (o GetRolesResultOutput) ResultOutputFile() pulumi.StringPtrOutput

func (GetRolesResultOutput) RoleId

Id of CAM role.

func (GetRolesResultOutput) RoleLists

A list of CAM roles. Each element contains the following attributes:

func (GetRolesResultOutput) ToGetRolesResultOutput

func (o GetRolesResultOutput) ToGetRolesResultOutput() GetRolesResultOutput

func (GetRolesResultOutput) ToGetRolesResultOutputWithContext

func (o GetRolesResultOutput) ToGetRolesResultOutputWithContext(ctx context.Context) GetRolesResultOutput

type GetRolesRoleList

type GetRolesRoleList struct {
	// Indicate whether the CAM role can be login or not.
	ConsoleLogin bool `pulumi:"consoleLogin"`
	// The create time of the CAM role.
	CreateTime string `pulumi:"createTime"`
	// The description of the CAM role to be queried.
	Description string `pulumi:"description"`
	// Policy document of CAM role.
	Document string `pulumi:"document"`
	// Name of the CAM policy to be queried.
	Name string `pulumi:"name"`
	// ID of the CAM role to be queried.
	RoleId string `pulumi:"roleId"`
	// The last update time of the CAM role.
	UpdateTime string `pulumi:"updateTime"`
}

type GetRolesRoleListArgs

type GetRolesRoleListArgs struct {
	// Indicate whether the CAM role can be login or not.
	ConsoleLogin pulumi.BoolInput `pulumi:"consoleLogin"`
	// The create time of the CAM role.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// The description of the CAM role to be queried.
	Description pulumi.StringInput `pulumi:"description"`
	// Policy document of CAM role.
	Document pulumi.StringInput `pulumi:"document"`
	// Name of the CAM policy to be queried.
	Name pulumi.StringInput `pulumi:"name"`
	// ID of the CAM role to be queried.
	RoleId pulumi.StringInput `pulumi:"roleId"`
	// The last update time of the CAM role.
	UpdateTime pulumi.StringInput `pulumi:"updateTime"`
}

func (GetRolesRoleListArgs) ElementType

func (GetRolesRoleListArgs) ElementType() reflect.Type

func (GetRolesRoleListArgs) ToGetRolesRoleListOutput

func (i GetRolesRoleListArgs) ToGetRolesRoleListOutput() GetRolesRoleListOutput

func (GetRolesRoleListArgs) ToGetRolesRoleListOutputWithContext

func (i GetRolesRoleListArgs) ToGetRolesRoleListOutputWithContext(ctx context.Context) GetRolesRoleListOutput

type GetRolesRoleListArray

type GetRolesRoleListArray []GetRolesRoleListInput

func (GetRolesRoleListArray) ElementType

func (GetRolesRoleListArray) ElementType() reflect.Type

func (GetRolesRoleListArray) ToGetRolesRoleListArrayOutput

func (i GetRolesRoleListArray) ToGetRolesRoleListArrayOutput() GetRolesRoleListArrayOutput

func (GetRolesRoleListArray) ToGetRolesRoleListArrayOutputWithContext

func (i GetRolesRoleListArray) ToGetRolesRoleListArrayOutputWithContext(ctx context.Context) GetRolesRoleListArrayOutput

type GetRolesRoleListArrayInput

type GetRolesRoleListArrayInput interface {
	pulumi.Input

	ToGetRolesRoleListArrayOutput() GetRolesRoleListArrayOutput
	ToGetRolesRoleListArrayOutputWithContext(context.Context) GetRolesRoleListArrayOutput
}

GetRolesRoleListArrayInput is an input type that accepts GetRolesRoleListArray and GetRolesRoleListArrayOutput values. You can construct a concrete instance of `GetRolesRoleListArrayInput` via:

GetRolesRoleListArray{ GetRolesRoleListArgs{...} }

type GetRolesRoleListArrayOutput

type GetRolesRoleListArrayOutput struct{ *pulumi.OutputState }

func (GetRolesRoleListArrayOutput) ElementType

func (GetRolesRoleListArrayOutput) Index

func (GetRolesRoleListArrayOutput) ToGetRolesRoleListArrayOutput

func (o GetRolesRoleListArrayOutput) ToGetRolesRoleListArrayOutput() GetRolesRoleListArrayOutput

func (GetRolesRoleListArrayOutput) ToGetRolesRoleListArrayOutputWithContext

func (o GetRolesRoleListArrayOutput) ToGetRolesRoleListArrayOutputWithContext(ctx context.Context) GetRolesRoleListArrayOutput

type GetRolesRoleListInput

type GetRolesRoleListInput interface {
	pulumi.Input

	ToGetRolesRoleListOutput() GetRolesRoleListOutput
	ToGetRolesRoleListOutputWithContext(context.Context) GetRolesRoleListOutput
}

GetRolesRoleListInput is an input type that accepts GetRolesRoleListArgs and GetRolesRoleListOutput values. You can construct a concrete instance of `GetRolesRoleListInput` via:

GetRolesRoleListArgs{...}

type GetRolesRoleListOutput

type GetRolesRoleListOutput struct{ *pulumi.OutputState }

func (GetRolesRoleListOutput) ConsoleLogin

func (o GetRolesRoleListOutput) ConsoleLogin() pulumi.BoolOutput

Indicate whether the CAM role can be login or not.

func (GetRolesRoleListOutput) CreateTime

The create time of the CAM role.

func (GetRolesRoleListOutput) Description

func (o GetRolesRoleListOutput) Description() pulumi.StringOutput

The description of the CAM role to be queried.

func (GetRolesRoleListOutput) Document

Policy document of CAM role.

func (GetRolesRoleListOutput) ElementType

func (GetRolesRoleListOutput) ElementType() reflect.Type

func (GetRolesRoleListOutput) Name

Name of the CAM policy to be queried.

func (GetRolesRoleListOutput) RoleId

ID of the CAM role to be queried.

func (GetRolesRoleListOutput) ToGetRolesRoleListOutput

func (o GetRolesRoleListOutput) ToGetRolesRoleListOutput() GetRolesRoleListOutput

func (GetRolesRoleListOutput) ToGetRolesRoleListOutputWithContext

func (o GetRolesRoleListOutput) ToGetRolesRoleListOutputWithContext(ctx context.Context) GetRolesRoleListOutput

func (GetRolesRoleListOutput) UpdateTime

The last update time of the CAM role.

type GetSamlProvidersArgs

type GetSamlProvidersArgs struct {
	// The description of the CAM SAML provider.
	Description *string `pulumi:"description"`
	// Name of the CAM SAML provider to be queried.
	Name *string `pulumi:"name"`
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getSamlProviders.

type GetSamlProvidersOutputArgs

type GetSamlProvidersOutputArgs struct {
	// The description of the CAM SAML provider.
	Description pulumi.StringPtrInput `pulumi:"description"`
	// Name of the CAM SAML provider to be queried.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getSamlProviders.

func (GetSamlProvidersOutputArgs) ElementType

func (GetSamlProvidersOutputArgs) ElementType() reflect.Type

type GetSamlProvidersProviderList

type GetSamlProvidersProviderList struct {
	// Create time of the CAM SAML provider.
	CreateTime string `pulumi:"createTime"`
	// The description of the CAM SAML provider.
	Description string `pulumi:"description"`
	// The last modify time of the CAM SAML provider.
	ModifyTime string `pulumi:"modifyTime"`
	// Name of the CAM SAML provider to be queried.
	Name string `pulumi:"name"`
}

type GetSamlProvidersProviderListArgs

type GetSamlProvidersProviderListArgs struct {
	// Create time of the CAM SAML provider.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// The description of the CAM SAML provider.
	Description pulumi.StringInput `pulumi:"description"`
	// The last modify time of the CAM SAML provider.
	ModifyTime pulumi.StringInput `pulumi:"modifyTime"`
	// Name of the CAM SAML provider to be queried.
	Name pulumi.StringInput `pulumi:"name"`
}

func (GetSamlProvidersProviderListArgs) ElementType

func (GetSamlProvidersProviderListArgs) ToGetSamlProvidersProviderListOutput

func (i GetSamlProvidersProviderListArgs) ToGetSamlProvidersProviderListOutput() GetSamlProvidersProviderListOutput

func (GetSamlProvidersProviderListArgs) ToGetSamlProvidersProviderListOutputWithContext

func (i GetSamlProvidersProviderListArgs) ToGetSamlProvidersProviderListOutputWithContext(ctx context.Context) GetSamlProvidersProviderListOutput

type GetSamlProvidersProviderListArray

type GetSamlProvidersProviderListArray []GetSamlProvidersProviderListInput

func (GetSamlProvidersProviderListArray) ElementType

func (GetSamlProvidersProviderListArray) ToGetSamlProvidersProviderListArrayOutput

func (i GetSamlProvidersProviderListArray) ToGetSamlProvidersProviderListArrayOutput() GetSamlProvidersProviderListArrayOutput

func (GetSamlProvidersProviderListArray) ToGetSamlProvidersProviderListArrayOutputWithContext

func (i GetSamlProvidersProviderListArray) ToGetSamlProvidersProviderListArrayOutputWithContext(ctx context.Context) GetSamlProvidersProviderListArrayOutput

type GetSamlProvidersProviderListArrayInput

type GetSamlProvidersProviderListArrayInput interface {
	pulumi.Input

	ToGetSamlProvidersProviderListArrayOutput() GetSamlProvidersProviderListArrayOutput
	ToGetSamlProvidersProviderListArrayOutputWithContext(context.Context) GetSamlProvidersProviderListArrayOutput
}

GetSamlProvidersProviderListArrayInput is an input type that accepts GetSamlProvidersProviderListArray and GetSamlProvidersProviderListArrayOutput values. You can construct a concrete instance of `GetSamlProvidersProviderListArrayInput` via:

GetSamlProvidersProviderListArray{ GetSamlProvidersProviderListArgs{...} }

type GetSamlProvidersProviderListArrayOutput

type GetSamlProvidersProviderListArrayOutput struct{ *pulumi.OutputState }

func (GetSamlProvidersProviderListArrayOutput) ElementType

func (GetSamlProvidersProviderListArrayOutput) Index

func (GetSamlProvidersProviderListArrayOutput) ToGetSamlProvidersProviderListArrayOutput

func (o GetSamlProvidersProviderListArrayOutput) ToGetSamlProvidersProviderListArrayOutput() GetSamlProvidersProviderListArrayOutput

func (GetSamlProvidersProviderListArrayOutput) ToGetSamlProvidersProviderListArrayOutputWithContext

func (o GetSamlProvidersProviderListArrayOutput) ToGetSamlProvidersProviderListArrayOutputWithContext(ctx context.Context) GetSamlProvidersProviderListArrayOutput

type GetSamlProvidersProviderListInput

type GetSamlProvidersProviderListInput interface {
	pulumi.Input

	ToGetSamlProvidersProviderListOutput() GetSamlProvidersProviderListOutput
	ToGetSamlProvidersProviderListOutputWithContext(context.Context) GetSamlProvidersProviderListOutput
}

GetSamlProvidersProviderListInput is an input type that accepts GetSamlProvidersProviderListArgs and GetSamlProvidersProviderListOutput values. You can construct a concrete instance of `GetSamlProvidersProviderListInput` via:

GetSamlProvidersProviderListArgs{...}

type GetSamlProvidersProviderListOutput

type GetSamlProvidersProviderListOutput struct{ *pulumi.OutputState }

func (GetSamlProvidersProviderListOutput) CreateTime

Create time of the CAM SAML provider.

func (GetSamlProvidersProviderListOutput) Description

The description of the CAM SAML provider.

func (GetSamlProvidersProviderListOutput) ElementType

func (GetSamlProvidersProviderListOutput) ModifyTime

The last modify time of the CAM SAML provider.

func (GetSamlProvidersProviderListOutput) Name

Name of the CAM SAML provider to be queried.

func (GetSamlProvidersProviderListOutput) ToGetSamlProvidersProviderListOutput

func (o GetSamlProvidersProviderListOutput) ToGetSamlProvidersProviderListOutput() GetSamlProvidersProviderListOutput

func (GetSamlProvidersProviderListOutput) ToGetSamlProvidersProviderListOutputWithContext

func (o GetSamlProvidersProviderListOutput) ToGetSamlProvidersProviderListOutputWithContext(ctx context.Context) GetSamlProvidersProviderListOutput

type GetSamlProvidersResult

type GetSamlProvidersResult struct {
	// Description of CAM SAML provider.
	Description *string `pulumi:"description"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// Name of CAM SAML provider.
	Name *string `pulumi:"name"`
	// A list of CAM SAML providers. Each element contains the following attributes:
	ProviderLists    []GetSamlProvidersProviderList `pulumi:"providerLists"`
	ResultOutputFile *string                        `pulumi:"resultOutputFile"`
}

A collection of values returned by getSamlProviders.

func GetSamlProviders

func GetSamlProviders(ctx *pulumi.Context, args *GetSamlProvidersArgs, opts ...pulumi.InvokeOption) (*GetSamlProvidersResult, error)

Use this data source to query detailed information of CAM SAML providers

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Cam"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cam"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cam.GetSamlProviders(ctx, &cam.GetSamlProvidersArgs{
			Name: pulumi.StringRef("cam-test-provider"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetSamlProvidersResultOutput

type GetSamlProvidersResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getSamlProviders.

func (GetSamlProvidersResultOutput) Description

Description of CAM SAML provider.

func (GetSamlProvidersResultOutput) ElementType

func (GetSamlProvidersResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetSamlProvidersResultOutput) Name

Name of CAM SAML provider.

func (GetSamlProvidersResultOutput) ProviderLists

A list of CAM SAML providers. Each element contains the following attributes:

func (GetSamlProvidersResultOutput) ResultOutputFile

func (GetSamlProvidersResultOutput) ToGetSamlProvidersResultOutput

func (o GetSamlProvidersResultOutput) ToGetSamlProvidersResultOutput() GetSamlProvidersResultOutput

func (GetSamlProvidersResultOutput) ToGetSamlProvidersResultOutputWithContext

func (o GetSamlProvidersResultOutput) ToGetSamlProvidersResultOutputWithContext(ctx context.Context) GetSamlProvidersResultOutput

type GetUserPolicyAttachmentsArgs

type GetUserPolicyAttachmentsArgs struct {
	// Mode of Creation of the CAM user policy attachment. `1` means the CAM policy attachment is created by production, and the others indicate syntax strategy ways.
	CreateMode *int `pulumi:"createMode"`
	// ID of CAM policy to be queried.
	PolicyId *string `pulumi:"policyId"`
	// Type of the policy strategy. 'User' means customer strategy and 'QCS' means preset strategy.
	PolicyType *string `pulumi:"policyType"`
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// It has been deprecated from version 1.59.6. Use `userName` instead. ID of the attached CAM user to be queried.
	//
	// Deprecated: It has been deprecated from version 1.59.6. Use `user_name` instead.
	UserId *string `pulumi:"userId"`
	// Name of the attached CAM user as unique key to be queried.
	UserName *string `pulumi:"userName"`
}

A collection of arguments for invoking getUserPolicyAttachments.

type GetUserPolicyAttachmentsOutputArgs

type GetUserPolicyAttachmentsOutputArgs struct {
	// Mode of Creation of the CAM user policy attachment. `1` means the CAM policy attachment is created by production, and the others indicate syntax strategy ways.
	CreateMode pulumi.IntPtrInput `pulumi:"createMode"`
	// ID of CAM policy to be queried.
	PolicyId pulumi.StringPtrInput `pulumi:"policyId"`
	// Type of the policy strategy. 'User' means customer strategy and 'QCS' means preset strategy.
	PolicyType pulumi.StringPtrInput `pulumi:"policyType"`
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
	// It has been deprecated from version 1.59.6. Use `userName` instead. ID of the attached CAM user to be queried.
	//
	// Deprecated: It has been deprecated from version 1.59.6. Use `user_name` instead.
	UserId pulumi.StringPtrInput `pulumi:"userId"`
	// Name of the attached CAM user as unique key to be queried.
	UserName pulumi.StringPtrInput `pulumi:"userName"`
}

A collection of arguments for invoking getUserPolicyAttachments.

func (GetUserPolicyAttachmentsOutputArgs) ElementType

type GetUserPolicyAttachmentsResult

type GetUserPolicyAttachmentsResult struct {
	// Mode of Creation of the CAM user policy attachment. `1` means the cam policy attachment is created by production, and the others indicate syntax strategy ways.
	CreateMode *int `pulumi:"createMode"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// Name of CAM user.
	PolicyId *string `pulumi:"policyId"`
	// Type of the policy strategy. 'User' means customer strategy and 'QCS' means preset strategy.
	PolicyType       *string `pulumi:"policyType"`
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// (**Deprecated**) It has been deprecated from version 1.59.6. Use `userName` instead. ID of CAM user.
	//
	// Deprecated: It has been deprecated from version 1.59.6. Use `user_name` instead.
	UserId *string `pulumi:"userId"`
	// Name of CAM user as unique key.
	UserName *string `pulumi:"userName"`
	// A list of CAM user policy attachments. Each element contains the following attributes:
	UserPolicyAttachmentLists []GetUserPolicyAttachmentsUserPolicyAttachmentList `pulumi:"userPolicyAttachmentLists"`
}

A collection of values returned by getUserPolicyAttachments.

func GetUserPolicyAttachments

func GetUserPolicyAttachments(ctx *pulumi.Context, args *GetUserPolicyAttachmentsArgs, opts ...pulumi.InvokeOption) (*GetUserPolicyAttachmentsResult, error)

Use this data source to query detailed information of CAM user policy attachments

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Cam"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cam"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cam.GetUserPolicyAttachments(ctx, &cam.GetUserPolicyAttachmentsArgs{
			UserId: pulumi.StringRef(tencentcloud_cam_user.Foo.Id),
		}, nil)
		if err != nil {
			return err
		}
		_, err = Cam.GetUserPolicyAttachments(ctx, &cam.GetUserPolicyAttachmentsArgs{
			UserId:   pulumi.StringRef(tencentcloud_cam_user.Foo.Id),
			PolicyId: pulumi.StringRef(tencentcloud_cam_policy.Foo.Id),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetUserPolicyAttachmentsResultOutput

type GetUserPolicyAttachmentsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getUserPolicyAttachments.

func (GetUserPolicyAttachmentsResultOutput) CreateMode

Mode of Creation of the CAM user policy attachment. `1` means the cam policy attachment is created by production, and the others indicate syntax strategy ways.

func (GetUserPolicyAttachmentsResultOutput) ElementType

func (GetUserPolicyAttachmentsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetUserPolicyAttachmentsResultOutput) PolicyId

Name of CAM user.

func (GetUserPolicyAttachmentsResultOutput) PolicyType

Type of the policy strategy. 'User' means customer strategy and 'QCS' means preset strategy.

func (GetUserPolicyAttachmentsResultOutput) ResultOutputFile

func (GetUserPolicyAttachmentsResultOutput) ToGetUserPolicyAttachmentsResultOutput

func (o GetUserPolicyAttachmentsResultOutput) ToGetUserPolicyAttachmentsResultOutput() GetUserPolicyAttachmentsResultOutput

func (GetUserPolicyAttachmentsResultOutput) ToGetUserPolicyAttachmentsResultOutputWithContext

func (o GetUserPolicyAttachmentsResultOutput) ToGetUserPolicyAttachmentsResultOutputWithContext(ctx context.Context) GetUserPolicyAttachmentsResultOutput

func (GetUserPolicyAttachmentsResultOutput) UserId deprecated

(**Deprecated**) It has been deprecated from version 1.59.6. Use `userName` instead. ID of CAM user.

Deprecated: It has been deprecated from version 1.59.6. Use `user_name` instead.

func (GetUserPolicyAttachmentsResultOutput) UserName

Name of CAM user as unique key.

func (GetUserPolicyAttachmentsResultOutput) UserPolicyAttachmentLists

A list of CAM user policy attachments. Each element contains the following attributes:

type GetUserPolicyAttachmentsUserPolicyAttachmentList

type GetUserPolicyAttachmentsUserPolicyAttachmentList struct {
	// Mode of Creation of the CAM user policy attachment. `1` means the CAM policy attachment is created by production, and the others indicate syntax strategy ways.
	CreateMode int `pulumi:"createMode"`
	// The create time of the CAM user policy attachment.
	CreateTime string `pulumi:"createTime"`
	// ID of CAM policy to be queried.
	PolicyId string `pulumi:"policyId"`
	// The name of the policy.
	PolicyName string `pulumi:"policyName"`
	// Type of the policy strategy. 'User' means customer strategy and 'QCS' means preset strategy.
	PolicyType string `pulumi:"policyType"`
	// It has been deprecated from version 1.59.6. Use `userName` instead. ID of the attached CAM user to be queried.
	//
	// Deprecated: It has been deprecated from version 1.59.6. Use `user_name` instead.
	UserId string `pulumi:"userId"`
	// Name of the attached CAM user as unique key to be queried.
	UserName string `pulumi:"userName"`
}

type GetUserPolicyAttachmentsUserPolicyAttachmentListArgs

type GetUserPolicyAttachmentsUserPolicyAttachmentListArgs struct {
	// Mode of Creation of the CAM user policy attachment. `1` means the CAM policy attachment is created by production, and the others indicate syntax strategy ways.
	CreateMode pulumi.IntInput `pulumi:"createMode"`
	// The create time of the CAM user policy attachment.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// ID of CAM policy to be queried.
	PolicyId pulumi.StringInput `pulumi:"policyId"`
	// The name of the policy.
	PolicyName pulumi.StringInput `pulumi:"policyName"`
	// Type of the policy strategy. 'User' means customer strategy and 'QCS' means preset strategy.
	PolicyType pulumi.StringInput `pulumi:"policyType"`
	// It has been deprecated from version 1.59.6. Use `userName` instead. ID of the attached CAM user to be queried.
	//
	// Deprecated: It has been deprecated from version 1.59.6. Use `user_name` instead.
	UserId pulumi.StringInput `pulumi:"userId"`
	// Name of the attached CAM user as unique key to be queried.
	UserName pulumi.StringInput `pulumi:"userName"`
}

func (GetUserPolicyAttachmentsUserPolicyAttachmentListArgs) ElementType

func (GetUserPolicyAttachmentsUserPolicyAttachmentListArgs) ToGetUserPolicyAttachmentsUserPolicyAttachmentListOutput

func (i GetUserPolicyAttachmentsUserPolicyAttachmentListArgs) ToGetUserPolicyAttachmentsUserPolicyAttachmentListOutput() GetUserPolicyAttachmentsUserPolicyAttachmentListOutput

func (GetUserPolicyAttachmentsUserPolicyAttachmentListArgs) ToGetUserPolicyAttachmentsUserPolicyAttachmentListOutputWithContext

func (i GetUserPolicyAttachmentsUserPolicyAttachmentListArgs) ToGetUserPolicyAttachmentsUserPolicyAttachmentListOutputWithContext(ctx context.Context) GetUserPolicyAttachmentsUserPolicyAttachmentListOutput

type GetUserPolicyAttachmentsUserPolicyAttachmentListArray

type GetUserPolicyAttachmentsUserPolicyAttachmentListArray []GetUserPolicyAttachmentsUserPolicyAttachmentListInput

func (GetUserPolicyAttachmentsUserPolicyAttachmentListArray) ElementType

func (GetUserPolicyAttachmentsUserPolicyAttachmentListArray) ToGetUserPolicyAttachmentsUserPolicyAttachmentListArrayOutput

func (i GetUserPolicyAttachmentsUserPolicyAttachmentListArray) ToGetUserPolicyAttachmentsUserPolicyAttachmentListArrayOutput() GetUserPolicyAttachmentsUserPolicyAttachmentListArrayOutput

func (GetUserPolicyAttachmentsUserPolicyAttachmentListArray) ToGetUserPolicyAttachmentsUserPolicyAttachmentListArrayOutputWithContext

func (i GetUserPolicyAttachmentsUserPolicyAttachmentListArray) ToGetUserPolicyAttachmentsUserPolicyAttachmentListArrayOutputWithContext(ctx context.Context) GetUserPolicyAttachmentsUserPolicyAttachmentListArrayOutput

type GetUserPolicyAttachmentsUserPolicyAttachmentListArrayInput

type GetUserPolicyAttachmentsUserPolicyAttachmentListArrayInput interface {
	pulumi.Input

	ToGetUserPolicyAttachmentsUserPolicyAttachmentListArrayOutput() GetUserPolicyAttachmentsUserPolicyAttachmentListArrayOutput
	ToGetUserPolicyAttachmentsUserPolicyAttachmentListArrayOutputWithContext(context.Context) GetUserPolicyAttachmentsUserPolicyAttachmentListArrayOutput
}

GetUserPolicyAttachmentsUserPolicyAttachmentListArrayInput is an input type that accepts GetUserPolicyAttachmentsUserPolicyAttachmentListArray and GetUserPolicyAttachmentsUserPolicyAttachmentListArrayOutput values. You can construct a concrete instance of `GetUserPolicyAttachmentsUserPolicyAttachmentListArrayInput` via:

GetUserPolicyAttachmentsUserPolicyAttachmentListArray{ GetUserPolicyAttachmentsUserPolicyAttachmentListArgs{...} }

type GetUserPolicyAttachmentsUserPolicyAttachmentListArrayOutput

type GetUserPolicyAttachmentsUserPolicyAttachmentListArrayOutput struct{ *pulumi.OutputState }

func (GetUserPolicyAttachmentsUserPolicyAttachmentListArrayOutput) ElementType

func (GetUserPolicyAttachmentsUserPolicyAttachmentListArrayOutput) Index

func (GetUserPolicyAttachmentsUserPolicyAttachmentListArrayOutput) ToGetUserPolicyAttachmentsUserPolicyAttachmentListArrayOutput

func (GetUserPolicyAttachmentsUserPolicyAttachmentListArrayOutput) ToGetUserPolicyAttachmentsUserPolicyAttachmentListArrayOutputWithContext

func (o GetUserPolicyAttachmentsUserPolicyAttachmentListArrayOutput) ToGetUserPolicyAttachmentsUserPolicyAttachmentListArrayOutputWithContext(ctx context.Context) GetUserPolicyAttachmentsUserPolicyAttachmentListArrayOutput

type GetUserPolicyAttachmentsUserPolicyAttachmentListInput

type GetUserPolicyAttachmentsUserPolicyAttachmentListInput interface {
	pulumi.Input

	ToGetUserPolicyAttachmentsUserPolicyAttachmentListOutput() GetUserPolicyAttachmentsUserPolicyAttachmentListOutput
	ToGetUserPolicyAttachmentsUserPolicyAttachmentListOutputWithContext(context.Context) GetUserPolicyAttachmentsUserPolicyAttachmentListOutput
}

GetUserPolicyAttachmentsUserPolicyAttachmentListInput is an input type that accepts GetUserPolicyAttachmentsUserPolicyAttachmentListArgs and GetUserPolicyAttachmentsUserPolicyAttachmentListOutput values. You can construct a concrete instance of `GetUserPolicyAttachmentsUserPolicyAttachmentListInput` via:

GetUserPolicyAttachmentsUserPolicyAttachmentListArgs{...}

type GetUserPolicyAttachmentsUserPolicyAttachmentListOutput

type GetUserPolicyAttachmentsUserPolicyAttachmentListOutput struct{ *pulumi.OutputState }

func (GetUserPolicyAttachmentsUserPolicyAttachmentListOutput) CreateMode

Mode of Creation of the CAM user policy attachment. `1` means the CAM policy attachment is created by production, and the others indicate syntax strategy ways.

func (GetUserPolicyAttachmentsUserPolicyAttachmentListOutput) CreateTime

The create time of the CAM user policy attachment.

func (GetUserPolicyAttachmentsUserPolicyAttachmentListOutput) ElementType

func (GetUserPolicyAttachmentsUserPolicyAttachmentListOutput) PolicyId

ID of CAM policy to be queried.

func (GetUserPolicyAttachmentsUserPolicyAttachmentListOutput) PolicyName

The name of the policy.

func (GetUserPolicyAttachmentsUserPolicyAttachmentListOutput) PolicyType

Type of the policy strategy. 'User' means customer strategy and 'QCS' means preset strategy.

func (GetUserPolicyAttachmentsUserPolicyAttachmentListOutput) ToGetUserPolicyAttachmentsUserPolicyAttachmentListOutput

func (GetUserPolicyAttachmentsUserPolicyAttachmentListOutput) ToGetUserPolicyAttachmentsUserPolicyAttachmentListOutputWithContext

func (o GetUserPolicyAttachmentsUserPolicyAttachmentListOutput) ToGetUserPolicyAttachmentsUserPolicyAttachmentListOutputWithContext(ctx context.Context) GetUserPolicyAttachmentsUserPolicyAttachmentListOutput

func (GetUserPolicyAttachmentsUserPolicyAttachmentListOutput) UserId deprecated

It has been deprecated from version 1.59.6. Use `userName` instead. ID of the attached CAM user to be queried.

Deprecated: It has been deprecated from version 1.59.6. Use `user_name` instead.

func (GetUserPolicyAttachmentsUserPolicyAttachmentListOutput) UserName

Name of the attached CAM user as unique key to be queried.

type GetUsersArgs

type GetUsersArgs struct {
	// Indicate whether the user can login in.
	ConsoleLogin *bool `pulumi:"consoleLogin"`
	// Country code of the CAM user to be queried.
	CountryCode *string `pulumi:"countryCode"`
	// Email of the CAM user to be queried.
	Email *string `pulumi:"email"`
	// Name of CAM user to be queried.
	Name *string `pulumi:"name"`
	// Phone num of the CAM user to be queried.
	PhoneNum *string `pulumi:"phoneNum"`
	// Remark of the CAM user to be queried.
	Remark *string `pulumi:"remark"`
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// Uid of the CAM user to be queried.
	Uid *int `pulumi:"uid"`
	// Uin of the CAM user to be queried.
	Uin *int `pulumi:"uin"`
}

A collection of arguments for invoking getUsers.

type GetUsersOutputArgs

type GetUsersOutputArgs struct {
	// Indicate whether the user can login in.
	ConsoleLogin pulumi.BoolPtrInput `pulumi:"consoleLogin"`
	// Country code of the CAM user to be queried.
	CountryCode pulumi.StringPtrInput `pulumi:"countryCode"`
	// Email of the CAM user to be queried.
	Email pulumi.StringPtrInput `pulumi:"email"`
	// Name of CAM user to be queried.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// Phone num of the CAM user to be queried.
	PhoneNum pulumi.StringPtrInput `pulumi:"phoneNum"`
	// Remark of the CAM user to be queried.
	Remark pulumi.StringPtrInput `pulumi:"remark"`
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
	// Uid of the CAM user to be queried.
	Uid pulumi.IntPtrInput `pulumi:"uid"`
	// Uin of the CAM user to be queried.
	Uin pulumi.IntPtrInput `pulumi:"uin"`
}

A collection of arguments for invoking getUsers.

func (GetUsersOutputArgs) ElementType

func (GetUsersOutputArgs) ElementType() reflect.Type

type GetUsersResult

type GetUsersResult struct {
	ConsoleLogin *bool `pulumi:"consoleLogin"`
	// Country code of the CAM user.
	CountryCode *string `pulumi:"countryCode"`
	// Email of the CAM user.
	Email *string `pulumi:"email"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// Name of CAM user.
	Name *string `pulumi:"name"`
	// Phone num of the CAM user.
	PhoneNum *string `pulumi:"phoneNum"`
	// Remark of the CAM user.
	Remark           *string `pulumi:"remark"`
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// Uid of the CAM user.
	Uid *int `pulumi:"uid"`
	// Uin of the CAM user.
	Uin *int `pulumi:"uin"`
	// A list of CAM users. Each element contains the following attributes:
	UserLists []GetUsersUserList `pulumi:"userLists"`
}

A collection of values returned by getUsers.

func GetUsers

func GetUsers(ctx *pulumi.Context, args *GetUsersArgs, opts ...pulumi.InvokeOption) (*GetUsersResult, error)

Use this data source to query detailed information of CAM users

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Cam"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cam"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cam.GetUsers(ctx, &cam.GetUsersArgs{
			Name: pulumi.StringRef("cam-user-test"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = Cam.GetUsers(ctx, &cam.GetUsersArgs{
			Email: pulumi.StringRef("hello@test.com"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = Cam.GetUsers(ctx, &cam.GetUsersArgs{
			PhoneNum: pulumi.StringRef("12345678910"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetUsersResultOutput

type GetUsersResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getUsers.

func (GetUsersResultOutput) ConsoleLogin

func (o GetUsersResultOutput) ConsoleLogin() pulumi.BoolPtrOutput

func (GetUsersResultOutput) CountryCode

Country code of the CAM user.

func (GetUsersResultOutput) ElementType

func (GetUsersResultOutput) ElementType() reflect.Type

func (GetUsersResultOutput) Email

Email of the CAM user.

func (GetUsersResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetUsersResultOutput) Name

Name of CAM user.

func (GetUsersResultOutput) PhoneNum

Phone num of the CAM user.

func (GetUsersResultOutput) Remark

Remark of the CAM user.

func (GetUsersResultOutput) ResultOutputFile

func (o GetUsersResultOutput) ResultOutputFile() pulumi.StringPtrOutput

func (GetUsersResultOutput) ToGetUsersResultOutput

func (o GetUsersResultOutput) ToGetUsersResultOutput() GetUsersResultOutput

func (GetUsersResultOutput) ToGetUsersResultOutputWithContext

func (o GetUsersResultOutput) ToGetUsersResultOutputWithContext(ctx context.Context) GetUsersResultOutput

func (GetUsersResultOutput) Uid

Uid of the CAM user.

func (GetUsersResultOutput) Uin

Uin of the CAM user.

func (GetUsersResultOutput) UserLists

A list of CAM users. Each element contains the following attributes:

type GetUsersUserList

type GetUsersUserList struct {
	// Indicate whether the user can login in.
	ConsoleLogin *bool `pulumi:"consoleLogin"`
	// Country code of the CAM user to be queried.
	CountryCode string `pulumi:"countryCode"`
	// Email of the CAM user to be queried.
	Email string `pulumi:"email"`
	// Name of CAM user to be queried.
	Name string `pulumi:"name"`
	// Phone num of the CAM user to be queried.
	PhoneNum string `pulumi:"phoneNum"`
	// Remark of the CAM user to be queried.
	Remark string `pulumi:"remark"`
	// Uid of the CAM user to be queried.
	Uid int `pulumi:"uid"`
	// Uin of the CAM user to be queried.
	Uin int `pulumi:"uin"`
	// ID of CAM user. Its value equals to `name` argument.
	UserId string `pulumi:"userId"`
}

type GetUsersUserListArgs

type GetUsersUserListArgs struct {
	// Indicate whether the user can login in.
	ConsoleLogin pulumi.BoolPtrInput `pulumi:"consoleLogin"`
	// Country code of the CAM user to be queried.
	CountryCode pulumi.StringInput `pulumi:"countryCode"`
	// Email of the CAM user to be queried.
	Email pulumi.StringInput `pulumi:"email"`
	// Name of CAM user to be queried.
	Name pulumi.StringInput `pulumi:"name"`
	// Phone num of the CAM user to be queried.
	PhoneNum pulumi.StringInput `pulumi:"phoneNum"`
	// Remark of the CAM user to be queried.
	Remark pulumi.StringInput `pulumi:"remark"`
	// Uid of the CAM user to be queried.
	Uid pulumi.IntInput `pulumi:"uid"`
	// Uin of the CAM user to be queried.
	Uin pulumi.IntInput `pulumi:"uin"`
	// ID of CAM user. Its value equals to `name` argument.
	UserId pulumi.StringInput `pulumi:"userId"`
}

func (GetUsersUserListArgs) ElementType

func (GetUsersUserListArgs) ElementType() reflect.Type

func (GetUsersUserListArgs) ToGetUsersUserListOutput

func (i GetUsersUserListArgs) ToGetUsersUserListOutput() GetUsersUserListOutput

func (GetUsersUserListArgs) ToGetUsersUserListOutputWithContext

func (i GetUsersUserListArgs) ToGetUsersUserListOutputWithContext(ctx context.Context) GetUsersUserListOutput

type GetUsersUserListArray

type GetUsersUserListArray []GetUsersUserListInput

func (GetUsersUserListArray) ElementType

func (GetUsersUserListArray) ElementType() reflect.Type

func (GetUsersUserListArray) ToGetUsersUserListArrayOutput

func (i GetUsersUserListArray) ToGetUsersUserListArrayOutput() GetUsersUserListArrayOutput

func (GetUsersUserListArray) ToGetUsersUserListArrayOutputWithContext

func (i GetUsersUserListArray) ToGetUsersUserListArrayOutputWithContext(ctx context.Context) GetUsersUserListArrayOutput

type GetUsersUserListArrayInput

type GetUsersUserListArrayInput interface {
	pulumi.Input

	ToGetUsersUserListArrayOutput() GetUsersUserListArrayOutput
	ToGetUsersUserListArrayOutputWithContext(context.Context) GetUsersUserListArrayOutput
}

GetUsersUserListArrayInput is an input type that accepts GetUsersUserListArray and GetUsersUserListArrayOutput values. You can construct a concrete instance of `GetUsersUserListArrayInput` via:

GetUsersUserListArray{ GetUsersUserListArgs{...} }

type GetUsersUserListArrayOutput

type GetUsersUserListArrayOutput struct{ *pulumi.OutputState }

func (GetUsersUserListArrayOutput) ElementType

func (GetUsersUserListArrayOutput) Index

func (GetUsersUserListArrayOutput) ToGetUsersUserListArrayOutput

func (o GetUsersUserListArrayOutput) ToGetUsersUserListArrayOutput() GetUsersUserListArrayOutput

func (GetUsersUserListArrayOutput) ToGetUsersUserListArrayOutputWithContext

func (o GetUsersUserListArrayOutput) ToGetUsersUserListArrayOutputWithContext(ctx context.Context) GetUsersUserListArrayOutput

type GetUsersUserListInput

type GetUsersUserListInput interface {
	pulumi.Input

	ToGetUsersUserListOutput() GetUsersUserListOutput
	ToGetUsersUserListOutputWithContext(context.Context) GetUsersUserListOutput
}

GetUsersUserListInput is an input type that accepts GetUsersUserListArgs and GetUsersUserListOutput values. You can construct a concrete instance of `GetUsersUserListInput` via:

GetUsersUserListArgs{...}

type GetUsersUserListOutput

type GetUsersUserListOutput struct{ *pulumi.OutputState }

func (GetUsersUserListOutput) ConsoleLogin

func (o GetUsersUserListOutput) ConsoleLogin() pulumi.BoolPtrOutput

Indicate whether the user can login in.

func (GetUsersUserListOutput) CountryCode

func (o GetUsersUserListOutput) CountryCode() pulumi.StringOutput

Country code of the CAM user to be queried.

func (GetUsersUserListOutput) ElementType

func (GetUsersUserListOutput) ElementType() reflect.Type

func (GetUsersUserListOutput) Email

Email of the CAM user to be queried.

func (GetUsersUserListOutput) Name

Name of CAM user to be queried.

func (GetUsersUserListOutput) PhoneNum

Phone num of the CAM user to be queried.

func (GetUsersUserListOutput) Remark

Remark of the CAM user to be queried.

func (GetUsersUserListOutput) ToGetUsersUserListOutput

func (o GetUsersUserListOutput) ToGetUsersUserListOutput() GetUsersUserListOutput

func (GetUsersUserListOutput) ToGetUsersUserListOutputWithContext

func (o GetUsersUserListOutput) ToGetUsersUserListOutputWithContext(ctx context.Context) GetUsersUserListOutput

func (GetUsersUserListOutput) Uid

Uid of the CAM user to be queried.

func (GetUsersUserListOutput) Uin

Uin of the CAM user to be queried.

func (GetUsersUserListOutput) UserId

ID of CAM user. Its value equals to `name` argument.

type Group

type Group struct {
	pulumi.CustomResourceState

	// Create time of the CAM group.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// Name of CAM group.
	Name pulumi.StringOutput `pulumi:"name"`
	// Description of the CAM group.
	Remark pulumi.StringPtrOutput `pulumi:"remark"`
}

Provides a resource to create a CAM group.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cam"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cam.NewGroup(ctx, "foo", &Cam.GroupArgs{
			Remark: pulumi.String("test"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CAM group can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Cam/group:Group foo 90496

```

func GetGroup

func GetGroup(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *GroupState, opts ...pulumi.ResourceOption) (*Group, error)

GetGroup gets an existing Group resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewGroup

func NewGroup(ctx *pulumi.Context,
	name string, args *GroupArgs, opts ...pulumi.ResourceOption) (*Group, error)

NewGroup registers a new resource with the given unique name, arguments, and options.

func (*Group) ElementType

func (*Group) ElementType() reflect.Type

func (*Group) ToGroupOutput

func (i *Group) ToGroupOutput() GroupOutput

func (*Group) ToGroupOutputWithContext

func (i *Group) ToGroupOutputWithContext(ctx context.Context) GroupOutput

type GroupArgs

type GroupArgs struct {
	// Name of CAM group.
	Name pulumi.StringPtrInput
	// Description of the CAM group.
	Remark pulumi.StringPtrInput
}

The set of arguments for constructing a Group resource.

func (GroupArgs) ElementType

func (GroupArgs) ElementType() reflect.Type

type GroupArray

type GroupArray []GroupInput

func (GroupArray) ElementType

func (GroupArray) ElementType() reflect.Type

func (GroupArray) ToGroupArrayOutput

func (i GroupArray) ToGroupArrayOutput() GroupArrayOutput

func (GroupArray) ToGroupArrayOutputWithContext

func (i GroupArray) ToGroupArrayOutputWithContext(ctx context.Context) GroupArrayOutput

type GroupArrayInput

type GroupArrayInput interface {
	pulumi.Input

	ToGroupArrayOutput() GroupArrayOutput
	ToGroupArrayOutputWithContext(context.Context) GroupArrayOutput
}

GroupArrayInput is an input type that accepts GroupArray and GroupArrayOutput values. You can construct a concrete instance of `GroupArrayInput` via:

GroupArray{ GroupArgs{...} }

type GroupArrayOutput

type GroupArrayOutput struct{ *pulumi.OutputState }

func (GroupArrayOutput) ElementType

func (GroupArrayOutput) ElementType() reflect.Type

func (GroupArrayOutput) Index

func (GroupArrayOutput) ToGroupArrayOutput

func (o GroupArrayOutput) ToGroupArrayOutput() GroupArrayOutput

func (GroupArrayOutput) ToGroupArrayOutputWithContext

func (o GroupArrayOutput) ToGroupArrayOutputWithContext(ctx context.Context) GroupArrayOutput

type GroupInput

type GroupInput interface {
	pulumi.Input

	ToGroupOutput() GroupOutput
	ToGroupOutputWithContext(ctx context.Context) GroupOutput
}

type GroupMap

type GroupMap map[string]GroupInput

func (GroupMap) ElementType

func (GroupMap) ElementType() reflect.Type

func (GroupMap) ToGroupMapOutput

func (i GroupMap) ToGroupMapOutput() GroupMapOutput

func (GroupMap) ToGroupMapOutputWithContext

func (i GroupMap) ToGroupMapOutputWithContext(ctx context.Context) GroupMapOutput

type GroupMapInput

type GroupMapInput interface {
	pulumi.Input

	ToGroupMapOutput() GroupMapOutput
	ToGroupMapOutputWithContext(context.Context) GroupMapOutput
}

GroupMapInput is an input type that accepts GroupMap and GroupMapOutput values. You can construct a concrete instance of `GroupMapInput` via:

GroupMap{ "key": GroupArgs{...} }

type GroupMapOutput

type GroupMapOutput struct{ *pulumi.OutputState }

func (GroupMapOutput) ElementType

func (GroupMapOutput) ElementType() reflect.Type

func (GroupMapOutput) MapIndex

func (GroupMapOutput) ToGroupMapOutput

func (o GroupMapOutput) ToGroupMapOutput() GroupMapOutput

func (GroupMapOutput) ToGroupMapOutputWithContext

func (o GroupMapOutput) ToGroupMapOutputWithContext(ctx context.Context) GroupMapOutput

type GroupMembership

type GroupMembership struct {
	pulumi.CustomResourceState

	// ID of CAM group.
	GroupId pulumi.StringOutput `pulumi:"groupId"`
	// It has been deprecated from version 1.59.5. Use `userNames` instead. ID set of the CAM group members.
	//
	// Deprecated: It has been deprecated from version 1.59.5. Use `user_names` instead.
	UserIds pulumi.StringArrayOutput `pulumi:"userIds"`
	// User name set as ID of the CAM group members.
	UserNames pulumi.StringArrayOutput `pulumi:"userNames"`
}

Provides a resource to create a CAM group membership.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cam"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cam.NewGroupMembership(ctx, "foo", &Cam.GroupMembershipArgs{
			GroupId: pulumi.Any(tencentcloud_cam_group.Foo.Id),
			UserNames: pulumi.StringArray{
				pulumi.Any(tencentcloud_cam_user.Foo.Name),
				pulumi.Any(tencentcloud_cam_user.Bar.Name),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CAM group membership can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Cam/groupMembership:GroupMembership foo 12515263

```

func GetGroupMembership

func GetGroupMembership(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *GroupMembershipState, opts ...pulumi.ResourceOption) (*GroupMembership, error)

GetGroupMembership gets an existing GroupMembership resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewGroupMembership

func NewGroupMembership(ctx *pulumi.Context,
	name string, args *GroupMembershipArgs, opts ...pulumi.ResourceOption) (*GroupMembership, error)

NewGroupMembership registers a new resource with the given unique name, arguments, and options.

func (*GroupMembership) ElementType

func (*GroupMembership) ElementType() reflect.Type

func (*GroupMembership) ToGroupMembershipOutput

func (i *GroupMembership) ToGroupMembershipOutput() GroupMembershipOutput

func (*GroupMembership) ToGroupMembershipOutputWithContext

func (i *GroupMembership) ToGroupMembershipOutputWithContext(ctx context.Context) GroupMembershipOutput

type GroupMembershipArgs

type GroupMembershipArgs struct {
	// ID of CAM group.
	GroupId pulumi.StringInput
	// It has been deprecated from version 1.59.5. Use `userNames` instead. ID set of the CAM group members.
	//
	// Deprecated: It has been deprecated from version 1.59.5. Use `user_names` instead.
	UserIds pulumi.StringArrayInput
	// User name set as ID of the CAM group members.
	UserNames pulumi.StringArrayInput
}

The set of arguments for constructing a GroupMembership resource.

func (GroupMembershipArgs) ElementType

func (GroupMembershipArgs) ElementType() reflect.Type

type GroupMembershipArray

type GroupMembershipArray []GroupMembershipInput

func (GroupMembershipArray) ElementType

func (GroupMembershipArray) ElementType() reflect.Type

func (GroupMembershipArray) ToGroupMembershipArrayOutput

func (i GroupMembershipArray) ToGroupMembershipArrayOutput() GroupMembershipArrayOutput

func (GroupMembershipArray) ToGroupMembershipArrayOutputWithContext

func (i GroupMembershipArray) ToGroupMembershipArrayOutputWithContext(ctx context.Context) GroupMembershipArrayOutput

type GroupMembershipArrayInput

type GroupMembershipArrayInput interface {
	pulumi.Input

	ToGroupMembershipArrayOutput() GroupMembershipArrayOutput
	ToGroupMembershipArrayOutputWithContext(context.Context) GroupMembershipArrayOutput
}

GroupMembershipArrayInput is an input type that accepts GroupMembershipArray and GroupMembershipArrayOutput values. You can construct a concrete instance of `GroupMembershipArrayInput` via:

GroupMembershipArray{ GroupMembershipArgs{...} }

type GroupMembershipArrayOutput

type GroupMembershipArrayOutput struct{ *pulumi.OutputState }

func (GroupMembershipArrayOutput) ElementType

func (GroupMembershipArrayOutput) ElementType() reflect.Type

func (GroupMembershipArrayOutput) Index

func (GroupMembershipArrayOutput) ToGroupMembershipArrayOutput

func (o GroupMembershipArrayOutput) ToGroupMembershipArrayOutput() GroupMembershipArrayOutput

func (GroupMembershipArrayOutput) ToGroupMembershipArrayOutputWithContext

func (o GroupMembershipArrayOutput) ToGroupMembershipArrayOutputWithContext(ctx context.Context) GroupMembershipArrayOutput

type GroupMembershipInput

type GroupMembershipInput interface {
	pulumi.Input

	ToGroupMembershipOutput() GroupMembershipOutput
	ToGroupMembershipOutputWithContext(ctx context.Context) GroupMembershipOutput
}

type GroupMembershipMap

type GroupMembershipMap map[string]GroupMembershipInput

func (GroupMembershipMap) ElementType

func (GroupMembershipMap) ElementType() reflect.Type

func (GroupMembershipMap) ToGroupMembershipMapOutput

func (i GroupMembershipMap) ToGroupMembershipMapOutput() GroupMembershipMapOutput

func (GroupMembershipMap) ToGroupMembershipMapOutputWithContext

func (i GroupMembershipMap) ToGroupMembershipMapOutputWithContext(ctx context.Context) GroupMembershipMapOutput

type GroupMembershipMapInput

type GroupMembershipMapInput interface {
	pulumi.Input

	ToGroupMembershipMapOutput() GroupMembershipMapOutput
	ToGroupMembershipMapOutputWithContext(context.Context) GroupMembershipMapOutput
}

GroupMembershipMapInput is an input type that accepts GroupMembershipMap and GroupMembershipMapOutput values. You can construct a concrete instance of `GroupMembershipMapInput` via:

GroupMembershipMap{ "key": GroupMembershipArgs{...} }

type GroupMembershipMapOutput

type GroupMembershipMapOutput struct{ *pulumi.OutputState }

func (GroupMembershipMapOutput) ElementType

func (GroupMembershipMapOutput) ElementType() reflect.Type

func (GroupMembershipMapOutput) MapIndex

func (GroupMembershipMapOutput) ToGroupMembershipMapOutput

func (o GroupMembershipMapOutput) ToGroupMembershipMapOutput() GroupMembershipMapOutput

func (GroupMembershipMapOutput) ToGroupMembershipMapOutputWithContext

func (o GroupMembershipMapOutput) ToGroupMembershipMapOutputWithContext(ctx context.Context) GroupMembershipMapOutput

type GroupMembershipOutput

type GroupMembershipOutput struct{ *pulumi.OutputState }

func (GroupMembershipOutput) ElementType

func (GroupMembershipOutput) ElementType() reflect.Type

func (GroupMembershipOutput) GroupId

ID of CAM group.

func (GroupMembershipOutput) ToGroupMembershipOutput

func (o GroupMembershipOutput) ToGroupMembershipOutput() GroupMembershipOutput

func (GroupMembershipOutput) ToGroupMembershipOutputWithContext

func (o GroupMembershipOutput) ToGroupMembershipOutputWithContext(ctx context.Context) GroupMembershipOutput

func (GroupMembershipOutput) UserIds deprecated

It has been deprecated from version 1.59.5. Use `userNames` instead. ID set of the CAM group members.

Deprecated: It has been deprecated from version 1.59.5. Use `user_names` instead.

func (GroupMembershipOutput) UserNames

User name set as ID of the CAM group members.

type GroupMembershipState

type GroupMembershipState struct {
	// ID of CAM group.
	GroupId pulumi.StringPtrInput
	// It has been deprecated from version 1.59.5. Use `userNames` instead. ID set of the CAM group members.
	//
	// Deprecated: It has been deprecated from version 1.59.5. Use `user_names` instead.
	UserIds pulumi.StringArrayInput
	// User name set as ID of the CAM group members.
	UserNames pulumi.StringArrayInput
}

func (GroupMembershipState) ElementType

func (GroupMembershipState) ElementType() reflect.Type

type GroupOutput

type GroupOutput struct{ *pulumi.OutputState }

func (GroupOutput) CreateTime

func (o GroupOutput) CreateTime() pulumi.StringOutput

Create time of the CAM group.

func (GroupOutput) ElementType

func (GroupOutput) ElementType() reflect.Type

func (GroupOutput) Name

func (o GroupOutput) Name() pulumi.StringOutput

Name of CAM group.

func (GroupOutput) Remark

func (o GroupOutput) Remark() pulumi.StringPtrOutput

Description of the CAM group.

func (GroupOutput) ToGroupOutput

func (o GroupOutput) ToGroupOutput() GroupOutput

func (GroupOutput) ToGroupOutputWithContext

func (o GroupOutput) ToGroupOutputWithContext(ctx context.Context) GroupOutput

type GroupPolicyAttachment

type GroupPolicyAttachment struct {
	pulumi.CustomResourceState

	// Mode of Creation of the CAM group policy attachment. `1` means the cam policy attachment is created by production, and the others indicate syntax strategy ways.
	CreateMode pulumi.IntOutput `pulumi:"createMode"`
	// Create time of the CAM group policy attachment.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// ID of the attached CAM group.
	GroupId pulumi.StringOutput `pulumi:"groupId"`
	// ID of the policy.
	PolicyId pulumi.StringOutput `pulumi:"policyId"`
	// Name of the policy.
	PolicyName pulumi.StringOutput `pulumi:"policyName"`
	// Type of the policy strategy. 'Group' means customer strategy and 'QCS' means preset strategy.
	PolicyType pulumi.StringOutput `pulumi:"policyType"`
}

Provides a resource to create a CAM group policy attachment.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cam"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cam.NewGroupPolicyAttachment(ctx, "foo", &Cam.GroupPolicyAttachmentArgs{
			GroupId:  pulumi.Any(tencentcloud_cam_group.Foo.Id),
			PolicyId: pulumi.Any(tencentcloud_cam_policy.Foo.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CAM group policy attachment can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Cam/groupPolicyAttachment:GroupPolicyAttachment foo 12515263#26800353

```

func GetGroupPolicyAttachment

func GetGroupPolicyAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *GroupPolicyAttachmentState, opts ...pulumi.ResourceOption) (*GroupPolicyAttachment, error)

GetGroupPolicyAttachment gets an existing GroupPolicyAttachment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewGroupPolicyAttachment

func NewGroupPolicyAttachment(ctx *pulumi.Context,
	name string, args *GroupPolicyAttachmentArgs, opts ...pulumi.ResourceOption) (*GroupPolicyAttachment, error)

NewGroupPolicyAttachment registers a new resource with the given unique name, arguments, and options.

func (*GroupPolicyAttachment) ElementType

func (*GroupPolicyAttachment) ElementType() reflect.Type

func (*GroupPolicyAttachment) ToGroupPolicyAttachmentOutput

func (i *GroupPolicyAttachment) ToGroupPolicyAttachmentOutput() GroupPolicyAttachmentOutput

func (*GroupPolicyAttachment) ToGroupPolicyAttachmentOutputWithContext

func (i *GroupPolicyAttachment) ToGroupPolicyAttachmentOutputWithContext(ctx context.Context) GroupPolicyAttachmentOutput

type GroupPolicyAttachmentArgs

type GroupPolicyAttachmentArgs struct {
	// ID of the attached CAM group.
	GroupId pulumi.StringInput
	// ID of the policy.
	PolicyId pulumi.StringInput
}

The set of arguments for constructing a GroupPolicyAttachment resource.

func (GroupPolicyAttachmentArgs) ElementType

func (GroupPolicyAttachmentArgs) ElementType() reflect.Type

type GroupPolicyAttachmentArray

type GroupPolicyAttachmentArray []GroupPolicyAttachmentInput

func (GroupPolicyAttachmentArray) ElementType

func (GroupPolicyAttachmentArray) ElementType() reflect.Type

func (GroupPolicyAttachmentArray) ToGroupPolicyAttachmentArrayOutput

func (i GroupPolicyAttachmentArray) ToGroupPolicyAttachmentArrayOutput() GroupPolicyAttachmentArrayOutput

func (GroupPolicyAttachmentArray) ToGroupPolicyAttachmentArrayOutputWithContext

func (i GroupPolicyAttachmentArray) ToGroupPolicyAttachmentArrayOutputWithContext(ctx context.Context) GroupPolicyAttachmentArrayOutput

type GroupPolicyAttachmentArrayInput

type GroupPolicyAttachmentArrayInput interface {
	pulumi.Input

	ToGroupPolicyAttachmentArrayOutput() GroupPolicyAttachmentArrayOutput
	ToGroupPolicyAttachmentArrayOutputWithContext(context.Context) GroupPolicyAttachmentArrayOutput
}

GroupPolicyAttachmentArrayInput is an input type that accepts GroupPolicyAttachmentArray and GroupPolicyAttachmentArrayOutput values. You can construct a concrete instance of `GroupPolicyAttachmentArrayInput` via:

GroupPolicyAttachmentArray{ GroupPolicyAttachmentArgs{...} }

type GroupPolicyAttachmentArrayOutput

type GroupPolicyAttachmentArrayOutput struct{ *pulumi.OutputState }

func (GroupPolicyAttachmentArrayOutput) ElementType

func (GroupPolicyAttachmentArrayOutput) Index

func (GroupPolicyAttachmentArrayOutput) ToGroupPolicyAttachmentArrayOutput

func (o GroupPolicyAttachmentArrayOutput) ToGroupPolicyAttachmentArrayOutput() GroupPolicyAttachmentArrayOutput

func (GroupPolicyAttachmentArrayOutput) ToGroupPolicyAttachmentArrayOutputWithContext

func (o GroupPolicyAttachmentArrayOutput) ToGroupPolicyAttachmentArrayOutputWithContext(ctx context.Context) GroupPolicyAttachmentArrayOutput

type GroupPolicyAttachmentInput

type GroupPolicyAttachmentInput interface {
	pulumi.Input

	ToGroupPolicyAttachmentOutput() GroupPolicyAttachmentOutput
	ToGroupPolicyAttachmentOutputWithContext(ctx context.Context) GroupPolicyAttachmentOutput
}

type GroupPolicyAttachmentMap

type GroupPolicyAttachmentMap map[string]GroupPolicyAttachmentInput

func (GroupPolicyAttachmentMap) ElementType

func (GroupPolicyAttachmentMap) ElementType() reflect.Type

func (GroupPolicyAttachmentMap) ToGroupPolicyAttachmentMapOutput

func (i GroupPolicyAttachmentMap) ToGroupPolicyAttachmentMapOutput() GroupPolicyAttachmentMapOutput

func (GroupPolicyAttachmentMap) ToGroupPolicyAttachmentMapOutputWithContext

func (i GroupPolicyAttachmentMap) ToGroupPolicyAttachmentMapOutputWithContext(ctx context.Context) GroupPolicyAttachmentMapOutput

type GroupPolicyAttachmentMapInput

type GroupPolicyAttachmentMapInput interface {
	pulumi.Input

	ToGroupPolicyAttachmentMapOutput() GroupPolicyAttachmentMapOutput
	ToGroupPolicyAttachmentMapOutputWithContext(context.Context) GroupPolicyAttachmentMapOutput
}

GroupPolicyAttachmentMapInput is an input type that accepts GroupPolicyAttachmentMap and GroupPolicyAttachmentMapOutput values. You can construct a concrete instance of `GroupPolicyAttachmentMapInput` via:

GroupPolicyAttachmentMap{ "key": GroupPolicyAttachmentArgs{...} }

type GroupPolicyAttachmentMapOutput

type GroupPolicyAttachmentMapOutput struct{ *pulumi.OutputState }

func (GroupPolicyAttachmentMapOutput) ElementType

func (GroupPolicyAttachmentMapOutput) MapIndex

func (GroupPolicyAttachmentMapOutput) ToGroupPolicyAttachmentMapOutput

func (o GroupPolicyAttachmentMapOutput) ToGroupPolicyAttachmentMapOutput() GroupPolicyAttachmentMapOutput

func (GroupPolicyAttachmentMapOutput) ToGroupPolicyAttachmentMapOutputWithContext

func (o GroupPolicyAttachmentMapOutput) ToGroupPolicyAttachmentMapOutputWithContext(ctx context.Context) GroupPolicyAttachmentMapOutput

type GroupPolicyAttachmentOutput

type GroupPolicyAttachmentOutput struct{ *pulumi.OutputState }

func (GroupPolicyAttachmentOutput) CreateMode

Mode of Creation of the CAM group policy attachment. `1` means the cam policy attachment is created by production, and the others indicate syntax strategy ways.

func (GroupPolicyAttachmentOutput) CreateTime

Create time of the CAM group policy attachment.

func (GroupPolicyAttachmentOutput) ElementType

func (GroupPolicyAttachmentOutput) GroupId

ID of the attached CAM group.

func (GroupPolicyAttachmentOutput) PolicyId

ID of the policy.

func (GroupPolicyAttachmentOutput) PolicyName

Name of the policy.

func (GroupPolicyAttachmentOutput) PolicyType

Type of the policy strategy. 'Group' means customer strategy and 'QCS' means preset strategy.

func (GroupPolicyAttachmentOutput) ToGroupPolicyAttachmentOutput

func (o GroupPolicyAttachmentOutput) ToGroupPolicyAttachmentOutput() GroupPolicyAttachmentOutput

func (GroupPolicyAttachmentOutput) ToGroupPolicyAttachmentOutputWithContext

func (o GroupPolicyAttachmentOutput) ToGroupPolicyAttachmentOutputWithContext(ctx context.Context) GroupPolicyAttachmentOutput

type GroupPolicyAttachmentState

type GroupPolicyAttachmentState struct {
	// Mode of Creation of the CAM group policy attachment. `1` means the cam policy attachment is created by production, and the others indicate syntax strategy ways.
	CreateMode pulumi.IntPtrInput
	// Create time of the CAM group policy attachment.
	CreateTime pulumi.StringPtrInput
	// ID of the attached CAM group.
	GroupId pulumi.StringPtrInput
	// ID of the policy.
	PolicyId pulumi.StringPtrInput
	// Name of the policy.
	PolicyName pulumi.StringPtrInput
	// Type of the policy strategy. 'Group' means customer strategy and 'QCS' means preset strategy.
	PolicyType pulumi.StringPtrInput
}

func (GroupPolicyAttachmentState) ElementType

func (GroupPolicyAttachmentState) ElementType() reflect.Type

type GroupState

type GroupState struct {
	// Create time of the CAM group.
	CreateTime pulumi.StringPtrInput
	// Name of CAM group.
	Name pulumi.StringPtrInput
	// Description of the CAM group.
	Remark pulumi.StringPtrInput
}

func (GroupState) ElementType

func (GroupState) ElementType() reflect.Type

type OidcSso

type OidcSso struct {
	pulumi.CustomResourceState

	// Authorization request Endpoint, OpenID Connect identity provider authorization address. Corresponds to the value of the `authorizationEndpoint` field in the Openid-configuration provided by the Enterprise IdP.
	AuthorizationEndpoint pulumi.StringOutput `pulumi:"authorizationEndpoint"`
	// Client ID, the client ID registered with the OpenID Connect identity provider.
	ClientId pulumi.StringOutput `pulumi:"clientId"`
	// The signature public key requires base64_encode. Verify the public key signed by the OpenID Connect identity provider ID Token. For the security of your account, we recommend that you rotate the signed public key regularly.
	IdentityKey pulumi.StringOutput `pulumi:"identityKey"`
	// Identity provider URL. OpenID Connect identity provider identity.Corresponds to the value of the `issuer` field in the Openid-configuration provided by the Enterprise IdP.
	IdentityUrl pulumi.StringOutput `pulumi:"identityUrl"`
	// Map field names. Which field in the IdP's idToken maps to the user name of the subuser, usually the sub or name field.
	MappingFiled pulumi.StringOutput `pulumi:"mappingFiled"`
	// Authorize the request Forsonse mode. Authorization request return mode, formPost and frogment two optional modes, recommended to select formPost mode.
	ResponseMode pulumi.StringOutput `pulumi:"responseMode"`
	// Authorization requests The Response type, with a fixed value id_token.
	ResponseType pulumi.StringOutput `pulumi:"responseType"`
	// Authorize the request Scope. openid; email; profile; Authorization request information scope. The default is required openid.
	Scopes pulumi.StringArrayOutput `pulumi:"scopes"`
}

Provides a resource to create a CAM-OIDC-SSO.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cam"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cam.NewOidcSso(ctx, "foo", &Cam.OidcSsoArgs{
			AuthorizationEndpoint: pulumi.String("https://login.microsoftonline.com/.../oauth2/v2.0/authorize"),
			ClientId:              pulumi.String("..."),
			IdentityKey:           pulumi.String("..."),
			IdentityUrl:           pulumi.String("https://login.microsoftonline.com/.../v2.0"),
			MappingFiled:          pulumi.String("name"),
			ResponseMode:          pulumi.String("form_post"),
			ResponseType:          pulumi.String("id_token"),
			Scopes: pulumi.StringArray{
				pulumi.String("openid"),
				pulumi.String("email"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CAM-OIDC-SSO can be imported using the client_id or any string which can identifier resource, e.g.

```sh

$ pulumi import tencentcloud:Cam/oidcSso:OidcSso foo xxxxxxxxxxx

```

func GetOidcSso

func GetOidcSso(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *OidcSsoState, opts ...pulumi.ResourceOption) (*OidcSso, error)

GetOidcSso gets an existing OidcSso resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewOidcSso

func NewOidcSso(ctx *pulumi.Context,
	name string, args *OidcSsoArgs, opts ...pulumi.ResourceOption) (*OidcSso, error)

NewOidcSso registers a new resource with the given unique name, arguments, and options.

func (*OidcSso) ElementType

func (*OidcSso) ElementType() reflect.Type

func (*OidcSso) ToOidcSsoOutput

func (i *OidcSso) ToOidcSsoOutput() OidcSsoOutput

func (*OidcSso) ToOidcSsoOutputWithContext

func (i *OidcSso) ToOidcSsoOutputWithContext(ctx context.Context) OidcSsoOutput

type OidcSsoArgs

type OidcSsoArgs struct {
	// Authorization request Endpoint, OpenID Connect identity provider authorization address. Corresponds to the value of the `authorizationEndpoint` field in the Openid-configuration provided by the Enterprise IdP.
	AuthorizationEndpoint pulumi.StringInput
	// Client ID, the client ID registered with the OpenID Connect identity provider.
	ClientId pulumi.StringInput
	// The signature public key requires base64_encode. Verify the public key signed by the OpenID Connect identity provider ID Token. For the security of your account, we recommend that you rotate the signed public key regularly.
	IdentityKey pulumi.StringInput
	// Identity provider URL. OpenID Connect identity provider identity.Corresponds to the value of the `issuer` field in the Openid-configuration provided by the Enterprise IdP.
	IdentityUrl pulumi.StringInput
	// Map field names. Which field in the IdP's idToken maps to the user name of the subuser, usually the sub or name field.
	MappingFiled pulumi.StringInput
	// Authorize the request Forsonse mode. Authorization request return mode, formPost and frogment two optional modes, recommended to select formPost mode.
	ResponseMode pulumi.StringInput
	// Authorization requests The Response type, with a fixed value id_token.
	ResponseType pulumi.StringInput
	// Authorize the request Scope. openid; email; profile; Authorization request information scope. The default is required openid.
	Scopes pulumi.StringArrayInput
}

The set of arguments for constructing a OidcSso resource.

func (OidcSsoArgs) ElementType

func (OidcSsoArgs) ElementType() reflect.Type

type OidcSsoArray

type OidcSsoArray []OidcSsoInput

func (OidcSsoArray) ElementType

func (OidcSsoArray) ElementType() reflect.Type

func (OidcSsoArray) ToOidcSsoArrayOutput

func (i OidcSsoArray) ToOidcSsoArrayOutput() OidcSsoArrayOutput

func (OidcSsoArray) ToOidcSsoArrayOutputWithContext

func (i OidcSsoArray) ToOidcSsoArrayOutputWithContext(ctx context.Context) OidcSsoArrayOutput

type OidcSsoArrayInput

type OidcSsoArrayInput interface {
	pulumi.Input

	ToOidcSsoArrayOutput() OidcSsoArrayOutput
	ToOidcSsoArrayOutputWithContext(context.Context) OidcSsoArrayOutput
}

OidcSsoArrayInput is an input type that accepts OidcSsoArray and OidcSsoArrayOutput values. You can construct a concrete instance of `OidcSsoArrayInput` via:

OidcSsoArray{ OidcSsoArgs{...} }

type OidcSsoArrayOutput

type OidcSsoArrayOutput struct{ *pulumi.OutputState }

func (OidcSsoArrayOutput) ElementType

func (OidcSsoArrayOutput) ElementType() reflect.Type

func (OidcSsoArrayOutput) Index

func (OidcSsoArrayOutput) ToOidcSsoArrayOutput

func (o OidcSsoArrayOutput) ToOidcSsoArrayOutput() OidcSsoArrayOutput

func (OidcSsoArrayOutput) ToOidcSsoArrayOutputWithContext

func (o OidcSsoArrayOutput) ToOidcSsoArrayOutputWithContext(ctx context.Context) OidcSsoArrayOutput

type OidcSsoInput

type OidcSsoInput interface {
	pulumi.Input

	ToOidcSsoOutput() OidcSsoOutput
	ToOidcSsoOutputWithContext(ctx context.Context) OidcSsoOutput
}

type OidcSsoMap

type OidcSsoMap map[string]OidcSsoInput

func (OidcSsoMap) ElementType

func (OidcSsoMap) ElementType() reflect.Type

func (OidcSsoMap) ToOidcSsoMapOutput

func (i OidcSsoMap) ToOidcSsoMapOutput() OidcSsoMapOutput

func (OidcSsoMap) ToOidcSsoMapOutputWithContext

func (i OidcSsoMap) ToOidcSsoMapOutputWithContext(ctx context.Context) OidcSsoMapOutput

type OidcSsoMapInput

type OidcSsoMapInput interface {
	pulumi.Input

	ToOidcSsoMapOutput() OidcSsoMapOutput
	ToOidcSsoMapOutputWithContext(context.Context) OidcSsoMapOutput
}

OidcSsoMapInput is an input type that accepts OidcSsoMap and OidcSsoMapOutput values. You can construct a concrete instance of `OidcSsoMapInput` via:

OidcSsoMap{ "key": OidcSsoArgs{...} }

type OidcSsoMapOutput

type OidcSsoMapOutput struct{ *pulumi.OutputState }

func (OidcSsoMapOutput) ElementType

func (OidcSsoMapOutput) ElementType() reflect.Type

func (OidcSsoMapOutput) MapIndex

func (OidcSsoMapOutput) ToOidcSsoMapOutput

func (o OidcSsoMapOutput) ToOidcSsoMapOutput() OidcSsoMapOutput

func (OidcSsoMapOutput) ToOidcSsoMapOutputWithContext

func (o OidcSsoMapOutput) ToOidcSsoMapOutputWithContext(ctx context.Context) OidcSsoMapOutput

type OidcSsoOutput

type OidcSsoOutput struct{ *pulumi.OutputState }

func (OidcSsoOutput) AuthorizationEndpoint

func (o OidcSsoOutput) AuthorizationEndpoint() pulumi.StringOutput

Authorization request Endpoint, OpenID Connect identity provider authorization address. Corresponds to the value of the `authorizationEndpoint` field in the Openid-configuration provided by the Enterprise IdP.

func (OidcSsoOutput) ClientId

func (o OidcSsoOutput) ClientId() pulumi.StringOutput

Client ID, the client ID registered with the OpenID Connect identity provider.

func (OidcSsoOutput) ElementType

func (OidcSsoOutput) ElementType() reflect.Type

func (OidcSsoOutput) IdentityKey

func (o OidcSsoOutput) IdentityKey() pulumi.StringOutput

The signature public key requires base64_encode. Verify the public key signed by the OpenID Connect identity provider ID Token. For the security of your account, we recommend that you rotate the signed public key regularly.

func (OidcSsoOutput) IdentityUrl

func (o OidcSsoOutput) IdentityUrl() pulumi.StringOutput

Identity provider URL. OpenID Connect identity provider identity.Corresponds to the value of the `issuer` field in the Openid-configuration provided by the Enterprise IdP.

func (OidcSsoOutput) MappingFiled

func (o OidcSsoOutput) MappingFiled() pulumi.StringOutput

Map field names. Which field in the IdP's idToken maps to the user name of the subuser, usually the sub or name field.

func (OidcSsoOutput) ResponseMode

func (o OidcSsoOutput) ResponseMode() pulumi.StringOutput

Authorize the request Forsonse mode. Authorization request return mode, formPost and frogment two optional modes, recommended to select formPost mode.

func (OidcSsoOutput) ResponseType

func (o OidcSsoOutput) ResponseType() pulumi.StringOutput

Authorization requests The Response type, with a fixed value id_token.

func (OidcSsoOutput) Scopes

Authorize the request Scope. openid; email; profile; Authorization request information scope. The default is required openid.

func (OidcSsoOutput) ToOidcSsoOutput

func (o OidcSsoOutput) ToOidcSsoOutput() OidcSsoOutput

func (OidcSsoOutput) ToOidcSsoOutputWithContext

func (o OidcSsoOutput) ToOidcSsoOutputWithContext(ctx context.Context) OidcSsoOutput

type OidcSsoState

type OidcSsoState struct {
	// Authorization request Endpoint, OpenID Connect identity provider authorization address. Corresponds to the value of the `authorizationEndpoint` field in the Openid-configuration provided by the Enterprise IdP.
	AuthorizationEndpoint pulumi.StringPtrInput
	// Client ID, the client ID registered with the OpenID Connect identity provider.
	ClientId pulumi.StringPtrInput
	// The signature public key requires base64_encode. Verify the public key signed by the OpenID Connect identity provider ID Token. For the security of your account, we recommend that you rotate the signed public key regularly.
	IdentityKey pulumi.StringPtrInput
	// Identity provider URL. OpenID Connect identity provider identity.Corresponds to the value of the `issuer` field in the Openid-configuration provided by the Enterprise IdP.
	IdentityUrl pulumi.StringPtrInput
	// Map field names. Which field in the IdP's idToken maps to the user name of the subuser, usually the sub or name field.
	MappingFiled pulumi.StringPtrInput
	// Authorize the request Forsonse mode. Authorization request return mode, formPost and frogment two optional modes, recommended to select formPost mode.
	ResponseMode pulumi.StringPtrInput
	// Authorization requests The Response type, with a fixed value id_token.
	ResponseType pulumi.StringPtrInput
	// Authorize the request Scope. openid; email; profile; Authorization request information scope. The default is required openid.
	Scopes pulumi.StringArrayInput
}

func (OidcSsoState) ElementType

func (OidcSsoState) ElementType() reflect.Type

type Policy

type Policy struct {
	pulumi.CustomResourceState

	// Create time of the CAM policy.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// Description of the CAM policy.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Document of the CAM policy. The syntax refers to [CAM
	// POLICY](https://intl.cloud.tencent.com/document/product/598/10604). There are some notes when using this para in
	// terraform: 1. The elements in JSON claimed supporting two types as `string` and `array` only support type `array`; 2.
	// Terraform does not support the `root` syntax, when it appears, it must be replaced with the uin it stands for.
	Document pulumi.StringOutput `pulumi:"document"`
	// Name of CAM policy.
	Name pulumi.StringOutput `pulumi:"name"`
	// Type of the policy strategy. Valid values: `1`, `2`.  `1` means customer strategy and `2` means preset strategy.
	Type pulumi.IntOutput `pulumi:"type"`
	// The last update time of the CAM policy.
	UpdateTime pulumi.StringOutput `pulumi:"updateTime"`
}

Provides a resource to create a CAM policy.

## Example Usage

```go package main

import (

"fmt"

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cam"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cam.NewPolicy(ctx, "foo", &Cam.PolicyArgs{
			Description: pulumi.String("test"),
			Document:    pulumi.String(fmt.Sprintf("%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v", "{\n", "  \"version\": \"2.0\",\n", "  \"statement\": [\n", "    {\n", "      \"action\": [\n", "        \"name/sts:AssumeRole\"\n", "      ],\n", "      \"effect\": \"allow\",\n", "      \"resource\": [\n", "        \"*\"\n", "      ]\n", "    }\n", "  ]\n", "}\n", "\n")),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CAM policy can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Cam/policy:Policy foo 26655801

```

func GetPolicy

func GetPolicy(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PolicyState, opts ...pulumi.ResourceOption) (*Policy, error)

GetPolicy gets an existing Policy resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewPolicy

func NewPolicy(ctx *pulumi.Context,
	name string, args *PolicyArgs, opts ...pulumi.ResourceOption) (*Policy, error)

NewPolicy registers a new resource with the given unique name, arguments, and options.

func (*Policy) ElementType

func (*Policy) ElementType() reflect.Type

func (*Policy) ToPolicyOutput

func (i *Policy) ToPolicyOutput() PolicyOutput

func (*Policy) ToPolicyOutputWithContext

func (i *Policy) ToPolicyOutputWithContext(ctx context.Context) PolicyOutput

type PolicyArgs

type PolicyArgs struct {
	// Description of the CAM policy.
	Description pulumi.StringPtrInput
	// Document of the CAM policy. The syntax refers to [CAM
	// POLICY](https://intl.cloud.tencent.com/document/product/598/10604). There are some notes when using this para in
	// terraform: 1. The elements in JSON claimed supporting two types as `string` and `array` only support type `array`; 2.
	// Terraform does not support the `root` syntax, when it appears, it must be replaced with the uin it stands for.
	Document pulumi.StringInput
	// Name of CAM policy.
	Name pulumi.StringPtrInput
}

The set of arguments for constructing a Policy resource.

func (PolicyArgs) ElementType

func (PolicyArgs) ElementType() reflect.Type

type PolicyArray

type PolicyArray []PolicyInput

func (PolicyArray) ElementType

func (PolicyArray) ElementType() reflect.Type

func (PolicyArray) ToPolicyArrayOutput

func (i PolicyArray) ToPolicyArrayOutput() PolicyArrayOutput

func (PolicyArray) ToPolicyArrayOutputWithContext

func (i PolicyArray) ToPolicyArrayOutputWithContext(ctx context.Context) PolicyArrayOutput

type PolicyArrayInput

type PolicyArrayInput interface {
	pulumi.Input

	ToPolicyArrayOutput() PolicyArrayOutput
	ToPolicyArrayOutputWithContext(context.Context) PolicyArrayOutput
}

PolicyArrayInput is an input type that accepts PolicyArray and PolicyArrayOutput values. You can construct a concrete instance of `PolicyArrayInput` via:

PolicyArray{ PolicyArgs{...} }

type PolicyArrayOutput

type PolicyArrayOutput struct{ *pulumi.OutputState }

func (PolicyArrayOutput) ElementType

func (PolicyArrayOutput) ElementType() reflect.Type

func (PolicyArrayOutput) Index

func (PolicyArrayOutput) ToPolicyArrayOutput

func (o PolicyArrayOutput) ToPolicyArrayOutput() PolicyArrayOutput

func (PolicyArrayOutput) ToPolicyArrayOutputWithContext

func (o PolicyArrayOutput) ToPolicyArrayOutputWithContext(ctx context.Context) PolicyArrayOutput

type PolicyInput

type PolicyInput interface {
	pulumi.Input

	ToPolicyOutput() PolicyOutput
	ToPolicyOutputWithContext(ctx context.Context) PolicyOutput
}

type PolicyMap

type PolicyMap map[string]PolicyInput

func (PolicyMap) ElementType

func (PolicyMap) ElementType() reflect.Type

func (PolicyMap) ToPolicyMapOutput

func (i PolicyMap) ToPolicyMapOutput() PolicyMapOutput

func (PolicyMap) ToPolicyMapOutputWithContext

func (i PolicyMap) ToPolicyMapOutputWithContext(ctx context.Context) PolicyMapOutput

type PolicyMapInput

type PolicyMapInput interface {
	pulumi.Input

	ToPolicyMapOutput() PolicyMapOutput
	ToPolicyMapOutputWithContext(context.Context) PolicyMapOutput
}

PolicyMapInput is an input type that accepts PolicyMap and PolicyMapOutput values. You can construct a concrete instance of `PolicyMapInput` via:

PolicyMap{ "key": PolicyArgs{...} }

type PolicyMapOutput

type PolicyMapOutput struct{ *pulumi.OutputState }

func (PolicyMapOutput) ElementType

func (PolicyMapOutput) ElementType() reflect.Type

func (PolicyMapOutput) MapIndex

func (PolicyMapOutput) ToPolicyMapOutput

func (o PolicyMapOutput) ToPolicyMapOutput() PolicyMapOutput

func (PolicyMapOutput) ToPolicyMapOutputWithContext

func (o PolicyMapOutput) ToPolicyMapOutputWithContext(ctx context.Context) PolicyMapOutput

type PolicyOutput

type PolicyOutput struct{ *pulumi.OutputState }

func (PolicyOutput) CreateTime

func (o PolicyOutput) CreateTime() pulumi.StringOutput

Create time of the CAM policy.

func (PolicyOutput) Description

func (o PolicyOutput) Description() pulumi.StringPtrOutput

Description of the CAM policy.

func (PolicyOutput) Document

func (o PolicyOutput) Document() pulumi.StringOutput

Document of the CAM policy. The syntax refers to [CAM POLICY](https://intl.cloud.tencent.com/document/product/598/10604). There are some notes when using this para in terraform: 1. The elements in JSON claimed supporting two types as `string` and `array` only support type `array`; 2. Terraform does not support the `root` syntax, when it appears, it must be replaced with the uin it stands for.

func (PolicyOutput) ElementType

func (PolicyOutput) ElementType() reflect.Type

func (PolicyOutput) Name

func (o PolicyOutput) Name() pulumi.StringOutput

Name of CAM policy.

func (PolicyOutput) ToPolicyOutput

func (o PolicyOutput) ToPolicyOutput() PolicyOutput

func (PolicyOutput) ToPolicyOutputWithContext

func (o PolicyOutput) ToPolicyOutputWithContext(ctx context.Context) PolicyOutput

func (PolicyOutput) Type

func (o PolicyOutput) Type() pulumi.IntOutput

Type of the policy strategy. Valid values: `1`, `2`. `1` means customer strategy and `2` means preset strategy.

func (PolicyOutput) UpdateTime

func (o PolicyOutput) UpdateTime() pulumi.StringOutput

The last update time of the CAM policy.

type PolicyState

type PolicyState struct {
	// Create time of the CAM policy.
	CreateTime pulumi.StringPtrInput
	// Description of the CAM policy.
	Description pulumi.StringPtrInput
	// Document of the CAM policy. The syntax refers to [CAM
	// POLICY](https://intl.cloud.tencent.com/document/product/598/10604). There are some notes when using this para in
	// terraform: 1. The elements in JSON claimed supporting two types as `string` and `array` only support type `array`; 2.
	// Terraform does not support the `root` syntax, when it appears, it must be replaced with the uin it stands for.
	Document pulumi.StringPtrInput
	// Name of CAM policy.
	Name pulumi.StringPtrInput
	// Type of the policy strategy. Valid values: `1`, `2`.  `1` means customer strategy and `2` means preset strategy.
	Type pulumi.IntPtrInput
	// The last update time of the CAM policy.
	UpdateTime pulumi.StringPtrInput
}

func (PolicyState) ElementType

func (PolicyState) ElementType() reflect.Type

type Role

type Role struct {
	pulumi.CustomResourceState

	// Indicates whether the CAM role can login or not.
	ConsoleLogin pulumi.BoolPtrOutput `pulumi:"consoleLogin"`
	// Create time of the CAM role.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// Description of the CAM role.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Document of the CAM role. The syntax refers to [CAM POLICY](https://intl.cloud.tencent.com/document/product/598/10604).
	// There are some notes when using this para in terraform: 1. The elements in json claimed supporting two types as `string`
	// and `array` only support type `array`; 2. Terraform does not support the `root` syntax, when appears, it must be
	// replaced with the uin it stands for.
	Document pulumi.StringOutput `pulumi:"document"`
	// Name of CAM role.
	Name pulumi.StringOutput `pulumi:"name"`
	// A list of tags used to associate different resources.
	Tags pulumi.MapOutput `pulumi:"tags"`
	// The last update time of the CAM role.
	UpdateTime pulumi.StringOutput `pulumi:"updateTime"`
}

Provides a resource to create a CAM role.

## Example Usage

Create normally

```go package main

import (

"fmt"

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cam"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cam.NewRole(ctx, "foo", &Cam.RoleArgs{
			ConsoleLogin: pulumi.Bool(true),
			Description:  pulumi.String("test"),
			Document:     pulumi.String(fmt.Sprintf("%v%v%v%v%v%v%v%v%v%v%v%v%v", "{\n", "  \"version\": \"2.0\",\n", "  \"statement\": [\n", "    {\n", "      \"action\": [\"name/sts:AssumeRole\"],\n", "      \"effect\": \"allow\",\n", "      \"principal\": {\n", "        \"qcs\": [\"qcs::cam::uin/<your-account-id>:uin/<your-account-id>\"]\n", "      }\n", "    }\n", "  ]\n", "}\n", "\n")),
			Tags: pulumi.AnyMap{
				"test": pulumi.Any("tf-cam-role"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

Create with SAML provider

```go package main

import (

"fmt"

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cam"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cam.NewRole(ctx, "boo", &Cam.RoleArgs{
			ConsoleLogin: pulumi.Bool(true),
			Description:  pulumi.String("test"),
			Document:     pulumi.String(fmt.Sprintf("%v%v%v%v%v%v%v%v%v%v%v%v%v", "{\n", "  \"version\": \"2.0\",\n", "  \"statement\": [\n", "    {\n", "      \"action\": [\"name/sts:AssumeRole\", \"name/sts:AssumeRoleWithWebIdentity\"],\n", "      \"effect\": \"allow\",\n", "      \"principal\": {\n", "        \"federated\": [\"qcs::cam::uin/<your-account-id>:saml-provider/<your-name>\"]\n", "      }\n", "    }\n", "  ]\n", "}\n", "\n")),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CAM role can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Cam/role:Role foo 4611686018427733635

```

func GetRole

func GetRole(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RoleState, opts ...pulumi.ResourceOption) (*Role, error)

GetRole gets an existing Role resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewRole

func NewRole(ctx *pulumi.Context,
	name string, args *RoleArgs, opts ...pulumi.ResourceOption) (*Role, error)

NewRole registers a new resource with the given unique name, arguments, and options.

func (*Role) ElementType

func (*Role) ElementType() reflect.Type

func (*Role) ToRoleOutput

func (i *Role) ToRoleOutput() RoleOutput

func (*Role) ToRoleOutputWithContext

func (i *Role) ToRoleOutputWithContext(ctx context.Context) RoleOutput

type RoleArgs

type RoleArgs struct {
	// Indicates whether the CAM role can login or not.
	ConsoleLogin pulumi.BoolPtrInput
	// Description of the CAM role.
	Description pulumi.StringPtrInput
	// Document of the CAM role. The syntax refers to [CAM POLICY](https://intl.cloud.tencent.com/document/product/598/10604).
	// There are some notes when using this para in terraform: 1. The elements in json claimed supporting two types as `string`
	// and `array` only support type `array`; 2. Terraform does not support the `root` syntax, when appears, it must be
	// replaced with the uin it stands for.
	Document pulumi.StringInput
	// Name of CAM role.
	Name pulumi.StringPtrInput
	// A list of tags used to associate different resources.
	Tags pulumi.MapInput
}

The set of arguments for constructing a Role resource.

func (RoleArgs) ElementType

func (RoleArgs) ElementType() reflect.Type

type RoleArray

type RoleArray []RoleInput

func (RoleArray) ElementType

func (RoleArray) ElementType() reflect.Type

func (RoleArray) ToRoleArrayOutput

func (i RoleArray) ToRoleArrayOutput() RoleArrayOutput

func (RoleArray) ToRoleArrayOutputWithContext

func (i RoleArray) ToRoleArrayOutputWithContext(ctx context.Context) RoleArrayOutput

type RoleArrayInput

type RoleArrayInput interface {
	pulumi.Input

	ToRoleArrayOutput() RoleArrayOutput
	ToRoleArrayOutputWithContext(context.Context) RoleArrayOutput
}

RoleArrayInput is an input type that accepts RoleArray and RoleArrayOutput values. You can construct a concrete instance of `RoleArrayInput` via:

RoleArray{ RoleArgs{...} }

type RoleArrayOutput

type RoleArrayOutput struct{ *pulumi.OutputState }

func (RoleArrayOutput) ElementType

func (RoleArrayOutput) ElementType() reflect.Type

func (RoleArrayOutput) Index

func (RoleArrayOutput) ToRoleArrayOutput

func (o RoleArrayOutput) ToRoleArrayOutput() RoleArrayOutput

func (RoleArrayOutput) ToRoleArrayOutputWithContext

func (o RoleArrayOutput) ToRoleArrayOutputWithContext(ctx context.Context) RoleArrayOutput

type RoleInput

type RoleInput interface {
	pulumi.Input

	ToRoleOutput() RoleOutput
	ToRoleOutputWithContext(ctx context.Context) RoleOutput
}

type RoleMap

type RoleMap map[string]RoleInput

func (RoleMap) ElementType

func (RoleMap) ElementType() reflect.Type

func (RoleMap) ToRoleMapOutput

func (i RoleMap) ToRoleMapOutput() RoleMapOutput

func (RoleMap) ToRoleMapOutputWithContext

func (i RoleMap) ToRoleMapOutputWithContext(ctx context.Context) RoleMapOutput

type RoleMapInput

type RoleMapInput interface {
	pulumi.Input

	ToRoleMapOutput() RoleMapOutput
	ToRoleMapOutputWithContext(context.Context) RoleMapOutput
}

RoleMapInput is an input type that accepts RoleMap and RoleMapOutput values. You can construct a concrete instance of `RoleMapInput` via:

RoleMap{ "key": RoleArgs{...} }

type RoleMapOutput

type RoleMapOutput struct{ *pulumi.OutputState }

func (RoleMapOutput) ElementType

func (RoleMapOutput) ElementType() reflect.Type

func (RoleMapOutput) MapIndex

func (RoleMapOutput) ToRoleMapOutput

func (o RoleMapOutput) ToRoleMapOutput() RoleMapOutput

func (RoleMapOutput) ToRoleMapOutputWithContext

func (o RoleMapOutput) ToRoleMapOutputWithContext(ctx context.Context) RoleMapOutput

type RoleOutput

type RoleOutput struct{ *pulumi.OutputState }

func (RoleOutput) ConsoleLogin

func (o RoleOutput) ConsoleLogin() pulumi.BoolPtrOutput

Indicates whether the CAM role can login or not.

func (RoleOutput) CreateTime

func (o RoleOutput) CreateTime() pulumi.StringOutput

Create time of the CAM role.

func (RoleOutput) Description

func (o RoleOutput) Description() pulumi.StringPtrOutput

Description of the CAM role.

func (RoleOutput) Document

func (o RoleOutput) Document() pulumi.StringOutput

Document of the CAM role. The syntax refers to [CAM POLICY](https://intl.cloud.tencent.com/document/product/598/10604). There are some notes when using this para in terraform: 1. The elements in json claimed supporting two types as `string` and `array` only support type `array`; 2. Terraform does not support the `root` syntax, when appears, it must be replaced with the uin it stands for.

func (RoleOutput) ElementType

func (RoleOutput) ElementType() reflect.Type

func (RoleOutput) Name

func (o RoleOutput) Name() pulumi.StringOutput

Name of CAM role.

func (RoleOutput) Tags

func (o RoleOutput) Tags() pulumi.MapOutput

A list of tags used to associate different resources.

func (RoleOutput) ToRoleOutput

func (o RoleOutput) ToRoleOutput() RoleOutput

func (RoleOutput) ToRoleOutputWithContext

func (o RoleOutput) ToRoleOutputWithContext(ctx context.Context) RoleOutput

func (RoleOutput) UpdateTime

func (o RoleOutput) UpdateTime() pulumi.StringOutput

The last update time of the CAM role.

type RolePolicyAttachment

type RolePolicyAttachment struct {
	pulumi.CustomResourceState

	// Mode of Creation of the CAM role policy attachment. `1` means the CAM policy attachment is created by production, and the others indicate syntax strategy ways.
	CreateMode pulumi.IntOutput `pulumi:"createMode"`
	// The create time of the CAM role policy attachment.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// ID of the policy.
	PolicyId pulumi.StringOutput `pulumi:"policyId"`
	// The name of the policy.
	PolicyName pulumi.StringOutput `pulumi:"policyName"`
	// Type of the policy strategy. `User` means customer strategy and `QCS` means preset strategy.
	PolicyType pulumi.StringOutput `pulumi:"policyType"`
	// ID of the attached CAM role.
	RoleId pulumi.StringOutput `pulumi:"roleId"`
}

Provides a resource to create a CAM role policy attachment.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cam"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cam.NewRolePolicyAttachment(ctx, "foo", &Cam.RolePolicyAttachmentArgs{
			RoleId:   pulumi.Any(tencentcloud_cam_role.Foo.Id),
			PolicyId: pulumi.Any(tencentcloud_cam_policy.Foo.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CAM role policy attachment can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Cam/rolePolicyAttachment:RolePolicyAttachment foo 4611686018427922725#26800353

```

func GetRolePolicyAttachment

func GetRolePolicyAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RolePolicyAttachmentState, opts ...pulumi.ResourceOption) (*RolePolicyAttachment, error)

GetRolePolicyAttachment gets an existing RolePolicyAttachment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewRolePolicyAttachment

func NewRolePolicyAttachment(ctx *pulumi.Context,
	name string, args *RolePolicyAttachmentArgs, opts ...pulumi.ResourceOption) (*RolePolicyAttachment, error)

NewRolePolicyAttachment registers a new resource with the given unique name, arguments, and options.

func (*RolePolicyAttachment) ElementType

func (*RolePolicyAttachment) ElementType() reflect.Type

func (*RolePolicyAttachment) ToRolePolicyAttachmentOutput

func (i *RolePolicyAttachment) ToRolePolicyAttachmentOutput() RolePolicyAttachmentOutput

func (*RolePolicyAttachment) ToRolePolicyAttachmentOutputWithContext

func (i *RolePolicyAttachment) ToRolePolicyAttachmentOutputWithContext(ctx context.Context) RolePolicyAttachmentOutput

type RolePolicyAttachmentArgs

type RolePolicyAttachmentArgs struct {
	// ID of the policy.
	PolicyId pulumi.StringInput
	// ID of the attached CAM role.
	RoleId pulumi.StringInput
}

The set of arguments for constructing a RolePolicyAttachment resource.

func (RolePolicyAttachmentArgs) ElementType

func (RolePolicyAttachmentArgs) ElementType() reflect.Type

type RolePolicyAttachmentArray

type RolePolicyAttachmentArray []RolePolicyAttachmentInput

func (RolePolicyAttachmentArray) ElementType

func (RolePolicyAttachmentArray) ElementType() reflect.Type

func (RolePolicyAttachmentArray) ToRolePolicyAttachmentArrayOutput

func (i RolePolicyAttachmentArray) ToRolePolicyAttachmentArrayOutput() RolePolicyAttachmentArrayOutput

func (RolePolicyAttachmentArray) ToRolePolicyAttachmentArrayOutputWithContext

func (i RolePolicyAttachmentArray) ToRolePolicyAttachmentArrayOutputWithContext(ctx context.Context) RolePolicyAttachmentArrayOutput

type RolePolicyAttachmentArrayInput

type RolePolicyAttachmentArrayInput interface {
	pulumi.Input

	ToRolePolicyAttachmentArrayOutput() RolePolicyAttachmentArrayOutput
	ToRolePolicyAttachmentArrayOutputWithContext(context.Context) RolePolicyAttachmentArrayOutput
}

RolePolicyAttachmentArrayInput is an input type that accepts RolePolicyAttachmentArray and RolePolicyAttachmentArrayOutput values. You can construct a concrete instance of `RolePolicyAttachmentArrayInput` via:

RolePolicyAttachmentArray{ RolePolicyAttachmentArgs{...} }

type RolePolicyAttachmentArrayOutput

type RolePolicyAttachmentArrayOutput struct{ *pulumi.OutputState }

func (RolePolicyAttachmentArrayOutput) ElementType

func (RolePolicyAttachmentArrayOutput) Index

func (RolePolicyAttachmentArrayOutput) ToRolePolicyAttachmentArrayOutput

func (o RolePolicyAttachmentArrayOutput) ToRolePolicyAttachmentArrayOutput() RolePolicyAttachmentArrayOutput

func (RolePolicyAttachmentArrayOutput) ToRolePolicyAttachmentArrayOutputWithContext

func (o RolePolicyAttachmentArrayOutput) ToRolePolicyAttachmentArrayOutputWithContext(ctx context.Context) RolePolicyAttachmentArrayOutput

type RolePolicyAttachmentInput

type RolePolicyAttachmentInput interface {
	pulumi.Input

	ToRolePolicyAttachmentOutput() RolePolicyAttachmentOutput
	ToRolePolicyAttachmentOutputWithContext(ctx context.Context) RolePolicyAttachmentOutput
}

type RolePolicyAttachmentMap

type RolePolicyAttachmentMap map[string]RolePolicyAttachmentInput

func (RolePolicyAttachmentMap) ElementType

func (RolePolicyAttachmentMap) ElementType() reflect.Type

func (RolePolicyAttachmentMap) ToRolePolicyAttachmentMapOutput

func (i RolePolicyAttachmentMap) ToRolePolicyAttachmentMapOutput() RolePolicyAttachmentMapOutput

func (RolePolicyAttachmentMap) ToRolePolicyAttachmentMapOutputWithContext

func (i RolePolicyAttachmentMap) ToRolePolicyAttachmentMapOutputWithContext(ctx context.Context) RolePolicyAttachmentMapOutput

type RolePolicyAttachmentMapInput

type RolePolicyAttachmentMapInput interface {
	pulumi.Input

	ToRolePolicyAttachmentMapOutput() RolePolicyAttachmentMapOutput
	ToRolePolicyAttachmentMapOutputWithContext(context.Context) RolePolicyAttachmentMapOutput
}

RolePolicyAttachmentMapInput is an input type that accepts RolePolicyAttachmentMap and RolePolicyAttachmentMapOutput values. You can construct a concrete instance of `RolePolicyAttachmentMapInput` via:

RolePolicyAttachmentMap{ "key": RolePolicyAttachmentArgs{...} }

type RolePolicyAttachmentMapOutput

type RolePolicyAttachmentMapOutput struct{ *pulumi.OutputState }

func (RolePolicyAttachmentMapOutput) ElementType

func (RolePolicyAttachmentMapOutput) MapIndex

func (RolePolicyAttachmentMapOutput) ToRolePolicyAttachmentMapOutput

func (o RolePolicyAttachmentMapOutput) ToRolePolicyAttachmentMapOutput() RolePolicyAttachmentMapOutput

func (RolePolicyAttachmentMapOutput) ToRolePolicyAttachmentMapOutputWithContext

func (o RolePolicyAttachmentMapOutput) ToRolePolicyAttachmentMapOutputWithContext(ctx context.Context) RolePolicyAttachmentMapOutput

type RolePolicyAttachmentOutput

type RolePolicyAttachmentOutput struct{ *pulumi.OutputState }

func (RolePolicyAttachmentOutput) CreateMode

Mode of Creation of the CAM role policy attachment. `1` means the CAM policy attachment is created by production, and the others indicate syntax strategy ways.

func (RolePolicyAttachmentOutput) CreateTime

The create time of the CAM role policy attachment.

func (RolePolicyAttachmentOutput) ElementType

func (RolePolicyAttachmentOutput) ElementType() reflect.Type

func (RolePolicyAttachmentOutput) PolicyId

ID of the policy.

func (RolePolicyAttachmentOutput) PolicyName

The name of the policy.

func (RolePolicyAttachmentOutput) PolicyType

Type of the policy strategy. `User` means customer strategy and `QCS` means preset strategy.

func (RolePolicyAttachmentOutput) RoleId

ID of the attached CAM role.

func (RolePolicyAttachmentOutput) ToRolePolicyAttachmentOutput

func (o RolePolicyAttachmentOutput) ToRolePolicyAttachmentOutput() RolePolicyAttachmentOutput

func (RolePolicyAttachmentOutput) ToRolePolicyAttachmentOutputWithContext

func (o RolePolicyAttachmentOutput) ToRolePolicyAttachmentOutputWithContext(ctx context.Context) RolePolicyAttachmentOutput

type RolePolicyAttachmentState

type RolePolicyAttachmentState struct {
	// Mode of Creation of the CAM role policy attachment. `1` means the CAM policy attachment is created by production, and the others indicate syntax strategy ways.
	CreateMode pulumi.IntPtrInput
	// The create time of the CAM role policy attachment.
	CreateTime pulumi.StringPtrInput
	// ID of the policy.
	PolicyId pulumi.StringPtrInput
	// The name of the policy.
	PolicyName pulumi.StringPtrInput
	// Type of the policy strategy. `User` means customer strategy and `QCS` means preset strategy.
	PolicyType pulumi.StringPtrInput
	// ID of the attached CAM role.
	RoleId pulumi.StringPtrInput
}

func (RolePolicyAttachmentState) ElementType

func (RolePolicyAttachmentState) ElementType() reflect.Type

type RoleSso

type RoleSso struct {
	pulumi.CustomResourceState

	// Client ids.
	ClientIds pulumi.StringArrayOutput `pulumi:"clientIds"`
	// The description of resource.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Sign the public key.
	IdentityKey pulumi.StringOutput `pulumi:"identityKey"`
	// Identity provider URL.
	IdentityUrl pulumi.StringOutput `pulumi:"identityUrl"`
	// The name of resource.
	Name pulumi.StringOutput `pulumi:"name"`
}

Provides a resource to create a CAM-ROLE-SSO (Only support OIDC).

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cam"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cam.NewRoleSso(ctx, "foo", &Cam.RoleSsoArgs{
			ClientIds: pulumi.StringArray{
				pulumi.String("..."),
			},
			Description: pulumi.String("this is a description"),
			IdentityKey: pulumi.String("..."),
			IdentityUrl: pulumi.String("https://login.microsoftonline.com/.../v2.0"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CAM-ROLE-SSO can be imported using the `name`, e.g.

```sh

$ pulumi import tencentcloud:Cam/roleSso:RoleSso foo "test"

```

func GetRoleSso

func GetRoleSso(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RoleSsoState, opts ...pulumi.ResourceOption) (*RoleSso, error)

GetRoleSso gets an existing RoleSso resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewRoleSso

func NewRoleSso(ctx *pulumi.Context,
	name string, args *RoleSsoArgs, opts ...pulumi.ResourceOption) (*RoleSso, error)

NewRoleSso registers a new resource with the given unique name, arguments, and options.

func (*RoleSso) ElementType

func (*RoleSso) ElementType() reflect.Type

func (*RoleSso) ToRoleSsoOutput

func (i *RoleSso) ToRoleSsoOutput() RoleSsoOutput

func (*RoleSso) ToRoleSsoOutputWithContext

func (i *RoleSso) ToRoleSsoOutputWithContext(ctx context.Context) RoleSsoOutput

type RoleSsoArgs

type RoleSsoArgs struct {
	// Client ids.
	ClientIds pulumi.StringArrayInput
	// The description of resource.
	Description pulumi.StringPtrInput
	// Sign the public key.
	IdentityKey pulumi.StringInput
	// Identity provider URL.
	IdentityUrl pulumi.StringInput
	// The name of resource.
	Name pulumi.StringPtrInput
}

The set of arguments for constructing a RoleSso resource.

func (RoleSsoArgs) ElementType

func (RoleSsoArgs) ElementType() reflect.Type

type RoleSsoArray

type RoleSsoArray []RoleSsoInput

func (RoleSsoArray) ElementType

func (RoleSsoArray) ElementType() reflect.Type

func (RoleSsoArray) ToRoleSsoArrayOutput

func (i RoleSsoArray) ToRoleSsoArrayOutput() RoleSsoArrayOutput

func (RoleSsoArray) ToRoleSsoArrayOutputWithContext

func (i RoleSsoArray) ToRoleSsoArrayOutputWithContext(ctx context.Context) RoleSsoArrayOutput

type RoleSsoArrayInput

type RoleSsoArrayInput interface {
	pulumi.Input

	ToRoleSsoArrayOutput() RoleSsoArrayOutput
	ToRoleSsoArrayOutputWithContext(context.Context) RoleSsoArrayOutput
}

RoleSsoArrayInput is an input type that accepts RoleSsoArray and RoleSsoArrayOutput values. You can construct a concrete instance of `RoleSsoArrayInput` via:

RoleSsoArray{ RoleSsoArgs{...} }

type RoleSsoArrayOutput

type RoleSsoArrayOutput struct{ *pulumi.OutputState }

func (RoleSsoArrayOutput) ElementType

func (RoleSsoArrayOutput) ElementType() reflect.Type

func (RoleSsoArrayOutput) Index

func (RoleSsoArrayOutput) ToRoleSsoArrayOutput

func (o RoleSsoArrayOutput) ToRoleSsoArrayOutput() RoleSsoArrayOutput

func (RoleSsoArrayOutput) ToRoleSsoArrayOutputWithContext

func (o RoleSsoArrayOutput) ToRoleSsoArrayOutputWithContext(ctx context.Context) RoleSsoArrayOutput

type RoleSsoInput

type RoleSsoInput interface {
	pulumi.Input

	ToRoleSsoOutput() RoleSsoOutput
	ToRoleSsoOutputWithContext(ctx context.Context) RoleSsoOutput
}

type RoleSsoMap

type RoleSsoMap map[string]RoleSsoInput

func (RoleSsoMap) ElementType

func (RoleSsoMap) ElementType() reflect.Type

func (RoleSsoMap) ToRoleSsoMapOutput

func (i RoleSsoMap) ToRoleSsoMapOutput() RoleSsoMapOutput

func (RoleSsoMap) ToRoleSsoMapOutputWithContext

func (i RoleSsoMap) ToRoleSsoMapOutputWithContext(ctx context.Context) RoleSsoMapOutput

type RoleSsoMapInput

type RoleSsoMapInput interface {
	pulumi.Input

	ToRoleSsoMapOutput() RoleSsoMapOutput
	ToRoleSsoMapOutputWithContext(context.Context) RoleSsoMapOutput
}

RoleSsoMapInput is an input type that accepts RoleSsoMap and RoleSsoMapOutput values. You can construct a concrete instance of `RoleSsoMapInput` via:

RoleSsoMap{ "key": RoleSsoArgs{...} }

type RoleSsoMapOutput

type RoleSsoMapOutput struct{ *pulumi.OutputState }

func (RoleSsoMapOutput) ElementType

func (RoleSsoMapOutput) ElementType() reflect.Type

func (RoleSsoMapOutput) MapIndex

func (RoleSsoMapOutput) ToRoleSsoMapOutput

func (o RoleSsoMapOutput) ToRoleSsoMapOutput() RoleSsoMapOutput

func (RoleSsoMapOutput) ToRoleSsoMapOutputWithContext

func (o RoleSsoMapOutput) ToRoleSsoMapOutputWithContext(ctx context.Context) RoleSsoMapOutput

type RoleSsoOutput

type RoleSsoOutput struct{ *pulumi.OutputState }

func (RoleSsoOutput) ClientIds

func (o RoleSsoOutput) ClientIds() pulumi.StringArrayOutput

Client ids.

func (RoleSsoOutput) Description

func (o RoleSsoOutput) Description() pulumi.StringPtrOutput

The description of resource.

func (RoleSsoOutput) ElementType

func (RoleSsoOutput) ElementType() reflect.Type

func (RoleSsoOutput) IdentityKey

func (o RoleSsoOutput) IdentityKey() pulumi.StringOutput

Sign the public key.

func (RoleSsoOutput) IdentityUrl

func (o RoleSsoOutput) IdentityUrl() pulumi.StringOutput

Identity provider URL.

func (RoleSsoOutput) Name

The name of resource.

func (RoleSsoOutput) ToRoleSsoOutput

func (o RoleSsoOutput) ToRoleSsoOutput() RoleSsoOutput

func (RoleSsoOutput) ToRoleSsoOutputWithContext

func (o RoleSsoOutput) ToRoleSsoOutputWithContext(ctx context.Context) RoleSsoOutput

type RoleSsoState

type RoleSsoState struct {
	// Client ids.
	ClientIds pulumi.StringArrayInput
	// The description of resource.
	Description pulumi.StringPtrInput
	// Sign the public key.
	IdentityKey pulumi.StringPtrInput
	// Identity provider URL.
	IdentityUrl pulumi.StringPtrInput
	// The name of resource.
	Name pulumi.StringPtrInput
}

func (RoleSsoState) ElementType

func (RoleSsoState) ElementType() reflect.Type

type RoleState

type RoleState struct {
	// Indicates whether the CAM role can login or not.
	ConsoleLogin pulumi.BoolPtrInput
	// Create time of the CAM role.
	CreateTime pulumi.StringPtrInput
	// Description of the CAM role.
	Description pulumi.StringPtrInput
	// Document of the CAM role. The syntax refers to [CAM POLICY](https://intl.cloud.tencent.com/document/product/598/10604).
	// There are some notes when using this para in terraform: 1. The elements in json claimed supporting two types as `string`
	// and `array` only support type `array`; 2. Terraform does not support the `root` syntax, when appears, it must be
	// replaced with the uin it stands for.
	Document pulumi.StringPtrInput
	// Name of CAM role.
	Name pulumi.StringPtrInput
	// A list of tags used to associate different resources.
	Tags pulumi.MapInput
	// The last update time of the CAM role.
	UpdateTime pulumi.StringPtrInput
}

func (RoleState) ElementType

func (RoleState) ElementType() reflect.Type

type SamlProvider

type SamlProvider struct {
	pulumi.CustomResourceState

	// The create time of the CAM SAML provider.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// The description of the CAM SAML provider.
	Description pulumi.StringOutput `pulumi:"description"`
	// The meta data document of the CAM SAML provider.
	MetaData pulumi.StringOutput `pulumi:"metaData"`
	// Name of CAM SAML provider.
	Name pulumi.StringOutput `pulumi:"name"`
	// The ARN of the CAM SAML provider.
	ProviderArn pulumi.StringOutput `pulumi:"providerArn"`
	// The last update time of the CAM SAML provider.
	UpdateTime pulumi.StringOutput `pulumi:"updateTime"`
}

Provides a resource to create a CAM SAML provider.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cam"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cam.NewSamlProvider(ctx, "samlProviderBasic", &Cam.SamlProviderArgs{
			Description: pulumi.String("test"),
			MetaData:    pulumi.String("PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48bWQ6RW50aXR5RGVzY3JpcHRvciBlbnRpdHlJRD0iaHR0cDovL3d3dy5va3RhLmNvbS9leGsxa3F4bWNqUW1HQURNeTM1NyIgeG1sbnM6bWQ9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMDptZXRhZGF0YSI+PG1kOklEUFNTT0Rlc2NyaXB0b3IgV2FudEF1dGhuUmVxdWVzdHNTaWduZWQ9ImZhbHNlIiBwcm90b2NvbFN1cHBvcnRFbnVtZXJhdGlvbj0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOnByb3RvY29sIj48bWQ6S2V5RGVzY3JpcHRvciB1c2U9InNpZ25pbmciPjxkczpLZXlJbmZvIHhtbG5zOmRzPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj48ZHM6WDUwOURhdGE+PGRzOlg1MDlDZXJ0aWZpY2F0ZT5NSUlEb0RDQ0FvaWdBd0lCQWdJR0FXM0lTcExvTUEwR0NTcUdTSWIzRFFFQkN3VUFNSUdRTVFzd0NRWURWUVFHRXdKVlV6RVRNQkVHDQpBMVVFQ0F3S1EyRnNhV1p2Y201cFlURVdNQlFHQTFVRUJ3d05VMkZ1SUVaeVlXNWphWE5qYnpFTk1Bc0dBMVVFQ2d3RVQydDBZVEVVDQpNQklHQTFVRUN3d0xVMU5QVUhKdmRtbGtaWEl4RVRBUEJnTlZCQU1NQ0dsa2VIVmxkblJoTVJ3d0dnWUpLb1pJaHZjTkFRa0JGZzFwDQpibVp2UUc5cmRHRXVZMjl0TUI0WERURTVNVEF4TkRBek1qSXhNMW9YRFRJNU1UQXhOREF6TWpNeE0xb3dnWkF4Q3pBSkJnTlZCQVlUDQpBbFZUTVJNd0VRWURWUVFJREFwRFlXeHBabTl5Ym1saE1SWXdGQVlEVlFRSERBMVRZVzRnUm5KaGJtTnBjMk52TVEwd0N3WURWUVFLDQpEQVJQYTNSaE1SUXdFZ1lEVlFRTERBdFRVMDlRY205MmFXUmxjakVSTUE4R0ExVUVBd3dJYVdSNGRXVjJkR0V4SERBYUJna3Foa2lHDQo5dzBCQ1FFV0RXbHVabTlBYjJ0MFlTNWpiMjB3Z2dFaU1BMEdDU3FHU0liM0RRRUJBUVVBQTRJQkR3QXdnZ0VLQW9JQkFRQ2g4b3dqDQpZK2dQSUM3blQvNTduLzdmeXJzcDlHMXdxa2UxdXhjMHVrTndnQXozOVNpelY3QVhLMWRReTFLaThXWjJJMzFEczJkT0FNQ1FKR2pWDQpUWWNNbnA3KzhqUzNLdmxNUkRJamk5cmxuUi9vcnBvMll1RHVWby9jVzdidlRIS2h2REo1QWZRaWxzYlNPTXdUOWM2TVlYZGhBNVBwDQpzelFsK1UrdHJmcXUrdUorSER4SVQxdlhWaVI5YlY2SUFRSzZpbWZoc2wxWmVSUytjbVFVNEpjQWlYT0xtTnFVVWM2UkpxUzhrMW1mDQpBLzhmb2VyMGc3SG4xZDVXclpCc2gyUlR2Vzh1ZVdadHQ3dmh4QTlGdE5kSVlEcXJ0eElmMlZXcXhrSHM3WFZDSm5wTnJITVovT1BRDQpGY21YSGVxNlJJMlB3Q1RlOW8zZHZpM0hqeXBaOEl4dkFnTUJBQUV3RFFZSktvWklodmNOQVFFTEJRQURnZ0VCQUFHaHk1bG9nbGtTDQoyVHg2YS90MnF5VEx0YVV5cEwrNGhySGJoMVAweVVMc0NrSnFsM2wrWG9VZDZCY2FJaFNSVGFPQk95ODViL0UzelJ4K3JzQXJwTjVVDQp5ZThuUEM4a05PYW5vTk9wWnZvYmhpTzFlMFIvYmxEcnRBL0o5UlBwMWtmdlhmS2NSTTU3TlRCWXppTURlbnFQUTRFOWN1U2lGdFFxDQpJYmpIbThaM1B1YXgwRitldkZ3U1pJMDNCWXNISGw1d1EraEJBS3hTdTJINEZRdU93Zmpnb2EveEN6Z1NKYjJ2UXdEc1MxMk9mSkNiDQpSRm1ZL1VYZXQramFhdEVORktLZStZSUJpU0J2WG1adTN0MHN5NDZTNzlPVzBacXJ0NUh2bElsT2lpTFpaN1FZamxjM1kxeG1LZ1luDQpXM2M2WGZkdmhGWHo0ZDdkbWYvTUdpNGY0enM9PC9kczpYNTA5Q2VydGlmaWNhdGU+PC9kczpYNTA5RGF0YT48L2RzOktleUluZm8+PC9tZDpLZXlEZXNjcmlwdG9yPjxtZDpOYW1lSURGb3JtYXQ+dXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6MS4xOm5hbWVpZC1mb3JtYXQ6dW5zcGVjaWZpZWQ8L21kOk5hbWVJREZvcm1hdD48bWQ6TmFtZUlERm9ybWF0PnVybjpvYXNpczpuYW1lczp0YzpTQU1MOjEuMTpuYW1laWQtZm9ybWF0OmVtYWlsQWRkcmVzczwvbWQ6TmFtZUlERm9ybWF0PjxtZDpTaW5nbGVTaWduT25TZXJ2aWNlIEJpbmRpbmc9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMDpiaW5kaW5nczpIVFRQLVBPU1QiIExvY2F0aW9uPSJodHRwczovL2lkeHVldnRhLm9rdGEuY29tL2FwcC9pZHh1ZW9yZzYzNzM1OF90ZXN0XzEvZXhrMWtxeG1jalFtR0FETXkzNTcvc3NvL3NhbWwiLz48bWQ6U2luZ2xlU2lnbk9uU2VydmljZSBCaW5kaW5nPSJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6YmluZGluZ3M6SFRUUC1SZWRpcmVjdCIgTG9jYXRpb249Imh0dHBzOi8vaWR4dWV2dGEub2t0YS5jb20vYXBwL2lkeHVlb3JnNjM3MzU4X3Rlc3RfMS9leGsxa3F4bWNqUW1HQURNeTM1Ny9zc28vc2FtbCIvPjwvbWQ6SURQU1NPRGVzY3JpcHRvcj48L21kOkVudGl0eURlc2NyaXB0b3I+"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CAM SAML provider can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Cam/samlProvider:SamlProvider foo cam-SAML-provider-test

```

func GetSamlProvider

func GetSamlProvider(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SamlProviderState, opts ...pulumi.ResourceOption) (*SamlProvider, error)

GetSamlProvider gets an existing SamlProvider resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSamlProvider

func NewSamlProvider(ctx *pulumi.Context,
	name string, args *SamlProviderArgs, opts ...pulumi.ResourceOption) (*SamlProvider, error)

NewSamlProvider registers a new resource with the given unique name, arguments, and options.

func (*SamlProvider) ElementType

func (*SamlProvider) ElementType() reflect.Type

func (*SamlProvider) ToSamlProviderOutput

func (i *SamlProvider) ToSamlProviderOutput() SamlProviderOutput

func (*SamlProvider) ToSamlProviderOutputWithContext

func (i *SamlProvider) ToSamlProviderOutputWithContext(ctx context.Context) SamlProviderOutput

type SamlProviderArgs

type SamlProviderArgs struct {
	// The description of the CAM SAML provider.
	Description pulumi.StringInput
	// The meta data document of the CAM SAML provider.
	MetaData pulumi.StringInput
	// Name of CAM SAML provider.
	Name pulumi.StringPtrInput
}

The set of arguments for constructing a SamlProvider resource.

func (SamlProviderArgs) ElementType

func (SamlProviderArgs) ElementType() reflect.Type

type SamlProviderArray

type SamlProviderArray []SamlProviderInput

func (SamlProviderArray) ElementType

func (SamlProviderArray) ElementType() reflect.Type

func (SamlProviderArray) ToSamlProviderArrayOutput

func (i SamlProviderArray) ToSamlProviderArrayOutput() SamlProviderArrayOutput

func (SamlProviderArray) ToSamlProviderArrayOutputWithContext

func (i SamlProviderArray) ToSamlProviderArrayOutputWithContext(ctx context.Context) SamlProviderArrayOutput

type SamlProviderArrayInput

type SamlProviderArrayInput interface {
	pulumi.Input

	ToSamlProviderArrayOutput() SamlProviderArrayOutput
	ToSamlProviderArrayOutputWithContext(context.Context) SamlProviderArrayOutput
}

SamlProviderArrayInput is an input type that accepts SamlProviderArray and SamlProviderArrayOutput values. You can construct a concrete instance of `SamlProviderArrayInput` via:

SamlProviderArray{ SamlProviderArgs{...} }

type SamlProviderArrayOutput

type SamlProviderArrayOutput struct{ *pulumi.OutputState }

func (SamlProviderArrayOutput) ElementType

func (SamlProviderArrayOutput) ElementType() reflect.Type

func (SamlProviderArrayOutput) Index

func (SamlProviderArrayOutput) ToSamlProviderArrayOutput

func (o SamlProviderArrayOutput) ToSamlProviderArrayOutput() SamlProviderArrayOutput

func (SamlProviderArrayOutput) ToSamlProviderArrayOutputWithContext

func (o SamlProviderArrayOutput) ToSamlProviderArrayOutputWithContext(ctx context.Context) SamlProviderArrayOutput

type SamlProviderInput

type SamlProviderInput interface {
	pulumi.Input

	ToSamlProviderOutput() SamlProviderOutput
	ToSamlProviderOutputWithContext(ctx context.Context) SamlProviderOutput
}

type SamlProviderMap

type SamlProviderMap map[string]SamlProviderInput

func (SamlProviderMap) ElementType

func (SamlProviderMap) ElementType() reflect.Type

func (SamlProviderMap) ToSamlProviderMapOutput

func (i SamlProviderMap) ToSamlProviderMapOutput() SamlProviderMapOutput

func (SamlProviderMap) ToSamlProviderMapOutputWithContext

func (i SamlProviderMap) ToSamlProviderMapOutputWithContext(ctx context.Context) SamlProviderMapOutput

type SamlProviderMapInput

type SamlProviderMapInput interface {
	pulumi.Input

	ToSamlProviderMapOutput() SamlProviderMapOutput
	ToSamlProviderMapOutputWithContext(context.Context) SamlProviderMapOutput
}

SamlProviderMapInput is an input type that accepts SamlProviderMap and SamlProviderMapOutput values. You can construct a concrete instance of `SamlProviderMapInput` via:

SamlProviderMap{ "key": SamlProviderArgs{...} }

type SamlProviderMapOutput

type SamlProviderMapOutput struct{ *pulumi.OutputState }

func (SamlProviderMapOutput) ElementType

func (SamlProviderMapOutput) ElementType() reflect.Type

func (SamlProviderMapOutput) MapIndex

func (SamlProviderMapOutput) ToSamlProviderMapOutput

func (o SamlProviderMapOutput) ToSamlProviderMapOutput() SamlProviderMapOutput

func (SamlProviderMapOutput) ToSamlProviderMapOutputWithContext

func (o SamlProviderMapOutput) ToSamlProviderMapOutputWithContext(ctx context.Context) SamlProviderMapOutput

type SamlProviderOutput

type SamlProviderOutput struct{ *pulumi.OutputState }

func (SamlProviderOutput) CreateTime

func (o SamlProviderOutput) CreateTime() pulumi.StringOutput

The create time of the CAM SAML provider.

func (SamlProviderOutput) Description

func (o SamlProviderOutput) Description() pulumi.StringOutput

The description of the CAM SAML provider.

func (SamlProviderOutput) ElementType

func (SamlProviderOutput) ElementType() reflect.Type

func (SamlProviderOutput) MetaData

func (o SamlProviderOutput) MetaData() pulumi.StringOutput

The meta data document of the CAM SAML provider.

func (SamlProviderOutput) Name

Name of CAM SAML provider.

func (SamlProviderOutput) ProviderArn

func (o SamlProviderOutput) ProviderArn() pulumi.StringOutput

The ARN of the CAM SAML provider.

func (SamlProviderOutput) ToSamlProviderOutput

func (o SamlProviderOutput) ToSamlProviderOutput() SamlProviderOutput

func (SamlProviderOutput) ToSamlProviderOutputWithContext

func (o SamlProviderOutput) ToSamlProviderOutputWithContext(ctx context.Context) SamlProviderOutput

func (SamlProviderOutput) UpdateTime

func (o SamlProviderOutput) UpdateTime() pulumi.StringOutput

The last update time of the CAM SAML provider.

type SamlProviderState

type SamlProviderState struct {
	// The create time of the CAM SAML provider.
	CreateTime pulumi.StringPtrInput
	// The description of the CAM SAML provider.
	Description pulumi.StringPtrInput
	// The meta data document of the CAM SAML provider.
	MetaData pulumi.StringPtrInput
	// Name of CAM SAML provider.
	Name pulumi.StringPtrInput
	// The ARN of the CAM SAML provider.
	ProviderArn pulumi.StringPtrInput
	// The last update time of the CAM SAML provider.
	UpdateTime pulumi.StringPtrInput
}

func (SamlProviderState) ElementType

func (SamlProviderState) ElementType() reflect.Type

type User

type User struct {
	pulumi.CustomResourceState

	// Indicate whether the CAM user can login to the web console or not.
	ConsoleLogin pulumi.BoolPtrOutput `pulumi:"consoleLogin"`
	// Country code of the phone number, for example: '86'.
	CountryCode pulumi.StringOutput `pulumi:"countryCode"`
	// Email of the CAM user.
	Email pulumi.StringPtrOutput `pulumi:"email"`
	// Indicate whether to force deletes the CAM user. If set false, the API secret key will be checked and failed when exists; otherwise the user will be deleted directly. Default is false.
	ForceDelete pulumi.BoolPtrOutput `pulumi:"forceDelete"`
	// Name of the CAM user.
	Name pulumi.StringOutput `pulumi:"name"`
	// Indicate whether the CAM user need to reset the password when first logins.
	NeedResetPassword pulumi.BoolPtrOutput `pulumi:"needResetPassword"`
	// The password of the CAM user. Password should be at least 8 characters and no more than 32 characters, includes uppercase letters, lowercase letters, numbers and special characters. Only required when `consoleLogin` is true. If not set, a random password will be automatically generated.
	Password pulumi.StringOutput `pulumi:"password"`
	// Phone number of the CAM user.
	PhoneNum pulumi.StringPtrOutput `pulumi:"phoneNum"`
	// Remark of the CAM user.
	Remark pulumi.StringPtrOutput `pulumi:"remark"`
	// Secret ID of the CAM user.
	SecretId pulumi.StringOutput `pulumi:"secretId"`
	// Secret key of the CAM user.
	SecretKey pulumi.StringOutput `pulumi:"secretKey"`
	// A list of tags used to associate different resources.
	Tags pulumi.MapOutput `pulumi:"tags"`
	// ID of the CAM user.
	Uid pulumi.IntOutput `pulumi:"uid"`
	// Uin of the CAM User.
	Uin pulumi.IntOutput `pulumi:"uin"`
	// Indicate whether to generate the API secret key or not.
	UseApi pulumi.BoolPtrOutput `pulumi:"useApi"`
}

Provides a resource to manage CAM user.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cam"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cam.NewUser(ctx, "foo", &Cam.UserArgs{
			ConsoleLogin:      pulumi.Bool(true),
			CountryCode:       pulumi.String("86"),
			Email:             pulumi.String("hello@test.com"),
			ForceDelete:       pulumi.Bool(true),
			NeedResetPassword: pulumi.Bool(true),
			Password:          pulumi.String("Gail@1234"),
			PhoneNum:          pulumi.String("12345678910"),
			Remark:            pulumi.String("test"),
			Tags: pulumi.AnyMap{
				"test": pulumi.Any("tf-cam-user"),
			},
			UseApi: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CAM user can be imported using the user name, e.g.

```sh

$ pulumi import tencentcloud:Cam/user:User foo cam-user-test

```

func GetUser

func GetUser(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *UserState, opts ...pulumi.ResourceOption) (*User, error)

GetUser gets an existing User resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewUser

func NewUser(ctx *pulumi.Context,
	name string, args *UserArgs, opts ...pulumi.ResourceOption) (*User, error)

NewUser registers a new resource with the given unique name, arguments, and options.

func (*User) ElementType

func (*User) ElementType() reflect.Type

func (*User) ToUserOutput

func (i *User) ToUserOutput() UserOutput

func (*User) ToUserOutputWithContext

func (i *User) ToUserOutputWithContext(ctx context.Context) UserOutput

type UserArgs

type UserArgs struct {
	// Indicate whether the CAM user can login to the web console or not.
	ConsoleLogin pulumi.BoolPtrInput
	// Country code of the phone number, for example: '86'.
	CountryCode pulumi.StringPtrInput
	// Email of the CAM user.
	Email pulumi.StringPtrInput
	// Indicate whether to force deletes the CAM user. If set false, the API secret key will be checked and failed when exists; otherwise the user will be deleted directly. Default is false.
	ForceDelete pulumi.BoolPtrInput
	// Name of the CAM user.
	Name pulumi.StringPtrInput
	// Indicate whether the CAM user need to reset the password when first logins.
	NeedResetPassword pulumi.BoolPtrInput
	// The password of the CAM user. Password should be at least 8 characters and no more than 32 characters, includes uppercase letters, lowercase letters, numbers and special characters. Only required when `consoleLogin` is true. If not set, a random password will be automatically generated.
	Password pulumi.StringPtrInput
	// Phone number of the CAM user.
	PhoneNum pulumi.StringPtrInput
	// Remark of the CAM user.
	Remark pulumi.StringPtrInput
	// A list of tags used to associate different resources.
	Tags pulumi.MapInput
	// Indicate whether to generate the API secret key or not.
	UseApi pulumi.BoolPtrInput
}

The set of arguments for constructing a User resource.

func (UserArgs) ElementType

func (UserArgs) ElementType() reflect.Type

type UserArray

type UserArray []UserInput

func (UserArray) ElementType

func (UserArray) ElementType() reflect.Type

func (UserArray) ToUserArrayOutput

func (i UserArray) ToUserArrayOutput() UserArrayOutput

func (UserArray) ToUserArrayOutputWithContext

func (i UserArray) ToUserArrayOutputWithContext(ctx context.Context) UserArrayOutput

type UserArrayInput

type UserArrayInput interface {
	pulumi.Input

	ToUserArrayOutput() UserArrayOutput
	ToUserArrayOutputWithContext(context.Context) UserArrayOutput
}

UserArrayInput is an input type that accepts UserArray and UserArrayOutput values. You can construct a concrete instance of `UserArrayInput` via:

UserArray{ UserArgs{...} }

type UserArrayOutput

type UserArrayOutput struct{ *pulumi.OutputState }

func (UserArrayOutput) ElementType

func (UserArrayOutput) ElementType() reflect.Type

func (UserArrayOutput) Index

func (UserArrayOutput) ToUserArrayOutput

func (o UserArrayOutput) ToUserArrayOutput() UserArrayOutput

func (UserArrayOutput) ToUserArrayOutputWithContext

func (o UserArrayOutput) ToUserArrayOutputWithContext(ctx context.Context) UserArrayOutput

type UserInput

type UserInput interface {
	pulumi.Input

	ToUserOutput() UserOutput
	ToUserOutputWithContext(ctx context.Context) UserOutput
}

type UserMap

type UserMap map[string]UserInput

func (UserMap) ElementType

func (UserMap) ElementType() reflect.Type

func (UserMap) ToUserMapOutput

func (i UserMap) ToUserMapOutput() UserMapOutput

func (UserMap) ToUserMapOutputWithContext

func (i UserMap) ToUserMapOutputWithContext(ctx context.Context) UserMapOutput

type UserMapInput

type UserMapInput interface {
	pulumi.Input

	ToUserMapOutput() UserMapOutput
	ToUserMapOutputWithContext(context.Context) UserMapOutput
}

UserMapInput is an input type that accepts UserMap and UserMapOutput values. You can construct a concrete instance of `UserMapInput` via:

UserMap{ "key": UserArgs{...} }

type UserMapOutput

type UserMapOutput struct{ *pulumi.OutputState }

func (UserMapOutput) ElementType

func (UserMapOutput) ElementType() reflect.Type

func (UserMapOutput) MapIndex

func (UserMapOutput) ToUserMapOutput

func (o UserMapOutput) ToUserMapOutput() UserMapOutput

func (UserMapOutput) ToUserMapOutputWithContext

func (o UserMapOutput) ToUserMapOutputWithContext(ctx context.Context) UserMapOutput

type UserOutput

type UserOutput struct{ *pulumi.OutputState }

func (UserOutput) ConsoleLogin

func (o UserOutput) ConsoleLogin() pulumi.BoolPtrOutput

Indicate whether the CAM user can login to the web console or not.

func (UserOutput) CountryCode

func (o UserOutput) CountryCode() pulumi.StringOutput

Country code of the phone number, for example: '86'.

func (UserOutput) ElementType

func (UserOutput) ElementType() reflect.Type

func (UserOutput) Email

func (o UserOutput) Email() pulumi.StringPtrOutput

Email of the CAM user.

func (UserOutput) ForceDelete

func (o UserOutput) ForceDelete() pulumi.BoolPtrOutput

Indicate whether to force deletes the CAM user. If set false, the API secret key will be checked and failed when exists; otherwise the user will be deleted directly. Default is false.

func (UserOutput) Name

func (o UserOutput) Name() pulumi.StringOutput

Name of the CAM user.

func (UserOutput) NeedResetPassword

func (o UserOutput) NeedResetPassword() pulumi.BoolPtrOutput

Indicate whether the CAM user need to reset the password when first logins.

func (UserOutput) Password

func (o UserOutput) Password() pulumi.StringOutput

The password of the CAM user. Password should be at least 8 characters and no more than 32 characters, includes uppercase letters, lowercase letters, numbers and special characters. Only required when `consoleLogin` is true. If not set, a random password will be automatically generated.

func (UserOutput) PhoneNum

func (o UserOutput) PhoneNum() pulumi.StringPtrOutput

Phone number of the CAM user.

func (UserOutput) Remark

func (o UserOutput) Remark() pulumi.StringPtrOutput

Remark of the CAM user.

func (UserOutput) SecretId

func (o UserOutput) SecretId() pulumi.StringOutput

Secret ID of the CAM user.

func (UserOutput) SecretKey

func (o UserOutput) SecretKey() pulumi.StringOutput

Secret key of the CAM user.

func (UserOutput) Tags

func (o UserOutput) Tags() pulumi.MapOutput

A list of tags used to associate different resources.

func (UserOutput) ToUserOutput

func (o UserOutput) ToUserOutput() UserOutput

func (UserOutput) ToUserOutputWithContext

func (o UserOutput) ToUserOutputWithContext(ctx context.Context) UserOutput

func (UserOutput) Uid

func (o UserOutput) Uid() pulumi.IntOutput

ID of the CAM user.

func (UserOutput) Uin

func (o UserOutput) Uin() pulumi.IntOutput

Uin of the CAM User.

func (UserOutput) UseApi

func (o UserOutput) UseApi() pulumi.BoolPtrOutput

Indicate whether to generate the API secret key or not.

type UserPolicyAttachment

type UserPolicyAttachment struct {
	pulumi.CustomResourceState

	// Mode of Creation of the CAM user policy attachment. `1` means the CAM policy attachment is created by production, and the others indicate syntax strategy ways.
	CreateMode pulumi.IntOutput `pulumi:"createMode"`
	// Create time of the CAM user policy attachment.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// ID of the policy.
	PolicyId pulumi.StringOutput `pulumi:"policyId"`
	// Name of the policy.
	PolicyName pulumi.StringOutput `pulumi:"policyName"`
	// Type of the policy strategy. `User` means customer strategy and `QCS` means preset strategy.
	PolicyType pulumi.StringOutput `pulumi:"policyType"`
	// It has been deprecated from version 1.59.5. Use `userName` instead. ID of the attached CAM user.
	//
	// Deprecated: It has been deprecated from version 1.59.5. Use `user_name` instead.
	UserId pulumi.StringPtrOutput `pulumi:"userId"`
	// Name of the attached CAM user as uniq key.
	UserName pulumi.StringPtrOutput `pulumi:"userName"`
}

Provides a resource to create a CAM user policy attachment.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cam"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cam.NewUserPolicyAttachment(ctx, "foo", &Cam.UserPolicyAttachmentArgs{
			UserId:   pulumi.Any(tencentcloud_cam_user.Foo.Id),
			PolicyId: pulumi.Any(tencentcloud_cam_policy.Foo.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CAM user policy attachment can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Cam/userPolicyAttachment:UserPolicyAttachment foo cam-test#26800353

```

func GetUserPolicyAttachment

func GetUserPolicyAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *UserPolicyAttachmentState, opts ...pulumi.ResourceOption) (*UserPolicyAttachment, error)

GetUserPolicyAttachment gets an existing UserPolicyAttachment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewUserPolicyAttachment

func NewUserPolicyAttachment(ctx *pulumi.Context,
	name string, args *UserPolicyAttachmentArgs, opts ...pulumi.ResourceOption) (*UserPolicyAttachment, error)

NewUserPolicyAttachment registers a new resource with the given unique name, arguments, and options.

func (*UserPolicyAttachment) ElementType

func (*UserPolicyAttachment) ElementType() reflect.Type

func (*UserPolicyAttachment) ToUserPolicyAttachmentOutput

func (i *UserPolicyAttachment) ToUserPolicyAttachmentOutput() UserPolicyAttachmentOutput

func (*UserPolicyAttachment) ToUserPolicyAttachmentOutputWithContext

func (i *UserPolicyAttachment) ToUserPolicyAttachmentOutputWithContext(ctx context.Context) UserPolicyAttachmentOutput

type UserPolicyAttachmentArgs

type UserPolicyAttachmentArgs struct {
	// ID of the policy.
	PolicyId pulumi.StringInput
	// It has been deprecated from version 1.59.5. Use `userName` instead. ID of the attached CAM user.
	//
	// Deprecated: It has been deprecated from version 1.59.5. Use `user_name` instead.
	UserId pulumi.StringPtrInput
	// Name of the attached CAM user as uniq key.
	UserName pulumi.StringPtrInput
}

The set of arguments for constructing a UserPolicyAttachment resource.

func (UserPolicyAttachmentArgs) ElementType

func (UserPolicyAttachmentArgs) ElementType() reflect.Type

type UserPolicyAttachmentArray

type UserPolicyAttachmentArray []UserPolicyAttachmentInput

func (UserPolicyAttachmentArray) ElementType

func (UserPolicyAttachmentArray) ElementType() reflect.Type

func (UserPolicyAttachmentArray) ToUserPolicyAttachmentArrayOutput

func (i UserPolicyAttachmentArray) ToUserPolicyAttachmentArrayOutput() UserPolicyAttachmentArrayOutput

func (UserPolicyAttachmentArray) ToUserPolicyAttachmentArrayOutputWithContext

func (i UserPolicyAttachmentArray) ToUserPolicyAttachmentArrayOutputWithContext(ctx context.Context) UserPolicyAttachmentArrayOutput

type UserPolicyAttachmentArrayInput

type UserPolicyAttachmentArrayInput interface {
	pulumi.Input

	ToUserPolicyAttachmentArrayOutput() UserPolicyAttachmentArrayOutput
	ToUserPolicyAttachmentArrayOutputWithContext(context.Context) UserPolicyAttachmentArrayOutput
}

UserPolicyAttachmentArrayInput is an input type that accepts UserPolicyAttachmentArray and UserPolicyAttachmentArrayOutput values. You can construct a concrete instance of `UserPolicyAttachmentArrayInput` via:

UserPolicyAttachmentArray{ UserPolicyAttachmentArgs{...} }

type UserPolicyAttachmentArrayOutput

type UserPolicyAttachmentArrayOutput struct{ *pulumi.OutputState }

func (UserPolicyAttachmentArrayOutput) ElementType

func (UserPolicyAttachmentArrayOutput) Index

func (UserPolicyAttachmentArrayOutput) ToUserPolicyAttachmentArrayOutput

func (o UserPolicyAttachmentArrayOutput) ToUserPolicyAttachmentArrayOutput() UserPolicyAttachmentArrayOutput

func (UserPolicyAttachmentArrayOutput) ToUserPolicyAttachmentArrayOutputWithContext

func (o UserPolicyAttachmentArrayOutput) ToUserPolicyAttachmentArrayOutputWithContext(ctx context.Context) UserPolicyAttachmentArrayOutput

type UserPolicyAttachmentInput

type UserPolicyAttachmentInput interface {
	pulumi.Input

	ToUserPolicyAttachmentOutput() UserPolicyAttachmentOutput
	ToUserPolicyAttachmentOutputWithContext(ctx context.Context) UserPolicyAttachmentOutput
}

type UserPolicyAttachmentMap

type UserPolicyAttachmentMap map[string]UserPolicyAttachmentInput

func (UserPolicyAttachmentMap) ElementType

func (UserPolicyAttachmentMap) ElementType() reflect.Type

func (UserPolicyAttachmentMap) ToUserPolicyAttachmentMapOutput

func (i UserPolicyAttachmentMap) ToUserPolicyAttachmentMapOutput() UserPolicyAttachmentMapOutput

func (UserPolicyAttachmentMap) ToUserPolicyAttachmentMapOutputWithContext

func (i UserPolicyAttachmentMap) ToUserPolicyAttachmentMapOutputWithContext(ctx context.Context) UserPolicyAttachmentMapOutput

type UserPolicyAttachmentMapInput

type UserPolicyAttachmentMapInput interface {
	pulumi.Input

	ToUserPolicyAttachmentMapOutput() UserPolicyAttachmentMapOutput
	ToUserPolicyAttachmentMapOutputWithContext(context.Context) UserPolicyAttachmentMapOutput
}

UserPolicyAttachmentMapInput is an input type that accepts UserPolicyAttachmentMap and UserPolicyAttachmentMapOutput values. You can construct a concrete instance of `UserPolicyAttachmentMapInput` via:

UserPolicyAttachmentMap{ "key": UserPolicyAttachmentArgs{...} }

type UserPolicyAttachmentMapOutput

type UserPolicyAttachmentMapOutput struct{ *pulumi.OutputState }

func (UserPolicyAttachmentMapOutput) ElementType

func (UserPolicyAttachmentMapOutput) MapIndex

func (UserPolicyAttachmentMapOutput) ToUserPolicyAttachmentMapOutput

func (o UserPolicyAttachmentMapOutput) ToUserPolicyAttachmentMapOutput() UserPolicyAttachmentMapOutput

func (UserPolicyAttachmentMapOutput) ToUserPolicyAttachmentMapOutputWithContext

func (o UserPolicyAttachmentMapOutput) ToUserPolicyAttachmentMapOutputWithContext(ctx context.Context) UserPolicyAttachmentMapOutput

type UserPolicyAttachmentOutput

type UserPolicyAttachmentOutput struct{ *pulumi.OutputState }

func (UserPolicyAttachmentOutput) CreateMode

Mode of Creation of the CAM user policy attachment. `1` means the CAM policy attachment is created by production, and the others indicate syntax strategy ways.

func (UserPolicyAttachmentOutput) CreateTime

Create time of the CAM user policy attachment.

func (UserPolicyAttachmentOutput) ElementType

func (UserPolicyAttachmentOutput) ElementType() reflect.Type

func (UserPolicyAttachmentOutput) PolicyId

ID of the policy.

func (UserPolicyAttachmentOutput) PolicyName

Name of the policy.

func (UserPolicyAttachmentOutput) PolicyType

Type of the policy strategy. `User` means customer strategy and `QCS` means preset strategy.

func (UserPolicyAttachmentOutput) ToUserPolicyAttachmentOutput

func (o UserPolicyAttachmentOutput) ToUserPolicyAttachmentOutput() UserPolicyAttachmentOutput

func (UserPolicyAttachmentOutput) ToUserPolicyAttachmentOutputWithContext

func (o UserPolicyAttachmentOutput) ToUserPolicyAttachmentOutputWithContext(ctx context.Context) UserPolicyAttachmentOutput

func (UserPolicyAttachmentOutput) UserId deprecated

It has been deprecated from version 1.59.5. Use `userName` instead. ID of the attached CAM user.

Deprecated: It has been deprecated from version 1.59.5. Use `user_name` instead.

func (UserPolicyAttachmentOutput) UserName

Name of the attached CAM user as uniq key.

type UserPolicyAttachmentState

type UserPolicyAttachmentState struct {
	// Mode of Creation of the CAM user policy attachment. `1` means the CAM policy attachment is created by production, and the others indicate syntax strategy ways.
	CreateMode pulumi.IntPtrInput
	// Create time of the CAM user policy attachment.
	CreateTime pulumi.StringPtrInput
	// ID of the policy.
	PolicyId pulumi.StringPtrInput
	// Name of the policy.
	PolicyName pulumi.StringPtrInput
	// Type of the policy strategy. `User` means customer strategy and `QCS` means preset strategy.
	PolicyType pulumi.StringPtrInput
	// It has been deprecated from version 1.59.5. Use `userName` instead. ID of the attached CAM user.
	//
	// Deprecated: It has been deprecated from version 1.59.5. Use `user_name` instead.
	UserId pulumi.StringPtrInput
	// Name of the attached CAM user as uniq key.
	UserName pulumi.StringPtrInput
}

func (UserPolicyAttachmentState) ElementType

func (UserPolicyAttachmentState) ElementType() reflect.Type

type UserState

type UserState struct {
	// Indicate whether the CAM user can login to the web console or not.
	ConsoleLogin pulumi.BoolPtrInput
	// Country code of the phone number, for example: '86'.
	CountryCode pulumi.StringPtrInput
	// Email of the CAM user.
	Email pulumi.StringPtrInput
	// Indicate whether to force deletes the CAM user. If set false, the API secret key will be checked and failed when exists; otherwise the user will be deleted directly. Default is false.
	ForceDelete pulumi.BoolPtrInput
	// Name of the CAM user.
	Name pulumi.StringPtrInput
	// Indicate whether the CAM user need to reset the password when first logins.
	NeedResetPassword pulumi.BoolPtrInput
	// The password of the CAM user. Password should be at least 8 characters and no more than 32 characters, includes uppercase letters, lowercase letters, numbers and special characters. Only required when `consoleLogin` is true. If not set, a random password will be automatically generated.
	Password pulumi.StringPtrInput
	// Phone number of the CAM user.
	PhoneNum pulumi.StringPtrInput
	// Remark of the CAM user.
	Remark pulumi.StringPtrInput
	// Secret ID of the CAM user.
	SecretId pulumi.StringPtrInput
	// Secret key of the CAM user.
	SecretKey pulumi.StringPtrInput
	// A list of tags used to associate different resources.
	Tags pulumi.MapInput
	// ID of the CAM user.
	Uid pulumi.IntPtrInput
	// Uin of the CAM User.
	Uin pulumi.IntPtrInput
	// Indicate whether to generate the API secret key or not.
	UseApi pulumi.BoolPtrInput
}

func (UserState) ElementType

func (UserState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL