cam

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion added in v0.0.5

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

type AccessKey added in v0.1.8

type AccessKey struct {
	pulumi.CustomResourceState

	// Access_key is the access key identification, required when updating.
	AccessKey pulumi.StringOutput `pulumi:"accessKey"`
	// Encrypted secret, base64 encoded, if pgp_key was specified. This attribute is not available for imported resources. The
	// encrypted secret may be decrypted using the command line, for example: terraform output -raw encrypted_secret | base64
	// --decode | keybase pgp decrypt.
	EncryptedSecretAccessKey pulumi.StringOutput `pulumi:"encryptedSecretAccessKey"`
	// Fingerprint of the PGP key used to encrypt the secret. This attribute is not available for imported resources.
	KeyFingerprint pulumi.StringOutput `pulumi:"keyFingerprint"`
	// Either a base-64 encoded PGP public key, or a keybase username in the form keybase:some_person_that_exists, for use in the encryptedSecret output attribute. If providing a base-64 encoded PGP public key, make sure to provide the "raw" version and not the "armored" one (e.g. avoid passing the -a option to gpg --export).
	PgpKey pulumi.StringPtrOutput `pulumi:"pgpKey"`
	// Access key (key is only visible when created, please keep it properly).
	SecretAccessKey pulumi.StringOutput `pulumi:"secretAccessKey"`
	// Key status, activated (Active) or inactive (Inactive), required when updating.
	Status pulumi.StringOutput `pulumi:"status"`
	// Specify user Uin, if not filled, the access key is created for the current user by default.
	TargetUin pulumi.IntPtrOutput `pulumi:"targetUin"`
}

Provides a resource to create a cam accessKey

## 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.NewAccessKey(ctx, "accessKey", &Cam.AccessKeyArgs{
			TargetUin: pulumi.Int(100033690181),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Update

```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.NewAccessKey(ctx, "accessKey", &Cam.AccessKeyArgs{
			Status:    pulumi.String("Inactive"),
			TargetUin: pulumi.Int(100033690181),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Encrypted

```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.NewAccessKey(ctx, "accessKey", &Cam.AccessKeyArgs{
			PgpKey:    pulumi.String("keybase:some_person_that_exists"),
			TargetUin: pulumi.Int(100033690181),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

cam access_key can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Cam/accessKey:AccessKey access_key access_key_id

```

func GetAccessKey added in v0.1.8

func GetAccessKey(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AccessKeyState, opts ...pulumi.ResourceOption) (*AccessKey, error)

GetAccessKey gets an existing AccessKey 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 NewAccessKey added in v0.1.8

func NewAccessKey(ctx *pulumi.Context,
	name string, args *AccessKeyArgs, opts ...pulumi.ResourceOption) (*AccessKey, error)

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

func (*AccessKey) ElementType added in v0.1.8

func (*AccessKey) ElementType() reflect.Type

func (*AccessKey) ToAccessKeyOutput added in v0.1.8

func (i *AccessKey) ToAccessKeyOutput() AccessKeyOutput

func (*AccessKey) ToAccessKeyOutputWithContext added in v0.1.8

func (i *AccessKey) ToAccessKeyOutputWithContext(ctx context.Context) AccessKeyOutput

type AccessKeyArgs added in v0.1.8

type AccessKeyArgs struct {
	// Access_key is the access key identification, required when updating.
	AccessKey pulumi.StringPtrInput
	// Either a base-64 encoded PGP public key, or a keybase username in the form keybase:some_person_that_exists, for use in the encryptedSecret output attribute. If providing a base-64 encoded PGP public key, make sure to provide the "raw" version and not the "armored" one (e.g. avoid passing the -a option to gpg --export).
	PgpKey pulumi.StringPtrInput
	// Key status, activated (Active) or inactive (Inactive), required when updating.
	Status pulumi.StringPtrInput
	// Specify user Uin, if not filled, the access key is created for the current user by default.
	TargetUin pulumi.IntPtrInput
}

The set of arguments for constructing a AccessKey resource.

func (AccessKeyArgs) ElementType added in v0.1.8

func (AccessKeyArgs) ElementType() reflect.Type

type AccessKeyArray added in v0.1.8

type AccessKeyArray []AccessKeyInput

func (AccessKeyArray) ElementType added in v0.1.8

func (AccessKeyArray) ElementType() reflect.Type

func (AccessKeyArray) ToAccessKeyArrayOutput added in v0.1.8

func (i AccessKeyArray) ToAccessKeyArrayOutput() AccessKeyArrayOutput

func (AccessKeyArray) ToAccessKeyArrayOutputWithContext added in v0.1.8

func (i AccessKeyArray) ToAccessKeyArrayOutputWithContext(ctx context.Context) AccessKeyArrayOutput

type AccessKeyArrayInput added in v0.1.8

type AccessKeyArrayInput interface {
	pulumi.Input

	ToAccessKeyArrayOutput() AccessKeyArrayOutput
	ToAccessKeyArrayOutputWithContext(context.Context) AccessKeyArrayOutput
}

AccessKeyArrayInput is an input type that accepts AccessKeyArray and AccessKeyArrayOutput values. You can construct a concrete instance of `AccessKeyArrayInput` via:

AccessKeyArray{ AccessKeyArgs{...} }

type AccessKeyArrayOutput added in v0.1.8

type AccessKeyArrayOutput struct{ *pulumi.OutputState }

func (AccessKeyArrayOutput) ElementType added in v0.1.8

func (AccessKeyArrayOutput) ElementType() reflect.Type

func (AccessKeyArrayOutput) Index added in v0.1.8

func (AccessKeyArrayOutput) ToAccessKeyArrayOutput added in v0.1.8

func (o AccessKeyArrayOutput) ToAccessKeyArrayOutput() AccessKeyArrayOutput

func (AccessKeyArrayOutput) ToAccessKeyArrayOutputWithContext added in v0.1.8

func (o AccessKeyArrayOutput) ToAccessKeyArrayOutputWithContext(ctx context.Context) AccessKeyArrayOutput

type AccessKeyInput added in v0.1.8

type AccessKeyInput interface {
	pulumi.Input

	ToAccessKeyOutput() AccessKeyOutput
	ToAccessKeyOutputWithContext(ctx context.Context) AccessKeyOutput
}

type AccessKeyMap added in v0.1.8

type AccessKeyMap map[string]AccessKeyInput

func (AccessKeyMap) ElementType added in v0.1.8

func (AccessKeyMap) ElementType() reflect.Type

func (AccessKeyMap) ToAccessKeyMapOutput added in v0.1.8

func (i AccessKeyMap) ToAccessKeyMapOutput() AccessKeyMapOutput

func (AccessKeyMap) ToAccessKeyMapOutputWithContext added in v0.1.8

func (i AccessKeyMap) ToAccessKeyMapOutputWithContext(ctx context.Context) AccessKeyMapOutput

type AccessKeyMapInput added in v0.1.8

type AccessKeyMapInput interface {
	pulumi.Input

	ToAccessKeyMapOutput() AccessKeyMapOutput
	ToAccessKeyMapOutputWithContext(context.Context) AccessKeyMapOutput
}

AccessKeyMapInput is an input type that accepts AccessKeyMap and AccessKeyMapOutput values. You can construct a concrete instance of `AccessKeyMapInput` via:

AccessKeyMap{ "key": AccessKeyArgs{...} }

type AccessKeyMapOutput added in v0.1.8

type AccessKeyMapOutput struct{ *pulumi.OutputState }

func (AccessKeyMapOutput) ElementType added in v0.1.8

func (AccessKeyMapOutput) ElementType() reflect.Type

func (AccessKeyMapOutput) MapIndex added in v0.1.8

func (AccessKeyMapOutput) ToAccessKeyMapOutput added in v0.1.8

func (o AccessKeyMapOutput) ToAccessKeyMapOutput() AccessKeyMapOutput

func (AccessKeyMapOutput) ToAccessKeyMapOutputWithContext added in v0.1.8

func (o AccessKeyMapOutput) ToAccessKeyMapOutputWithContext(ctx context.Context) AccessKeyMapOutput

type AccessKeyOutput added in v0.1.8

type AccessKeyOutput struct{ *pulumi.OutputState }

func (AccessKeyOutput) AccessKey added in v0.1.8

func (o AccessKeyOutput) AccessKey() pulumi.StringOutput

Access_key is the access key identification, required when updating.

func (AccessKeyOutput) ElementType added in v0.1.8

func (AccessKeyOutput) ElementType() reflect.Type

func (AccessKeyOutput) EncryptedSecretAccessKey added in v0.1.8

func (o AccessKeyOutput) EncryptedSecretAccessKey() pulumi.StringOutput

Encrypted secret, base64 encoded, if pgp_key was specified. This attribute is not available for imported resources. The encrypted secret may be decrypted using the command line, for example: terraform output -raw encrypted_secret | base64 --decode | keybase pgp decrypt.

func (AccessKeyOutput) KeyFingerprint added in v0.1.8

func (o AccessKeyOutput) KeyFingerprint() pulumi.StringOutput

Fingerprint of the PGP key used to encrypt the secret. This attribute is not available for imported resources.

func (AccessKeyOutput) PgpKey added in v0.1.8

Either a base-64 encoded PGP public key, or a keybase username in the form keybase:some_person_that_exists, for use in the encryptedSecret output attribute. If providing a base-64 encoded PGP public key, make sure to provide the "raw" version and not the "armored" one (e.g. avoid passing the -a option to gpg --export).

func (AccessKeyOutput) SecretAccessKey added in v0.1.8

func (o AccessKeyOutput) SecretAccessKey() pulumi.StringOutput

Access key (key is only visible when created, please keep it properly).

func (AccessKeyOutput) Status added in v0.1.8

func (o AccessKeyOutput) Status() pulumi.StringOutput

Key status, activated (Active) or inactive (Inactive), required when updating.

func (AccessKeyOutput) TargetUin added in v0.1.8

func (o AccessKeyOutput) TargetUin() pulumi.IntPtrOutput

Specify user Uin, if not filled, the access key is created for the current user by default.

func (AccessKeyOutput) ToAccessKeyOutput added in v0.1.8

func (o AccessKeyOutput) ToAccessKeyOutput() AccessKeyOutput

func (AccessKeyOutput) ToAccessKeyOutputWithContext added in v0.1.8

func (o AccessKeyOutput) ToAccessKeyOutputWithContext(ctx context.Context) AccessKeyOutput

type AccessKeyState added in v0.1.8

type AccessKeyState struct {
	// Access_key is the access key identification, required when updating.
	AccessKey pulumi.StringPtrInput
	// Encrypted secret, base64 encoded, if pgp_key was specified. This attribute is not available for imported resources. The
	// encrypted secret may be decrypted using the command line, for example: terraform output -raw encrypted_secret | base64
	// --decode | keybase pgp decrypt.
	EncryptedSecretAccessKey pulumi.StringPtrInput
	// Fingerprint of the PGP key used to encrypt the secret. This attribute is not available for imported resources.
	KeyFingerprint pulumi.StringPtrInput
	// Either a base-64 encoded PGP public key, or a keybase username in the form keybase:some_person_that_exists, for use in the encryptedSecret output attribute. If providing a base-64 encoded PGP public key, make sure to provide the "raw" version and not the "armored" one (e.g. avoid passing the -a option to gpg --export).
	PgpKey pulumi.StringPtrInput
	// Access key (key is only visible when created, please keep it properly).
	SecretAccessKey pulumi.StringPtrInput
	// Key status, activated (Active) or inactive (Inactive), required when updating.
	Status pulumi.StringPtrInput
	// Specify user Uin, if not filled, the access key is created for the current user by default.
	TargetUin pulumi.IntPtrInput
}

func (AccessKeyState) ElementType added in v0.1.8

func (AccessKeyState) ElementType() reflect.Type

type GetAccountSummaryArgs added in v0.1.8

type GetAccountSummaryArgs struct {
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getAccountSummary.

type GetAccountSummaryOutputArgs added in v0.1.8

type GetAccountSummaryOutputArgs struct {
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getAccountSummary.

func (GetAccountSummaryOutputArgs) ElementType added in v0.1.8

type GetAccountSummaryResult added in v0.1.8

type GetAccountSummaryResult struct {
	// The number of Group.
	Group int `pulumi:"group"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The number of identity provider.
	IdentityProviders int `pulumi:"identityProviders"`
	// The number of grouped users.
	Member int `pulumi:"member"`
	// The number of policy.
	Policies         int     `pulumi:"policies"`
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// The number of role.
	Roles int `pulumi:"roles"`
	// The number of Sub-user.
	User int `pulumi:"user"`
}

A collection of values returned by getAccountSummary.

func GetAccountSummary added in v0.1.8

func GetAccountSummary(ctx *pulumi.Context, args *GetAccountSummaryArgs, opts ...pulumi.InvokeOption) (*GetAccountSummaryResult, error)

Use this data source to query detailed information of cam accountSummary

## 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.GetAccountSummary(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetAccountSummaryResultOutput added in v0.1.8

type GetAccountSummaryResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getAccountSummary.

func GetAccountSummaryOutput added in v0.1.8

func (GetAccountSummaryResultOutput) ElementType added in v0.1.8

func (GetAccountSummaryResultOutput) Group added in v0.1.8

The number of Group.

func (GetAccountSummaryResultOutput) Id added in v0.1.8

The provider-assigned unique ID for this managed resource.

func (GetAccountSummaryResultOutput) IdentityProviders added in v0.1.8

func (o GetAccountSummaryResultOutput) IdentityProviders() pulumi.IntOutput

The number of identity provider.

func (GetAccountSummaryResultOutput) Member added in v0.1.8

The number of grouped users.

func (GetAccountSummaryResultOutput) Policies added in v0.1.8

The number of policy.

func (GetAccountSummaryResultOutput) ResultOutputFile added in v0.1.8

func (GetAccountSummaryResultOutput) Roles added in v0.1.8

The number of role.

func (GetAccountSummaryResultOutput) ToGetAccountSummaryResultOutput added in v0.1.8

func (o GetAccountSummaryResultOutput) ToGetAccountSummaryResultOutput() GetAccountSummaryResultOutput

func (GetAccountSummaryResultOutput) ToGetAccountSummaryResultOutputWithContext added in v0.1.8

func (o GetAccountSummaryResultOutput) ToGetAccountSummaryResultOutputWithContext(ctx context.Context) GetAccountSummaryResultOutput

func (GetAccountSummaryResultOutput) User added in v0.1.8

The number of Sub-user.

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 GetGroupUserAccountArgs added in v0.1.8

type GetGroupUserAccountArgs struct {
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// Number per page. The default is 20.
	Rp *int `pulumi:"rp"`
	// Sub-user uin.
	SubUin *int `pulumi:"subUin"`
	// Sub-user uid.
	Uid *int `pulumi:"uid"`
}

A collection of arguments for invoking getGroupUserAccount.

type GetGroupUserAccountGroupInfo added in v0.1.8

type GetGroupUserAccountGroupInfo struct {
	// Create time.
	CreateTime string `pulumi:"createTime"`
	// User group ID.
	GroupId int `pulumi:"groupId"`
	// User group name.
	GroupName string `pulumi:"groupName"`
	// Remark.
	Remark string `pulumi:"remark"`
}

type GetGroupUserAccountGroupInfoArgs added in v0.1.8

type GetGroupUserAccountGroupInfoArgs struct {
	// Create time.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// User group ID.
	GroupId pulumi.IntInput `pulumi:"groupId"`
	// User group name.
	GroupName pulumi.StringInput `pulumi:"groupName"`
	// Remark.
	Remark pulumi.StringInput `pulumi:"remark"`
}

func (GetGroupUserAccountGroupInfoArgs) ElementType added in v0.1.8

func (GetGroupUserAccountGroupInfoArgs) ToGetGroupUserAccountGroupInfoOutput added in v0.1.8

func (i GetGroupUserAccountGroupInfoArgs) ToGetGroupUserAccountGroupInfoOutput() GetGroupUserAccountGroupInfoOutput

func (GetGroupUserAccountGroupInfoArgs) ToGetGroupUserAccountGroupInfoOutputWithContext added in v0.1.8

func (i GetGroupUserAccountGroupInfoArgs) ToGetGroupUserAccountGroupInfoOutputWithContext(ctx context.Context) GetGroupUserAccountGroupInfoOutput

type GetGroupUserAccountGroupInfoArray added in v0.1.8

type GetGroupUserAccountGroupInfoArray []GetGroupUserAccountGroupInfoInput

func (GetGroupUserAccountGroupInfoArray) ElementType added in v0.1.8

func (GetGroupUserAccountGroupInfoArray) ToGetGroupUserAccountGroupInfoArrayOutput added in v0.1.8

func (i GetGroupUserAccountGroupInfoArray) ToGetGroupUserAccountGroupInfoArrayOutput() GetGroupUserAccountGroupInfoArrayOutput

func (GetGroupUserAccountGroupInfoArray) ToGetGroupUserAccountGroupInfoArrayOutputWithContext added in v0.1.8

func (i GetGroupUserAccountGroupInfoArray) ToGetGroupUserAccountGroupInfoArrayOutputWithContext(ctx context.Context) GetGroupUserAccountGroupInfoArrayOutput

type GetGroupUserAccountGroupInfoArrayInput added in v0.1.8

type GetGroupUserAccountGroupInfoArrayInput interface {
	pulumi.Input

	ToGetGroupUserAccountGroupInfoArrayOutput() GetGroupUserAccountGroupInfoArrayOutput
	ToGetGroupUserAccountGroupInfoArrayOutputWithContext(context.Context) GetGroupUserAccountGroupInfoArrayOutput
}

GetGroupUserAccountGroupInfoArrayInput is an input type that accepts GetGroupUserAccountGroupInfoArray and GetGroupUserAccountGroupInfoArrayOutput values. You can construct a concrete instance of `GetGroupUserAccountGroupInfoArrayInput` via:

GetGroupUserAccountGroupInfoArray{ GetGroupUserAccountGroupInfoArgs{...} }

type GetGroupUserAccountGroupInfoArrayOutput added in v0.1.8

type GetGroupUserAccountGroupInfoArrayOutput struct{ *pulumi.OutputState }

func (GetGroupUserAccountGroupInfoArrayOutput) ElementType added in v0.1.8

func (GetGroupUserAccountGroupInfoArrayOutput) Index added in v0.1.8

func (GetGroupUserAccountGroupInfoArrayOutput) ToGetGroupUserAccountGroupInfoArrayOutput added in v0.1.8

func (o GetGroupUserAccountGroupInfoArrayOutput) ToGetGroupUserAccountGroupInfoArrayOutput() GetGroupUserAccountGroupInfoArrayOutput

func (GetGroupUserAccountGroupInfoArrayOutput) ToGetGroupUserAccountGroupInfoArrayOutputWithContext added in v0.1.8

func (o GetGroupUserAccountGroupInfoArrayOutput) ToGetGroupUserAccountGroupInfoArrayOutputWithContext(ctx context.Context) GetGroupUserAccountGroupInfoArrayOutput

type GetGroupUserAccountGroupInfoInput added in v0.1.8

type GetGroupUserAccountGroupInfoInput interface {
	pulumi.Input

	ToGetGroupUserAccountGroupInfoOutput() GetGroupUserAccountGroupInfoOutput
	ToGetGroupUserAccountGroupInfoOutputWithContext(context.Context) GetGroupUserAccountGroupInfoOutput
}

GetGroupUserAccountGroupInfoInput is an input type that accepts GetGroupUserAccountGroupInfoArgs and GetGroupUserAccountGroupInfoOutput values. You can construct a concrete instance of `GetGroupUserAccountGroupInfoInput` via:

GetGroupUserAccountGroupInfoArgs{...}

type GetGroupUserAccountGroupInfoOutput added in v0.1.8

type GetGroupUserAccountGroupInfoOutput struct{ *pulumi.OutputState }

func (GetGroupUserAccountGroupInfoOutput) CreateTime added in v0.1.8

Create time.

func (GetGroupUserAccountGroupInfoOutput) ElementType added in v0.1.8

func (GetGroupUserAccountGroupInfoOutput) GroupId added in v0.1.8

User group ID.

func (GetGroupUserAccountGroupInfoOutput) GroupName added in v0.1.8

User group name.

func (GetGroupUserAccountGroupInfoOutput) Remark added in v0.1.8

Remark.

func (GetGroupUserAccountGroupInfoOutput) ToGetGroupUserAccountGroupInfoOutput added in v0.1.8

func (o GetGroupUserAccountGroupInfoOutput) ToGetGroupUserAccountGroupInfoOutput() GetGroupUserAccountGroupInfoOutput

func (GetGroupUserAccountGroupInfoOutput) ToGetGroupUserAccountGroupInfoOutputWithContext added in v0.1.8

func (o GetGroupUserAccountGroupInfoOutput) ToGetGroupUserAccountGroupInfoOutputWithContext(ctx context.Context) GetGroupUserAccountGroupInfoOutput

type GetGroupUserAccountOutputArgs added in v0.1.8

type GetGroupUserAccountOutputArgs struct {
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
	// Number per page. The default is 20.
	Rp pulumi.IntPtrInput `pulumi:"rp"`
	// Sub-user uin.
	SubUin pulumi.IntPtrInput `pulumi:"subUin"`
	// Sub-user uid.
	Uid pulumi.IntPtrInput `pulumi:"uid"`
}

A collection of arguments for invoking getGroupUserAccount.

func (GetGroupUserAccountOutputArgs) ElementType added in v0.1.8

type GetGroupUserAccountResult added in v0.1.8

type GetGroupUserAccountResult struct {
	// User group information.
	GroupInfos []GetGroupUserAccountGroupInfo `pulumi:"groupInfos"`
	// The provider-assigned unique ID for this managed resource.
	Id               string  `pulumi:"id"`
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	Rp               *int    `pulumi:"rp"`
	SubUin           *int    `pulumi:"subUin"`
	// The total number of user groups the sub-user has joined.
	TotalNum int  `pulumi:"totalNum"`
	Uid      *int `pulumi:"uid"`
}

A collection of values returned by getGroupUserAccount.

func GetGroupUserAccount added in v0.1.8

func GetGroupUserAccount(ctx *pulumi.Context, args *GetGroupUserAccountArgs, opts ...pulumi.InvokeOption) (*GetGroupUserAccountResult, error)

Use this data source to query detailed information of cam groupUserAccount

## 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.GetGroupUserAccount(ctx, &cam.GetGroupUserAccountArgs{
			SubUin: pulumi.IntRef(100033690181),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetGroupUserAccountResultOutput added in v0.1.8

type GetGroupUserAccountResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getGroupUserAccount.

func GetGroupUserAccountOutput added in v0.1.8

func (GetGroupUserAccountResultOutput) ElementType added in v0.1.8

func (GetGroupUserAccountResultOutput) GroupInfos added in v0.1.8

User group information.

func (GetGroupUserAccountResultOutput) Id added in v0.1.8

The provider-assigned unique ID for this managed resource.

func (GetGroupUserAccountResultOutput) ResultOutputFile added in v0.1.8

func (GetGroupUserAccountResultOutput) Rp added in v0.1.8

func (GetGroupUserAccountResultOutput) SubUin added in v0.1.8

func (GetGroupUserAccountResultOutput) ToGetGroupUserAccountResultOutput added in v0.1.8

func (o GetGroupUserAccountResultOutput) ToGetGroupUserAccountResultOutput() GetGroupUserAccountResultOutput

func (GetGroupUserAccountResultOutput) ToGetGroupUserAccountResultOutputWithContext added in v0.1.8

func (o GetGroupUserAccountResultOutput) ToGetGroupUserAccountResultOutputWithContext(ctx context.Context) GetGroupUserAccountResultOutput

func (GetGroupUserAccountResultOutput) TotalNum added in v0.1.8

The total number of user groups the sub-user has joined.

func (GetGroupUserAccountResultOutput) Uid added in v0.1.8

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 GetListAttachedUserPolicyArgs added in v0.1.8

type GetListAttachedUserPolicyArgs struct {
	AttachType       int     `pulumi:"attachType"`
	Keyword          *string `pulumi:"keyword"`
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	StrategyType     *int    `pulumi:"strategyType"`
	TargetUin        int     `pulumi:"targetUin"`
}

A collection of arguments for invoking getListAttachedUserPolicy.

type GetListAttachedUserPolicyOutputArgs added in v0.1.8

type GetListAttachedUserPolicyOutputArgs struct {
	AttachType       pulumi.IntInput       `pulumi:"attachType"`
	Keyword          pulumi.StringPtrInput `pulumi:"keyword"`
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
	StrategyType     pulumi.IntPtrInput    `pulumi:"strategyType"`
	TargetUin        pulumi.IntInput       `pulumi:"targetUin"`
}

A collection of arguments for invoking getListAttachedUserPolicy.

func (GetListAttachedUserPolicyOutputArgs) ElementType added in v0.1.8

type GetListAttachedUserPolicyPolicyList added in v0.1.8

type GetListAttachedUserPolicyPolicyList struct {
	AddTime          string                                     `pulumi:"addTime"`
	CreateMode       string                                     `pulumi:"createMode"`
	Deactived        int                                        `pulumi:"deactived"`
	DeactivedDetails []string                                   `pulumi:"deactivedDetails"`
	Description      string                                     `pulumi:"description"`
	Groups           []GetListAttachedUserPolicyPolicyListGroup `pulumi:"groups"`
	PolicyId         string                                     `pulumi:"policyId"`
	PolicyName       string                                     `pulumi:"policyName"`
	StrategyType     string                                     `pulumi:"strategyType"`
}

type GetListAttachedUserPolicyPolicyListArgs added in v0.1.8

type GetListAttachedUserPolicyPolicyListArgs struct {
	AddTime          pulumi.StringInput                                 `pulumi:"addTime"`
	CreateMode       pulumi.StringInput                                 `pulumi:"createMode"`
	Deactived        pulumi.IntInput                                    `pulumi:"deactived"`
	DeactivedDetails pulumi.StringArrayInput                            `pulumi:"deactivedDetails"`
	Description      pulumi.StringInput                                 `pulumi:"description"`
	Groups           GetListAttachedUserPolicyPolicyListGroupArrayInput `pulumi:"groups"`
	PolicyId         pulumi.StringInput                                 `pulumi:"policyId"`
	PolicyName       pulumi.StringInput                                 `pulumi:"policyName"`
	StrategyType     pulumi.StringInput                                 `pulumi:"strategyType"`
}

func (GetListAttachedUserPolicyPolicyListArgs) ElementType added in v0.1.8

func (GetListAttachedUserPolicyPolicyListArgs) ToGetListAttachedUserPolicyPolicyListOutput added in v0.1.8

func (i GetListAttachedUserPolicyPolicyListArgs) ToGetListAttachedUserPolicyPolicyListOutput() GetListAttachedUserPolicyPolicyListOutput

func (GetListAttachedUserPolicyPolicyListArgs) ToGetListAttachedUserPolicyPolicyListOutputWithContext added in v0.1.8

func (i GetListAttachedUserPolicyPolicyListArgs) ToGetListAttachedUserPolicyPolicyListOutputWithContext(ctx context.Context) GetListAttachedUserPolicyPolicyListOutput

type GetListAttachedUserPolicyPolicyListArray added in v0.1.8

type GetListAttachedUserPolicyPolicyListArray []GetListAttachedUserPolicyPolicyListInput

func (GetListAttachedUserPolicyPolicyListArray) ElementType added in v0.1.8

func (GetListAttachedUserPolicyPolicyListArray) ToGetListAttachedUserPolicyPolicyListArrayOutput added in v0.1.8

func (i GetListAttachedUserPolicyPolicyListArray) ToGetListAttachedUserPolicyPolicyListArrayOutput() GetListAttachedUserPolicyPolicyListArrayOutput

func (GetListAttachedUserPolicyPolicyListArray) ToGetListAttachedUserPolicyPolicyListArrayOutputWithContext added in v0.1.8

func (i GetListAttachedUserPolicyPolicyListArray) ToGetListAttachedUserPolicyPolicyListArrayOutputWithContext(ctx context.Context) GetListAttachedUserPolicyPolicyListArrayOutput

type GetListAttachedUserPolicyPolicyListArrayInput added in v0.1.8

type GetListAttachedUserPolicyPolicyListArrayInput interface {
	pulumi.Input

	ToGetListAttachedUserPolicyPolicyListArrayOutput() GetListAttachedUserPolicyPolicyListArrayOutput
	ToGetListAttachedUserPolicyPolicyListArrayOutputWithContext(context.Context) GetListAttachedUserPolicyPolicyListArrayOutput
}

GetListAttachedUserPolicyPolicyListArrayInput is an input type that accepts GetListAttachedUserPolicyPolicyListArray and GetListAttachedUserPolicyPolicyListArrayOutput values. You can construct a concrete instance of `GetListAttachedUserPolicyPolicyListArrayInput` via:

GetListAttachedUserPolicyPolicyListArray{ GetListAttachedUserPolicyPolicyListArgs{...} }

type GetListAttachedUserPolicyPolicyListArrayOutput added in v0.1.8

type GetListAttachedUserPolicyPolicyListArrayOutput struct{ *pulumi.OutputState }

func (GetListAttachedUserPolicyPolicyListArrayOutput) ElementType added in v0.1.8

func (GetListAttachedUserPolicyPolicyListArrayOutput) Index added in v0.1.8

func (GetListAttachedUserPolicyPolicyListArrayOutput) ToGetListAttachedUserPolicyPolicyListArrayOutput added in v0.1.8

func (o GetListAttachedUserPolicyPolicyListArrayOutput) ToGetListAttachedUserPolicyPolicyListArrayOutput() GetListAttachedUserPolicyPolicyListArrayOutput

func (GetListAttachedUserPolicyPolicyListArrayOutput) ToGetListAttachedUserPolicyPolicyListArrayOutputWithContext added in v0.1.8

func (o GetListAttachedUserPolicyPolicyListArrayOutput) ToGetListAttachedUserPolicyPolicyListArrayOutputWithContext(ctx context.Context) GetListAttachedUserPolicyPolicyListArrayOutput

type GetListAttachedUserPolicyPolicyListGroup added in v0.1.8

type GetListAttachedUserPolicyPolicyListGroup struct {
	GroupId   int    `pulumi:"groupId"`
	GroupName string `pulumi:"groupName"`
}

type GetListAttachedUserPolicyPolicyListGroupArgs added in v0.1.8

type GetListAttachedUserPolicyPolicyListGroupArgs struct {
	GroupId   pulumi.IntInput    `pulumi:"groupId"`
	GroupName pulumi.StringInput `pulumi:"groupName"`
}

func (GetListAttachedUserPolicyPolicyListGroupArgs) ElementType added in v0.1.8

func (GetListAttachedUserPolicyPolicyListGroupArgs) ToGetListAttachedUserPolicyPolicyListGroupOutput added in v0.1.8

func (i GetListAttachedUserPolicyPolicyListGroupArgs) ToGetListAttachedUserPolicyPolicyListGroupOutput() GetListAttachedUserPolicyPolicyListGroupOutput

func (GetListAttachedUserPolicyPolicyListGroupArgs) ToGetListAttachedUserPolicyPolicyListGroupOutputWithContext added in v0.1.8

func (i GetListAttachedUserPolicyPolicyListGroupArgs) ToGetListAttachedUserPolicyPolicyListGroupOutputWithContext(ctx context.Context) GetListAttachedUserPolicyPolicyListGroupOutput

type GetListAttachedUserPolicyPolicyListGroupArray added in v0.1.8

type GetListAttachedUserPolicyPolicyListGroupArray []GetListAttachedUserPolicyPolicyListGroupInput

func (GetListAttachedUserPolicyPolicyListGroupArray) ElementType added in v0.1.8

func (GetListAttachedUserPolicyPolicyListGroupArray) ToGetListAttachedUserPolicyPolicyListGroupArrayOutput added in v0.1.8

func (i GetListAttachedUserPolicyPolicyListGroupArray) ToGetListAttachedUserPolicyPolicyListGroupArrayOutput() GetListAttachedUserPolicyPolicyListGroupArrayOutput

func (GetListAttachedUserPolicyPolicyListGroupArray) ToGetListAttachedUserPolicyPolicyListGroupArrayOutputWithContext added in v0.1.8

func (i GetListAttachedUserPolicyPolicyListGroupArray) ToGetListAttachedUserPolicyPolicyListGroupArrayOutputWithContext(ctx context.Context) GetListAttachedUserPolicyPolicyListGroupArrayOutput

type GetListAttachedUserPolicyPolicyListGroupArrayInput added in v0.1.8

type GetListAttachedUserPolicyPolicyListGroupArrayInput interface {
	pulumi.Input

	ToGetListAttachedUserPolicyPolicyListGroupArrayOutput() GetListAttachedUserPolicyPolicyListGroupArrayOutput
	ToGetListAttachedUserPolicyPolicyListGroupArrayOutputWithContext(context.Context) GetListAttachedUserPolicyPolicyListGroupArrayOutput
}

GetListAttachedUserPolicyPolicyListGroupArrayInput is an input type that accepts GetListAttachedUserPolicyPolicyListGroupArray and GetListAttachedUserPolicyPolicyListGroupArrayOutput values. You can construct a concrete instance of `GetListAttachedUserPolicyPolicyListGroupArrayInput` via:

GetListAttachedUserPolicyPolicyListGroupArray{ GetListAttachedUserPolicyPolicyListGroupArgs{...} }

type GetListAttachedUserPolicyPolicyListGroupArrayOutput added in v0.1.8

type GetListAttachedUserPolicyPolicyListGroupArrayOutput struct{ *pulumi.OutputState }

func (GetListAttachedUserPolicyPolicyListGroupArrayOutput) ElementType added in v0.1.8

func (GetListAttachedUserPolicyPolicyListGroupArrayOutput) Index added in v0.1.8

func (GetListAttachedUserPolicyPolicyListGroupArrayOutput) ToGetListAttachedUserPolicyPolicyListGroupArrayOutput added in v0.1.8

func (o GetListAttachedUserPolicyPolicyListGroupArrayOutput) ToGetListAttachedUserPolicyPolicyListGroupArrayOutput() GetListAttachedUserPolicyPolicyListGroupArrayOutput

func (GetListAttachedUserPolicyPolicyListGroupArrayOutput) ToGetListAttachedUserPolicyPolicyListGroupArrayOutputWithContext added in v0.1.8

func (o GetListAttachedUserPolicyPolicyListGroupArrayOutput) ToGetListAttachedUserPolicyPolicyListGroupArrayOutputWithContext(ctx context.Context) GetListAttachedUserPolicyPolicyListGroupArrayOutput

type GetListAttachedUserPolicyPolicyListGroupInput added in v0.1.8

type GetListAttachedUserPolicyPolicyListGroupInput interface {
	pulumi.Input

	ToGetListAttachedUserPolicyPolicyListGroupOutput() GetListAttachedUserPolicyPolicyListGroupOutput
	ToGetListAttachedUserPolicyPolicyListGroupOutputWithContext(context.Context) GetListAttachedUserPolicyPolicyListGroupOutput
}

GetListAttachedUserPolicyPolicyListGroupInput is an input type that accepts GetListAttachedUserPolicyPolicyListGroupArgs and GetListAttachedUserPolicyPolicyListGroupOutput values. You can construct a concrete instance of `GetListAttachedUserPolicyPolicyListGroupInput` via:

GetListAttachedUserPolicyPolicyListGroupArgs{...}

type GetListAttachedUserPolicyPolicyListGroupOutput added in v0.1.8

type GetListAttachedUserPolicyPolicyListGroupOutput struct{ *pulumi.OutputState }

func (GetListAttachedUserPolicyPolicyListGroupOutput) ElementType added in v0.1.8

func (GetListAttachedUserPolicyPolicyListGroupOutput) GroupId added in v0.1.8

func (GetListAttachedUserPolicyPolicyListGroupOutput) GroupName added in v0.1.8

func (GetListAttachedUserPolicyPolicyListGroupOutput) ToGetListAttachedUserPolicyPolicyListGroupOutput added in v0.1.8

func (o GetListAttachedUserPolicyPolicyListGroupOutput) ToGetListAttachedUserPolicyPolicyListGroupOutput() GetListAttachedUserPolicyPolicyListGroupOutput

func (GetListAttachedUserPolicyPolicyListGroupOutput) ToGetListAttachedUserPolicyPolicyListGroupOutputWithContext added in v0.1.8

func (o GetListAttachedUserPolicyPolicyListGroupOutput) ToGetListAttachedUserPolicyPolicyListGroupOutputWithContext(ctx context.Context) GetListAttachedUserPolicyPolicyListGroupOutput

type GetListAttachedUserPolicyPolicyListInput added in v0.1.8

type GetListAttachedUserPolicyPolicyListInput interface {
	pulumi.Input

	ToGetListAttachedUserPolicyPolicyListOutput() GetListAttachedUserPolicyPolicyListOutput
	ToGetListAttachedUserPolicyPolicyListOutputWithContext(context.Context) GetListAttachedUserPolicyPolicyListOutput
}

GetListAttachedUserPolicyPolicyListInput is an input type that accepts GetListAttachedUserPolicyPolicyListArgs and GetListAttachedUserPolicyPolicyListOutput values. You can construct a concrete instance of `GetListAttachedUserPolicyPolicyListInput` via:

GetListAttachedUserPolicyPolicyListArgs{...}

type GetListAttachedUserPolicyPolicyListOutput added in v0.1.8

type GetListAttachedUserPolicyPolicyListOutput struct{ *pulumi.OutputState }

func (GetListAttachedUserPolicyPolicyListOutput) AddTime added in v0.1.8

func (GetListAttachedUserPolicyPolicyListOutput) CreateMode added in v0.1.8

func (GetListAttachedUserPolicyPolicyListOutput) Deactived added in v0.1.8

func (GetListAttachedUserPolicyPolicyListOutput) DeactivedDetails added in v0.1.8

func (GetListAttachedUserPolicyPolicyListOutput) Description added in v0.1.8

func (GetListAttachedUserPolicyPolicyListOutput) ElementType added in v0.1.8

func (GetListAttachedUserPolicyPolicyListOutput) Groups added in v0.1.8

func (GetListAttachedUserPolicyPolicyListOutput) PolicyId added in v0.1.8

func (GetListAttachedUserPolicyPolicyListOutput) PolicyName added in v0.1.8

func (GetListAttachedUserPolicyPolicyListOutput) StrategyType added in v0.1.8

func (GetListAttachedUserPolicyPolicyListOutput) ToGetListAttachedUserPolicyPolicyListOutput added in v0.1.8

func (o GetListAttachedUserPolicyPolicyListOutput) ToGetListAttachedUserPolicyPolicyListOutput() GetListAttachedUserPolicyPolicyListOutput

func (GetListAttachedUserPolicyPolicyListOutput) ToGetListAttachedUserPolicyPolicyListOutputWithContext added in v0.1.8

func (o GetListAttachedUserPolicyPolicyListOutput) ToGetListAttachedUserPolicyPolicyListOutputWithContext(ctx context.Context) GetListAttachedUserPolicyPolicyListOutput

type GetListAttachedUserPolicyResult added in v0.1.8

type GetListAttachedUserPolicyResult struct {
	AttachType int `pulumi:"attachType"`
	// The provider-assigned unique ID for this managed resource.
	Id               string                                `pulumi:"id"`
	Keyword          *string                               `pulumi:"keyword"`
	PolicyLists      []GetListAttachedUserPolicyPolicyList `pulumi:"policyLists"`
	ResultOutputFile *string                               `pulumi:"resultOutputFile"`
	StrategyType     *int                                  `pulumi:"strategyType"`
	TargetUin        int                                   `pulumi:"targetUin"`
}

A collection of values returned by getListAttachedUserPolicy.

func GetListAttachedUserPolicy added in v0.1.8

func GetListAttachedUserPolicy(ctx *pulumi.Context, args *GetListAttachedUserPolicyArgs, opts ...pulumi.InvokeOption) (*GetListAttachedUserPolicyResult, error)

type GetListAttachedUserPolicyResultOutput added in v0.1.8

type GetListAttachedUserPolicyResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getListAttachedUserPolicy.

func (GetListAttachedUserPolicyResultOutput) AttachType added in v0.1.8

func (GetListAttachedUserPolicyResultOutput) ElementType added in v0.1.8

func (GetListAttachedUserPolicyResultOutput) Id added in v0.1.8

The provider-assigned unique ID for this managed resource.

func (GetListAttachedUserPolicyResultOutput) Keyword added in v0.1.8

func (GetListAttachedUserPolicyResultOutput) PolicyLists added in v0.1.8

func (GetListAttachedUserPolicyResultOutput) ResultOutputFile added in v0.1.8

func (GetListAttachedUserPolicyResultOutput) StrategyType added in v0.1.8

func (GetListAttachedUserPolicyResultOutput) TargetUin added in v0.1.8

func (GetListAttachedUserPolicyResultOutput) ToGetListAttachedUserPolicyResultOutput added in v0.1.8

func (o GetListAttachedUserPolicyResultOutput) ToGetListAttachedUserPolicyResultOutput() GetListAttachedUserPolicyResultOutput

func (GetListAttachedUserPolicyResultOutput) ToGetListAttachedUserPolicyResultOutputWithContext added in v0.1.8

func (o GetListAttachedUserPolicyResultOutput) ToGetListAttachedUserPolicyResultOutputWithContext(ctx context.Context) GetListAttachedUserPolicyResultOutput

type GetListEntitiesForPolicyArgs added in v0.1.8

type GetListEntitiesForPolicyArgs struct {
	// Can take values of 'All', 'User', 'Group', and 'Role'. 'All' represents obtaining all entity types, 'User' represents only obtaining sub accounts, 'Group' represents only obtaining user groups, and 'Role' represents only obtaining roles. The default value is' All '.
	EntityFilter *string `pulumi:"entityFilter"`
	// Policy Id.
	PolicyId int `pulumi:"policyId"`
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// Per page size, default value is 20.
	Rp *int `pulumi:"rp"`
}

A collection of arguments for invoking getListEntitiesForPolicy.

type GetListEntitiesForPolicyList added in v0.1.8

type GetListEntitiesForPolicyList struct {
	// Policy association timeNote: This field may return null, indicating that a valid value cannot be obtained.
	AttachmentTime string `pulumi:"attachmentTime"`
	// Entity ID.
	Id string `pulumi:"id"`
	// Entity NameNote: This field may return null, indicating that a valid value cannot be obtained.
	Name string `pulumi:"name"`
	// Association type. 1. User association; 2 User Group Association.
	RelatedType int `pulumi:"relatedType"`
	// Entity UinNote: This field may return null, indicating that a valid value cannot be obtained.
	Uin int `pulumi:"uin"`
}

type GetListEntitiesForPolicyListArgs added in v0.1.8

type GetListEntitiesForPolicyListArgs struct {
	// Policy association timeNote: This field may return null, indicating that a valid value cannot be obtained.
	AttachmentTime pulumi.StringInput `pulumi:"attachmentTime"`
	// Entity ID.
	Id pulumi.StringInput `pulumi:"id"`
	// Entity NameNote: This field may return null, indicating that a valid value cannot be obtained.
	Name pulumi.StringInput `pulumi:"name"`
	// Association type. 1. User association; 2 User Group Association.
	RelatedType pulumi.IntInput `pulumi:"relatedType"`
	// Entity UinNote: This field may return null, indicating that a valid value cannot be obtained.
	Uin pulumi.IntInput `pulumi:"uin"`
}

func (GetListEntitiesForPolicyListArgs) ElementType added in v0.1.8

func (GetListEntitiesForPolicyListArgs) ToGetListEntitiesForPolicyListOutput added in v0.1.8

func (i GetListEntitiesForPolicyListArgs) ToGetListEntitiesForPolicyListOutput() GetListEntitiesForPolicyListOutput

func (GetListEntitiesForPolicyListArgs) ToGetListEntitiesForPolicyListOutputWithContext added in v0.1.8

func (i GetListEntitiesForPolicyListArgs) ToGetListEntitiesForPolicyListOutputWithContext(ctx context.Context) GetListEntitiesForPolicyListOutput

type GetListEntitiesForPolicyListArray added in v0.1.8

type GetListEntitiesForPolicyListArray []GetListEntitiesForPolicyListInput

func (GetListEntitiesForPolicyListArray) ElementType added in v0.1.8

func (GetListEntitiesForPolicyListArray) ToGetListEntitiesForPolicyListArrayOutput added in v0.1.8

func (i GetListEntitiesForPolicyListArray) ToGetListEntitiesForPolicyListArrayOutput() GetListEntitiesForPolicyListArrayOutput

func (GetListEntitiesForPolicyListArray) ToGetListEntitiesForPolicyListArrayOutputWithContext added in v0.1.8

func (i GetListEntitiesForPolicyListArray) ToGetListEntitiesForPolicyListArrayOutputWithContext(ctx context.Context) GetListEntitiesForPolicyListArrayOutput

type GetListEntitiesForPolicyListArrayInput added in v0.1.8

type GetListEntitiesForPolicyListArrayInput interface {
	pulumi.Input

	ToGetListEntitiesForPolicyListArrayOutput() GetListEntitiesForPolicyListArrayOutput
	ToGetListEntitiesForPolicyListArrayOutputWithContext(context.Context) GetListEntitiesForPolicyListArrayOutput
}

GetListEntitiesForPolicyListArrayInput is an input type that accepts GetListEntitiesForPolicyListArray and GetListEntitiesForPolicyListArrayOutput values. You can construct a concrete instance of `GetListEntitiesForPolicyListArrayInput` via:

GetListEntitiesForPolicyListArray{ GetListEntitiesForPolicyListArgs{...} }

type GetListEntitiesForPolicyListArrayOutput added in v0.1.8

type GetListEntitiesForPolicyListArrayOutput struct{ *pulumi.OutputState }

func (GetListEntitiesForPolicyListArrayOutput) ElementType added in v0.1.8

func (GetListEntitiesForPolicyListArrayOutput) Index added in v0.1.8

func (GetListEntitiesForPolicyListArrayOutput) ToGetListEntitiesForPolicyListArrayOutput added in v0.1.8

func (o GetListEntitiesForPolicyListArrayOutput) ToGetListEntitiesForPolicyListArrayOutput() GetListEntitiesForPolicyListArrayOutput

func (GetListEntitiesForPolicyListArrayOutput) ToGetListEntitiesForPolicyListArrayOutputWithContext added in v0.1.8

func (o GetListEntitiesForPolicyListArrayOutput) ToGetListEntitiesForPolicyListArrayOutputWithContext(ctx context.Context) GetListEntitiesForPolicyListArrayOutput

type GetListEntitiesForPolicyListInput added in v0.1.8

type GetListEntitiesForPolicyListInput interface {
	pulumi.Input

	ToGetListEntitiesForPolicyListOutput() GetListEntitiesForPolicyListOutput
	ToGetListEntitiesForPolicyListOutputWithContext(context.Context) GetListEntitiesForPolicyListOutput
}

GetListEntitiesForPolicyListInput is an input type that accepts GetListEntitiesForPolicyListArgs and GetListEntitiesForPolicyListOutput values. You can construct a concrete instance of `GetListEntitiesForPolicyListInput` via:

GetListEntitiesForPolicyListArgs{...}

type GetListEntitiesForPolicyListOutput added in v0.1.8

type GetListEntitiesForPolicyListOutput struct{ *pulumi.OutputState }

func (GetListEntitiesForPolicyListOutput) AttachmentTime added in v0.1.8

Policy association timeNote: This field may return null, indicating that a valid value cannot be obtained.

func (GetListEntitiesForPolicyListOutput) ElementType added in v0.1.8

func (GetListEntitiesForPolicyListOutput) Id added in v0.1.8

Entity ID.

func (GetListEntitiesForPolicyListOutput) Name added in v0.1.8

Entity NameNote: This field may return null, indicating that a valid value cannot be obtained.

func (GetListEntitiesForPolicyListOutput) RelatedType added in v0.1.8

Association type. 1. User association; 2 User Group Association.

func (GetListEntitiesForPolicyListOutput) ToGetListEntitiesForPolicyListOutput added in v0.1.8

func (o GetListEntitiesForPolicyListOutput) ToGetListEntitiesForPolicyListOutput() GetListEntitiesForPolicyListOutput

func (GetListEntitiesForPolicyListOutput) ToGetListEntitiesForPolicyListOutputWithContext added in v0.1.8

func (o GetListEntitiesForPolicyListOutput) ToGetListEntitiesForPolicyListOutputWithContext(ctx context.Context) GetListEntitiesForPolicyListOutput

func (GetListEntitiesForPolicyListOutput) Uin added in v0.1.8

Entity UinNote: This field may return null, indicating that a valid value cannot be obtained.

type GetListEntitiesForPolicyOutputArgs added in v0.1.8

type GetListEntitiesForPolicyOutputArgs struct {
	// Can take values of 'All', 'User', 'Group', and 'Role'. 'All' represents obtaining all entity types, 'User' represents only obtaining sub accounts, 'Group' represents only obtaining user groups, and 'Role' represents only obtaining roles. The default value is' All '.
	EntityFilter pulumi.StringPtrInput `pulumi:"entityFilter"`
	// Policy Id.
	PolicyId pulumi.IntInput `pulumi:"policyId"`
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
	// Per page size, default value is 20.
	Rp pulumi.IntPtrInput `pulumi:"rp"`
}

A collection of arguments for invoking getListEntitiesForPolicy.

func (GetListEntitiesForPolicyOutputArgs) ElementType added in v0.1.8

type GetListEntitiesForPolicyResult added in v0.1.8

type GetListEntitiesForPolicyResult struct {
	EntityFilter *string `pulumi:"entityFilter"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// Entity ListNote: This field may return null, indicating that a valid value cannot be obtained.
	Lists            []GetListEntitiesForPolicyList `pulumi:"lists"`
	PolicyId         int                            `pulumi:"policyId"`
	ResultOutputFile *string                        `pulumi:"resultOutputFile"`
	Rp               *int                           `pulumi:"rp"`
}

A collection of values returned by getListEntitiesForPolicy.

func GetListEntitiesForPolicy added in v0.1.8

func GetListEntitiesForPolicy(ctx *pulumi.Context, args *GetListEntitiesForPolicyArgs, opts ...pulumi.InvokeOption) (*GetListEntitiesForPolicyResult, error)

Use this data source to query detailed information of cam listEntitiesForPolicy

## 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.GetListEntitiesForPolicy(ctx, &cam.GetListEntitiesForPolicyArgs{
			EntityFilter: pulumi.StringRef("All"),
			PolicyId:     1,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetListEntitiesForPolicyResultOutput added in v0.1.8

type GetListEntitiesForPolicyResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getListEntitiesForPolicy.

func (GetListEntitiesForPolicyResultOutput) ElementType added in v0.1.8

func (GetListEntitiesForPolicyResultOutput) EntityFilter added in v0.1.8

func (GetListEntitiesForPolicyResultOutput) Id added in v0.1.8

The provider-assigned unique ID for this managed resource.

func (GetListEntitiesForPolicyResultOutput) Lists added in v0.1.8

Entity ListNote: This field may return null, indicating that a valid value cannot be obtained.

func (GetListEntitiesForPolicyResultOutput) PolicyId added in v0.1.8

func (GetListEntitiesForPolicyResultOutput) ResultOutputFile added in v0.1.8

func (GetListEntitiesForPolicyResultOutput) Rp added in v0.1.8

func (GetListEntitiesForPolicyResultOutput) ToGetListEntitiesForPolicyResultOutput added in v0.1.8

func (o GetListEntitiesForPolicyResultOutput) ToGetListEntitiesForPolicyResultOutput() GetListEntitiesForPolicyResultOutput

func (GetListEntitiesForPolicyResultOutput) ToGetListEntitiesForPolicyResultOutputWithContext added in v0.1.8

func (o GetListEntitiesForPolicyResultOutput) ToGetListEntitiesForPolicyResultOutputWithContext(ctx context.Context) GetListEntitiesForPolicyResultOutput

type GetOidcConfigArgs added in v0.1.8

type GetOidcConfigArgs struct {
	// Name.
	Name string `pulumi:"name"`
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getOidcConfig.

type GetOidcConfigOutputArgs added in v0.1.8

type GetOidcConfigOutputArgs struct {
	// Name.
	Name pulumi.StringInput `pulumi:"name"`
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getOidcConfig.

func (GetOidcConfigOutputArgs) ElementType added in v0.1.8

func (GetOidcConfigOutputArgs) ElementType() reflect.Type

type GetOidcConfigResult added in v0.1.8

type GetOidcConfigResult struct {
	// Client ID.
	ClientIds []string `pulumi:"clientIds"`
	// Description.
	Description string `pulumi:"description"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// Public key for signature.
	IdentityKey string `pulumi:"identityKey"`
	// IdP URL.
	IdentityUrl string `pulumi:"identityUrl"`
	Name        string `pulumi:"name"`
	// IdP type. 11: Role IdP.
	ProviderType     int     `pulumi:"providerType"`
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// Status. 0: Not set; 2: Disabled; 11: Enabled.
	Status int `pulumi:"status"`
}

A collection of values returned by getOidcConfig.

func GetOidcConfig added in v0.1.8

func GetOidcConfig(ctx *pulumi.Context, args *GetOidcConfigArgs, opts ...pulumi.InvokeOption) (*GetOidcConfigResult, error)

Use this data source to query detailed information of cam oidcConfig

## 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 {
		oidcConfig, err := Cam.GetOidcConfig(ctx, &cam.GetOidcConfigArgs{
			Name: "cls-kzilgv5m",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("identityKey", oidcConfig.IdentityKey)
		ctx.Export("identityUrl", oidcConfig.IdentityUrl)
		return nil
	})
}

```

type GetOidcConfigResultOutput added in v0.1.8

type GetOidcConfigResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getOidcConfig.

func GetOidcConfigOutput added in v0.1.8

func GetOidcConfigOutput(ctx *pulumi.Context, args GetOidcConfigOutputArgs, opts ...pulumi.InvokeOption) GetOidcConfigResultOutput

func (GetOidcConfigResultOutput) ClientIds added in v0.1.8

Client ID.

func (GetOidcConfigResultOutput) Description added in v0.1.8

Description.

func (GetOidcConfigResultOutput) ElementType added in v0.1.8

func (GetOidcConfigResultOutput) ElementType() reflect.Type

func (GetOidcConfigResultOutput) Id added in v0.1.8

The provider-assigned unique ID for this managed resource.

func (GetOidcConfigResultOutput) IdentityKey added in v0.1.8

Public key for signature.

func (GetOidcConfigResultOutput) IdentityUrl added in v0.1.8

IdP URL.

func (GetOidcConfigResultOutput) Name added in v0.1.8

func (GetOidcConfigResultOutput) ProviderType added in v0.1.8

func (o GetOidcConfigResultOutput) ProviderType() pulumi.IntOutput

IdP type. 11: Role IdP.

func (GetOidcConfigResultOutput) ResultOutputFile added in v0.1.8

func (o GetOidcConfigResultOutput) ResultOutputFile() pulumi.StringPtrOutput

func (GetOidcConfigResultOutput) Status added in v0.1.8

Status. 0: Not set; 2: Disabled; 11: Enabled.

func (GetOidcConfigResultOutput) ToGetOidcConfigResultOutput added in v0.1.8

func (o GetOidcConfigResultOutput) ToGetOidcConfigResultOutput() GetOidcConfigResultOutput

func (GetOidcConfigResultOutput) ToGetOidcConfigResultOutputWithContext added in v0.1.8

func (o GetOidcConfigResultOutput) ToGetOidcConfigResultOutputWithContext(ctx context.Context) GetOidcConfigResultOutput

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 GetPolicyGrantingServiceAccessArgs added in v0.1.8

type GetPolicyGrantingServiceAccessArgs struct {
	// Group Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
	GroupId *int `pulumi:"groupId"`
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// Role Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
	RoleId *int `pulumi:"roleId"`
	// Service type, this field needs to be passed when viewing the details of the service authorization interface.
	ServiceType *string `pulumi:"serviceType"`
	// Sub-account uin, one of the three (TargetUin, RoleId, GroupId) must be passed.
	TargetUin *int `pulumi:"targetUin"`
}

A collection of arguments for invoking getPolicyGrantingServiceAccess.

type GetPolicyGrantingServiceAccessList added in v0.1.8

type GetPolicyGrantingServiceAccessList struct {
	// Action list.
	Actions []GetPolicyGrantingServiceAccessListAction `pulumi:"actions"`
	// Policy list.
	Policies []GetPolicyGrantingServiceAccessListPolicy `pulumi:"policies"`
	// Service info.
	Services []GetPolicyGrantingServiceAccessListService `pulumi:"services"`
}

type GetPolicyGrantingServiceAccessListAction added in v0.1.8

type GetPolicyGrantingServiceAccessListAction struct {
	// Action description.
	Description string `pulumi:"description"`
	// Action name.
	Name string `pulumi:"name"`
}

type GetPolicyGrantingServiceAccessListActionArgs added in v0.1.8

type GetPolicyGrantingServiceAccessListActionArgs struct {
	// Action description.
	Description pulumi.StringInput `pulumi:"description"`
	// Action name.
	Name pulumi.StringInput `pulumi:"name"`
}

func (GetPolicyGrantingServiceAccessListActionArgs) ElementType added in v0.1.8

func (GetPolicyGrantingServiceAccessListActionArgs) ToGetPolicyGrantingServiceAccessListActionOutput added in v0.1.8

func (i GetPolicyGrantingServiceAccessListActionArgs) ToGetPolicyGrantingServiceAccessListActionOutput() GetPolicyGrantingServiceAccessListActionOutput

func (GetPolicyGrantingServiceAccessListActionArgs) ToGetPolicyGrantingServiceAccessListActionOutputWithContext added in v0.1.8

func (i GetPolicyGrantingServiceAccessListActionArgs) ToGetPolicyGrantingServiceAccessListActionOutputWithContext(ctx context.Context) GetPolicyGrantingServiceAccessListActionOutput

type GetPolicyGrantingServiceAccessListActionArray added in v0.1.8

type GetPolicyGrantingServiceAccessListActionArray []GetPolicyGrantingServiceAccessListActionInput

func (GetPolicyGrantingServiceAccessListActionArray) ElementType added in v0.1.8

func (GetPolicyGrantingServiceAccessListActionArray) ToGetPolicyGrantingServiceAccessListActionArrayOutput added in v0.1.8

func (i GetPolicyGrantingServiceAccessListActionArray) ToGetPolicyGrantingServiceAccessListActionArrayOutput() GetPolicyGrantingServiceAccessListActionArrayOutput

func (GetPolicyGrantingServiceAccessListActionArray) ToGetPolicyGrantingServiceAccessListActionArrayOutputWithContext added in v0.1.8

func (i GetPolicyGrantingServiceAccessListActionArray) ToGetPolicyGrantingServiceAccessListActionArrayOutputWithContext(ctx context.Context) GetPolicyGrantingServiceAccessListActionArrayOutput

type GetPolicyGrantingServiceAccessListActionArrayInput added in v0.1.8

type GetPolicyGrantingServiceAccessListActionArrayInput interface {
	pulumi.Input

	ToGetPolicyGrantingServiceAccessListActionArrayOutput() GetPolicyGrantingServiceAccessListActionArrayOutput
	ToGetPolicyGrantingServiceAccessListActionArrayOutputWithContext(context.Context) GetPolicyGrantingServiceAccessListActionArrayOutput
}

GetPolicyGrantingServiceAccessListActionArrayInput is an input type that accepts GetPolicyGrantingServiceAccessListActionArray and GetPolicyGrantingServiceAccessListActionArrayOutput values. You can construct a concrete instance of `GetPolicyGrantingServiceAccessListActionArrayInput` via:

GetPolicyGrantingServiceAccessListActionArray{ GetPolicyGrantingServiceAccessListActionArgs{...} }

type GetPolicyGrantingServiceAccessListActionArrayOutput added in v0.1.8

type GetPolicyGrantingServiceAccessListActionArrayOutput struct{ *pulumi.OutputState }

func (GetPolicyGrantingServiceAccessListActionArrayOutput) ElementType added in v0.1.8

func (GetPolicyGrantingServiceAccessListActionArrayOutput) Index added in v0.1.8

func (GetPolicyGrantingServiceAccessListActionArrayOutput) ToGetPolicyGrantingServiceAccessListActionArrayOutput added in v0.1.8

func (o GetPolicyGrantingServiceAccessListActionArrayOutput) ToGetPolicyGrantingServiceAccessListActionArrayOutput() GetPolicyGrantingServiceAccessListActionArrayOutput

func (GetPolicyGrantingServiceAccessListActionArrayOutput) ToGetPolicyGrantingServiceAccessListActionArrayOutputWithContext added in v0.1.8

func (o GetPolicyGrantingServiceAccessListActionArrayOutput) ToGetPolicyGrantingServiceAccessListActionArrayOutputWithContext(ctx context.Context) GetPolicyGrantingServiceAccessListActionArrayOutput

type GetPolicyGrantingServiceAccessListActionInput added in v0.1.8

type GetPolicyGrantingServiceAccessListActionInput interface {
	pulumi.Input

	ToGetPolicyGrantingServiceAccessListActionOutput() GetPolicyGrantingServiceAccessListActionOutput
	ToGetPolicyGrantingServiceAccessListActionOutputWithContext(context.Context) GetPolicyGrantingServiceAccessListActionOutput
}

GetPolicyGrantingServiceAccessListActionInput is an input type that accepts GetPolicyGrantingServiceAccessListActionArgs and GetPolicyGrantingServiceAccessListActionOutput values. You can construct a concrete instance of `GetPolicyGrantingServiceAccessListActionInput` via:

GetPolicyGrantingServiceAccessListActionArgs{...}

type GetPolicyGrantingServiceAccessListActionOutput added in v0.1.8

type GetPolicyGrantingServiceAccessListActionOutput struct{ *pulumi.OutputState }

func (GetPolicyGrantingServiceAccessListActionOutput) Description added in v0.1.8

Action description.

func (GetPolicyGrantingServiceAccessListActionOutput) ElementType added in v0.1.8

func (GetPolicyGrantingServiceAccessListActionOutput) Name added in v0.1.8

Action name.

func (GetPolicyGrantingServiceAccessListActionOutput) ToGetPolicyGrantingServiceAccessListActionOutput added in v0.1.8

func (o GetPolicyGrantingServiceAccessListActionOutput) ToGetPolicyGrantingServiceAccessListActionOutput() GetPolicyGrantingServiceAccessListActionOutput

func (GetPolicyGrantingServiceAccessListActionOutput) ToGetPolicyGrantingServiceAccessListActionOutputWithContext added in v0.1.8

func (o GetPolicyGrantingServiceAccessListActionOutput) ToGetPolicyGrantingServiceAccessListActionOutputWithContext(ctx context.Context) GetPolicyGrantingServiceAccessListActionOutput

type GetPolicyGrantingServiceAccessListArgs added in v0.1.8

type GetPolicyGrantingServiceAccessListArgs struct {
	// Action list.
	Actions GetPolicyGrantingServiceAccessListActionArrayInput `pulumi:"actions"`
	// Policy list.
	Policies GetPolicyGrantingServiceAccessListPolicyArrayInput `pulumi:"policies"`
	// Service info.
	Services GetPolicyGrantingServiceAccessListServiceArrayInput `pulumi:"services"`
}

func (GetPolicyGrantingServiceAccessListArgs) ElementType added in v0.1.8

func (GetPolicyGrantingServiceAccessListArgs) ToGetPolicyGrantingServiceAccessListOutput added in v0.1.8

func (i GetPolicyGrantingServiceAccessListArgs) ToGetPolicyGrantingServiceAccessListOutput() GetPolicyGrantingServiceAccessListOutput

func (GetPolicyGrantingServiceAccessListArgs) ToGetPolicyGrantingServiceAccessListOutputWithContext added in v0.1.8

func (i GetPolicyGrantingServiceAccessListArgs) ToGetPolicyGrantingServiceAccessListOutputWithContext(ctx context.Context) GetPolicyGrantingServiceAccessListOutput

type GetPolicyGrantingServiceAccessListArray added in v0.1.8

type GetPolicyGrantingServiceAccessListArray []GetPolicyGrantingServiceAccessListInput

func (GetPolicyGrantingServiceAccessListArray) ElementType added in v0.1.8

func (GetPolicyGrantingServiceAccessListArray) ToGetPolicyGrantingServiceAccessListArrayOutput added in v0.1.8

func (i GetPolicyGrantingServiceAccessListArray) ToGetPolicyGrantingServiceAccessListArrayOutput() GetPolicyGrantingServiceAccessListArrayOutput

func (GetPolicyGrantingServiceAccessListArray) ToGetPolicyGrantingServiceAccessListArrayOutputWithContext added in v0.1.8

func (i GetPolicyGrantingServiceAccessListArray) ToGetPolicyGrantingServiceAccessListArrayOutputWithContext(ctx context.Context) GetPolicyGrantingServiceAccessListArrayOutput

type GetPolicyGrantingServiceAccessListArrayInput added in v0.1.8

type GetPolicyGrantingServiceAccessListArrayInput interface {
	pulumi.Input

	ToGetPolicyGrantingServiceAccessListArrayOutput() GetPolicyGrantingServiceAccessListArrayOutput
	ToGetPolicyGrantingServiceAccessListArrayOutputWithContext(context.Context) GetPolicyGrantingServiceAccessListArrayOutput
}

GetPolicyGrantingServiceAccessListArrayInput is an input type that accepts GetPolicyGrantingServiceAccessListArray and GetPolicyGrantingServiceAccessListArrayOutput values. You can construct a concrete instance of `GetPolicyGrantingServiceAccessListArrayInput` via:

GetPolicyGrantingServiceAccessListArray{ GetPolicyGrantingServiceAccessListArgs{...} }

type GetPolicyGrantingServiceAccessListArrayOutput added in v0.1.8

type GetPolicyGrantingServiceAccessListArrayOutput struct{ *pulumi.OutputState }

func (GetPolicyGrantingServiceAccessListArrayOutput) ElementType added in v0.1.8

func (GetPolicyGrantingServiceAccessListArrayOutput) Index added in v0.1.8

func (GetPolicyGrantingServiceAccessListArrayOutput) ToGetPolicyGrantingServiceAccessListArrayOutput added in v0.1.8

func (o GetPolicyGrantingServiceAccessListArrayOutput) ToGetPolicyGrantingServiceAccessListArrayOutput() GetPolicyGrantingServiceAccessListArrayOutput

func (GetPolicyGrantingServiceAccessListArrayOutput) ToGetPolicyGrantingServiceAccessListArrayOutputWithContext added in v0.1.8

func (o GetPolicyGrantingServiceAccessListArrayOutput) ToGetPolicyGrantingServiceAccessListArrayOutputWithContext(ctx context.Context) GetPolicyGrantingServiceAccessListArrayOutput

type GetPolicyGrantingServiceAccessListInput added in v0.1.8

type GetPolicyGrantingServiceAccessListInput interface {
	pulumi.Input

	ToGetPolicyGrantingServiceAccessListOutput() GetPolicyGrantingServiceAccessListOutput
	ToGetPolicyGrantingServiceAccessListOutputWithContext(context.Context) GetPolicyGrantingServiceAccessListOutput
}

GetPolicyGrantingServiceAccessListInput is an input type that accepts GetPolicyGrantingServiceAccessListArgs and GetPolicyGrantingServiceAccessListOutput values. You can construct a concrete instance of `GetPolicyGrantingServiceAccessListInput` via:

GetPolicyGrantingServiceAccessListArgs{...}

type GetPolicyGrantingServiceAccessListOutput added in v0.1.8

type GetPolicyGrantingServiceAccessListOutput struct{ *pulumi.OutputState }

func (GetPolicyGrantingServiceAccessListOutput) Actions added in v0.1.8

Action list.

func (GetPolicyGrantingServiceAccessListOutput) ElementType added in v0.1.8

func (GetPolicyGrantingServiceAccessListOutput) Policies added in v0.1.8

Policy list.

func (GetPolicyGrantingServiceAccessListOutput) Services added in v0.1.8

Service info.

func (GetPolicyGrantingServiceAccessListOutput) ToGetPolicyGrantingServiceAccessListOutput added in v0.1.8

func (o GetPolicyGrantingServiceAccessListOutput) ToGetPolicyGrantingServiceAccessListOutput() GetPolicyGrantingServiceAccessListOutput

func (GetPolicyGrantingServiceAccessListOutput) ToGetPolicyGrantingServiceAccessListOutputWithContext added in v0.1.8

func (o GetPolicyGrantingServiceAccessListOutput) ToGetPolicyGrantingServiceAccessListOutputWithContext(ctx context.Context) GetPolicyGrantingServiceAccessListOutput

type GetPolicyGrantingServiceAccessListPolicy added in v0.1.8

type GetPolicyGrantingServiceAccessListPolicy struct {
	// Policy description.
	PolicyDescription string `pulumi:"policyDescription"`
	// Policy Id.
	PolicyId string `pulumi:"policyId"`
	// Policy name.
	PolicyName string `pulumi:"policyName"`
	// Polic type.
	PolicyType string `pulumi:"policyType"`
}

type GetPolicyGrantingServiceAccessListPolicyArgs added in v0.1.8

type GetPolicyGrantingServiceAccessListPolicyArgs struct {
	// Policy description.
	PolicyDescription pulumi.StringInput `pulumi:"policyDescription"`
	// Policy Id.
	PolicyId pulumi.StringInput `pulumi:"policyId"`
	// Policy name.
	PolicyName pulumi.StringInput `pulumi:"policyName"`
	// Polic type.
	PolicyType pulumi.StringInput `pulumi:"policyType"`
}

func (GetPolicyGrantingServiceAccessListPolicyArgs) ElementType added in v0.1.8

func (GetPolicyGrantingServiceAccessListPolicyArgs) ToGetPolicyGrantingServiceAccessListPolicyOutput added in v0.1.8

func (i GetPolicyGrantingServiceAccessListPolicyArgs) ToGetPolicyGrantingServiceAccessListPolicyOutput() GetPolicyGrantingServiceAccessListPolicyOutput

func (GetPolicyGrantingServiceAccessListPolicyArgs) ToGetPolicyGrantingServiceAccessListPolicyOutputWithContext added in v0.1.8

func (i GetPolicyGrantingServiceAccessListPolicyArgs) ToGetPolicyGrantingServiceAccessListPolicyOutputWithContext(ctx context.Context) GetPolicyGrantingServiceAccessListPolicyOutput

type GetPolicyGrantingServiceAccessListPolicyArray added in v0.1.8

type GetPolicyGrantingServiceAccessListPolicyArray []GetPolicyGrantingServiceAccessListPolicyInput

func (GetPolicyGrantingServiceAccessListPolicyArray) ElementType added in v0.1.8

func (GetPolicyGrantingServiceAccessListPolicyArray) ToGetPolicyGrantingServiceAccessListPolicyArrayOutput added in v0.1.8

func (i GetPolicyGrantingServiceAccessListPolicyArray) ToGetPolicyGrantingServiceAccessListPolicyArrayOutput() GetPolicyGrantingServiceAccessListPolicyArrayOutput

func (GetPolicyGrantingServiceAccessListPolicyArray) ToGetPolicyGrantingServiceAccessListPolicyArrayOutputWithContext added in v0.1.8

func (i GetPolicyGrantingServiceAccessListPolicyArray) ToGetPolicyGrantingServiceAccessListPolicyArrayOutputWithContext(ctx context.Context) GetPolicyGrantingServiceAccessListPolicyArrayOutput

type GetPolicyGrantingServiceAccessListPolicyArrayInput added in v0.1.8

type GetPolicyGrantingServiceAccessListPolicyArrayInput interface {
	pulumi.Input

	ToGetPolicyGrantingServiceAccessListPolicyArrayOutput() GetPolicyGrantingServiceAccessListPolicyArrayOutput
	ToGetPolicyGrantingServiceAccessListPolicyArrayOutputWithContext(context.Context) GetPolicyGrantingServiceAccessListPolicyArrayOutput
}

GetPolicyGrantingServiceAccessListPolicyArrayInput is an input type that accepts GetPolicyGrantingServiceAccessListPolicyArray and GetPolicyGrantingServiceAccessListPolicyArrayOutput values. You can construct a concrete instance of `GetPolicyGrantingServiceAccessListPolicyArrayInput` via:

GetPolicyGrantingServiceAccessListPolicyArray{ GetPolicyGrantingServiceAccessListPolicyArgs{...} }

type GetPolicyGrantingServiceAccessListPolicyArrayOutput added in v0.1.8

type GetPolicyGrantingServiceAccessListPolicyArrayOutput struct{ *pulumi.OutputState }

func (GetPolicyGrantingServiceAccessListPolicyArrayOutput) ElementType added in v0.1.8

func (GetPolicyGrantingServiceAccessListPolicyArrayOutput) Index added in v0.1.8

func (GetPolicyGrantingServiceAccessListPolicyArrayOutput) ToGetPolicyGrantingServiceAccessListPolicyArrayOutput added in v0.1.8

func (o GetPolicyGrantingServiceAccessListPolicyArrayOutput) ToGetPolicyGrantingServiceAccessListPolicyArrayOutput() GetPolicyGrantingServiceAccessListPolicyArrayOutput

func (GetPolicyGrantingServiceAccessListPolicyArrayOutput) ToGetPolicyGrantingServiceAccessListPolicyArrayOutputWithContext added in v0.1.8

func (o GetPolicyGrantingServiceAccessListPolicyArrayOutput) ToGetPolicyGrantingServiceAccessListPolicyArrayOutputWithContext(ctx context.Context) GetPolicyGrantingServiceAccessListPolicyArrayOutput

type GetPolicyGrantingServiceAccessListPolicyInput added in v0.1.8

type GetPolicyGrantingServiceAccessListPolicyInput interface {
	pulumi.Input

	ToGetPolicyGrantingServiceAccessListPolicyOutput() GetPolicyGrantingServiceAccessListPolicyOutput
	ToGetPolicyGrantingServiceAccessListPolicyOutputWithContext(context.Context) GetPolicyGrantingServiceAccessListPolicyOutput
}

GetPolicyGrantingServiceAccessListPolicyInput is an input type that accepts GetPolicyGrantingServiceAccessListPolicyArgs and GetPolicyGrantingServiceAccessListPolicyOutput values. You can construct a concrete instance of `GetPolicyGrantingServiceAccessListPolicyInput` via:

GetPolicyGrantingServiceAccessListPolicyArgs{...}

type GetPolicyGrantingServiceAccessListPolicyOutput added in v0.1.8

type GetPolicyGrantingServiceAccessListPolicyOutput struct{ *pulumi.OutputState }

func (GetPolicyGrantingServiceAccessListPolicyOutput) ElementType added in v0.1.8

func (GetPolicyGrantingServiceAccessListPolicyOutput) PolicyDescription added in v0.1.8

Policy description.

func (GetPolicyGrantingServiceAccessListPolicyOutput) PolicyId added in v0.1.8

Policy Id.

func (GetPolicyGrantingServiceAccessListPolicyOutput) PolicyName added in v0.1.8

Policy name.

func (GetPolicyGrantingServiceAccessListPolicyOutput) PolicyType added in v0.1.8

Polic type.

func (GetPolicyGrantingServiceAccessListPolicyOutput) ToGetPolicyGrantingServiceAccessListPolicyOutput added in v0.1.8

func (o GetPolicyGrantingServiceAccessListPolicyOutput) ToGetPolicyGrantingServiceAccessListPolicyOutput() GetPolicyGrantingServiceAccessListPolicyOutput

func (GetPolicyGrantingServiceAccessListPolicyOutput) ToGetPolicyGrantingServiceAccessListPolicyOutputWithContext added in v0.1.8

func (o GetPolicyGrantingServiceAccessListPolicyOutput) ToGetPolicyGrantingServiceAccessListPolicyOutputWithContext(ctx context.Context) GetPolicyGrantingServiceAccessListPolicyOutput

type GetPolicyGrantingServiceAccessListService added in v0.1.8

type GetPolicyGrantingServiceAccessListService struct {
	// Service name.
	ServiceName string `pulumi:"serviceName"`
	// Service type, this field needs to be passed when viewing the details of the service authorization interface.
	ServiceType string `pulumi:"serviceType"`
}

type GetPolicyGrantingServiceAccessListServiceArgs added in v0.1.8

type GetPolicyGrantingServiceAccessListServiceArgs struct {
	// Service name.
	ServiceName pulumi.StringInput `pulumi:"serviceName"`
	// Service type, this field needs to be passed when viewing the details of the service authorization interface.
	ServiceType pulumi.StringInput `pulumi:"serviceType"`
}

func (GetPolicyGrantingServiceAccessListServiceArgs) ElementType added in v0.1.8

func (GetPolicyGrantingServiceAccessListServiceArgs) ToGetPolicyGrantingServiceAccessListServiceOutput added in v0.1.8

func (i GetPolicyGrantingServiceAccessListServiceArgs) ToGetPolicyGrantingServiceAccessListServiceOutput() GetPolicyGrantingServiceAccessListServiceOutput

func (GetPolicyGrantingServiceAccessListServiceArgs) ToGetPolicyGrantingServiceAccessListServiceOutputWithContext added in v0.1.8

func (i GetPolicyGrantingServiceAccessListServiceArgs) ToGetPolicyGrantingServiceAccessListServiceOutputWithContext(ctx context.Context) GetPolicyGrantingServiceAccessListServiceOutput

type GetPolicyGrantingServiceAccessListServiceArray added in v0.1.8

type GetPolicyGrantingServiceAccessListServiceArray []GetPolicyGrantingServiceAccessListServiceInput

func (GetPolicyGrantingServiceAccessListServiceArray) ElementType added in v0.1.8

func (GetPolicyGrantingServiceAccessListServiceArray) ToGetPolicyGrantingServiceAccessListServiceArrayOutput added in v0.1.8

func (i GetPolicyGrantingServiceAccessListServiceArray) ToGetPolicyGrantingServiceAccessListServiceArrayOutput() GetPolicyGrantingServiceAccessListServiceArrayOutput

func (GetPolicyGrantingServiceAccessListServiceArray) ToGetPolicyGrantingServiceAccessListServiceArrayOutputWithContext added in v0.1.8

func (i GetPolicyGrantingServiceAccessListServiceArray) ToGetPolicyGrantingServiceAccessListServiceArrayOutputWithContext(ctx context.Context) GetPolicyGrantingServiceAccessListServiceArrayOutput

type GetPolicyGrantingServiceAccessListServiceArrayInput added in v0.1.8

type GetPolicyGrantingServiceAccessListServiceArrayInput interface {
	pulumi.Input

	ToGetPolicyGrantingServiceAccessListServiceArrayOutput() GetPolicyGrantingServiceAccessListServiceArrayOutput
	ToGetPolicyGrantingServiceAccessListServiceArrayOutputWithContext(context.Context) GetPolicyGrantingServiceAccessListServiceArrayOutput
}

GetPolicyGrantingServiceAccessListServiceArrayInput is an input type that accepts GetPolicyGrantingServiceAccessListServiceArray and GetPolicyGrantingServiceAccessListServiceArrayOutput values. You can construct a concrete instance of `GetPolicyGrantingServiceAccessListServiceArrayInput` via:

GetPolicyGrantingServiceAccessListServiceArray{ GetPolicyGrantingServiceAccessListServiceArgs{...} }

type GetPolicyGrantingServiceAccessListServiceArrayOutput added in v0.1.8

type GetPolicyGrantingServiceAccessListServiceArrayOutput struct{ *pulumi.OutputState }

func (GetPolicyGrantingServiceAccessListServiceArrayOutput) ElementType added in v0.1.8

func (GetPolicyGrantingServiceAccessListServiceArrayOutput) Index added in v0.1.8

func (GetPolicyGrantingServiceAccessListServiceArrayOutput) ToGetPolicyGrantingServiceAccessListServiceArrayOutput added in v0.1.8

func (GetPolicyGrantingServiceAccessListServiceArrayOutput) ToGetPolicyGrantingServiceAccessListServiceArrayOutputWithContext added in v0.1.8

func (o GetPolicyGrantingServiceAccessListServiceArrayOutput) ToGetPolicyGrantingServiceAccessListServiceArrayOutputWithContext(ctx context.Context) GetPolicyGrantingServiceAccessListServiceArrayOutput

type GetPolicyGrantingServiceAccessListServiceInput added in v0.1.8

type GetPolicyGrantingServiceAccessListServiceInput interface {
	pulumi.Input

	ToGetPolicyGrantingServiceAccessListServiceOutput() GetPolicyGrantingServiceAccessListServiceOutput
	ToGetPolicyGrantingServiceAccessListServiceOutputWithContext(context.Context) GetPolicyGrantingServiceAccessListServiceOutput
}

GetPolicyGrantingServiceAccessListServiceInput is an input type that accepts GetPolicyGrantingServiceAccessListServiceArgs and GetPolicyGrantingServiceAccessListServiceOutput values. You can construct a concrete instance of `GetPolicyGrantingServiceAccessListServiceInput` via:

GetPolicyGrantingServiceAccessListServiceArgs{...}

type GetPolicyGrantingServiceAccessListServiceOutput added in v0.1.8

type GetPolicyGrantingServiceAccessListServiceOutput struct{ *pulumi.OutputState }

func (GetPolicyGrantingServiceAccessListServiceOutput) ElementType added in v0.1.8

func (GetPolicyGrantingServiceAccessListServiceOutput) ServiceName added in v0.1.8

Service name.

func (GetPolicyGrantingServiceAccessListServiceOutput) ServiceType added in v0.1.8

Service type, this field needs to be passed when viewing the details of the service authorization interface.

func (GetPolicyGrantingServiceAccessListServiceOutput) ToGetPolicyGrantingServiceAccessListServiceOutput added in v0.1.8

func (o GetPolicyGrantingServiceAccessListServiceOutput) ToGetPolicyGrantingServiceAccessListServiceOutput() GetPolicyGrantingServiceAccessListServiceOutput

func (GetPolicyGrantingServiceAccessListServiceOutput) ToGetPolicyGrantingServiceAccessListServiceOutputWithContext added in v0.1.8

func (o GetPolicyGrantingServiceAccessListServiceOutput) ToGetPolicyGrantingServiceAccessListServiceOutputWithContext(ctx context.Context) GetPolicyGrantingServiceAccessListServiceOutput

type GetPolicyGrantingServiceAccessOutputArgs added in v0.1.8

type GetPolicyGrantingServiceAccessOutputArgs struct {
	// Group Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
	GroupId pulumi.IntPtrInput `pulumi:"groupId"`
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
	// Role Id, one of the three (TargetUin, RoleId, GroupId) must be passed.
	RoleId pulumi.IntPtrInput `pulumi:"roleId"`
	// Service type, this field needs to be passed when viewing the details of the service authorization interface.
	ServiceType pulumi.StringPtrInput `pulumi:"serviceType"`
	// Sub-account uin, one of the three (TargetUin, RoleId, GroupId) must be passed.
	TargetUin pulumi.IntPtrInput `pulumi:"targetUin"`
}

A collection of arguments for invoking getPolicyGrantingServiceAccess.

func (GetPolicyGrantingServiceAccessOutputArgs) ElementType added in v0.1.8

type GetPolicyGrantingServiceAccessResult added in v0.1.8

type GetPolicyGrantingServiceAccessResult struct {
	GroupId *int `pulumi:"groupId"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// List.
	Lists            []GetPolicyGrantingServiceAccessList `pulumi:"lists"`
	ResultOutputFile *string                              `pulumi:"resultOutputFile"`
	RoleId           *int                                 `pulumi:"roleId"`
	// Service type.
	ServiceType *string `pulumi:"serviceType"`
	TargetUin   *int    `pulumi:"targetUin"`
}

A collection of values returned by getPolicyGrantingServiceAccess.

func GetPolicyGrantingServiceAccess added in v0.1.8

Use this data source to query detailed information of cam policyGrantingServiceAccess

## 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.GetPolicyGrantingServiceAccess(ctx, &cam.GetPolicyGrantingServiceAccessArgs{
			RoleId:      pulumi.IntRef(4611686018436804608),
			ServiceType: pulumi.StringRef("cam"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetPolicyGrantingServiceAccessResultOutput added in v0.1.8

type GetPolicyGrantingServiceAccessResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getPolicyGrantingServiceAccess.

func (GetPolicyGrantingServiceAccessResultOutput) ElementType added in v0.1.8

func (GetPolicyGrantingServiceAccessResultOutput) GroupId added in v0.1.8

func (GetPolicyGrantingServiceAccessResultOutput) Id added in v0.1.8

The provider-assigned unique ID for this managed resource.

func (GetPolicyGrantingServiceAccessResultOutput) Lists added in v0.1.8

List.

func (GetPolicyGrantingServiceAccessResultOutput) ResultOutputFile added in v0.1.8

func (GetPolicyGrantingServiceAccessResultOutput) RoleId added in v0.1.8

func (GetPolicyGrantingServiceAccessResultOutput) ServiceType added in v0.1.8

Service type.

func (GetPolicyGrantingServiceAccessResultOutput) TargetUin added in v0.1.8

func (GetPolicyGrantingServiceAccessResultOutput) ToGetPolicyGrantingServiceAccessResultOutput added in v0.1.8

func (o GetPolicyGrantingServiceAccessResultOutput) ToGetPolicyGrantingServiceAccessResultOutput() GetPolicyGrantingServiceAccessResultOutput

func (GetPolicyGrantingServiceAccessResultOutput) ToGetPolicyGrantingServiceAccessResultOutputWithContext added in v0.1.8

func (o GetPolicyGrantingServiceAccessResultOutput) ToGetPolicyGrantingServiceAccessResultOutputWithContext(ctx context.Context) GetPolicyGrantingServiceAccessResultOutput

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 GetSecretLastUsedTimeArgs added in v0.1.8

type GetSecretLastUsedTimeArgs struct {
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// Query the key ID list. Supports up to 10.
	SecretIdLists []string `pulumi:"secretIdLists"`
}

A collection of arguments for invoking getSecretLastUsedTime.

type GetSecretLastUsedTimeOutputArgs added in v0.1.8

type GetSecretLastUsedTimeOutputArgs struct {
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
	// Query the key ID list. Supports up to 10.
	SecretIdLists pulumi.StringArrayInput `pulumi:"secretIdLists"`
}

A collection of arguments for invoking getSecretLastUsedTime.

func (GetSecretLastUsedTimeOutputArgs) ElementType added in v0.1.8

type GetSecretLastUsedTimeResult added in v0.1.8

type GetSecretLastUsedTimeResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id               string  `pulumi:"id"`
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// Last used time list.
	SecretIdLastUsedRows []GetSecretLastUsedTimeSecretIdLastUsedRow `pulumi:"secretIdLastUsedRows"`
	SecretIdLists        []string                                   `pulumi:"secretIdLists"`
}

A collection of values returned by getSecretLastUsedTime.

func GetSecretLastUsedTime added in v0.1.8

func GetSecretLastUsedTime(ctx *pulumi.Context, args *GetSecretLastUsedTimeArgs, opts ...pulumi.InvokeOption) (*GetSecretLastUsedTimeResult, error)

Use this data source to query detailed information of cam secretLastUsedTime

## 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.GetSecretLastUsedTime(ctx, &cam.GetSecretLastUsedTimeArgs{
			SecretIdLists: []string{
				"xxxx",
			},
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetSecretLastUsedTimeResultOutput added in v0.1.8

type GetSecretLastUsedTimeResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getSecretLastUsedTime.

func GetSecretLastUsedTimeOutput added in v0.1.8

func (GetSecretLastUsedTimeResultOutput) ElementType added in v0.1.8

func (GetSecretLastUsedTimeResultOutput) Id added in v0.1.8

The provider-assigned unique ID for this managed resource.

func (GetSecretLastUsedTimeResultOutput) ResultOutputFile added in v0.1.8

func (GetSecretLastUsedTimeResultOutput) SecretIdLastUsedRows added in v0.1.8

Last used time list.

func (GetSecretLastUsedTimeResultOutput) SecretIdLists added in v0.1.8

func (GetSecretLastUsedTimeResultOutput) ToGetSecretLastUsedTimeResultOutput added in v0.1.8

func (o GetSecretLastUsedTimeResultOutput) ToGetSecretLastUsedTimeResultOutput() GetSecretLastUsedTimeResultOutput

func (GetSecretLastUsedTimeResultOutput) ToGetSecretLastUsedTimeResultOutputWithContext added in v0.1.8

func (o GetSecretLastUsedTimeResultOutput) ToGetSecretLastUsedTimeResultOutputWithContext(ctx context.Context) GetSecretLastUsedTimeResultOutput

type GetSecretLastUsedTimeSecretIdLastUsedRow added in v0.1.8

type GetSecretLastUsedTimeSecretIdLastUsedRow struct {
	// Last used timestamp.
	LastSecretUsedDate int `pulumi:"lastSecretUsedDate"`
	// Last used date (with 1 day delay).
	LastUsedDate string `pulumi:"lastUsedDate"`
	// Secret Id.
	SecretId string `pulumi:"secretId"`
}

type GetSecretLastUsedTimeSecretIdLastUsedRowArgs added in v0.1.8

type GetSecretLastUsedTimeSecretIdLastUsedRowArgs struct {
	// Last used timestamp.
	LastSecretUsedDate pulumi.IntInput `pulumi:"lastSecretUsedDate"`
	// Last used date (with 1 day delay).
	LastUsedDate pulumi.StringInput `pulumi:"lastUsedDate"`
	// Secret Id.
	SecretId pulumi.StringInput `pulumi:"secretId"`
}

func (GetSecretLastUsedTimeSecretIdLastUsedRowArgs) ElementType added in v0.1.8

func (GetSecretLastUsedTimeSecretIdLastUsedRowArgs) ToGetSecretLastUsedTimeSecretIdLastUsedRowOutput added in v0.1.8

func (i GetSecretLastUsedTimeSecretIdLastUsedRowArgs) ToGetSecretLastUsedTimeSecretIdLastUsedRowOutput() GetSecretLastUsedTimeSecretIdLastUsedRowOutput

func (GetSecretLastUsedTimeSecretIdLastUsedRowArgs) ToGetSecretLastUsedTimeSecretIdLastUsedRowOutputWithContext added in v0.1.8

func (i GetSecretLastUsedTimeSecretIdLastUsedRowArgs) ToGetSecretLastUsedTimeSecretIdLastUsedRowOutputWithContext(ctx context.Context) GetSecretLastUsedTimeSecretIdLastUsedRowOutput

type GetSecretLastUsedTimeSecretIdLastUsedRowArray added in v0.1.8

type GetSecretLastUsedTimeSecretIdLastUsedRowArray []GetSecretLastUsedTimeSecretIdLastUsedRowInput

func (GetSecretLastUsedTimeSecretIdLastUsedRowArray) ElementType added in v0.1.8

func (GetSecretLastUsedTimeSecretIdLastUsedRowArray) ToGetSecretLastUsedTimeSecretIdLastUsedRowArrayOutput added in v0.1.8

func (i GetSecretLastUsedTimeSecretIdLastUsedRowArray) ToGetSecretLastUsedTimeSecretIdLastUsedRowArrayOutput() GetSecretLastUsedTimeSecretIdLastUsedRowArrayOutput

func (GetSecretLastUsedTimeSecretIdLastUsedRowArray) ToGetSecretLastUsedTimeSecretIdLastUsedRowArrayOutputWithContext added in v0.1.8

func (i GetSecretLastUsedTimeSecretIdLastUsedRowArray) ToGetSecretLastUsedTimeSecretIdLastUsedRowArrayOutputWithContext(ctx context.Context) GetSecretLastUsedTimeSecretIdLastUsedRowArrayOutput

type GetSecretLastUsedTimeSecretIdLastUsedRowArrayInput added in v0.1.8

type GetSecretLastUsedTimeSecretIdLastUsedRowArrayInput interface {
	pulumi.Input

	ToGetSecretLastUsedTimeSecretIdLastUsedRowArrayOutput() GetSecretLastUsedTimeSecretIdLastUsedRowArrayOutput
	ToGetSecretLastUsedTimeSecretIdLastUsedRowArrayOutputWithContext(context.Context) GetSecretLastUsedTimeSecretIdLastUsedRowArrayOutput
}

GetSecretLastUsedTimeSecretIdLastUsedRowArrayInput is an input type that accepts GetSecretLastUsedTimeSecretIdLastUsedRowArray and GetSecretLastUsedTimeSecretIdLastUsedRowArrayOutput values. You can construct a concrete instance of `GetSecretLastUsedTimeSecretIdLastUsedRowArrayInput` via:

GetSecretLastUsedTimeSecretIdLastUsedRowArray{ GetSecretLastUsedTimeSecretIdLastUsedRowArgs{...} }

type GetSecretLastUsedTimeSecretIdLastUsedRowArrayOutput added in v0.1.8

type GetSecretLastUsedTimeSecretIdLastUsedRowArrayOutput struct{ *pulumi.OutputState }

func (GetSecretLastUsedTimeSecretIdLastUsedRowArrayOutput) ElementType added in v0.1.8

func (GetSecretLastUsedTimeSecretIdLastUsedRowArrayOutput) Index added in v0.1.8

func (GetSecretLastUsedTimeSecretIdLastUsedRowArrayOutput) ToGetSecretLastUsedTimeSecretIdLastUsedRowArrayOutput added in v0.1.8

func (o GetSecretLastUsedTimeSecretIdLastUsedRowArrayOutput) ToGetSecretLastUsedTimeSecretIdLastUsedRowArrayOutput() GetSecretLastUsedTimeSecretIdLastUsedRowArrayOutput

func (GetSecretLastUsedTimeSecretIdLastUsedRowArrayOutput) ToGetSecretLastUsedTimeSecretIdLastUsedRowArrayOutputWithContext added in v0.1.8

func (o GetSecretLastUsedTimeSecretIdLastUsedRowArrayOutput) ToGetSecretLastUsedTimeSecretIdLastUsedRowArrayOutputWithContext(ctx context.Context) GetSecretLastUsedTimeSecretIdLastUsedRowArrayOutput

type GetSecretLastUsedTimeSecretIdLastUsedRowInput added in v0.1.8

type GetSecretLastUsedTimeSecretIdLastUsedRowInput interface {
	pulumi.Input

	ToGetSecretLastUsedTimeSecretIdLastUsedRowOutput() GetSecretLastUsedTimeSecretIdLastUsedRowOutput
	ToGetSecretLastUsedTimeSecretIdLastUsedRowOutputWithContext(context.Context) GetSecretLastUsedTimeSecretIdLastUsedRowOutput
}

GetSecretLastUsedTimeSecretIdLastUsedRowInput is an input type that accepts GetSecretLastUsedTimeSecretIdLastUsedRowArgs and GetSecretLastUsedTimeSecretIdLastUsedRowOutput values. You can construct a concrete instance of `GetSecretLastUsedTimeSecretIdLastUsedRowInput` via:

GetSecretLastUsedTimeSecretIdLastUsedRowArgs{...}

type GetSecretLastUsedTimeSecretIdLastUsedRowOutput added in v0.1.8

type GetSecretLastUsedTimeSecretIdLastUsedRowOutput struct{ *pulumi.OutputState }

func (GetSecretLastUsedTimeSecretIdLastUsedRowOutput) ElementType added in v0.1.8

func (GetSecretLastUsedTimeSecretIdLastUsedRowOutput) LastSecretUsedDate added in v0.1.8

Last used timestamp.

func (GetSecretLastUsedTimeSecretIdLastUsedRowOutput) LastUsedDate added in v0.1.8

Last used date (with 1 day delay).

func (GetSecretLastUsedTimeSecretIdLastUsedRowOutput) SecretId added in v0.1.8

Secret Id.

func (GetSecretLastUsedTimeSecretIdLastUsedRowOutput) ToGetSecretLastUsedTimeSecretIdLastUsedRowOutput added in v0.1.8

func (o GetSecretLastUsedTimeSecretIdLastUsedRowOutput) ToGetSecretLastUsedTimeSecretIdLastUsedRowOutput() GetSecretLastUsedTimeSecretIdLastUsedRowOutput

func (GetSecretLastUsedTimeSecretIdLastUsedRowOutput) ToGetSecretLastUsedTimeSecretIdLastUsedRowOutputWithContext added in v0.1.8

func (o GetSecretLastUsedTimeSecretIdLastUsedRowOutput) ToGetSecretLastUsedTimeSecretIdLastUsedRowOutputWithContext(ctx context.Context) GetSecretLastUsedTimeSecretIdLastUsedRowOutput

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("tf_group_remark"),
		})
		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-tencentcloud/sdk/go/tencentcloud/Cam"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cam"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		camGroupBasic := "keep-cam-group"
		if param := cfg.Get("camGroupBasic"); param != "" {
			camGroupBasic = param
		}
		groups, err := Cam.GetGroups(ctx, &cam.GetGroupsArgs{
			Name: pulumi.StringRef(camGroupBasic),
		}, nil)
		if err != nil {
			return err
		}
		foo, err := Cam.NewUser(ctx, "foo", &Cam.UserArgs{
			Remark:            pulumi.String("tf_user_remark"),
			ConsoleLogin:      pulumi.Bool(true),
			UseApi:            pulumi.Bool(true),
			NeedResetPassword: pulumi.Bool(true),
			Password:          pulumi.String("Gail@1234"),
			PhoneNum:          pulumi.String("12345678910"),
			CountryCode:       pulumi.String("86"),
			Email:             pulumi.String("1234@qq.com"),
			ForceDelete:       pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = Cam.NewGroupMembership(ctx, "groupMembershipBasic", &Cam.GroupMembershipArgs{
			GroupId: pulumi.String(groups.GroupLists[0].GroupId),
			UserNames: pulumi.StringArray{
				foo.ID(),
			},
		})
		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-tencentcloud/sdk/go/tencentcloud/Cam"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cam"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		camPolicyBasic := "keep-cam-policy"
		if param := cfg.Get("camPolicyBasic"); param != "" {
			camPolicyBasic = param
		}
		camGroupBasic := "keep-cam-group"
		if param := cfg.Get("camGroupBasic"); param != "" {
			camGroupBasic = param
		}
		groups, err := Cam.GetGroups(ctx, &cam.GetGroupsArgs{
			Name: pulumi.StringRef(camGroupBasic),
		}, nil)
		if err != nil {
			return err
		}
		policy, err := Cam.GetPolicies(ctx, &cam.GetPoliciesArgs{
			Name: pulumi.StringRef(camPolicyBasic),
		}, nil)
		if err != nil {
			return err
		}
		_, err = Cam.NewGroupPolicyAttachment(ctx, "groupPolicyAttachmentBasic", &Cam.GroupPolicyAttachmentArgs{
			GroupId:  pulumi.String(groups.GroupLists[0].GroupId),
			PolicyId: pulumi.String(policy.PolicyLists[0].PolicyId),
		})
		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 MfaFlag added in v0.1.8

type MfaFlag struct {
	pulumi.CustomResourceState

	// Action flag setting.
	ActionFlag MfaFlagActionFlagPtrOutput `pulumi:"actionFlag"`
	// Login flag setting.
	LoginFlag MfaFlagLoginFlagPtrOutput `pulumi:"loginFlag"`
	// Operate uin.
	OpUin pulumi.IntOutput `pulumi:"opUin"`
}

Provides a resource to create a cam mfaFlag

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		info, err := User.GetInfo(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = Cam.NewMfaFlag(ctx, "mfaFlag", &Cam.MfaFlagArgs{
			OpUin: pulumi.String(info.Uin),
			LoginFlag: &cam.MfaFlagLoginFlagArgs{
				Phone:  pulumi.Int(0),
				Stoken: pulumi.Int(1),
				Wechat: pulumi.Int(0),
			},
			ActionFlag: &cam.MfaFlagActionFlagArgs{
				Phone:  pulumi.Int(0),
				Stoken: pulumi.Int(1),
				Wechat: pulumi.Int(0),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

cam mfa_flag can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Cam/mfaFlag:MfaFlag mfa_flag mfa_flag_id

```

func GetMfaFlag added in v0.1.8

func GetMfaFlag(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *MfaFlagState, opts ...pulumi.ResourceOption) (*MfaFlag, error)

GetMfaFlag gets an existing MfaFlag 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 NewMfaFlag added in v0.1.8

func NewMfaFlag(ctx *pulumi.Context,
	name string, args *MfaFlagArgs, opts ...pulumi.ResourceOption) (*MfaFlag, error)

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

func (*MfaFlag) ElementType added in v0.1.8

func (*MfaFlag) ElementType() reflect.Type

func (*MfaFlag) ToMfaFlagOutput added in v0.1.8

func (i *MfaFlag) ToMfaFlagOutput() MfaFlagOutput

func (*MfaFlag) ToMfaFlagOutputWithContext added in v0.1.8

func (i *MfaFlag) ToMfaFlagOutputWithContext(ctx context.Context) MfaFlagOutput

type MfaFlagActionFlag added in v0.1.8

type MfaFlagActionFlag struct {
	// Phone.
	Phone *int `pulumi:"phone"`
	// Soft token.
	Stoken *int `pulumi:"stoken"`
	// Wechat.
	Wechat *int `pulumi:"wechat"`
}

type MfaFlagActionFlagArgs added in v0.1.8

type MfaFlagActionFlagArgs struct {
	// Phone.
	Phone pulumi.IntPtrInput `pulumi:"phone"`
	// Soft token.
	Stoken pulumi.IntPtrInput `pulumi:"stoken"`
	// Wechat.
	Wechat pulumi.IntPtrInput `pulumi:"wechat"`
}

func (MfaFlagActionFlagArgs) ElementType added in v0.1.8

func (MfaFlagActionFlagArgs) ElementType() reflect.Type

func (MfaFlagActionFlagArgs) ToMfaFlagActionFlagOutput added in v0.1.8

func (i MfaFlagActionFlagArgs) ToMfaFlagActionFlagOutput() MfaFlagActionFlagOutput

func (MfaFlagActionFlagArgs) ToMfaFlagActionFlagOutputWithContext added in v0.1.8

func (i MfaFlagActionFlagArgs) ToMfaFlagActionFlagOutputWithContext(ctx context.Context) MfaFlagActionFlagOutput

func (MfaFlagActionFlagArgs) ToMfaFlagActionFlagPtrOutput added in v0.1.8

func (i MfaFlagActionFlagArgs) ToMfaFlagActionFlagPtrOutput() MfaFlagActionFlagPtrOutput

func (MfaFlagActionFlagArgs) ToMfaFlagActionFlagPtrOutputWithContext added in v0.1.8

func (i MfaFlagActionFlagArgs) ToMfaFlagActionFlagPtrOutputWithContext(ctx context.Context) MfaFlagActionFlagPtrOutput

type MfaFlagActionFlagInput added in v0.1.8

type MfaFlagActionFlagInput interface {
	pulumi.Input

	ToMfaFlagActionFlagOutput() MfaFlagActionFlagOutput
	ToMfaFlagActionFlagOutputWithContext(context.Context) MfaFlagActionFlagOutput
}

MfaFlagActionFlagInput is an input type that accepts MfaFlagActionFlagArgs and MfaFlagActionFlagOutput values. You can construct a concrete instance of `MfaFlagActionFlagInput` via:

MfaFlagActionFlagArgs{...}

type MfaFlagActionFlagOutput added in v0.1.8

type MfaFlagActionFlagOutput struct{ *pulumi.OutputState }

func (MfaFlagActionFlagOutput) ElementType added in v0.1.8

func (MfaFlagActionFlagOutput) ElementType() reflect.Type

func (MfaFlagActionFlagOutput) Phone added in v0.1.8

Phone.

func (MfaFlagActionFlagOutput) Stoken added in v0.1.8

Soft token.

func (MfaFlagActionFlagOutput) ToMfaFlagActionFlagOutput added in v0.1.8

func (o MfaFlagActionFlagOutput) ToMfaFlagActionFlagOutput() MfaFlagActionFlagOutput

func (MfaFlagActionFlagOutput) ToMfaFlagActionFlagOutputWithContext added in v0.1.8

func (o MfaFlagActionFlagOutput) ToMfaFlagActionFlagOutputWithContext(ctx context.Context) MfaFlagActionFlagOutput

func (MfaFlagActionFlagOutput) ToMfaFlagActionFlagPtrOutput added in v0.1.8

func (o MfaFlagActionFlagOutput) ToMfaFlagActionFlagPtrOutput() MfaFlagActionFlagPtrOutput

func (MfaFlagActionFlagOutput) ToMfaFlagActionFlagPtrOutputWithContext added in v0.1.8

func (o MfaFlagActionFlagOutput) ToMfaFlagActionFlagPtrOutputWithContext(ctx context.Context) MfaFlagActionFlagPtrOutput

func (MfaFlagActionFlagOutput) Wechat added in v0.1.8

Wechat.

type MfaFlagActionFlagPtrInput added in v0.1.8

type MfaFlagActionFlagPtrInput interface {
	pulumi.Input

	ToMfaFlagActionFlagPtrOutput() MfaFlagActionFlagPtrOutput
	ToMfaFlagActionFlagPtrOutputWithContext(context.Context) MfaFlagActionFlagPtrOutput
}

MfaFlagActionFlagPtrInput is an input type that accepts MfaFlagActionFlagArgs, MfaFlagActionFlagPtr and MfaFlagActionFlagPtrOutput values. You can construct a concrete instance of `MfaFlagActionFlagPtrInput` via:

        MfaFlagActionFlagArgs{...}

or:

        nil

func MfaFlagActionFlagPtr added in v0.1.8

func MfaFlagActionFlagPtr(v *MfaFlagActionFlagArgs) MfaFlagActionFlagPtrInput

type MfaFlagActionFlagPtrOutput added in v0.1.8

type MfaFlagActionFlagPtrOutput struct{ *pulumi.OutputState }

func (MfaFlagActionFlagPtrOutput) Elem added in v0.1.8

func (MfaFlagActionFlagPtrOutput) ElementType added in v0.1.8

func (MfaFlagActionFlagPtrOutput) ElementType() reflect.Type

func (MfaFlagActionFlagPtrOutput) Phone added in v0.1.8

Phone.

func (MfaFlagActionFlagPtrOutput) Stoken added in v0.1.8

Soft token.

func (MfaFlagActionFlagPtrOutput) ToMfaFlagActionFlagPtrOutput added in v0.1.8

func (o MfaFlagActionFlagPtrOutput) ToMfaFlagActionFlagPtrOutput() MfaFlagActionFlagPtrOutput

func (MfaFlagActionFlagPtrOutput) ToMfaFlagActionFlagPtrOutputWithContext added in v0.1.8

func (o MfaFlagActionFlagPtrOutput) ToMfaFlagActionFlagPtrOutputWithContext(ctx context.Context) MfaFlagActionFlagPtrOutput

func (MfaFlagActionFlagPtrOutput) Wechat added in v0.1.8

Wechat.

type MfaFlagArgs added in v0.1.8

type MfaFlagArgs struct {
	// Action flag setting.
	ActionFlag MfaFlagActionFlagPtrInput
	// Login flag setting.
	LoginFlag MfaFlagLoginFlagPtrInput
	// Operate uin.
	OpUin pulumi.IntInput
}

The set of arguments for constructing a MfaFlag resource.

func (MfaFlagArgs) ElementType added in v0.1.8

func (MfaFlagArgs) ElementType() reflect.Type

type MfaFlagArray added in v0.1.8

type MfaFlagArray []MfaFlagInput

func (MfaFlagArray) ElementType added in v0.1.8

func (MfaFlagArray) ElementType() reflect.Type

func (MfaFlagArray) ToMfaFlagArrayOutput added in v0.1.8

func (i MfaFlagArray) ToMfaFlagArrayOutput() MfaFlagArrayOutput

func (MfaFlagArray) ToMfaFlagArrayOutputWithContext added in v0.1.8

func (i MfaFlagArray) ToMfaFlagArrayOutputWithContext(ctx context.Context) MfaFlagArrayOutput

type MfaFlagArrayInput added in v0.1.8

type MfaFlagArrayInput interface {
	pulumi.Input

	ToMfaFlagArrayOutput() MfaFlagArrayOutput
	ToMfaFlagArrayOutputWithContext(context.Context) MfaFlagArrayOutput
}

MfaFlagArrayInput is an input type that accepts MfaFlagArray and MfaFlagArrayOutput values. You can construct a concrete instance of `MfaFlagArrayInput` via:

MfaFlagArray{ MfaFlagArgs{...} }

type MfaFlagArrayOutput added in v0.1.8

type MfaFlagArrayOutput struct{ *pulumi.OutputState }

func (MfaFlagArrayOutput) ElementType added in v0.1.8

func (MfaFlagArrayOutput) ElementType() reflect.Type

func (MfaFlagArrayOutput) Index added in v0.1.8

func (MfaFlagArrayOutput) ToMfaFlagArrayOutput added in v0.1.8

func (o MfaFlagArrayOutput) ToMfaFlagArrayOutput() MfaFlagArrayOutput

func (MfaFlagArrayOutput) ToMfaFlagArrayOutputWithContext added in v0.1.8

func (o MfaFlagArrayOutput) ToMfaFlagArrayOutputWithContext(ctx context.Context) MfaFlagArrayOutput

type MfaFlagInput added in v0.1.8

type MfaFlagInput interface {
	pulumi.Input

	ToMfaFlagOutput() MfaFlagOutput
	ToMfaFlagOutputWithContext(ctx context.Context) MfaFlagOutput
}

type MfaFlagLoginFlag added in v0.1.8

type MfaFlagLoginFlag struct {
	// Phone.
	Phone *int `pulumi:"phone"`
	// Soft token.
	Stoken *int `pulumi:"stoken"`
	// Wechat.
	Wechat *int `pulumi:"wechat"`
}

type MfaFlagLoginFlagArgs added in v0.1.8

type MfaFlagLoginFlagArgs struct {
	// Phone.
	Phone pulumi.IntPtrInput `pulumi:"phone"`
	// Soft token.
	Stoken pulumi.IntPtrInput `pulumi:"stoken"`
	// Wechat.
	Wechat pulumi.IntPtrInput `pulumi:"wechat"`
}

func (MfaFlagLoginFlagArgs) ElementType added in v0.1.8

func (MfaFlagLoginFlagArgs) ElementType() reflect.Type

func (MfaFlagLoginFlagArgs) ToMfaFlagLoginFlagOutput added in v0.1.8

func (i MfaFlagLoginFlagArgs) ToMfaFlagLoginFlagOutput() MfaFlagLoginFlagOutput

func (MfaFlagLoginFlagArgs) ToMfaFlagLoginFlagOutputWithContext added in v0.1.8

func (i MfaFlagLoginFlagArgs) ToMfaFlagLoginFlagOutputWithContext(ctx context.Context) MfaFlagLoginFlagOutput

func (MfaFlagLoginFlagArgs) ToMfaFlagLoginFlagPtrOutput added in v0.1.8

func (i MfaFlagLoginFlagArgs) ToMfaFlagLoginFlagPtrOutput() MfaFlagLoginFlagPtrOutput

func (MfaFlagLoginFlagArgs) ToMfaFlagLoginFlagPtrOutputWithContext added in v0.1.8

func (i MfaFlagLoginFlagArgs) ToMfaFlagLoginFlagPtrOutputWithContext(ctx context.Context) MfaFlagLoginFlagPtrOutput

type MfaFlagLoginFlagInput added in v0.1.8

type MfaFlagLoginFlagInput interface {
	pulumi.Input

	ToMfaFlagLoginFlagOutput() MfaFlagLoginFlagOutput
	ToMfaFlagLoginFlagOutputWithContext(context.Context) MfaFlagLoginFlagOutput
}

MfaFlagLoginFlagInput is an input type that accepts MfaFlagLoginFlagArgs and MfaFlagLoginFlagOutput values. You can construct a concrete instance of `MfaFlagLoginFlagInput` via:

MfaFlagLoginFlagArgs{...}

type MfaFlagLoginFlagOutput added in v0.1.8

type MfaFlagLoginFlagOutput struct{ *pulumi.OutputState }

func (MfaFlagLoginFlagOutput) ElementType added in v0.1.8

func (MfaFlagLoginFlagOutput) ElementType() reflect.Type

func (MfaFlagLoginFlagOutput) Phone added in v0.1.8

Phone.

func (MfaFlagLoginFlagOutput) Stoken added in v0.1.8

Soft token.

func (MfaFlagLoginFlagOutput) ToMfaFlagLoginFlagOutput added in v0.1.8

func (o MfaFlagLoginFlagOutput) ToMfaFlagLoginFlagOutput() MfaFlagLoginFlagOutput

func (MfaFlagLoginFlagOutput) ToMfaFlagLoginFlagOutputWithContext added in v0.1.8

func (o MfaFlagLoginFlagOutput) ToMfaFlagLoginFlagOutputWithContext(ctx context.Context) MfaFlagLoginFlagOutput

func (MfaFlagLoginFlagOutput) ToMfaFlagLoginFlagPtrOutput added in v0.1.8

func (o MfaFlagLoginFlagOutput) ToMfaFlagLoginFlagPtrOutput() MfaFlagLoginFlagPtrOutput

func (MfaFlagLoginFlagOutput) ToMfaFlagLoginFlagPtrOutputWithContext added in v0.1.8

func (o MfaFlagLoginFlagOutput) ToMfaFlagLoginFlagPtrOutputWithContext(ctx context.Context) MfaFlagLoginFlagPtrOutput

func (MfaFlagLoginFlagOutput) Wechat added in v0.1.8

Wechat.

type MfaFlagLoginFlagPtrInput added in v0.1.8

type MfaFlagLoginFlagPtrInput interface {
	pulumi.Input

	ToMfaFlagLoginFlagPtrOutput() MfaFlagLoginFlagPtrOutput
	ToMfaFlagLoginFlagPtrOutputWithContext(context.Context) MfaFlagLoginFlagPtrOutput
}

MfaFlagLoginFlagPtrInput is an input type that accepts MfaFlagLoginFlagArgs, MfaFlagLoginFlagPtr and MfaFlagLoginFlagPtrOutput values. You can construct a concrete instance of `MfaFlagLoginFlagPtrInput` via:

        MfaFlagLoginFlagArgs{...}

or:

        nil

func MfaFlagLoginFlagPtr added in v0.1.8

func MfaFlagLoginFlagPtr(v *MfaFlagLoginFlagArgs) MfaFlagLoginFlagPtrInput

type MfaFlagLoginFlagPtrOutput added in v0.1.8

type MfaFlagLoginFlagPtrOutput struct{ *pulumi.OutputState }

func (MfaFlagLoginFlagPtrOutput) Elem added in v0.1.8

func (MfaFlagLoginFlagPtrOutput) ElementType added in v0.1.8

func (MfaFlagLoginFlagPtrOutput) ElementType() reflect.Type

func (MfaFlagLoginFlagPtrOutput) Phone added in v0.1.8

Phone.

func (MfaFlagLoginFlagPtrOutput) Stoken added in v0.1.8

Soft token.

func (MfaFlagLoginFlagPtrOutput) ToMfaFlagLoginFlagPtrOutput added in v0.1.8

func (o MfaFlagLoginFlagPtrOutput) ToMfaFlagLoginFlagPtrOutput() MfaFlagLoginFlagPtrOutput

func (MfaFlagLoginFlagPtrOutput) ToMfaFlagLoginFlagPtrOutputWithContext added in v0.1.8

func (o MfaFlagLoginFlagPtrOutput) ToMfaFlagLoginFlagPtrOutputWithContext(ctx context.Context) MfaFlagLoginFlagPtrOutput

func (MfaFlagLoginFlagPtrOutput) Wechat added in v0.1.8

Wechat.

type MfaFlagMap added in v0.1.8

type MfaFlagMap map[string]MfaFlagInput

func (MfaFlagMap) ElementType added in v0.1.8

func (MfaFlagMap) ElementType() reflect.Type

func (MfaFlagMap) ToMfaFlagMapOutput added in v0.1.8

func (i MfaFlagMap) ToMfaFlagMapOutput() MfaFlagMapOutput

func (MfaFlagMap) ToMfaFlagMapOutputWithContext added in v0.1.8

func (i MfaFlagMap) ToMfaFlagMapOutputWithContext(ctx context.Context) MfaFlagMapOutput

type MfaFlagMapInput added in v0.1.8

type MfaFlagMapInput interface {
	pulumi.Input

	ToMfaFlagMapOutput() MfaFlagMapOutput
	ToMfaFlagMapOutputWithContext(context.Context) MfaFlagMapOutput
}

MfaFlagMapInput is an input type that accepts MfaFlagMap and MfaFlagMapOutput values. You can construct a concrete instance of `MfaFlagMapInput` via:

MfaFlagMap{ "key": MfaFlagArgs{...} }

type MfaFlagMapOutput added in v0.1.8

type MfaFlagMapOutput struct{ *pulumi.OutputState }

func (MfaFlagMapOutput) ElementType added in v0.1.8

func (MfaFlagMapOutput) ElementType() reflect.Type

func (MfaFlagMapOutput) MapIndex added in v0.1.8

func (MfaFlagMapOutput) ToMfaFlagMapOutput added in v0.1.8

func (o MfaFlagMapOutput) ToMfaFlagMapOutput() MfaFlagMapOutput

func (MfaFlagMapOutput) ToMfaFlagMapOutputWithContext added in v0.1.8

func (o MfaFlagMapOutput) ToMfaFlagMapOutputWithContext(ctx context.Context) MfaFlagMapOutput

type MfaFlagOutput added in v0.1.8

type MfaFlagOutput struct{ *pulumi.OutputState }

func (MfaFlagOutput) ActionFlag added in v0.1.8

Action flag setting.

func (MfaFlagOutput) ElementType added in v0.1.8

func (MfaFlagOutput) ElementType() reflect.Type

func (MfaFlagOutput) LoginFlag added in v0.1.8

Login flag setting.

func (MfaFlagOutput) OpUin added in v0.1.8

func (o MfaFlagOutput) OpUin() pulumi.IntOutput

Operate uin.

func (MfaFlagOutput) ToMfaFlagOutput added in v0.1.8

func (o MfaFlagOutput) ToMfaFlagOutput() MfaFlagOutput

func (MfaFlagOutput) ToMfaFlagOutputWithContext added in v0.1.8

func (o MfaFlagOutput) ToMfaFlagOutputWithContext(ctx context.Context) MfaFlagOutput

type MfaFlagState added in v0.1.8

type MfaFlagState struct {
	// Action flag setting.
	ActionFlag MfaFlagActionFlagPtrInput
	// Login flag setting.
	LoginFlag MfaFlagLoginFlagPtrInput
	// Operate uin.
	OpUin pulumi.IntPtrInput
}

func (MfaFlagState) ElementType added in v0.1.8

func (MfaFlagState) 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("tf_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 PolicyByName added in v0.1.3

type PolicyByName 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.NewPolicyByName(ctx, "foo", &Cam.PolicyByNameArgs{
			Description: pulumi.String("tf_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 name, e.g.

```sh

$ pulumi import tencentcloud:Cam/policyByName:PolicyByName foo name

```

func GetPolicyByName added in v0.1.3

func GetPolicyByName(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PolicyByNameState, opts ...pulumi.ResourceOption) (*PolicyByName, error)

GetPolicyByName gets an existing PolicyByName 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 NewPolicyByName added in v0.1.3

func NewPolicyByName(ctx *pulumi.Context,
	name string, args *PolicyByNameArgs, opts ...pulumi.ResourceOption) (*PolicyByName, error)

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

func (*PolicyByName) ElementType added in v0.1.3

func (*PolicyByName) ElementType() reflect.Type

func (*PolicyByName) ToPolicyByNameOutput added in v0.1.3

func (i *PolicyByName) ToPolicyByNameOutput() PolicyByNameOutput

func (*PolicyByName) ToPolicyByNameOutputWithContext added in v0.1.3

func (i *PolicyByName) ToPolicyByNameOutputWithContext(ctx context.Context) PolicyByNameOutput

type PolicyByNameArgs added in v0.1.3

type PolicyByNameArgs 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 PolicyByName resource.

func (PolicyByNameArgs) ElementType added in v0.1.3

func (PolicyByNameArgs) ElementType() reflect.Type

type PolicyByNameArray added in v0.1.3

type PolicyByNameArray []PolicyByNameInput

func (PolicyByNameArray) ElementType added in v0.1.3

func (PolicyByNameArray) ElementType() reflect.Type

func (PolicyByNameArray) ToPolicyByNameArrayOutput added in v0.1.3

func (i PolicyByNameArray) ToPolicyByNameArrayOutput() PolicyByNameArrayOutput

func (PolicyByNameArray) ToPolicyByNameArrayOutputWithContext added in v0.1.3

func (i PolicyByNameArray) ToPolicyByNameArrayOutputWithContext(ctx context.Context) PolicyByNameArrayOutput

type PolicyByNameArrayInput added in v0.1.3

type PolicyByNameArrayInput interface {
	pulumi.Input

	ToPolicyByNameArrayOutput() PolicyByNameArrayOutput
	ToPolicyByNameArrayOutputWithContext(context.Context) PolicyByNameArrayOutput
}

PolicyByNameArrayInput is an input type that accepts PolicyByNameArray and PolicyByNameArrayOutput values. You can construct a concrete instance of `PolicyByNameArrayInput` via:

PolicyByNameArray{ PolicyByNameArgs{...} }

type PolicyByNameArrayOutput added in v0.1.3

type PolicyByNameArrayOutput struct{ *pulumi.OutputState }

func (PolicyByNameArrayOutput) ElementType added in v0.1.3

func (PolicyByNameArrayOutput) ElementType() reflect.Type

func (PolicyByNameArrayOutput) Index added in v0.1.3

func (PolicyByNameArrayOutput) ToPolicyByNameArrayOutput added in v0.1.3

func (o PolicyByNameArrayOutput) ToPolicyByNameArrayOutput() PolicyByNameArrayOutput

func (PolicyByNameArrayOutput) ToPolicyByNameArrayOutputWithContext added in v0.1.3

func (o PolicyByNameArrayOutput) ToPolicyByNameArrayOutputWithContext(ctx context.Context) PolicyByNameArrayOutput

type PolicyByNameInput added in v0.1.3

type PolicyByNameInput interface {
	pulumi.Input

	ToPolicyByNameOutput() PolicyByNameOutput
	ToPolicyByNameOutputWithContext(ctx context.Context) PolicyByNameOutput
}

type PolicyByNameMap added in v0.1.3

type PolicyByNameMap map[string]PolicyByNameInput

func (PolicyByNameMap) ElementType added in v0.1.3

func (PolicyByNameMap) ElementType() reflect.Type

func (PolicyByNameMap) ToPolicyByNameMapOutput added in v0.1.3

func (i PolicyByNameMap) ToPolicyByNameMapOutput() PolicyByNameMapOutput

func (PolicyByNameMap) ToPolicyByNameMapOutputWithContext added in v0.1.3

func (i PolicyByNameMap) ToPolicyByNameMapOutputWithContext(ctx context.Context) PolicyByNameMapOutput

type PolicyByNameMapInput added in v0.1.3

type PolicyByNameMapInput interface {
	pulumi.Input

	ToPolicyByNameMapOutput() PolicyByNameMapOutput
	ToPolicyByNameMapOutputWithContext(context.Context) PolicyByNameMapOutput
}

PolicyByNameMapInput is an input type that accepts PolicyByNameMap and PolicyByNameMapOutput values. You can construct a concrete instance of `PolicyByNameMapInput` via:

PolicyByNameMap{ "key": PolicyByNameArgs{...} }

type PolicyByNameMapOutput added in v0.1.3

type PolicyByNameMapOutput struct{ *pulumi.OutputState }

func (PolicyByNameMapOutput) ElementType added in v0.1.3

func (PolicyByNameMapOutput) ElementType() reflect.Type

func (PolicyByNameMapOutput) MapIndex added in v0.1.3

func (PolicyByNameMapOutput) ToPolicyByNameMapOutput added in v0.1.3

func (o PolicyByNameMapOutput) ToPolicyByNameMapOutput() PolicyByNameMapOutput

func (PolicyByNameMapOutput) ToPolicyByNameMapOutputWithContext added in v0.1.3

func (o PolicyByNameMapOutput) ToPolicyByNameMapOutputWithContext(ctx context.Context) PolicyByNameMapOutput

type PolicyByNameOutput added in v0.1.3

type PolicyByNameOutput struct{ *pulumi.OutputState }

func (PolicyByNameOutput) CreateTime added in v0.1.3

func (o PolicyByNameOutput) CreateTime() pulumi.StringOutput

Create time of the CAM policy.

func (PolicyByNameOutput) Description added in v0.1.3

func (o PolicyByNameOutput) Description() pulumi.StringPtrOutput

Description of the CAM policy.

func (PolicyByNameOutput) Document added in v0.1.3

func (o PolicyByNameOutput) 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 (PolicyByNameOutput) ElementType added in v0.1.3

func (PolicyByNameOutput) ElementType() reflect.Type

func (PolicyByNameOutput) Name added in v0.1.3

Name of CAM policy.

func (PolicyByNameOutput) ToPolicyByNameOutput added in v0.1.3

func (o PolicyByNameOutput) ToPolicyByNameOutput() PolicyByNameOutput

func (PolicyByNameOutput) ToPolicyByNameOutputWithContext added in v0.1.3

func (o PolicyByNameOutput) ToPolicyByNameOutputWithContext(ctx context.Context) PolicyByNameOutput

func (PolicyByNameOutput) Type added in v0.1.3

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

func (PolicyByNameOutput) UpdateTime added in v0.1.3

func (o PolicyByNameOutput) UpdateTime() pulumi.StringOutput

The last update time of the CAM policy.

type PolicyByNameState added in v0.1.3

type PolicyByNameState 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 (PolicyByNameState) ElementType added in v0.1.3

func (PolicyByNameState) ElementType() reflect.Type

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 PolicyVersion added in v0.1.8

type PolicyVersion struct {
	pulumi.CustomResourceState

	// Strategic text information.
	PolicyDocument pulumi.StringOutput `pulumi:"policyDocument"`
	// Strategy ID.
	PolicyId pulumi.IntOutput `pulumi:"policyId"`
	// Strategic version detailsNote: This field may return NULL, indicating that the valid value cannot be obtained.
	PolicyVersions PolicyVersionPolicyVersionArrayOutput `pulumi:"policyVersions"`
	// Whether to set as a version of the current strategy.
	SetAsDefault pulumi.BoolOutput `pulumi:"setAsDefault"`
}

Provides a resource to create a cam policyVersion

## Example Usage

```go package main

import (

"encoding/json"

"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 {
		tmpJSON0, err := json.Marshal(map[string]interface{}{
			"version": "2.0",
			"statement": []map[string]interface{}{
				map[string]interface{}{
					"effect": "allow",
					"action": []string{
						"sts:AssumeRole",
					},
					"resource": []string{
						"*",
					},
				},
				map[string]interface{}{
					"effect": "allow",
					"action": []string{
						"cos:PutObject",
					},
					"resource": []string{
						"*",
					},
				},
				map[string]interface{}{
					"effect": "deny",
					"action": []string{
						"aa:*",
					},
					"resource": []string{
						"*",
					},
				},
				map[string]interface{}{
					"effect": "deny",
					"action": []string{
						"aa:*",
					},
					"resource": []string{
						"*",
					},
				},
			},
		})
		if err != nil {
			return err
		}
		json0 := string(tmpJSON0)
		_, err := Cam.NewPolicyVersion(ctx, "policyVersion", &Cam.PolicyVersionArgs{
			PolicyId:       pulumi.Int(171173780),
			PolicyDocument: pulumi.String(json0),
			SetAsDefault:   pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

cam policy_version can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Cam/policyVersion:PolicyVersion policy_version policy_version_id

```

func GetPolicyVersion added in v0.1.8

func GetPolicyVersion(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PolicyVersionState, opts ...pulumi.ResourceOption) (*PolicyVersion, error)

GetPolicyVersion gets an existing PolicyVersion 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 NewPolicyVersion added in v0.1.8

func NewPolicyVersion(ctx *pulumi.Context,
	name string, args *PolicyVersionArgs, opts ...pulumi.ResourceOption) (*PolicyVersion, error)

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

func (*PolicyVersion) ElementType added in v0.1.8

func (*PolicyVersion) ElementType() reflect.Type

func (*PolicyVersion) ToPolicyVersionOutput added in v0.1.8

func (i *PolicyVersion) ToPolicyVersionOutput() PolicyVersionOutput

func (*PolicyVersion) ToPolicyVersionOutputWithContext added in v0.1.8

func (i *PolicyVersion) ToPolicyVersionOutputWithContext(ctx context.Context) PolicyVersionOutput

type PolicyVersionArgs added in v0.1.8

type PolicyVersionArgs struct {
	// Strategic text information.
	PolicyDocument pulumi.StringInput
	// Strategy ID.
	PolicyId pulumi.IntInput
	// Strategic version detailsNote: This field may return NULL, indicating that the valid value cannot be obtained.
	PolicyVersions PolicyVersionPolicyVersionArrayInput
	// Whether to set as a version of the current strategy.
	SetAsDefault pulumi.BoolInput
}

The set of arguments for constructing a PolicyVersion resource.

func (PolicyVersionArgs) ElementType added in v0.1.8

func (PolicyVersionArgs) ElementType() reflect.Type

type PolicyVersionArray added in v0.1.8

type PolicyVersionArray []PolicyVersionInput

func (PolicyVersionArray) ElementType added in v0.1.8

func (PolicyVersionArray) ElementType() reflect.Type

func (PolicyVersionArray) ToPolicyVersionArrayOutput added in v0.1.8

func (i PolicyVersionArray) ToPolicyVersionArrayOutput() PolicyVersionArrayOutput

func (PolicyVersionArray) ToPolicyVersionArrayOutputWithContext added in v0.1.8

func (i PolicyVersionArray) ToPolicyVersionArrayOutputWithContext(ctx context.Context) PolicyVersionArrayOutput

type PolicyVersionArrayInput added in v0.1.8

type PolicyVersionArrayInput interface {
	pulumi.Input

	ToPolicyVersionArrayOutput() PolicyVersionArrayOutput
	ToPolicyVersionArrayOutputWithContext(context.Context) PolicyVersionArrayOutput
}

PolicyVersionArrayInput is an input type that accepts PolicyVersionArray and PolicyVersionArrayOutput values. You can construct a concrete instance of `PolicyVersionArrayInput` via:

PolicyVersionArray{ PolicyVersionArgs{...} }

type PolicyVersionArrayOutput added in v0.1.8

type PolicyVersionArrayOutput struct{ *pulumi.OutputState }

func (PolicyVersionArrayOutput) ElementType added in v0.1.8

func (PolicyVersionArrayOutput) ElementType() reflect.Type

func (PolicyVersionArrayOutput) Index added in v0.1.8

func (PolicyVersionArrayOutput) ToPolicyVersionArrayOutput added in v0.1.8

func (o PolicyVersionArrayOutput) ToPolicyVersionArrayOutput() PolicyVersionArrayOutput

func (PolicyVersionArrayOutput) ToPolicyVersionArrayOutputWithContext added in v0.1.8

func (o PolicyVersionArrayOutput) ToPolicyVersionArrayOutputWithContext(ctx context.Context) PolicyVersionArrayOutput

type PolicyVersionInput added in v0.1.8

type PolicyVersionInput interface {
	pulumi.Input

	ToPolicyVersionOutput() PolicyVersionOutput
	ToPolicyVersionOutputWithContext(ctx context.Context) PolicyVersionOutput
}

type PolicyVersionMap added in v0.1.8

type PolicyVersionMap map[string]PolicyVersionInput

func (PolicyVersionMap) ElementType added in v0.1.8

func (PolicyVersionMap) ElementType() reflect.Type

func (PolicyVersionMap) ToPolicyVersionMapOutput added in v0.1.8

func (i PolicyVersionMap) ToPolicyVersionMapOutput() PolicyVersionMapOutput

func (PolicyVersionMap) ToPolicyVersionMapOutputWithContext added in v0.1.8

func (i PolicyVersionMap) ToPolicyVersionMapOutputWithContext(ctx context.Context) PolicyVersionMapOutput

type PolicyVersionMapInput added in v0.1.8

type PolicyVersionMapInput interface {
	pulumi.Input

	ToPolicyVersionMapOutput() PolicyVersionMapOutput
	ToPolicyVersionMapOutputWithContext(context.Context) PolicyVersionMapOutput
}

PolicyVersionMapInput is an input type that accepts PolicyVersionMap and PolicyVersionMapOutput values. You can construct a concrete instance of `PolicyVersionMapInput` via:

PolicyVersionMap{ "key": PolicyVersionArgs{...} }

type PolicyVersionMapOutput added in v0.1.8

type PolicyVersionMapOutput struct{ *pulumi.OutputState }

func (PolicyVersionMapOutput) ElementType added in v0.1.8

func (PolicyVersionMapOutput) ElementType() reflect.Type

func (PolicyVersionMapOutput) MapIndex added in v0.1.8

func (PolicyVersionMapOutput) ToPolicyVersionMapOutput added in v0.1.8

func (o PolicyVersionMapOutput) ToPolicyVersionMapOutput() PolicyVersionMapOutput

func (PolicyVersionMapOutput) ToPolicyVersionMapOutputWithContext added in v0.1.8

func (o PolicyVersionMapOutput) ToPolicyVersionMapOutputWithContext(ctx context.Context) PolicyVersionMapOutput

type PolicyVersionOutput added in v0.1.8

type PolicyVersionOutput struct{ *pulumi.OutputState }

func (PolicyVersionOutput) ElementType added in v0.1.8

func (PolicyVersionOutput) ElementType() reflect.Type

func (PolicyVersionOutput) PolicyDocument added in v0.1.8

func (o PolicyVersionOutput) PolicyDocument() pulumi.StringOutput

Strategic text information.

func (PolicyVersionOutput) PolicyId added in v0.1.8

func (o PolicyVersionOutput) PolicyId() pulumi.IntOutput

Strategy ID.

func (PolicyVersionOutput) PolicyVersions added in v0.1.8

Strategic version detailsNote: This field may return NULL, indicating that the valid value cannot be obtained.

func (PolicyVersionOutput) SetAsDefault added in v0.1.8

func (o PolicyVersionOutput) SetAsDefault() pulumi.BoolOutput

Whether to set as a version of the current strategy.

func (PolicyVersionOutput) ToPolicyVersionOutput added in v0.1.8

func (o PolicyVersionOutput) ToPolicyVersionOutput() PolicyVersionOutput

func (PolicyVersionOutput) ToPolicyVersionOutputWithContext added in v0.1.8

func (o PolicyVersionOutput) ToPolicyVersionOutputWithContext(ctx context.Context) PolicyVersionOutput

type PolicyVersionPolicyVersion added in v0.1.8

type PolicyVersionPolicyVersion struct {
	CreateDate       *string `pulumi:"createDate"`
	Document         *string `pulumi:"document"`
	IsDefaultVersion *int    `pulumi:"isDefaultVersion"`
	VersionId        *int    `pulumi:"versionId"`
}

type PolicyVersionPolicyVersionArgs added in v0.1.8

type PolicyVersionPolicyVersionArgs struct {
	CreateDate       pulumi.StringPtrInput `pulumi:"createDate"`
	Document         pulumi.StringPtrInput `pulumi:"document"`
	IsDefaultVersion pulumi.IntPtrInput    `pulumi:"isDefaultVersion"`
	VersionId        pulumi.IntPtrInput    `pulumi:"versionId"`
}

func (PolicyVersionPolicyVersionArgs) ElementType added in v0.1.8

func (PolicyVersionPolicyVersionArgs) ToPolicyVersionPolicyVersionOutput added in v0.1.8

func (i PolicyVersionPolicyVersionArgs) ToPolicyVersionPolicyVersionOutput() PolicyVersionPolicyVersionOutput

func (PolicyVersionPolicyVersionArgs) ToPolicyVersionPolicyVersionOutputWithContext added in v0.1.8

func (i PolicyVersionPolicyVersionArgs) ToPolicyVersionPolicyVersionOutputWithContext(ctx context.Context) PolicyVersionPolicyVersionOutput

type PolicyVersionPolicyVersionArray added in v0.1.8

type PolicyVersionPolicyVersionArray []PolicyVersionPolicyVersionInput

func (PolicyVersionPolicyVersionArray) ElementType added in v0.1.8

func (PolicyVersionPolicyVersionArray) ToPolicyVersionPolicyVersionArrayOutput added in v0.1.8

func (i PolicyVersionPolicyVersionArray) ToPolicyVersionPolicyVersionArrayOutput() PolicyVersionPolicyVersionArrayOutput

func (PolicyVersionPolicyVersionArray) ToPolicyVersionPolicyVersionArrayOutputWithContext added in v0.1.8

func (i PolicyVersionPolicyVersionArray) ToPolicyVersionPolicyVersionArrayOutputWithContext(ctx context.Context) PolicyVersionPolicyVersionArrayOutput

type PolicyVersionPolicyVersionArrayInput added in v0.1.8

type PolicyVersionPolicyVersionArrayInput interface {
	pulumi.Input

	ToPolicyVersionPolicyVersionArrayOutput() PolicyVersionPolicyVersionArrayOutput
	ToPolicyVersionPolicyVersionArrayOutputWithContext(context.Context) PolicyVersionPolicyVersionArrayOutput
}

PolicyVersionPolicyVersionArrayInput is an input type that accepts PolicyVersionPolicyVersionArray and PolicyVersionPolicyVersionArrayOutput values. You can construct a concrete instance of `PolicyVersionPolicyVersionArrayInput` via:

PolicyVersionPolicyVersionArray{ PolicyVersionPolicyVersionArgs{...} }

type PolicyVersionPolicyVersionArrayOutput added in v0.1.8

type PolicyVersionPolicyVersionArrayOutput struct{ *pulumi.OutputState }

func (PolicyVersionPolicyVersionArrayOutput) ElementType added in v0.1.8

func (PolicyVersionPolicyVersionArrayOutput) Index added in v0.1.8

func (PolicyVersionPolicyVersionArrayOutput) ToPolicyVersionPolicyVersionArrayOutput added in v0.1.8

func (o PolicyVersionPolicyVersionArrayOutput) ToPolicyVersionPolicyVersionArrayOutput() PolicyVersionPolicyVersionArrayOutput

func (PolicyVersionPolicyVersionArrayOutput) ToPolicyVersionPolicyVersionArrayOutputWithContext added in v0.1.8

func (o PolicyVersionPolicyVersionArrayOutput) ToPolicyVersionPolicyVersionArrayOutputWithContext(ctx context.Context) PolicyVersionPolicyVersionArrayOutput

type PolicyVersionPolicyVersionInput added in v0.1.8

type PolicyVersionPolicyVersionInput interface {
	pulumi.Input

	ToPolicyVersionPolicyVersionOutput() PolicyVersionPolicyVersionOutput
	ToPolicyVersionPolicyVersionOutputWithContext(context.Context) PolicyVersionPolicyVersionOutput
}

PolicyVersionPolicyVersionInput is an input type that accepts PolicyVersionPolicyVersionArgs and PolicyVersionPolicyVersionOutput values. You can construct a concrete instance of `PolicyVersionPolicyVersionInput` via:

PolicyVersionPolicyVersionArgs{...}

type PolicyVersionPolicyVersionOutput added in v0.1.8

type PolicyVersionPolicyVersionOutput struct{ *pulumi.OutputState }

func (PolicyVersionPolicyVersionOutput) CreateDate added in v0.1.8

func (PolicyVersionPolicyVersionOutput) Document added in v0.1.8

func (PolicyVersionPolicyVersionOutput) ElementType added in v0.1.8

func (PolicyVersionPolicyVersionOutput) IsDefaultVersion added in v0.1.8

func (PolicyVersionPolicyVersionOutput) ToPolicyVersionPolicyVersionOutput added in v0.1.8

func (o PolicyVersionPolicyVersionOutput) ToPolicyVersionPolicyVersionOutput() PolicyVersionPolicyVersionOutput

func (PolicyVersionPolicyVersionOutput) ToPolicyVersionPolicyVersionOutputWithContext added in v0.1.8

func (o PolicyVersionPolicyVersionOutput) ToPolicyVersionPolicyVersionOutputWithContext(ctx context.Context) PolicyVersionPolicyVersionOutput

func (PolicyVersionPolicyVersionOutput) VersionId added in v0.1.8

type PolicyVersionState added in v0.1.8

type PolicyVersionState struct {
	// Strategic text information.
	PolicyDocument pulumi.StringPtrInput
	// Strategy ID.
	PolicyId pulumi.IntPtrInput
	// Strategic version detailsNote: This field may return NULL, indicating that the valid value cannot be obtained.
	PolicyVersions PolicyVersionPolicyVersionArrayInput
	// Whether to set as a version of the current strategy.
	SetAsDefault pulumi.BoolPtrInput
}

func (PolicyVersionState) ElementType added in v0.1.8

func (PolicyVersionState) 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"`
	// The maximum validity period of the temporary key for creating a role.
	SessionDuration pulumi.IntPtrOutput `pulumi:"sessionDuration"`
	// 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 (

"encoding/json"
"fmt"

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		info, err := User.GetInfo(ctx, nil, nil)
		if err != nil {
			return err
		}
		myUin := info.OwnerUin
		ctx.Export("uin", myUin)
		tmpJSON0, err := json.Marshal(map[string]interface{}{
			"statement": []map[string]interface{}{
				map[string]interface{}{
					"action": "name/sts:AssumeRole",
					"effect": "allow",
					"principal": map[string]interface{}{
						"qcs": []string{
							fmt.Sprintf("%v%v%v", "qcs::cam::uin/", myUin, ":root"),
						},
					},
				},
			},
			"version": "2.0",
		})
		if err != nil {
			return err
		}
		json0 := string(tmpJSON0)
		_, err = Cam.NewRole(ctx, "foo", &Cam.RoleArgs{
			Document:        pulumi.String(json0),
			ConsoleLogin:    pulumi.Bool(true),
			Description:     pulumi.String("test"),
			SessionDuration: pulumi.Int(7200),
			Tags: pulumi.AnyMap{
				"test": pulumi.Any("tf-cam-role"),
			},
		})
		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
	// The maximum validity period of the temporary key for creating a role.
	SessionDuration pulumi.IntPtrInput
	// 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 RoleByName added in v0.1.3

type RoleByName 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.NewRoleByName(ctx, "foo", &Cam.RoleByNameArgs{
			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.NewRoleByName(ctx, "boo", &Cam.RoleByNameArgs{
			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 name, e.g.

```sh

$ pulumi import tencentcloud:Cam/roleByName:RoleByName foo cam-role-test

```

func GetRoleByName added in v0.1.3

func GetRoleByName(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RoleByNameState, opts ...pulumi.ResourceOption) (*RoleByName, error)

GetRoleByName gets an existing RoleByName 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 NewRoleByName added in v0.1.3

func NewRoleByName(ctx *pulumi.Context,
	name string, args *RoleByNameArgs, opts ...pulumi.ResourceOption) (*RoleByName, error)

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

func (*RoleByName) ElementType added in v0.1.3

func (*RoleByName) ElementType() reflect.Type

func (*RoleByName) ToRoleByNameOutput added in v0.1.3

func (i *RoleByName) ToRoleByNameOutput() RoleByNameOutput

func (*RoleByName) ToRoleByNameOutputWithContext added in v0.1.3

func (i *RoleByName) ToRoleByNameOutputWithContext(ctx context.Context) RoleByNameOutput

type RoleByNameArgs added in v0.1.3

type RoleByNameArgs 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 RoleByName resource.

func (RoleByNameArgs) ElementType added in v0.1.3

func (RoleByNameArgs) ElementType() reflect.Type

type RoleByNameArray added in v0.1.3

type RoleByNameArray []RoleByNameInput

func (RoleByNameArray) ElementType added in v0.1.3

func (RoleByNameArray) ElementType() reflect.Type

func (RoleByNameArray) ToRoleByNameArrayOutput added in v0.1.3

func (i RoleByNameArray) ToRoleByNameArrayOutput() RoleByNameArrayOutput

func (RoleByNameArray) ToRoleByNameArrayOutputWithContext added in v0.1.3

func (i RoleByNameArray) ToRoleByNameArrayOutputWithContext(ctx context.Context) RoleByNameArrayOutput

type RoleByNameArrayInput added in v0.1.3

type RoleByNameArrayInput interface {
	pulumi.Input

	ToRoleByNameArrayOutput() RoleByNameArrayOutput
	ToRoleByNameArrayOutputWithContext(context.Context) RoleByNameArrayOutput
}

RoleByNameArrayInput is an input type that accepts RoleByNameArray and RoleByNameArrayOutput values. You can construct a concrete instance of `RoleByNameArrayInput` via:

RoleByNameArray{ RoleByNameArgs{...} }

type RoleByNameArrayOutput added in v0.1.3

type RoleByNameArrayOutput struct{ *pulumi.OutputState }

func (RoleByNameArrayOutput) ElementType added in v0.1.3

func (RoleByNameArrayOutput) ElementType() reflect.Type

func (RoleByNameArrayOutput) Index added in v0.1.3

func (RoleByNameArrayOutput) ToRoleByNameArrayOutput added in v0.1.3

func (o RoleByNameArrayOutput) ToRoleByNameArrayOutput() RoleByNameArrayOutput

func (RoleByNameArrayOutput) ToRoleByNameArrayOutputWithContext added in v0.1.3

func (o RoleByNameArrayOutput) ToRoleByNameArrayOutputWithContext(ctx context.Context) RoleByNameArrayOutput

type RoleByNameInput added in v0.1.3

type RoleByNameInput interface {
	pulumi.Input

	ToRoleByNameOutput() RoleByNameOutput
	ToRoleByNameOutputWithContext(ctx context.Context) RoleByNameOutput
}

type RoleByNameMap added in v0.1.3

type RoleByNameMap map[string]RoleByNameInput

func (RoleByNameMap) ElementType added in v0.1.3

func (RoleByNameMap) ElementType() reflect.Type

func (RoleByNameMap) ToRoleByNameMapOutput added in v0.1.3

func (i RoleByNameMap) ToRoleByNameMapOutput() RoleByNameMapOutput

func (RoleByNameMap) ToRoleByNameMapOutputWithContext added in v0.1.3

func (i RoleByNameMap) ToRoleByNameMapOutputWithContext(ctx context.Context) RoleByNameMapOutput

type RoleByNameMapInput added in v0.1.3

type RoleByNameMapInput interface {
	pulumi.Input

	ToRoleByNameMapOutput() RoleByNameMapOutput
	ToRoleByNameMapOutputWithContext(context.Context) RoleByNameMapOutput
}

RoleByNameMapInput is an input type that accepts RoleByNameMap and RoleByNameMapOutput values. You can construct a concrete instance of `RoleByNameMapInput` via:

RoleByNameMap{ "key": RoleByNameArgs{...} }

type RoleByNameMapOutput added in v0.1.3

type RoleByNameMapOutput struct{ *pulumi.OutputState }

func (RoleByNameMapOutput) ElementType added in v0.1.3

func (RoleByNameMapOutput) ElementType() reflect.Type

func (RoleByNameMapOutput) MapIndex added in v0.1.3

func (RoleByNameMapOutput) ToRoleByNameMapOutput added in v0.1.3

func (o RoleByNameMapOutput) ToRoleByNameMapOutput() RoleByNameMapOutput

func (RoleByNameMapOutput) ToRoleByNameMapOutputWithContext added in v0.1.3

func (o RoleByNameMapOutput) ToRoleByNameMapOutputWithContext(ctx context.Context) RoleByNameMapOutput

type RoleByNameOutput added in v0.1.3

type RoleByNameOutput struct{ *pulumi.OutputState }

func (RoleByNameOutput) ConsoleLogin added in v0.1.3

func (o RoleByNameOutput) ConsoleLogin() pulumi.BoolPtrOutput

Indicates whether the CAM role can login or not.

func (RoleByNameOutput) CreateTime added in v0.1.3

func (o RoleByNameOutput) CreateTime() pulumi.StringOutput

Create time of the CAM role.

func (RoleByNameOutput) Description added in v0.1.3

func (o RoleByNameOutput) Description() pulumi.StringPtrOutput

Description of the CAM role.

func (RoleByNameOutput) Document added in v0.1.3

func (o RoleByNameOutput) 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 (RoleByNameOutput) ElementType added in v0.1.3

func (RoleByNameOutput) ElementType() reflect.Type

func (RoleByNameOutput) Name added in v0.1.3

Name of CAM role.

func (RoleByNameOutput) Tags added in v0.1.3

A list of tags used to associate different resources.

func (RoleByNameOutput) ToRoleByNameOutput added in v0.1.3

func (o RoleByNameOutput) ToRoleByNameOutput() RoleByNameOutput

func (RoleByNameOutput) ToRoleByNameOutputWithContext added in v0.1.3

func (o RoleByNameOutput) ToRoleByNameOutputWithContext(ctx context.Context) RoleByNameOutput

func (RoleByNameOutput) UpdateTime added in v0.1.3

func (o RoleByNameOutput) UpdateTime() pulumi.StringOutput

The last update time of the CAM role.

type RoleByNameState added in v0.1.3

type RoleByNameState 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 (RoleByNameState) ElementType added in v0.1.3

func (RoleByNameState) ElementType() reflect.Type

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) SessionDuration added in v0.1.8

func (o RoleOutput) SessionDuration() pulumi.IntPtrOutput

The maximum validity period of the temporary key for creating a 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 RolePermissionBoundaryAttachment added in v0.1.8

type RolePermissionBoundaryAttachment struct {
	pulumi.CustomResourceState

	// Role ID.
	PolicyId pulumi.IntOutput `pulumi:"policyId"`
	// Role ID (at least one should be filled in with the role name).
	RoleId pulumi.StringOutput `pulumi:"roleId"`
	// Role name (at least one should be filled in with the role ID).
	RoleName pulumi.StringPtrOutput `pulumi:"roleName"`
}

Provides a resource to create a cam rolePermissionBoundaryAttachment

## 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.NewRolePermissionBoundaryAttachment(ctx, "rolePermissionBoundaryAttachment", &Cam.RolePermissionBoundaryAttachmentArgs{
			PolicyId: pulumi.Int(1),
			RoleName: pulumi.String("test-cam-tag"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

cam role_permission_boundary_attachment can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Cam/rolePermissionBoundaryAttachment:RolePermissionBoundaryAttachment role_permission_boundary_attachment role_permission_boundary_attachment_id

```

func GetRolePermissionBoundaryAttachment added in v0.1.8

func GetRolePermissionBoundaryAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RolePermissionBoundaryAttachmentState, opts ...pulumi.ResourceOption) (*RolePermissionBoundaryAttachment, error)

GetRolePermissionBoundaryAttachment gets an existing RolePermissionBoundaryAttachment 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 NewRolePermissionBoundaryAttachment added in v0.1.8

func NewRolePermissionBoundaryAttachment(ctx *pulumi.Context,
	name string, args *RolePermissionBoundaryAttachmentArgs, opts ...pulumi.ResourceOption) (*RolePermissionBoundaryAttachment, error)

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

func (*RolePermissionBoundaryAttachment) ElementType added in v0.1.8

func (*RolePermissionBoundaryAttachment) ToRolePermissionBoundaryAttachmentOutput added in v0.1.8

func (i *RolePermissionBoundaryAttachment) ToRolePermissionBoundaryAttachmentOutput() RolePermissionBoundaryAttachmentOutput

func (*RolePermissionBoundaryAttachment) ToRolePermissionBoundaryAttachmentOutputWithContext added in v0.1.8

func (i *RolePermissionBoundaryAttachment) ToRolePermissionBoundaryAttachmentOutputWithContext(ctx context.Context) RolePermissionBoundaryAttachmentOutput

type RolePermissionBoundaryAttachmentArgs added in v0.1.8

type RolePermissionBoundaryAttachmentArgs struct {
	// Role ID.
	PolicyId pulumi.IntInput
	// Role ID (at least one should be filled in with the role name).
	RoleId pulumi.StringPtrInput
	// Role name (at least one should be filled in with the role ID).
	RoleName pulumi.StringPtrInput
}

The set of arguments for constructing a RolePermissionBoundaryAttachment resource.

func (RolePermissionBoundaryAttachmentArgs) ElementType added in v0.1.8

type RolePermissionBoundaryAttachmentArray added in v0.1.8

type RolePermissionBoundaryAttachmentArray []RolePermissionBoundaryAttachmentInput

func (RolePermissionBoundaryAttachmentArray) ElementType added in v0.1.8

func (RolePermissionBoundaryAttachmentArray) ToRolePermissionBoundaryAttachmentArrayOutput added in v0.1.8

func (i RolePermissionBoundaryAttachmentArray) ToRolePermissionBoundaryAttachmentArrayOutput() RolePermissionBoundaryAttachmentArrayOutput

func (RolePermissionBoundaryAttachmentArray) ToRolePermissionBoundaryAttachmentArrayOutputWithContext added in v0.1.8

func (i RolePermissionBoundaryAttachmentArray) ToRolePermissionBoundaryAttachmentArrayOutputWithContext(ctx context.Context) RolePermissionBoundaryAttachmentArrayOutput

type RolePermissionBoundaryAttachmentArrayInput added in v0.1.8

type RolePermissionBoundaryAttachmentArrayInput interface {
	pulumi.Input

	ToRolePermissionBoundaryAttachmentArrayOutput() RolePermissionBoundaryAttachmentArrayOutput
	ToRolePermissionBoundaryAttachmentArrayOutputWithContext(context.Context) RolePermissionBoundaryAttachmentArrayOutput
}

RolePermissionBoundaryAttachmentArrayInput is an input type that accepts RolePermissionBoundaryAttachmentArray and RolePermissionBoundaryAttachmentArrayOutput values. You can construct a concrete instance of `RolePermissionBoundaryAttachmentArrayInput` via:

RolePermissionBoundaryAttachmentArray{ RolePermissionBoundaryAttachmentArgs{...} }

type RolePermissionBoundaryAttachmentArrayOutput added in v0.1.8

type RolePermissionBoundaryAttachmentArrayOutput struct{ *pulumi.OutputState }

func (RolePermissionBoundaryAttachmentArrayOutput) ElementType added in v0.1.8

func (RolePermissionBoundaryAttachmentArrayOutput) Index added in v0.1.8

func (RolePermissionBoundaryAttachmentArrayOutput) ToRolePermissionBoundaryAttachmentArrayOutput added in v0.1.8

func (o RolePermissionBoundaryAttachmentArrayOutput) ToRolePermissionBoundaryAttachmentArrayOutput() RolePermissionBoundaryAttachmentArrayOutput

func (RolePermissionBoundaryAttachmentArrayOutput) ToRolePermissionBoundaryAttachmentArrayOutputWithContext added in v0.1.8

func (o RolePermissionBoundaryAttachmentArrayOutput) ToRolePermissionBoundaryAttachmentArrayOutputWithContext(ctx context.Context) RolePermissionBoundaryAttachmentArrayOutput

type RolePermissionBoundaryAttachmentInput added in v0.1.8

type RolePermissionBoundaryAttachmentInput interface {
	pulumi.Input

	ToRolePermissionBoundaryAttachmentOutput() RolePermissionBoundaryAttachmentOutput
	ToRolePermissionBoundaryAttachmentOutputWithContext(ctx context.Context) RolePermissionBoundaryAttachmentOutput
}

type RolePermissionBoundaryAttachmentMap added in v0.1.8

type RolePermissionBoundaryAttachmentMap map[string]RolePermissionBoundaryAttachmentInput

func (RolePermissionBoundaryAttachmentMap) ElementType added in v0.1.8

func (RolePermissionBoundaryAttachmentMap) ToRolePermissionBoundaryAttachmentMapOutput added in v0.1.8

func (i RolePermissionBoundaryAttachmentMap) ToRolePermissionBoundaryAttachmentMapOutput() RolePermissionBoundaryAttachmentMapOutput

func (RolePermissionBoundaryAttachmentMap) ToRolePermissionBoundaryAttachmentMapOutputWithContext added in v0.1.8

func (i RolePermissionBoundaryAttachmentMap) ToRolePermissionBoundaryAttachmentMapOutputWithContext(ctx context.Context) RolePermissionBoundaryAttachmentMapOutput

type RolePermissionBoundaryAttachmentMapInput added in v0.1.8

type RolePermissionBoundaryAttachmentMapInput interface {
	pulumi.Input

	ToRolePermissionBoundaryAttachmentMapOutput() RolePermissionBoundaryAttachmentMapOutput
	ToRolePermissionBoundaryAttachmentMapOutputWithContext(context.Context) RolePermissionBoundaryAttachmentMapOutput
}

RolePermissionBoundaryAttachmentMapInput is an input type that accepts RolePermissionBoundaryAttachmentMap and RolePermissionBoundaryAttachmentMapOutput values. You can construct a concrete instance of `RolePermissionBoundaryAttachmentMapInput` via:

RolePermissionBoundaryAttachmentMap{ "key": RolePermissionBoundaryAttachmentArgs{...} }

type RolePermissionBoundaryAttachmentMapOutput added in v0.1.8

type RolePermissionBoundaryAttachmentMapOutput struct{ *pulumi.OutputState }

func (RolePermissionBoundaryAttachmentMapOutput) ElementType added in v0.1.8

func (RolePermissionBoundaryAttachmentMapOutput) MapIndex added in v0.1.8

func (RolePermissionBoundaryAttachmentMapOutput) ToRolePermissionBoundaryAttachmentMapOutput added in v0.1.8

func (o RolePermissionBoundaryAttachmentMapOutput) ToRolePermissionBoundaryAttachmentMapOutput() RolePermissionBoundaryAttachmentMapOutput

func (RolePermissionBoundaryAttachmentMapOutput) ToRolePermissionBoundaryAttachmentMapOutputWithContext added in v0.1.8

func (o RolePermissionBoundaryAttachmentMapOutput) ToRolePermissionBoundaryAttachmentMapOutputWithContext(ctx context.Context) RolePermissionBoundaryAttachmentMapOutput

type RolePermissionBoundaryAttachmentOutput added in v0.1.8

type RolePermissionBoundaryAttachmentOutput struct{ *pulumi.OutputState }

func (RolePermissionBoundaryAttachmentOutput) ElementType added in v0.1.8

func (RolePermissionBoundaryAttachmentOutput) PolicyId added in v0.1.8

Role ID.

func (RolePermissionBoundaryAttachmentOutput) RoleId added in v0.1.8

Role ID (at least one should be filled in with the role name).

func (RolePermissionBoundaryAttachmentOutput) RoleName added in v0.1.8

Role name (at least one should be filled in with the role ID).

func (RolePermissionBoundaryAttachmentOutput) ToRolePermissionBoundaryAttachmentOutput added in v0.1.8

func (o RolePermissionBoundaryAttachmentOutput) ToRolePermissionBoundaryAttachmentOutput() RolePermissionBoundaryAttachmentOutput

func (RolePermissionBoundaryAttachmentOutput) ToRolePermissionBoundaryAttachmentOutputWithContext added in v0.1.8

func (o RolePermissionBoundaryAttachmentOutput) ToRolePermissionBoundaryAttachmentOutputWithContext(ctx context.Context) RolePermissionBoundaryAttachmentOutput

type RolePermissionBoundaryAttachmentState added in v0.1.8

type RolePermissionBoundaryAttachmentState struct {
	// Role ID.
	PolicyId pulumi.IntPtrInput
	// Role ID (at least one should be filled in with the role name).
	RoleId pulumi.StringPtrInput
	// Role name (at least one should be filled in with the role ID).
	RoleName pulumi.StringPtrInput
}

func (RolePermissionBoundaryAttachmentState) ElementType added in v0.1.8

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-tencentcloud/sdk/go/tencentcloud/Cam"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cam"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		camPolicyBasic := "keep-cam-policy"
		if param := cfg.Get("camPolicyBasic"); param != "" {
			camPolicyBasic = param
		}
		camRoleBasic := "keep-cam-role"
		if param := cfg.Get("camRoleBasic"); param != "" {
			camRoleBasic = param
		}
		policy, err := Cam.GetPolicies(ctx, &cam.GetPoliciesArgs{
			Name: pulumi.StringRef(camPolicyBasic),
		}, nil)
		if err != nil {
			return err
		}
		roles, err := Cam.GetRoles(ctx, &cam.GetRolesArgs{
			Name: pulumi.StringRef(camRoleBasic),
		}, nil)
		if err != nil {
			return err
		}
		_, err = Cam.NewRolePolicyAttachment(ctx, "rolePolicyAttachmentBasic", &Cam.RolePolicyAttachmentArgs{
			RoleId:   pulumi.String(roles.RoleLists[0].RoleId),
			PolicyId: pulumi.String(policy.PolicyLists[0].PolicyId),
		})
		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 RolePolicyAttachmentByName added in v0.1.3

type RolePolicyAttachmentByName 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"`
	// 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"`
	// Name of the attached CAM role.
	RoleName pulumi.StringOutput `pulumi:"roleName"`
}

Provides a resource to create a CAM role policy attachment.

## 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/pulumi/pulumi/sdk/v3/go/pulumi/config"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cam"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		camPolicyBasic := "keep-cam-policy"
		if param := cfg.Get("camPolicyBasic"); param != "" {
			camPolicyBasic = param
		}
		camRoleBasic := "keep-cam-role"
		if param := cfg.Get("camRoleBasic"); param != "" {
			camRoleBasic = param
		}
		_, err := Cam.GetPolicies(ctx, &cam.GetPoliciesArgs{
			Name: pulumi.StringRef(camPolicyBasic),
		}, nil)
		if err != nil {
			return err
		}
		_, err = Cam.GetRoles(ctx, &cam.GetRolesArgs{
			Name: pulumi.StringRef(camRoleBasic),
		}, nil)
		if err != nil {
			return err
		}
		_, err = Cam.NewRolePolicyAttachmentByName(ctx, "rolePolicyAttachmentBasic", &Cam.RolePolicyAttachmentByNameArgs{
			RoleName:   pulumi.String(camRoleBasic),
			PolicyName: pulumi.String(camPolicyBasic),
		})
		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/rolePolicyAttachmentByName:RolePolicyAttachmentByName foo ${role_name}#${policy_name}

```

func GetRolePolicyAttachmentByName added in v0.1.3

func GetRolePolicyAttachmentByName(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RolePolicyAttachmentByNameState, opts ...pulumi.ResourceOption) (*RolePolicyAttachmentByName, error)

GetRolePolicyAttachmentByName gets an existing RolePolicyAttachmentByName 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 NewRolePolicyAttachmentByName added in v0.1.3

func NewRolePolicyAttachmentByName(ctx *pulumi.Context,
	name string, args *RolePolicyAttachmentByNameArgs, opts ...pulumi.ResourceOption) (*RolePolicyAttachmentByName, error)

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

func (*RolePolicyAttachmentByName) ElementType added in v0.1.3

func (*RolePolicyAttachmentByName) ElementType() reflect.Type

func (*RolePolicyAttachmentByName) ToRolePolicyAttachmentByNameOutput added in v0.1.3

func (i *RolePolicyAttachmentByName) ToRolePolicyAttachmentByNameOutput() RolePolicyAttachmentByNameOutput

func (*RolePolicyAttachmentByName) ToRolePolicyAttachmentByNameOutputWithContext added in v0.1.3

func (i *RolePolicyAttachmentByName) ToRolePolicyAttachmentByNameOutputWithContext(ctx context.Context) RolePolicyAttachmentByNameOutput

type RolePolicyAttachmentByNameArgs added in v0.1.3

type RolePolicyAttachmentByNameArgs struct {
	// Name of the policy.
	PolicyName pulumi.StringInput
	// Name of the attached CAM role.
	RoleName pulumi.StringInput
}

The set of arguments for constructing a RolePolicyAttachmentByName resource.

func (RolePolicyAttachmentByNameArgs) ElementType added in v0.1.3

type RolePolicyAttachmentByNameArray added in v0.1.3

type RolePolicyAttachmentByNameArray []RolePolicyAttachmentByNameInput

func (RolePolicyAttachmentByNameArray) ElementType added in v0.1.3

func (RolePolicyAttachmentByNameArray) ToRolePolicyAttachmentByNameArrayOutput added in v0.1.3

func (i RolePolicyAttachmentByNameArray) ToRolePolicyAttachmentByNameArrayOutput() RolePolicyAttachmentByNameArrayOutput

func (RolePolicyAttachmentByNameArray) ToRolePolicyAttachmentByNameArrayOutputWithContext added in v0.1.3

func (i RolePolicyAttachmentByNameArray) ToRolePolicyAttachmentByNameArrayOutputWithContext(ctx context.Context) RolePolicyAttachmentByNameArrayOutput

type RolePolicyAttachmentByNameArrayInput added in v0.1.3

type RolePolicyAttachmentByNameArrayInput interface {
	pulumi.Input

	ToRolePolicyAttachmentByNameArrayOutput() RolePolicyAttachmentByNameArrayOutput
	ToRolePolicyAttachmentByNameArrayOutputWithContext(context.Context) RolePolicyAttachmentByNameArrayOutput
}

RolePolicyAttachmentByNameArrayInput is an input type that accepts RolePolicyAttachmentByNameArray and RolePolicyAttachmentByNameArrayOutput values. You can construct a concrete instance of `RolePolicyAttachmentByNameArrayInput` via:

RolePolicyAttachmentByNameArray{ RolePolicyAttachmentByNameArgs{...} }

type RolePolicyAttachmentByNameArrayOutput added in v0.1.3

type RolePolicyAttachmentByNameArrayOutput struct{ *pulumi.OutputState }

func (RolePolicyAttachmentByNameArrayOutput) ElementType added in v0.1.3

func (RolePolicyAttachmentByNameArrayOutput) Index added in v0.1.3

func (RolePolicyAttachmentByNameArrayOutput) ToRolePolicyAttachmentByNameArrayOutput added in v0.1.3

func (o RolePolicyAttachmentByNameArrayOutput) ToRolePolicyAttachmentByNameArrayOutput() RolePolicyAttachmentByNameArrayOutput

func (RolePolicyAttachmentByNameArrayOutput) ToRolePolicyAttachmentByNameArrayOutputWithContext added in v0.1.3

func (o RolePolicyAttachmentByNameArrayOutput) ToRolePolicyAttachmentByNameArrayOutputWithContext(ctx context.Context) RolePolicyAttachmentByNameArrayOutput

type RolePolicyAttachmentByNameInput added in v0.1.3

type RolePolicyAttachmentByNameInput interface {
	pulumi.Input

	ToRolePolicyAttachmentByNameOutput() RolePolicyAttachmentByNameOutput
	ToRolePolicyAttachmentByNameOutputWithContext(ctx context.Context) RolePolicyAttachmentByNameOutput
}

type RolePolicyAttachmentByNameMap added in v0.1.3

type RolePolicyAttachmentByNameMap map[string]RolePolicyAttachmentByNameInput

func (RolePolicyAttachmentByNameMap) ElementType added in v0.1.3

func (RolePolicyAttachmentByNameMap) ToRolePolicyAttachmentByNameMapOutput added in v0.1.3

func (i RolePolicyAttachmentByNameMap) ToRolePolicyAttachmentByNameMapOutput() RolePolicyAttachmentByNameMapOutput

func (RolePolicyAttachmentByNameMap) ToRolePolicyAttachmentByNameMapOutputWithContext added in v0.1.3

func (i RolePolicyAttachmentByNameMap) ToRolePolicyAttachmentByNameMapOutputWithContext(ctx context.Context) RolePolicyAttachmentByNameMapOutput

type RolePolicyAttachmentByNameMapInput added in v0.1.3

type RolePolicyAttachmentByNameMapInput interface {
	pulumi.Input

	ToRolePolicyAttachmentByNameMapOutput() RolePolicyAttachmentByNameMapOutput
	ToRolePolicyAttachmentByNameMapOutputWithContext(context.Context) RolePolicyAttachmentByNameMapOutput
}

RolePolicyAttachmentByNameMapInput is an input type that accepts RolePolicyAttachmentByNameMap and RolePolicyAttachmentByNameMapOutput values. You can construct a concrete instance of `RolePolicyAttachmentByNameMapInput` via:

RolePolicyAttachmentByNameMap{ "key": RolePolicyAttachmentByNameArgs{...} }

type RolePolicyAttachmentByNameMapOutput added in v0.1.3

type RolePolicyAttachmentByNameMapOutput struct{ *pulumi.OutputState }

func (RolePolicyAttachmentByNameMapOutput) ElementType added in v0.1.3

func (RolePolicyAttachmentByNameMapOutput) MapIndex added in v0.1.3

func (RolePolicyAttachmentByNameMapOutput) ToRolePolicyAttachmentByNameMapOutput added in v0.1.3

func (o RolePolicyAttachmentByNameMapOutput) ToRolePolicyAttachmentByNameMapOutput() RolePolicyAttachmentByNameMapOutput

func (RolePolicyAttachmentByNameMapOutput) ToRolePolicyAttachmentByNameMapOutputWithContext added in v0.1.3

func (o RolePolicyAttachmentByNameMapOutput) ToRolePolicyAttachmentByNameMapOutputWithContext(ctx context.Context) RolePolicyAttachmentByNameMapOutput

type RolePolicyAttachmentByNameOutput added in v0.1.3

type RolePolicyAttachmentByNameOutput struct{ *pulumi.OutputState }

func (RolePolicyAttachmentByNameOutput) CreateMode added in v0.1.3

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 (RolePolicyAttachmentByNameOutput) CreateTime added in v0.1.3

The create time of the CAM role policy attachment.

func (RolePolicyAttachmentByNameOutput) ElementType added in v0.1.3

func (RolePolicyAttachmentByNameOutput) PolicyName added in v0.1.3

Name of the policy.

func (RolePolicyAttachmentByNameOutput) PolicyType added in v0.1.3

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

func (RolePolicyAttachmentByNameOutput) RoleName added in v0.1.3

Name of the attached CAM role.

func (RolePolicyAttachmentByNameOutput) ToRolePolicyAttachmentByNameOutput added in v0.1.3

func (o RolePolicyAttachmentByNameOutput) ToRolePolicyAttachmentByNameOutput() RolePolicyAttachmentByNameOutput

func (RolePolicyAttachmentByNameOutput) ToRolePolicyAttachmentByNameOutputWithContext added in v0.1.3

func (o RolePolicyAttachmentByNameOutput) ToRolePolicyAttachmentByNameOutputWithContext(ctx context.Context) RolePolicyAttachmentByNameOutput

type RolePolicyAttachmentByNameState added in v0.1.3

type RolePolicyAttachmentByNameState 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
	// Name of the policy.
	PolicyName pulumi.StringPtrInput
	// Type of the policy strategy. `User` means customer strategy and `QCS` means preset strategy.
	PolicyType pulumi.StringPtrInput
	// Name of the attached CAM role.
	RoleName pulumi.StringPtrInput
}

func (RolePolicyAttachmentByNameState) ElementType added in v0.1.3

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
	// The maximum validity period of the temporary key for creating a role.
	SessionDuration pulumi.IntPtrInput
	// 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("tf_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 ServiceLinkedRole added in v0.1.3

type ServiceLinkedRole struct {
	pulumi.CustomResourceState

	// The custom suffix, based on the string you provide, is combined with the prefix provided by the service to form the full role name. This field is not allowed to contain the character `_`.
	CustomSuffix pulumi.StringOutput `pulumi:"customSuffix"`
	// role description.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Authorization service, the Tencent Cloud service principal with this role attached.
	QcsServiceNames pulumi.StringArrayOutput `pulumi:"qcsServiceNames"`
	// Tag description list.
	Tags pulumi.MapOutput `pulumi:"tags"`
}

Provides a resource to create a cam serviceLinkedRole

## 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.NewServiceLinkedRole(ctx, "serviceLinkedRole", &Cam.ServiceLinkedRoleArgs{
			CustomSuffix: pulumi.String("tf"),
			Description:  pulumi.String("desc cam"),
			QcsServiceNames: pulumi.StringArray{
				pulumi.String("cvm.qcloud.com"),
				pulumi.String("ekslog.tke.cloud.tencent.com"),
			},
			Tags: pulumi.AnyMap{
				"createdBy": pulumi.Any("terraform"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetServiceLinkedRole added in v0.1.3

func GetServiceLinkedRole(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ServiceLinkedRoleState, opts ...pulumi.ResourceOption) (*ServiceLinkedRole, error)

GetServiceLinkedRole gets an existing ServiceLinkedRole 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 NewServiceLinkedRole added in v0.1.3

func NewServiceLinkedRole(ctx *pulumi.Context,
	name string, args *ServiceLinkedRoleArgs, opts ...pulumi.ResourceOption) (*ServiceLinkedRole, error)

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

func (*ServiceLinkedRole) ElementType added in v0.1.3

func (*ServiceLinkedRole) ElementType() reflect.Type

func (*ServiceLinkedRole) ToServiceLinkedRoleOutput added in v0.1.3

func (i *ServiceLinkedRole) ToServiceLinkedRoleOutput() ServiceLinkedRoleOutput

func (*ServiceLinkedRole) ToServiceLinkedRoleOutputWithContext added in v0.1.3

func (i *ServiceLinkedRole) ToServiceLinkedRoleOutputWithContext(ctx context.Context) ServiceLinkedRoleOutput

type ServiceLinkedRoleArgs added in v0.1.3

type ServiceLinkedRoleArgs struct {
	// The custom suffix, based on the string you provide, is combined with the prefix provided by the service to form the full role name. This field is not allowed to contain the character `_`.
	CustomSuffix pulumi.StringPtrInput
	// role description.
	Description pulumi.StringPtrInput
	// Authorization service, the Tencent Cloud service principal with this role attached.
	QcsServiceNames pulumi.StringArrayInput
	// Tag description list.
	Tags pulumi.MapInput
}

The set of arguments for constructing a ServiceLinkedRole resource.

func (ServiceLinkedRoleArgs) ElementType added in v0.1.3

func (ServiceLinkedRoleArgs) ElementType() reflect.Type

type ServiceLinkedRoleArray added in v0.1.3

type ServiceLinkedRoleArray []ServiceLinkedRoleInput

func (ServiceLinkedRoleArray) ElementType added in v0.1.3

func (ServiceLinkedRoleArray) ElementType() reflect.Type

func (ServiceLinkedRoleArray) ToServiceLinkedRoleArrayOutput added in v0.1.3

func (i ServiceLinkedRoleArray) ToServiceLinkedRoleArrayOutput() ServiceLinkedRoleArrayOutput

func (ServiceLinkedRoleArray) ToServiceLinkedRoleArrayOutputWithContext added in v0.1.3

func (i ServiceLinkedRoleArray) ToServiceLinkedRoleArrayOutputWithContext(ctx context.Context) ServiceLinkedRoleArrayOutput

type ServiceLinkedRoleArrayInput added in v0.1.3

type ServiceLinkedRoleArrayInput interface {
	pulumi.Input

	ToServiceLinkedRoleArrayOutput() ServiceLinkedRoleArrayOutput
	ToServiceLinkedRoleArrayOutputWithContext(context.Context) ServiceLinkedRoleArrayOutput
}

ServiceLinkedRoleArrayInput is an input type that accepts ServiceLinkedRoleArray and ServiceLinkedRoleArrayOutput values. You can construct a concrete instance of `ServiceLinkedRoleArrayInput` via:

ServiceLinkedRoleArray{ ServiceLinkedRoleArgs{...} }

type ServiceLinkedRoleArrayOutput added in v0.1.3

type ServiceLinkedRoleArrayOutput struct{ *pulumi.OutputState }

func (ServiceLinkedRoleArrayOutput) ElementType added in v0.1.3

func (ServiceLinkedRoleArrayOutput) Index added in v0.1.3

func (ServiceLinkedRoleArrayOutput) ToServiceLinkedRoleArrayOutput added in v0.1.3

func (o ServiceLinkedRoleArrayOutput) ToServiceLinkedRoleArrayOutput() ServiceLinkedRoleArrayOutput

func (ServiceLinkedRoleArrayOutput) ToServiceLinkedRoleArrayOutputWithContext added in v0.1.3

func (o ServiceLinkedRoleArrayOutput) ToServiceLinkedRoleArrayOutputWithContext(ctx context.Context) ServiceLinkedRoleArrayOutput

type ServiceLinkedRoleInput added in v0.1.3

type ServiceLinkedRoleInput interface {
	pulumi.Input

	ToServiceLinkedRoleOutput() ServiceLinkedRoleOutput
	ToServiceLinkedRoleOutputWithContext(ctx context.Context) ServiceLinkedRoleOutput
}

type ServiceLinkedRoleMap added in v0.1.3

type ServiceLinkedRoleMap map[string]ServiceLinkedRoleInput

func (ServiceLinkedRoleMap) ElementType added in v0.1.3

func (ServiceLinkedRoleMap) ElementType() reflect.Type

func (ServiceLinkedRoleMap) ToServiceLinkedRoleMapOutput added in v0.1.3

func (i ServiceLinkedRoleMap) ToServiceLinkedRoleMapOutput() ServiceLinkedRoleMapOutput

func (ServiceLinkedRoleMap) ToServiceLinkedRoleMapOutputWithContext added in v0.1.3

func (i ServiceLinkedRoleMap) ToServiceLinkedRoleMapOutputWithContext(ctx context.Context) ServiceLinkedRoleMapOutput

type ServiceLinkedRoleMapInput added in v0.1.3

type ServiceLinkedRoleMapInput interface {
	pulumi.Input

	ToServiceLinkedRoleMapOutput() ServiceLinkedRoleMapOutput
	ToServiceLinkedRoleMapOutputWithContext(context.Context) ServiceLinkedRoleMapOutput
}

ServiceLinkedRoleMapInput is an input type that accepts ServiceLinkedRoleMap and ServiceLinkedRoleMapOutput values. You can construct a concrete instance of `ServiceLinkedRoleMapInput` via:

ServiceLinkedRoleMap{ "key": ServiceLinkedRoleArgs{...} }

type ServiceLinkedRoleMapOutput added in v0.1.3

type ServiceLinkedRoleMapOutput struct{ *pulumi.OutputState }

func (ServiceLinkedRoleMapOutput) ElementType added in v0.1.3

func (ServiceLinkedRoleMapOutput) ElementType() reflect.Type

func (ServiceLinkedRoleMapOutput) MapIndex added in v0.1.3

func (ServiceLinkedRoleMapOutput) ToServiceLinkedRoleMapOutput added in v0.1.3

func (o ServiceLinkedRoleMapOutput) ToServiceLinkedRoleMapOutput() ServiceLinkedRoleMapOutput

func (ServiceLinkedRoleMapOutput) ToServiceLinkedRoleMapOutputWithContext added in v0.1.3

func (o ServiceLinkedRoleMapOutput) ToServiceLinkedRoleMapOutputWithContext(ctx context.Context) ServiceLinkedRoleMapOutput

type ServiceLinkedRoleOutput added in v0.1.3

type ServiceLinkedRoleOutput struct{ *pulumi.OutputState }

func (ServiceLinkedRoleOutput) CustomSuffix added in v0.1.3

func (o ServiceLinkedRoleOutput) CustomSuffix() pulumi.StringOutput

The custom suffix, based on the string you provide, is combined with the prefix provided by the service to form the full role name. This field is not allowed to contain the character `_`.

func (ServiceLinkedRoleOutput) Description added in v0.1.3

role description.

func (ServiceLinkedRoleOutput) ElementType added in v0.1.3

func (ServiceLinkedRoleOutput) ElementType() reflect.Type

func (ServiceLinkedRoleOutput) QcsServiceNames added in v0.1.3

func (o ServiceLinkedRoleOutput) QcsServiceNames() pulumi.StringArrayOutput

Authorization service, the Tencent Cloud service principal with this role attached.

func (ServiceLinkedRoleOutput) Tags added in v0.1.3

Tag description list.

func (ServiceLinkedRoleOutput) ToServiceLinkedRoleOutput added in v0.1.3

func (o ServiceLinkedRoleOutput) ToServiceLinkedRoleOutput() ServiceLinkedRoleOutput

func (ServiceLinkedRoleOutput) ToServiceLinkedRoleOutputWithContext added in v0.1.3

func (o ServiceLinkedRoleOutput) ToServiceLinkedRoleOutputWithContext(ctx context.Context) ServiceLinkedRoleOutput

type ServiceLinkedRoleState added in v0.1.3

type ServiceLinkedRoleState struct {
	// The custom suffix, based on the string you provide, is combined with the prefix provided by the service to form the full role name. This field is not allowed to contain the character `_`.
	CustomSuffix pulumi.StringPtrInput
	// role description.
	Description pulumi.StringPtrInput
	// Authorization service, the Tencent Cloud service principal with this role attached.
	QcsServiceNames pulumi.StringArrayInput
	// Tag description list.
	Tags pulumi.MapInput
}

func (ServiceLinkedRoleState) ElementType added in v0.1.3

func (ServiceLinkedRoleState) ElementType() reflect.Type

type SetPolicyVersionConfig added in v0.1.8

type SetPolicyVersionConfig struct {
	pulumi.CustomResourceState

	// Policy ID.
	PolicyId pulumi.IntOutput `pulumi:"policyId"`
	// The policy version number, which can be obtained from ListPolicyVersions.
	VersionId pulumi.IntOutput `pulumi:"versionId"`
}

Provides a resource to create a cam setPolicyVersionConfig

## 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.NewSetPolicyVersionConfig(ctx, "setPolicyVersionConfig", &Cam.SetPolicyVersionConfigArgs{
			PolicyId:  pulumi.Int(171162811),
			VersionId: pulumi.Int(2),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

cam set_policy_version_config can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Cam/setPolicyVersionConfig:SetPolicyVersionConfig set_policy_version_config set_policy_version_config_id

```

func GetSetPolicyVersionConfig added in v0.1.8

func GetSetPolicyVersionConfig(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SetPolicyVersionConfigState, opts ...pulumi.ResourceOption) (*SetPolicyVersionConfig, error)

GetSetPolicyVersionConfig gets an existing SetPolicyVersionConfig 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 NewSetPolicyVersionConfig added in v0.1.8

func NewSetPolicyVersionConfig(ctx *pulumi.Context,
	name string, args *SetPolicyVersionConfigArgs, opts ...pulumi.ResourceOption) (*SetPolicyVersionConfig, error)

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

func (*SetPolicyVersionConfig) ElementType added in v0.1.8

func (*SetPolicyVersionConfig) ElementType() reflect.Type

func (*SetPolicyVersionConfig) ToSetPolicyVersionConfigOutput added in v0.1.8

func (i *SetPolicyVersionConfig) ToSetPolicyVersionConfigOutput() SetPolicyVersionConfigOutput

func (*SetPolicyVersionConfig) ToSetPolicyVersionConfigOutputWithContext added in v0.1.8

func (i *SetPolicyVersionConfig) ToSetPolicyVersionConfigOutputWithContext(ctx context.Context) SetPolicyVersionConfigOutput

type SetPolicyVersionConfigArgs added in v0.1.8

type SetPolicyVersionConfigArgs struct {
	// Policy ID.
	PolicyId pulumi.IntInput
	// The policy version number, which can be obtained from ListPolicyVersions.
	VersionId pulumi.IntInput
}

The set of arguments for constructing a SetPolicyVersionConfig resource.

func (SetPolicyVersionConfigArgs) ElementType added in v0.1.8

func (SetPolicyVersionConfigArgs) ElementType() reflect.Type

type SetPolicyVersionConfigArray added in v0.1.8

type SetPolicyVersionConfigArray []SetPolicyVersionConfigInput

func (SetPolicyVersionConfigArray) ElementType added in v0.1.8

func (SetPolicyVersionConfigArray) ToSetPolicyVersionConfigArrayOutput added in v0.1.8

func (i SetPolicyVersionConfigArray) ToSetPolicyVersionConfigArrayOutput() SetPolicyVersionConfigArrayOutput

func (SetPolicyVersionConfigArray) ToSetPolicyVersionConfigArrayOutputWithContext added in v0.1.8

func (i SetPolicyVersionConfigArray) ToSetPolicyVersionConfigArrayOutputWithContext(ctx context.Context) SetPolicyVersionConfigArrayOutput

type SetPolicyVersionConfigArrayInput added in v0.1.8

type SetPolicyVersionConfigArrayInput interface {
	pulumi.Input

	ToSetPolicyVersionConfigArrayOutput() SetPolicyVersionConfigArrayOutput
	ToSetPolicyVersionConfigArrayOutputWithContext(context.Context) SetPolicyVersionConfigArrayOutput
}

SetPolicyVersionConfigArrayInput is an input type that accepts SetPolicyVersionConfigArray and SetPolicyVersionConfigArrayOutput values. You can construct a concrete instance of `SetPolicyVersionConfigArrayInput` via:

SetPolicyVersionConfigArray{ SetPolicyVersionConfigArgs{...} }

type SetPolicyVersionConfigArrayOutput added in v0.1.8

type SetPolicyVersionConfigArrayOutput struct{ *pulumi.OutputState }

func (SetPolicyVersionConfigArrayOutput) ElementType added in v0.1.8

func (SetPolicyVersionConfigArrayOutput) Index added in v0.1.8

func (SetPolicyVersionConfigArrayOutput) ToSetPolicyVersionConfigArrayOutput added in v0.1.8

func (o SetPolicyVersionConfigArrayOutput) ToSetPolicyVersionConfigArrayOutput() SetPolicyVersionConfigArrayOutput

func (SetPolicyVersionConfigArrayOutput) ToSetPolicyVersionConfigArrayOutputWithContext added in v0.1.8

func (o SetPolicyVersionConfigArrayOutput) ToSetPolicyVersionConfigArrayOutputWithContext(ctx context.Context) SetPolicyVersionConfigArrayOutput

type SetPolicyVersionConfigInput added in v0.1.8

type SetPolicyVersionConfigInput interface {
	pulumi.Input

	ToSetPolicyVersionConfigOutput() SetPolicyVersionConfigOutput
	ToSetPolicyVersionConfigOutputWithContext(ctx context.Context) SetPolicyVersionConfigOutput
}

type SetPolicyVersionConfigMap added in v0.1.8

type SetPolicyVersionConfigMap map[string]SetPolicyVersionConfigInput

func (SetPolicyVersionConfigMap) ElementType added in v0.1.8

func (SetPolicyVersionConfigMap) ElementType() reflect.Type

func (SetPolicyVersionConfigMap) ToSetPolicyVersionConfigMapOutput added in v0.1.8

func (i SetPolicyVersionConfigMap) ToSetPolicyVersionConfigMapOutput() SetPolicyVersionConfigMapOutput

func (SetPolicyVersionConfigMap) ToSetPolicyVersionConfigMapOutputWithContext added in v0.1.8

func (i SetPolicyVersionConfigMap) ToSetPolicyVersionConfigMapOutputWithContext(ctx context.Context) SetPolicyVersionConfigMapOutput

type SetPolicyVersionConfigMapInput added in v0.1.8

type SetPolicyVersionConfigMapInput interface {
	pulumi.Input

	ToSetPolicyVersionConfigMapOutput() SetPolicyVersionConfigMapOutput
	ToSetPolicyVersionConfigMapOutputWithContext(context.Context) SetPolicyVersionConfigMapOutput
}

SetPolicyVersionConfigMapInput is an input type that accepts SetPolicyVersionConfigMap and SetPolicyVersionConfigMapOutput values. You can construct a concrete instance of `SetPolicyVersionConfigMapInput` via:

SetPolicyVersionConfigMap{ "key": SetPolicyVersionConfigArgs{...} }

type SetPolicyVersionConfigMapOutput added in v0.1.8

type SetPolicyVersionConfigMapOutput struct{ *pulumi.OutputState }

func (SetPolicyVersionConfigMapOutput) ElementType added in v0.1.8

func (SetPolicyVersionConfigMapOutput) MapIndex added in v0.1.8

func (SetPolicyVersionConfigMapOutput) ToSetPolicyVersionConfigMapOutput added in v0.1.8

func (o SetPolicyVersionConfigMapOutput) ToSetPolicyVersionConfigMapOutput() SetPolicyVersionConfigMapOutput

func (SetPolicyVersionConfigMapOutput) ToSetPolicyVersionConfigMapOutputWithContext added in v0.1.8

func (o SetPolicyVersionConfigMapOutput) ToSetPolicyVersionConfigMapOutputWithContext(ctx context.Context) SetPolicyVersionConfigMapOutput

type SetPolicyVersionConfigOutput added in v0.1.8

type SetPolicyVersionConfigOutput struct{ *pulumi.OutputState }

func (SetPolicyVersionConfigOutput) ElementType added in v0.1.8

func (SetPolicyVersionConfigOutput) PolicyId added in v0.1.8

Policy ID.

func (SetPolicyVersionConfigOutput) ToSetPolicyVersionConfigOutput added in v0.1.8

func (o SetPolicyVersionConfigOutput) ToSetPolicyVersionConfigOutput() SetPolicyVersionConfigOutput

func (SetPolicyVersionConfigOutput) ToSetPolicyVersionConfigOutputWithContext added in v0.1.8

func (o SetPolicyVersionConfigOutput) ToSetPolicyVersionConfigOutputWithContext(ctx context.Context) SetPolicyVersionConfigOutput

func (SetPolicyVersionConfigOutput) VersionId added in v0.1.8

The policy version number, which can be obtained from ListPolicyVersions.

type SetPolicyVersionConfigState added in v0.1.8

type SetPolicyVersionConfigState struct {
	// Policy ID.
	PolicyId pulumi.IntPtrInput
	// The policy version number, which can be obtained from ListPolicyVersions.
	VersionId pulumi.IntPtrInput
}

func (SetPolicyVersionConfigState) ElementType added in v0.1.8

type TagRoleAttachment added in v0.1.8

type TagRoleAttachment struct {
	pulumi.CustomResourceState

	// Character ID, at least one input with the character name.
	RoleId pulumi.StringOutput `pulumi:"roleId"`
	// Character name, at least one input with the character ID.
	RoleName pulumi.StringOutput `pulumi:"roleName"`
	// Label.
	Tags TagRoleAttachmentTagArrayOutput `pulumi:"tags"`
}

Provides a resource to create a cam tagRole

## 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.NewTagRoleAttachment(ctx, "tagRole", &Cam.TagRoleAttachmentArgs{
			RoleId: pulumi.String("test-cam-tag"),
			Tags: cam.TagRoleAttachmentTagArray{
				&cam.TagRoleAttachmentTagArgs{
					Key:   pulumi.String("test1"),
					Value: pulumi.String("test1"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

cam tag_role can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Cam/tagRoleAttachment:TagRoleAttachment tag_role tag_role_id

```

func GetTagRoleAttachment added in v0.1.8

func GetTagRoleAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TagRoleAttachmentState, opts ...pulumi.ResourceOption) (*TagRoleAttachment, error)

GetTagRoleAttachment gets an existing TagRoleAttachment 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 NewTagRoleAttachment added in v0.1.8

func NewTagRoleAttachment(ctx *pulumi.Context,
	name string, args *TagRoleAttachmentArgs, opts ...pulumi.ResourceOption) (*TagRoleAttachment, error)

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

func (*TagRoleAttachment) ElementType added in v0.1.8

func (*TagRoleAttachment) ElementType() reflect.Type

func (*TagRoleAttachment) ToTagRoleAttachmentOutput added in v0.1.8

func (i *TagRoleAttachment) ToTagRoleAttachmentOutput() TagRoleAttachmentOutput

func (*TagRoleAttachment) ToTagRoleAttachmentOutputWithContext added in v0.1.8

func (i *TagRoleAttachment) ToTagRoleAttachmentOutputWithContext(ctx context.Context) TagRoleAttachmentOutput

type TagRoleAttachmentArgs added in v0.1.8

type TagRoleAttachmentArgs struct {
	// Character ID, at least one input with the character name.
	RoleId pulumi.StringPtrInput
	// Character name, at least one input with the character ID.
	RoleName pulumi.StringPtrInput
	// Label.
	Tags TagRoleAttachmentTagArrayInput
}

The set of arguments for constructing a TagRoleAttachment resource.

func (TagRoleAttachmentArgs) ElementType added in v0.1.8

func (TagRoleAttachmentArgs) ElementType() reflect.Type

type TagRoleAttachmentArray added in v0.1.8

type TagRoleAttachmentArray []TagRoleAttachmentInput

func (TagRoleAttachmentArray) ElementType added in v0.1.8

func (TagRoleAttachmentArray) ElementType() reflect.Type

func (TagRoleAttachmentArray) ToTagRoleAttachmentArrayOutput added in v0.1.8

func (i TagRoleAttachmentArray) ToTagRoleAttachmentArrayOutput() TagRoleAttachmentArrayOutput

func (TagRoleAttachmentArray) ToTagRoleAttachmentArrayOutputWithContext added in v0.1.8

func (i TagRoleAttachmentArray) ToTagRoleAttachmentArrayOutputWithContext(ctx context.Context) TagRoleAttachmentArrayOutput

type TagRoleAttachmentArrayInput added in v0.1.8

type TagRoleAttachmentArrayInput interface {
	pulumi.Input

	ToTagRoleAttachmentArrayOutput() TagRoleAttachmentArrayOutput
	ToTagRoleAttachmentArrayOutputWithContext(context.Context) TagRoleAttachmentArrayOutput
}

TagRoleAttachmentArrayInput is an input type that accepts TagRoleAttachmentArray and TagRoleAttachmentArrayOutput values. You can construct a concrete instance of `TagRoleAttachmentArrayInput` via:

TagRoleAttachmentArray{ TagRoleAttachmentArgs{...} }

type TagRoleAttachmentArrayOutput added in v0.1.8

type TagRoleAttachmentArrayOutput struct{ *pulumi.OutputState }

func (TagRoleAttachmentArrayOutput) ElementType added in v0.1.8

func (TagRoleAttachmentArrayOutput) Index added in v0.1.8

func (TagRoleAttachmentArrayOutput) ToTagRoleAttachmentArrayOutput added in v0.1.8

func (o TagRoleAttachmentArrayOutput) ToTagRoleAttachmentArrayOutput() TagRoleAttachmentArrayOutput

func (TagRoleAttachmentArrayOutput) ToTagRoleAttachmentArrayOutputWithContext added in v0.1.8

func (o TagRoleAttachmentArrayOutput) ToTagRoleAttachmentArrayOutputWithContext(ctx context.Context) TagRoleAttachmentArrayOutput

type TagRoleAttachmentInput added in v0.1.8

type TagRoleAttachmentInput interface {
	pulumi.Input

	ToTagRoleAttachmentOutput() TagRoleAttachmentOutput
	ToTagRoleAttachmentOutputWithContext(ctx context.Context) TagRoleAttachmentOutput
}

type TagRoleAttachmentMap added in v0.1.8

type TagRoleAttachmentMap map[string]TagRoleAttachmentInput

func (TagRoleAttachmentMap) ElementType added in v0.1.8

func (TagRoleAttachmentMap) ElementType() reflect.Type

func (TagRoleAttachmentMap) ToTagRoleAttachmentMapOutput added in v0.1.8

func (i TagRoleAttachmentMap) ToTagRoleAttachmentMapOutput() TagRoleAttachmentMapOutput

func (TagRoleAttachmentMap) ToTagRoleAttachmentMapOutputWithContext added in v0.1.8

func (i TagRoleAttachmentMap) ToTagRoleAttachmentMapOutputWithContext(ctx context.Context) TagRoleAttachmentMapOutput

type TagRoleAttachmentMapInput added in v0.1.8

type TagRoleAttachmentMapInput interface {
	pulumi.Input

	ToTagRoleAttachmentMapOutput() TagRoleAttachmentMapOutput
	ToTagRoleAttachmentMapOutputWithContext(context.Context) TagRoleAttachmentMapOutput
}

TagRoleAttachmentMapInput is an input type that accepts TagRoleAttachmentMap and TagRoleAttachmentMapOutput values. You can construct a concrete instance of `TagRoleAttachmentMapInput` via:

TagRoleAttachmentMap{ "key": TagRoleAttachmentArgs{...} }

type TagRoleAttachmentMapOutput added in v0.1.8

type TagRoleAttachmentMapOutput struct{ *pulumi.OutputState }

func (TagRoleAttachmentMapOutput) ElementType added in v0.1.8

func (TagRoleAttachmentMapOutput) ElementType() reflect.Type

func (TagRoleAttachmentMapOutput) MapIndex added in v0.1.8

func (TagRoleAttachmentMapOutput) ToTagRoleAttachmentMapOutput added in v0.1.8

func (o TagRoleAttachmentMapOutput) ToTagRoleAttachmentMapOutput() TagRoleAttachmentMapOutput

func (TagRoleAttachmentMapOutput) ToTagRoleAttachmentMapOutputWithContext added in v0.1.8

func (o TagRoleAttachmentMapOutput) ToTagRoleAttachmentMapOutputWithContext(ctx context.Context) TagRoleAttachmentMapOutput

type TagRoleAttachmentOutput added in v0.1.8

type TagRoleAttachmentOutput struct{ *pulumi.OutputState }

func (TagRoleAttachmentOutput) ElementType added in v0.1.8

func (TagRoleAttachmentOutput) ElementType() reflect.Type

func (TagRoleAttachmentOutput) RoleId added in v0.1.8

Character ID, at least one input with the character name.

func (TagRoleAttachmentOutput) RoleName added in v0.1.8

Character name, at least one input with the character ID.

func (TagRoleAttachmentOutput) Tags added in v0.1.8

Label.

func (TagRoleAttachmentOutput) ToTagRoleAttachmentOutput added in v0.1.8

func (o TagRoleAttachmentOutput) ToTagRoleAttachmentOutput() TagRoleAttachmentOutput

func (TagRoleAttachmentOutput) ToTagRoleAttachmentOutputWithContext added in v0.1.8

func (o TagRoleAttachmentOutput) ToTagRoleAttachmentOutputWithContext(ctx context.Context) TagRoleAttachmentOutput

type TagRoleAttachmentState added in v0.1.8

type TagRoleAttachmentState struct {
	// Character ID, at least one input with the character name.
	RoleId pulumi.StringPtrInput
	// Character name, at least one input with the character ID.
	RoleName pulumi.StringPtrInput
	// Label.
	Tags TagRoleAttachmentTagArrayInput
}

func (TagRoleAttachmentState) ElementType added in v0.1.8

func (TagRoleAttachmentState) ElementType() reflect.Type

type TagRoleAttachmentTag added in v0.1.8

type TagRoleAttachmentTag struct {
	// Label.
	Key string `pulumi:"key"`
	// Label.
	Value string `pulumi:"value"`
}

type TagRoleAttachmentTagArgs added in v0.1.8

type TagRoleAttachmentTagArgs struct {
	// Label.
	Key pulumi.StringInput `pulumi:"key"`
	// Label.
	Value pulumi.StringInput `pulumi:"value"`
}

func (TagRoleAttachmentTagArgs) ElementType added in v0.1.8

func (TagRoleAttachmentTagArgs) ElementType() reflect.Type

func (TagRoleAttachmentTagArgs) ToTagRoleAttachmentTagOutput added in v0.1.8

func (i TagRoleAttachmentTagArgs) ToTagRoleAttachmentTagOutput() TagRoleAttachmentTagOutput

func (TagRoleAttachmentTagArgs) ToTagRoleAttachmentTagOutputWithContext added in v0.1.8

func (i TagRoleAttachmentTagArgs) ToTagRoleAttachmentTagOutputWithContext(ctx context.Context) TagRoleAttachmentTagOutput

type TagRoleAttachmentTagArray added in v0.1.8

type TagRoleAttachmentTagArray []TagRoleAttachmentTagInput

func (TagRoleAttachmentTagArray) ElementType added in v0.1.8

func (TagRoleAttachmentTagArray) ElementType() reflect.Type

func (TagRoleAttachmentTagArray) ToTagRoleAttachmentTagArrayOutput added in v0.1.8

func (i TagRoleAttachmentTagArray) ToTagRoleAttachmentTagArrayOutput() TagRoleAttachmentTagArrayOutput

func (TagRoleAttachmentTagArray) ToTagRoleAttachmentTagArrayOutputWithContext added in v0.1.8

func (i TagRoleAttachmentTagArray) ToTagRoleAttachmentTagArrayOutputWithContext(ctx context.Context) TagRoleAttachmentTagArrayOutput

type TagRoleAttachmentTagArrayInput added in v0.1.8

type TagRoleAttachmentTagArrayInput interface {
	pulumi.Input

	ToTagRoleAttachmentTagArrayOutput() TagRoleAttachmentTagArrayOutput
	ToTagRoleAttachmentTagArrayOutputWithContext(context.Context) TagRoleAttachmentTagArrayOutput
}

TagRoleAttachmentTagArrayInput is an input type that accepts TagRoleAttachmentTagArray and TagRoleAttachmentTagArrayOutput values. You can construct a concrete instance of `TagRoleAttachmentTagArrayInput` via:

TagRoleAttachmentTagArray{ TagRoleAttachmentTagArgs{...} }

type TagRoleAttachmentTagArrayOutput added in v0.1.8

type TagRoleAttachmentTagArrayOutput struct{ *pulumi.OutputState }

func (TagRoleAttachmentTagArrayOutput) ElementType added in v0.1.8

func (TagRoleAttachmentTagArrayOutput) Index added in v0.1.8

func (TagRoleAttachmentTagArrayOutput) ToTagRoleAttachmentTagArrayOutput added in v0.1.8

func (o TagRoleAttachmentTagArrayOutput) ToTagRoleAttachmentTagArrayOutput() TagRoleAttachmentTagArrayOutput

func (TagRoleAttachmentTagArrayOutput) ToTagRoleAttachmentTagArrayOutputWithContext added in v0.1.8

func (o TagRoleAttachmentTagArrayOutput) ToTagRoleAttachmentTagArrayOutputWithContext(ctx context.Context) TagRoleAttachmentTagArrayOutput

type TagRoleAttachmentTagInput added in v0.1.8

type TagRoleAttachmentTagInput interface {
	pulumi.Input

	ToTagRoleAttachmentTagOutput() TagRoleAttachmentTagOutput
	ToTagRoleAttachmentTagOutputWithContext(context.Context) TagRoleAttachmentTagOutput
}

TagRoleAttachmentTagInput is an input type that accepts TagRoleAttachmentTagArgs and TagRoleAttachmentTagOutput values. You can construct a concrete instance of `TagRoleAttachmentTagInput` via:

TagRoleAttachmentTagArgs{...}

type TagRoleAttachmentTagOutput added in v0.1.8

type TagRoleAttachmentTagOutput struct{ *pulumi.OutputState }

func (TagRoleAttachmentTagOutput) ElementType added in v0.1.8

func (TagRoleAttachmentTagOutput) ElementType() reflect.Type

func (TagRoleAttachmentTagOutput) Key added in v0.1.8

Label.

func (TagRoleAttachmentTagOutput) ToTagRoleAttachmentTagOutput added in v0.1.8

func (o TagRoleAttachmentTagOutput) ToTagRoleAttachmentTagOutput() TagRoleAttachmentTagOutput

func (TagRoleAttachmentTagOutput) ToTagRoleAttachmentTagOutputWithContext added in v0.1.8

func (o TagRoleAttachmentTagOutput) ToTagRoleAttachmentTagOutputWithContext(ctx context.Context) TagRoleAttachmentTagOutput

func (TagRoleAttachmentTagOutput) Value added in v0.1.8

Label.

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("tf_user_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 UserPermissionBoundaryAttachment added in v0.1.8

type UserPermissionBoundaryAttachment struct {
	pulumi.CustomResourceState

	// Policy ID.
	PolicyId pulumi.IntOutput `pulumi:"policyId"`
	// Sub account Uin.
	TargetUin pulumi.IntOutput `pulumi:"targetUin"`
}

Provides a resource to create a cam userPermissionBoundary

## 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.NewUserPermissionBoundaryAttachment(ctx, "userPermissionBoundary", &Cam.UserPermissionBoundaryAttachmentArgs{
			PolicyId:  pulumi.Int(151113272),
			TargetUin: pulumi.Int(100032767426),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

cam user_permission_boundary can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Cam/userPermissionBoundaryAttachment:UserPermissionBoundaryAttachment user_permission_boundary user_permission_boundary_id

```

func GetUserPermissionBoundaryAttachment added in v0.1.8

func GetUserPermissionBoundaryAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *UserPermissionBoundaryAttachmentState, opts ...pulumi.ResourceOption) (*UserPermissionBoundaryAttachment, error)

GetUserPermissionBoundaryAttachment gets an existing UserPermissionBoundaryAttachment 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 NewUserPermissionBoundaryAttachment added in v0.1.8

func NewUserPermissionBoundaryAttachment(ctx *pulumi.Context,
	name string, args *UserPermissionBoundaryAttachmentArgs, opts ...pulumi.ResourceOption) (*UserPermissionBoundaryAttachment, error)

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

func (*UserPermissionBoundaryAttachment) ElementType added in v0.1.8

func (*UserPermissionBoundaryAttachment) ToUserPermissionBoundaryAttachmentOutput added in v0.1.8

func (i *UserPermissionBoundaryAttachment) ToUserPermissionBoundaryAttachmentOutput() UserPermissionBoundaryAttachmentOutput

func (*UserPermissionBoundaryAttachment) ToUserPermissionBoundaryAttachmentOutputWithContext added in v0.1.8

func (i *UserPermissionBoundaryAttachment) ToUserPermissionBoundaryAttachmentOutputWithContext(ctx context.Context) UserPermissionBoundaryAttachmentOutput

type UserPermissionBoundaryAttachmentArgs added in v0.1.8

type UserPermissionBoundaryAttachmentArgs struct {
	// Policy ID.
	PolicyId pulumi.IntInput
	// Sub account Uin.
	TargetUin pulumi.IntInput
}

The set of arguments for constructing a UserPermissionBoundaryAttachment resource.

func (UserPermissionBoundaryAttachmentArgs) ElementType added in v0.1.8

type UserPermissionBoundaryAttachmentArray added in v0.1.8

type UserPermissionBoundaryAttachmentArray []UserPermissionBoundaryAttachmentInput

func (UserPermissionBoundaryAttachmentArray) ElementType added in v0.1.8

func (UserPermissionBoundaryAttachmentArray) ToUserPermissionBoundaryAttachmentArrayOutput added in v0.1.8

func (i UserPermissionBoundaryAttachmentArray) ToUserPermissionBoundaryAttachmentArrayOutput() UserPermissionBoundaryAttachmentArrayOutput

func (UserPermissionBoundaryAttachmentArray) ToUserPermissionBoundaryAttachmentArrayOutputWithContext added in v0.1.8

func (i UserPermissionBoundaryAttachmentArray) ToUserPermissionBoundaryAttachmentArrayOutputWithContext(ctx context.Context) UserPermissionBoundaryAttachmentArrayOutput

type UserPermissionBoundaryAttachmentArrayInput added in v0.1.8

type UserPermissionBoundaryAttachmentArrayInput interface {
	pulumi.Input

	ToUserPermissionBoundaryAttachmentArrayOutput() UserPermissionBoundaryAttachmentArrayOutput
	ToUserPermissionBoundaryAttachmentArrayOutputWithContext(context.Context) UserPermissionBoundaryAttachmentArrayOutput
}

UserPermissionBoundaryAttachmentArrayInput is an input type that accepts UserPermissionBoundaryAttachmentArray and UserPermissionBoundaryAttachmentArrayOutput values. You can construct a concrete instance of `UserPermissionBoundaryAttachmentArrayInput` via:

UserPermissionBoundaryAttachmentArray{ UserPermissionBoundaryAttachmentArgs{...} }

type UserPermissionBoundaryAttachmentArrayOutput added in v0.1.8

type UserPermissionBoundaryAttachmentArrayOutput struct{ *pulumi.OutputState }

func (UserPermissionBoundaryAttachmentArrayOutput) ElementType added in v0.1.8

func (UserPermissionBoundaryAttachmentArrayOutput) Index added in v0.1.8

func (UserPermissionBoundaryAttachmentArrayOutput) ToUserPermissionBoundaryAttachmentArrayOutput added in v0.1.8

func (o UserPermissionBoundaryAttachmentArrayOutput) ToUserPermissionBoundaryAttachmentArrayOutput() UserPermissionBoundaryAttachmentArrayOutput

func (UserPermissionBoundaryAttachmentArrayOutput) ToUserPermissionBoundaryAttachmentArrayOutputWithContext added in v0.1.8

func (o UserPermissionBoundaryAttachmentArrayOutput) ToUserPermissionBoundaryAttachmentArrayOutputWithContext(ctx context.Context) UserPermissionBoundaryAttachmentArrayOutput

type UserPermissionBoundaryAttachmentInput added in v0.1.8

type UserPermissionBoundaryAttachmentInput interface {
	pulumi.Input

	ToUserPermissionBoundaryAttachmentOutput() UserPermissionBoundaryAttachmentOutput
	ToUserPermissionBoundaryAttachmentOutputWithContext(ctx context.Context) UserPermissionBoundaryAttachmentOutput
}

type UserPermissionBoundaryAttachmentMap added in v0.1.8

type UserPermissionBoundaryAttachmentMap map[string]UserPermissionBoundaryAttachmentInput

func (UserPermissionBoundaryAttachmentMap) ElementType added in v0.1.8

func (UserPermissionBoundaryAttachmentMap) ToUserPermissionBoundaryAttachmentMapOutput added in v0.1.8

func (i UserPermissionBoundaryAttachmentMap) ToUserPermissionBoundaryAttachmentMapOutput() UserPermissionBoundaryAttachmentMapOutput

func (UserPermissionBoundaryAttachmentMap) ToUserPermissionBoundaryAttachmentMapOutputWithContext added in v0.1.8

func (i UserPermissionBoundaryAttachmentMap) ToUserPermissionBoundaryAttachmentMapOutputWithContext(ctx context.Context) UserPermissionBoundaryAttachmentMapOutput

type UserPermissionBoundaryAttachmentMapInput added in v0.1.8

type UserPermissionBoundaryAttachmentMapInput interface {
	pulumi.Input

	ToUserPermissionBoundaryAttachmentMapOutput() UserPermissionBoundaryAttachmentMapOutput
	ToUserPermissionBoundaryAttachmentMapOutputWithContext(context.Context) UserPermissionBoundaryAttachmentMapOutput
}

UserPermissionBoundaryAttachmentMapInput is an input type that accepts UserPermissionBoundaryAttachmentMap and UserPermissionBoundaryAttachmentMapOutput values. You can construct a concrete instance of `UserPermissionBoundaryAttachmentMapInput` via:

UserPermissionBoundaryAttachmentMap{ "key": UserPermissionBoundaryAttachmentArgs{...} }

type UserPermissionBoundaryAttachmentMapOutput added in v0.1.8

type UserPermissionBoundaryAttachmentMapOutput struct{ *pulumi.OutputState }

func (UserPermissionBoundaryAttachmentMapOutput) ElementType added in v0.1.8

func (UserPermissionBoundaryAttachmentMapOutput) MapIndex added in v0.1.8

func (UserPermissionBoundaryAttachmentMapOutput) ToUserPermissionBoundaryAttachmentMapOutput added in v0.1.8

func (o UserPermissionBoundaryAttachmentMapOutput) ToUserPermissionBoundaryAttachmentMapOutput() UserPermissionBoundaryAttachmentMapOutput

func (UserPermissionBoundaryAttachmentMapOutput) ToUserPermissionBoundaryAttachmentMapOutputWithContext added in v0.1.8

func (o UserPermissionBoundaryAttachmentMapOutput) ToUserPermissionBoundaryAttachmentMapOutputWithContext(ctx context.Context) UserPermissionBoundaryAttachmentMapOutput

type UserPermissionBoundaryAttachmentOutput added in v0.1.8

type UserPermissionBoundaryAttachmentOutput struct{ *pulumi.OutputState }

func (UserPermissionBoundaryAttachmentOutput) ElementType added in v0.1.8

func (UserPermissionBoundaryAttachmentOutput) PolicyId added in v0.1.8

Policy ID.

func (UserPermissionBoundaryAttachmentOutput) TargetUin added in v0.1.8

Sub account Uin.

func (UserPermissionBoundaryAttachmentOutput) ToUserPermissionBoundaryAttachmentOutput added in v0.1.8

func (o UserPermissionBoundaryAttachmentOutput) ToUserPermissionBoundaryAttachmentOutput() UserPermissionBoundaryAttachmentOutput

func (UserPermissionBoundaryAttachmentOutput) ToUserPermissionBoundaryAttachmentOutputWithContext added in v0.1.8

func (o UserPermissionBoundaryAttachmentOutput) ToUserPermissionBoundaryAttachmentOutputWithContext(ctx context.Context) UserPermissionBoundaryAttachmentOutput

type UserPermissionBoundaryAttachmentState added in v0.1.8

type UserPermissionBoundaryAttachmentState struct {
	// Policy ID.
	PolicyId pulumi.IntPtrInput
	// Sub account Uin.
	TargetUin pulumi.IntPtrInput
}

func (UserPermissionBoundaryAttachmentState) ElementType added in v0.1.8

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.

## 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 UserSamlConfig added in v0.1.3

type UserSamlConfig struct {
	pulumi.CustomResourceState

	// The path used to save the samlMetadat file.
	MetadataDocumentFile pulumi.StringPtrOutput `pulumi:"metadataDocumentFile"`
	// SAML metadata document, xml format, support string content or file path.
	SamlMetadataDocument pulumi.StringOutput `pulumi:"samlMetadataDocument"`
	// Status: `0`: not set, `11`: enabled, `2`: disabled.
	Status pulumi.IntOutput `pulumi:"status"`
}

Provides a resource to create a cam userSamlConfig

## 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.NewUserSamlConfig(ctx, "userSamlConfig", &Cam.UserSamlConfigArgs{
			SamlMetadataDocument: pulumi.String("./metadataDocument.xml"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

cam user_saml_config can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Cam/userSamlConfig:UserSamlConfig user_saml_config user_id

```

func GetUserSamlConfig added in v0.1.3

func GetUserSamlConfig(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *UserSamlConfigState, opts ...pulumi.ResourceOption) (*UserSamlConfig, error)

GetUserSamlConfig gets an existing UserSamlConfig 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 NewUserSamlConfig added in v0.1.3

func NewUserSamlConfig(ctx *pulumi.Context,
	name string, args *UserSamlConfigArgs, opts ...pulumi.ResourceOption) (*UserSamlConfig, error)

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

func (*UserSamlConfig) ElementType added in v0.1.3

func (*UserSamlConfig) ElementType() reflect.Type

func (*UserSamlConfig) ToUserSamlConfigOutput added in v0.1.3

func (i *UserSamlConfig) ToUserSamlConfigOutput() UserSamlConfigOutput

func (*UserSamlConfig) ToUserSamlConfigOutputWithContext added in v0.1.3

func (i *UserSamlConfig) ToUserSamlConfigOutputWithContext(ctx context.Context) UserSamlConfigOutput

type UserSamlConfigArgs added in v0.1.3

type UserSamlConfigArgs struct {
	// The path used to save the samlMetadat file.
	MetadataDocumentFile pulumi.StringPtrInput
	// SAML metadata document, xml format, support string content or file path.
	SamlMetadataDocument pulumi.StringInput
}

The set of arguments for constructing a UserSamlConfig resource.

func (UserSamlConfigArgs) ElementType added in v0.1.3

func (UserSamlConfigArgs) ElementType() reflect.Type

type UserSamlConfigArray added in v0.1.3

type UserSamlConfigArray []UserSamlConfigInput

func (UserSamlConfigArray) ElementType added in v0.1.3

func (UserSamlConfigArray) ElementType() reflect.Type

func (UserSamlConfigArray) ToUserSamlConfigArrayOutput added in v0.1.3

func (i UserSamlConfigArray) ToUserSamlConfigArrayOutput() UserSamlConfigArrayOutput

func (UserSamlConfigArray) ToUserSamlConfigArrayOutputWithContext added in v0.1.3

func (i UserSamlConfigArray) ToUserSamlConfigArrayOutputWithContext(ctx context.Context) UserSamlConfigArrayOutput

type UserSamlConfigArrayInput added in v0.1.3

type UserSamlConfigArrayInput interface {
	pulumi.Input

	ToUserSamlConfigArrayOutput() UserSamlConfigArrayOutput
	ToUserSamlConfigArrayOutputWithContext(context.Context) UserSamlConfigArrayOutput
}

UserSamlConfigArrayInput is an input type that accepts UserSamlConfigArray and UserSamlConfigArrayOutput values. You can construct a concrete instance of `UserSamlConfigArrayInput` via:

UserSamlConfigArray{ UserSamlConfigArgs{...} }

type UserSamlConfigArrayOutput added in v0.1.3

type UserSamlConfigArrayOutput struct{ *pulumi.OutputState }

func (UserSamlConfigArrayOutput) ElementType added in v0.1.3

func (UserSamlConfigArrayOutput) ElementType() reflect.Type

func (UserSamlConfigArrayOutput) Index added in v0.1.3

func (UserSamlConfigArrayOutput) ToUserSamlConfigArrayOutput added in v0.1.3

func (o UserSamlConfigArrayOutput) ToUserSamlConfigArrayOutput() UserSamlConfigArrayOutput

func (UserSamlConfigArrayOutput) ToUserSamlConfigArrayOutputWithContext added in v0.1.3

func (o UserSamlConfigArrayOutput) ToUserSamlConfigArrayOutputWithContext(ctx context.Context) UserSamlConfigArrayOutput

type UserSamlConfigInput added in v0.1.3

type UserSamlConfigInput interface {
	pulumi.Input

	ToUserSamlConfigOutput() UserSamlConfigOutput
	ToUserSamlConfigOutputWithContext(ctx context.Context) UserSamlConfigOutput
}

type UserSamlConfigMap added in v0.1.3

type UserSamlConfigMap map[string]UserSamlConfigInput

func (UserSamlConfigMap) ElementType added in v0.1.3

func (UserSamlConfigMap) ElementType() reflect.Type

func (UserSamlConfigMap) ToUserSamlConfigMapOutput added in v0.1.3

func (i UserSamlConfigMap) ToUserSamlConfigMapOutput() UserSamlConfigMapOutput

func (UserSamlConfigMap) ToUserSamlConfigMapOutputWithContext added in v0.1.3

func (i UserSamlConfigMap) ToUserSamlConfigMapOutputWithContext(ctx context.Context) UserSamlConfigMapOutput

type UserSamlConfigMapInput added in v0.1.3

type UserSamlConfigMapInput interface {
	pulumi.Input

	ToUserSamlConfigMapOutput() UserSamlConfigMapOutput
	ToUserSamlConfigMapOutputWithContext(context.Context) UserSamlConfigMapOutput
}

UserSamlConfigMapInput is an input type that accepts UserSamlConfigMap and UserSamlConfigMapOutput values. You can construct a concrete instance of `UserSamlConfigMapInput` via:

UserSamlConfigMap{ "key": UserSamlConfigArgs{...} }

type UserSamlConfigMapOutput added in v0.1.3

type UserSamlConfigMapOutput struct{ *pulumi.OutputState }

func (UserSamlConfigMapOutput) ElementType added in v0.1.3

func (UserSamlConfigMapOutput) ElementType() reflect.Type

func (UserSamlConfigMapOutput) MapIndex added in v0.1.3

func (UserSamlConfigMapOutput) ToUserSamlConfigMapOutput added in v0.1.3

func (o UserSamlConfigMapOutput) ToUserSamlConfigMapOutput() UserSamlConfigMapOutput

func (UserSamlConfigMapOutput) ToUserSamlConfigMapOutputWithContext added in v0.1.3

func (o UserSamlConfigMapOutput) ToUserSamlConfigMapOutputWithContext(ctx context.Context) UserSamlConfigMapOutput

type UserSamlConfigOutput added in v0.1.3

type UserSamlConfigOutput struct{ *pulumi.OutputState }

func (UserSamlConfigOutput) ElementType added in v0.1.3

func (UserSamlConfigOutput) ElementType() reflect.Type

func (UserSamlConfigOutput) MetadataDocumentFile added in v0.1.3

func (o UserSamlConfigOutput) MetadataDocumentFile() pulumi.StringPtrOutput

The path used to save the samlMetadat file.

func (UserSamlConfigOutput) SamlMetadataDocument added in v0.1.3

func (o UserSamlConfigOutput) SamlMetadataDocument() pulumi.StringOutput

SAML metadata document, xml format, support string content or file path.

func (UserSamlConfigOutput) Status added in v0.1.3

Status: `0`: not set, `11`: enabled, `2`: disabled.

func (UserSamlConfigOutput) ToUserSamlConfigOutput added in v0.1.3

func (o UserSamlConfigOutput) ToUserSamlConfigOutput() UserSamlConfigOutput

func (UserSamlConfigOutput) ToUserSamlConfigOutputWithContext added in v0.1.3

func (o UserSamlConfigOutput) ToUserSamlConfigOutputWithContext(ctx context.Context) UserSamlConfigOutput

type UserSamlConfigState added in v0.1.3

type UserSamlConfigState struct {
	// The path used to save the samlMetadat file.
	MetadataDocumentFile pulumi.StringPtrInput
	// SAML metadata document, xml format, support string content or file path.
	SamlMetadataDocument pulumi.StringPtrInput
	// Status: `0`: not set, `11`: enabled, `2`: disabled.
	Status pulumi.IntPtrInput
}

func (UserSamlConfigState) ElementType added in v0.1.3

func (UserSamlConfigState) 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