Documentation ¶
Index ¶
- Constants
- type AccessKey
- type AddUserRequest
- type AddUserResponse
- type AddUserToGroupRequest
- type AddUserToGroupResponse
- type AttachEntityOfPolicy
- type AttachGroupPolicyRequest
- type AttachGroupPolicyResponse
- type AttachPolicyInfo
- type AttachRolePolicyRequest
- type AttachRolePolicyResponse
- type AttachUserPolicyRequest
- type AttachUserPolicyResponse
- type AttachedPolicyOfRole
- type AttachedUserPolicy
- type AttachedUserPolicyGroupInfo
- type Client
- func (c *Client) AddUser(request *AddUserRequest) (response *AddUserResponse, err error)
- func (c *Client) AddUserToGroup(request *AddUserToGroupRequest) (response *AddUserToGroupResponse, err error)
- func (c *Client) AddUserToGroupWithContext(ctx context.Context, request *AddUserToGroupRequest) (response *AddUserToGroupResponse, err error)
- func (c *Client) AddUserWithContext(ctx context.Context, request *AddUserRequest) (response *AddUserResponse, err error)
- func (c *Client) AttachGroupPolicy(request *AttachGroupPolicyRequest) (response *AttachGroupPolicyResponse, err error)
- func (c *Client) AttachGroupPolicyWithContext(ctx context.Context, request *AttachGroupPolicyRequest) (response *AttachGroupPolicyResponse, err error)
- func (c *Client) AttachRolePolicy(request *AttachRolePolicyRequest) (response *AttachRolePolicyResponse, err error)
- func (c *Client) AttachRolePolicyWithContext(ctx context.Context, request *AttachRolePolicyRequest) (response *AttachRolePolicyResponse, err error)
- func (c *Client) AttachUserPolicy(request *AttachUserPolicyRequest) (response *AttachUserPolicyResponse, err error)
- func (c *Client) AttachUserPolicyWithContext(ctx context.Context, request *AttachUserPolicyRequest) (response *AttachUserPolicyResponse, err error)
- func (c *Client) ConsumeCustomMFAToken(request *ConsumeCustomMFATokenRequest) (response *ConsumeCustomMFATokenResponse, err error)
- func (c *Client) ConsumeCustomMFATokenWithContext(ctx context.Context, request *ConsumeCustomMFATokenRequest) (response *ConsumeCustomMFATokenResponse, err error)
- func (c *Client) CreateGroup(request *CreateGroupRequest) (response *CreateGroupResponse, err error)
- func (c *Client) CreateGroupWithContext(ctx context.Context, request *CreateGroupRequest) (response *CreateGroupResponse, err error)
- func (c *Client) CreatePolicy(request *CreatePolicyRequest) (response *CreatePolicyResponse, err error)
- func (c *Client) CreatePolicyVersion(request *CreatePolicyVersionRequest) (response *CreatePolicyVersionResponse, err error)
- func (c *Client) CreatePolicyVersionWithContext(ctx context.Context, request *CreatePolicyVersionRequest) (response *CreatePolicyVersionResponse, err error)
- func (c *Client) CreatePolicyWithContext(ctx context.Context, request *CreatePolicyRequest) (response *CreatePolicyResponse, err error)
- func (c *Client) CreateRole(request *CreateRoleRequest) (response *CreateRoleResponse, err error)
- func (c *Client) CreateRoleWithContext(ctx context.Context, request *CreateRoleRequest) (response *CreateRoleResponse, err error)
- func (c *Client) CreateSAMLProvider(request *CreateSAMLProviderRequest) (response *CreateSAMLProviderResponse, err error)
- func (c *Client) CreateSAMLProviderWithContext(ctx context.Context, request *CreateSAMLProviderRequest) (response *CreateSAMLProviderResponse, err error)
- func (c *Client) CreateServiceLinkedRole(request *CreateServiceLinkedRoleRequest) (response *CreateServiceLinkedRoleResponse, err error)
- func (c *Client) CreateServiceLinkedRoleWithContext(ctx context.Context, request *CreateServiceLinkedRoleRequest) (response *CreateServiceLinkedRoleResponse, err error)
- func (c *Client) CreateUserSAMLConfig(request *CreateUserSAMLConfigRequest) (response *CreateUserSAMLConfigResponse, err error)
- func (c *Client) CreateUserSAMLConfigWithContext(ctx context.Context, request *CreateUserSAMLConfigRequest) (response *CreateUserSAMLConfigResponse, err error)
- func (c *Client) DeleteGroup(request *DeleteGroupRequest) (response *DeleteGroupResponse, err error)
- func (c *Client) DeleteGroupWithContext(ctx context.Context, request *DeleteGroupRequest) (response *DeleteGroupResponse, err error)
- func (c *Client) DeletePolicy(request *DeletePolicyRequest) (response *DeletePolicyResponse, err error)
- func (c *Client) DeletePolicyVersion(request *DeletePolicyVersionRequest) (response *DeletePolicyVersionResponse, err error)
- func (c *Client) DeletePolicyVersionWithContext(ctx context.Context, request *DeletePolicyVersionRequest) (response *DeletePolicyVersionResponse, err error)
- func (c *Client) DeletePolicyWithContext(ctx context.Context, request *DeletePolicyRequest) (response *DeletePolicyResponse, err error)
- func (c *Client) DeleteRole(request *DeleteRoleRequest) (response *DeleteRoleResponse, err error)
- func (c *Client) DeleteRolePermissionsBoundary(request *DeleteRolePermissionsBoundaryRequest) (response *DeleteRolePermissionsBoundaryResponse, err error)
- func (c *Client) DeleteRolePermissionsBoundaryWithContext(ctx context.Context, request *DeleteRolePermissionsBoundaryRequest) (response *DeleteRolePermissionsBoundaryResponse, err error)
- func (c *Client) DeleteRoleWithContext(ctx context.Context, request *DeleteRoleRequest) (response *DeleteRoleResponse, err error)
- func (c *Client) DeleteSAMLProvider(request *DeleteSAMLProviderRequest) (response *DeleteSAMLProviderResponse, err error)
- func (c *Client) DeleteSAMLProviderWithContext(ctx context.Context, request *DeleteSAMLProviderRequest) (response *DeleteSAMLProviderResponse, err error)
- func (c *Client) DeleteServiceLinkedRole(request *DeleteServiceLinkedRoleRequest) (response *DeleteServiceLinkedRoleResponse, err error)
- func (c *Client) DeleteServiceLinkedRoleWithContext(ctx context.Context, request *DeleteServiceLinkedRoleRequest) (response *DeleteServiceLinkedRoleResponse, err error)
- func (c *Client) DeleteUser(request *DeleteUserRequest) (response *DeleteUserResponse, err error)
- func (c *Client) DeleteUserPermissionsBoundary(request *DeleteUserPermissionsBoundaryRequest) (response *DeleteUserPermissionsBoundaryResponse, err error)
- func (c *Client) DeleteUserPermissionsBoundaryWithContext(ctx context.Context, request *DeleteUserPermissionsBoundaryRequest) (response *DeleteUserPermissionsBoundaryResponse, err error)
- func (c *Client) DeleteUserWithContext(ctx context.Context, request *DeleteUserRequest) (response *DeleteUserResponse, err error)
- func (c *Client) DescribeRoleList(request *DescribeRoleListRequest) (response *DescribeRoleListResponse, err error)
- func (c *Client) DescribeRoleListWithContext(ctx context.Context, request *DescribeRoleListRequest) (response *DescribeRoleListResponse, err error)
- func (c *Client) DescribeSafeAuthFlag(request *DescribeSafeAuthFlagRequest) (response *DescribeSafeAuthFlagResponse, err error)
- func (c *Client) DescribeSafeAuthFlagColl(request *DescribeSafeAuthFlagCollRequest) (response *DescribeSafeAuthFlagCollResponse, err error)
- func (c *Client) DescribeSafeAuthFlagCollWithContext(ctx context.Context, request *DescribeSafeAuthFlagCollRequest) (response *DescribeSafeAuthFlagCollResponse, err error)
- func (c *Client) DescribeSafeAuthFlagIntl(request *DescribeSafeAuthFlagIntlRequest) (response *DescribeSafeAuthFlagIntlResponse, err error)
- func (c *Client) DescribeSafeAuthFlagIntlWithContext(ctx context.Context, request *DescribeSafeAuthFlagIntlRequest) (response *DescribeSafeAuthFlagIntlResponse, err error)
- func (c *Client) DescribeSafeAuthFlagWithContext(ctx context.Context, request *DescribeSafeAuthFlagRequest) (response *DescribeSafeAuthFlagResponse, err error)
- func (c *Client) DescribeSubAccounts(request *DescribeSubAccountsRequest) (response *DescribeSubAccountsResponse, err error)
- func (c *Client) DescribeSubAccountsWithContext(ctx context.Context, request *DescribeSubAccountsRequest) (response *DescribeSubAccountsResponse, err error)
- func (c *Client) DescribeUserSAMLConfig(request *DescribeUserSAMLConfigRequest) (response *DescribeUserSAMLConfigResponse, err error)
- func (c *Client) DescribeUserSAMLConfigWithContext(ctx context.Context, request *DescribeUserSAMLConfigRequest) (response *DescribeUserSAMLConfigResponse, err error)
- func (c *Client) DetachGroupPolicy(request *DetachGroupPolicyRequest) (response *DetachGroupPolicyResponse, err error)
- func (c *Client) DetachGroupPolicyWithContext(ctx context.Context, request *DetachGroupPolicyRequest) (response *DetachGroupPolicyResponse, err error)
- func (c *Client) DetachRolePolicy(request *DetachRolePolicyRequest) (response *DetachRolePolicyResponse, err error)
- func (c *Client) DetachRolePolicyWithContext(ctx context.Context, request *DetachRolePolicyRequest) (response *DetachRolePolicyResponse, err error)
- func (c *Client) DetachUserPolicy(request *DetachUserPolicyRequest) (response *DetachUserPolicyResponse, err error)
- func (c *Client) DetachUserPolicyWithContext(ctx context.Context, request *DetachUserPolicyRequest) (response *DetachUserPolicyResponse, err error)
- func (c *Client) GetAccountSummary(request *GetAccountSummaryRequest) (response *GetAccountSummaryResponse, err error)
- func (c *Client) GetAccountSummaryWithContext(ctx context.Context, request *GetAccountSummaryRequest) (response *GetAccountSummaryResponse, err error)
- func (c *Client) GetCustomMFATokenInfo(request *GetCustomMFATokenInfoRequest) (response *GetCustomMFATokenInfoResponse, err error)
- func (c *Client) GetCustomMFATokenInfoWithContext(ctx context.Context, request *GetCustomMFATokenInfoRequest) (response *GetCustomMFATokenInfoResponse, err error)
- func (c *Client) GetGroup(request *GetGroupRequest) (response *GetGroupResponse, err error)
- func (c *Client) GetGroupWithContext(ctx context.Context, request *GetGroupRequest) (response *GetGroupResponse, err error)
- func (c *Client) GetPolicy(request *GetPolicyRequest) (response *GetPolicyResponse, err error)
- func (c *Client) GetPolicyVersion(request *GetPolicyVersionRequest) (response *GetPolicyVersionResponse, err error)
- func (c *Client) GetPolicyVersionWithContext(ctx context.Context, request *GetPolicyVersionRequest) (response *GetPolicyVersionResponse, err error)
- func (c *Client) GetPolicyWithContext(ctx context.Context, request *GetPolicyRequest) (response *GetPolicyResponse, err error)
- func (c *Client) GetRole(request *GetRoleRequest) (response *GetRoleResponse, err error)
- func (c *Client) GetRoleWithContext(ctx context.Context, request *GetRoleRequest) (response *GetRoleResponse, err error)
- func (c *Client) GetSAMLProvider(request *GetSAMLProviderRequest) (response *GetSAMLProviderResponse, err error)
- func (c *Client) GetSAMLProviderWithContext(ctx context.Context, request *GetSAMLProviderRequest) (response *GetSAMLProviderResponse, err error)
- func (c *Client) GetSecurityLastUsed(request *GetSecurityLastUsedRequest) (response *GetSecurityLastUsedResponse, err error)
- func (c *Client) GetSecurityLastUsedWithContext(ctx context.Context, request *GetSecurityLastUsedRequest) (response *GetSecurityLastUsedResponse, err error)
- func (c *Client) GetServiceLinkedRoleDeletionStatus(request *GetServiceLinkedRoleDeletionStatusRequest) (response *GetServiceLinkedRoleDeletionStatusResponse, err error)
- func (c *Client) GetServiceLinkedRoleDeletionStatusWithContext(ctx context.Context, request *GetServiceLinkedRoleDeletionStatusRequest) (response *GetServiceLinkedRoleDeletionStatusResponse, err error)
- func (c *Client) GetUser(request *GetUserRequest) (response *GetUserResponse, err error)
- func (c *Client) GetUserAppId(request *GetUserAppIdRequest) (response *GetUserAppIdResponse, err error)
- func (c *Client) GetUserAppIdWithContext(ctx context.Context, request *GetUserAppIdRequest) (response *GetUserAppIdResponse, err error)
- func (c *Client) GetUserWithContext(ctx context.Context, request *GetUserRequest) (response *GetUserResponse, err error)
- func (c *Client) ListAccessKeys(request *ListAccessKeysRequest) (response *ListAccessKeysResponse, err error)
- func (c *Client) ListAccessKeysWithContext(ctx context.Context, request *ListAccessKeysRequest) (response *ListAccessKeysResponse, err error)
- func (c *Client) ListAttachedGroupPolicies(request *ListAttachedGroupPoliciesRequest) (response *ListAttachedGroupPoliciesResponse, err error)
- func (c *Client) ListAttachedGroupPoliciesWithContext(ctx context.Context, request *ListAttachedGroupPoliciesRequest) (response *ListAttachedGroupPoliciesResponse, err error)
- func (c *Client) ListAttachedRolePolicies(request *ListAttachedRolePoliciesRequest) (response *ListAttachedRolePoliciesResponse, err error)
- func (c *Client) ListAttachedRolePoliciesWithContext(ctx context.Context, request *ListAttachedRolePoliciesRequest) (response *ListAttachedRolePoliciesResponse, err error)
- func (c *Client) ListAttachedUserAllPolicies(request *ListAttachedUserAllPoliciesRequest) (response *ListAttachedUserAllPoliciesResponse, err error)
- func (c *Client) ListAttachedUserAllPoliciesWithContext(ctx context.Context, request *ListAttachedUserAllPoliciesRequest) (response *ListAttachedUserAllPoliciesResponse, err error)
- func (c *Client) ListAttachedUserPolicies(request *ListAttachedUserPoliciesRequest) (response *ListAttachedUserPoliciesResponse, err error)
- func (c *Client) ListAttachedUserPoliciesWithContext(ctx context.Context, request *ListAttachedUserPoliciesRequest) (response *ListAttachedUserPoliciesResponse, err error)
- func (c *Client) ListCollaborators(request *ListCollaboratorsRequest) (response *ListCollaboratorsResponse, err error)
- func (c *Client) ListCollaboratorsWithContext(ctx context.Context, request *ListCollaboratorsRequest) (response *ListCollaboratorsResponse, err error)
- func (c *Client) ListEntitiesForPolicy(request *ListEntitiesForPolicyRequest) (response *ListEntitiesForPolicyResponse, err error)
- func (c *Client) ListEntitiesForPolicyWithContext(ctx context.Context, request *ListEntitiesForPolicyRequest) (response *ListEntitiesForPolicyResponse, err error)
- func (c *Client) ListGroups(request *ListGroupsRequest) (response *ListGroupsResponse, err error)
- func (c *Client) ListGroupsForUser(request *ListGroupsForUserRequest) (response *ListGroupsForUserResponse, err error)
- func (c *Client) ListGroupsForUserWithContext(ctx context.Context, request *ListGroupsForUserRequest) (response *ListGroupsForUserResponse, err error)
- func (c *Client) ListGroupsWithContext(ctx context.Context, request *ListGroupsRequest) (response *ListGroupsResponse, err error)
- func (c *Client) ListPolicies(request *ListPoliciesRequest) (response *ListPoliciesResponse, err error)
- func (c *Client) ListPoliciesWithContext(ctx context.Context, request *ListPoliciesRequest) (response *ListPoliciesResponse, err error)
- func (c *Client) ListPolicyVersions(request *ListPolicyVersionsRequest) (response *ListPolicyVersionsResponse, err error)
- func (c *Client) ListPolicyVersionsWithContext(ctx context.Context, request *ListPolicyVersionsRequest) (response *ListPolicyVersionsResponse, err error)
- func (c *Client) ListSAMLProviders(request *ListSAMLProvidersRequest) (response *ListSAMLProvidersResponse, err error)
- func (c *Client) ListSAMLProvidersWithContext(ctx context.Context, request *ListSAMLProvidersRequest) (response *ListSAMLProvidersResponse, err error)
- func (c *Client) ListUsers(request *ListUsersRequest) (response *ListUsersResponse, err error)
- func (c *Client) ListUsersForGroup(request *ListUsersForGroupRequest) (response *ListUsersForGroupResponse, err error)
- func (c *Client) ListUsersForGroupWithContext(ctx context.Context, request *ListUsersForGroupRequest) (response *ListUsersForGroupResponse, err error)
- func (c *Client) ListUsersWithContext(ctx context.Context, request *ListUsersRequest) (response *ListUsersResponse, err error)
- func (c *Client) PutRolePermissionsBoundary(request *PutRolePermissionsBoundaryRequest) (response *PutRolePermissionsBoundaryResponse, err error)
- func (c *Client) PutRolePermissionsBoundaryWithContext(ctx context.Context, request *PutRolePermissionsBoundaryRequest) (response *PutRolePermissionsBoundaryResponse, err error)
- func (c *Client) PutUserPermissionsBoundary(request *PutUserPermissionsBoundaryRequest) (response *PutUserPermissionsBoundaryResponse, err error)
- func (c *Client) PutUserPermissionsBoundaryWithContext(ctx context.Context, request *PutUserPermissionsBoundaryRequest) (response *PutUserPermissionsBoundaryResponse, err error)
- func (c *Client) RemoveUserFromGroup(request *RemoveUserFromGroupRequest) (response *RemoveUserFromGroupResponse, err error)
- func (c *Client) RemoveUserFromGroupWithContext(ctx context.Context, request *RemoveUserFromGroupRequest) (response *RemoveUserFromGroupResponse, err error)
- func (c *Client) SetDefaultPolicyVersion(request *SetDefaultPolicyVersionRequest) (response *SetDefaultPolicyVersionResponse, err error)
- func (c *Client) SetDefaultPolicyVersionWithContext(ctx context.Context, request *SetDefaultPolicyVersionRequest) (response *SetDefaultPolicyVersionResponse, err error)
- func (c *Client) SetMfaFlag(request *SetMfaFlagRequest) (response *SetMfaFlagResponse, err error)
- func (c *Client) SetMfaFlagWithContext(ctx context.Context, request *SetMfaFlagRequest) (response *SetMfaFlagResponse, err error)
- func (c *Client) UpdateAssumeRolePolicy(request *UpdateAssumeRolePolicyRequest) (response *UpdateAssumeRolePolicyResponse, err error)
- func (c *Client) UpdateAssumeRolePolicyWithContext(ctx context.Context, request *UpdateAssumeRolePolicyRequest) (response *UpdateAssumeRolePolicyResponse, err error)
- func (c *Client) UpdateGroup(request *UpdateGroupRequest) (response *UpdateGroupResponse, err error)
- func (c *Client) UpdateGroupWithContext(ctx context.Context, request *UpdateGroupRequest) (response *UpdateGroupResponse, err error)
- func (c *Client) UpdatePolicy(request *UpdatePolicyRequest) (response *UpdatePolicyResponse, err error)
- func (c *Client) UpdatePolicyWithContext(ctx context.Context, request *UpdatePolicyRequest) (response *UpdatePolicyResponse, err error)
- func (c *Client) UpdateRoleConsoleLogin(request *UpdateRoleConsoleLoginRequest) (response *UpdateRoleConsoleLoginResponse, err error)
- func (c *Client) UpdateRoleConsoleLoginWithContext(ctx context.Context, request *UpdateRoleConsoleLoginRequest) (response *UpdateRoleConsoleLoginResponse, err error)
- func (c *Client) UpdateRoleDescription(request *UpdateRoleDescriptionRequest) (response *UpdateRoleDescriptionResponse, err error)
- func (c *Client) UpdateRoleDescriptionWithContext(ctx context.Context, request *UpdateRoleDescriptionRequest) (response *UpdateRoleDescriptionResponse, err error)
- func (c *Client) UpdateSAMLProvider(request *UpdateSAMLProviderRequest) (response *UpdateSAMLProviderResponse, err error)
- func (c *Client) UpdateSAMLProviderWithContext(ctx context.Context, request *UpdateSAMLProviderRequest) (response *UpdateSAMLProviderResponse, err error)
- func (c *Client) UpdateUser(request *UpdateUserRequest) (response *UpdateUserResponse, err error)
- func (c *Client) UpdateUserSAMLConfig(request *UpdateUserSAMLConfigRequest) (response *UpdateUserSAMLConfigResponse, err error)
- func (c *Client) UpdateUserSAMLConfigWithContext(ctx context.Context, request *UpdateUserSAMLConfigRequest) (response *UpdateUserSAMLConfigResponse, err error)
- func (c *Client) UpdateUserWithContext(ctx context.Context, request *UpdateUserRequest) (response *UpdateUserResponse, err error)
- type ConsumeCustomMFATokenRequest
- type ConsumeCustomMFATokenResponse
- type CreateGroupRequest
- type CreateGroupResponse
- type CreatePolicyRequest
- type CreatePolicyResponse
- type CreatePolicyVersionRequest
- type CreatePolicyVersionResponse
- type CreateRoleRequest
- type CreateRoleResponse
- type CreateSAMLProviderRequest
- type CreateSAMLProviderResponse
- type CreateServiceLinkedRoleRequest
- type CreateServiceLinkedRoleResponse
- type CreateUserSAMLConfigRequest
- type CreateUserSAMLConfigResponse
- type DeleteGroupRequest
- type DeleteGroupResponse
- type DeletePolicyRequest
- type DeletePolicyResponse
- type DeletePolicyVersionRequest
- type DeletePolicyVersionResponse
- type DeleteRolePermissionsBoundaryRequest
- type DeleteRolePermissionsBoundaryResponse
- type DeleteRoleRequest
- type DeleteRoleResponse
- type DeleteSAMLProviderRequest
- type DeleteSAMLProviderResponse
- type DeleteServiceLinkedRoleRequest
- type DeleteServiceLinkedRoleResponse
- type DeleteUserPermissionsBoundaryRequest
- type DeleteUserPermissionsBoundaryResponse
- type DeleteUserRequest
- type DeleteUserResponse
- type DescribeRoleListRequest
- type DescribeRoleListResponse
- type DescribeSafeAuthFlagCollRequest
- type DescribeSafeAuthFlagCollResponse
- type DescribeSafeAuthFlagIntlRequest
- type DescribeSafeAuthFlagIntlResponse
- type DescribeSafeAuthFlagRequest
- type DescribeSafeAuthFlagResponse
- type DescribeSubAccountsRequest
- type DescribeSubAccountsResponse
- type DescribeUserSAMLConfigRequest
- type DescribeUserSAMLConfigResponse
- type DetachGroupPolicyRequest
- type DetachGroupPolicyResponse
- type DetachRolePolicyRequest
- type DetachRolePolicyResponse
- type DetachUserPolicyRequest
- type DetachUserPolicyResponse
- type GetAccountSummaryRequest
- type GetAccountSummaryResponse
- type GetCustomMFATokenInfoRequest
- type GetCustomMFATokenInfoResponse
- type GetGroupRequest
- type GetGroupResponse
- type GetPolicyRequest
- type GetPolicyResponse
- type GetPolicyVersionRequest
- type GetPolicyVersionResponse
- type GetRoleRequest
- type GetRoleResponse
- type GetSAMLProviderRequest
- type GetSAMLProviderResponse
- type GetSecurityLastUsedRequest
- type GetSecurityLastUsedResponse
- type GetServiceLinkedRoleDeletionStatusRequest
- type GetServiceLinkedRoleDeletionStatusResponse
- type GetUserAppIdRequest
- type GetUserAppIdResponse
- type GetUserRequest
- type GetUserResponse
- type GroupIdOfUidInfo
- type GroupInfo
- type GroupMemberInfo
- type ListAccessKeysRequest
- type ListAccessKeysResponse
- type ListAttachedGroupPoliciesRequest
- type ListAttachedGroupPoliciesResponse
- type ListAttachedRolePoliciesRequest
- type ListAttachedRolePoliciesResponse
- type ListAttachedUserAllPoliciesRequest
- type ListAttachedUserAllPoliciesResponse
- type ListAttachedUserPoliciesRequest
- type ListAttachedUserPoliciesResponse
- type ListCollaboratorsRequest
- type ListCollaboratorsResponse
- type ListEntitiesForPolicyRequest
- type ListEntitiesForPolicyResponse
- type ListGroupsForUserRequest
- type ListGroupsForUserResponse
- type ListGroupsRequest
- type ListGroupsResponse
- type ListPoliciesRequest
- type ListPoliciesResponse
- type ListPolicyVersionsRequest
- type ListPolicyVersionsResponse
- type ListSAMLProvidersRequest
- type ListSAMLProvidersResponse
- type ListUsersForGroupRequest
- type ListUsersForGroupResponse
- type ListUsersRequest
- type ListUsersResponse
- type LoginActionFlag
- type LoginActionFlagIntl
- type LoginActionMfaFlag
- type OffsiteFlag
- type PolicyVersionDetail
- type PolicyVersionItem
- type PutRolePermissionsBoundaryRequest
- type PutRolePermissionsBoundaryResponse
- type PutUserPermissionsBoundaryRequest
- type PutUserPermissionsBoundaryResponse
- type RemoveUserFromGroupRequest
- type RemoveUserFromGroupResponse
- type RoleInfo
- type SAMLProviderInfo
- type SecretIdLastUsed
- type SetDefaultPolicyVersionRequest
- type SetDefaultPolicyVersionResponse
- type SetMfaFlagRequest
- type SetMfaFlagResponse
- type StrategyInfo
- type SubAccountInfo
- type SubAccountUser
- type UpdateAssumeRolePolicyRequest
- type UpdateAssumeRolePolicyResponse
- type UpdateGroupRequest
- type UpdateGroupResponse
- type UpdatePolicyRequest
- type UpdatePolicyResponse
- type UpdateRoleConsoleLoginRequest
- type UpdateRoleConsoleLoginResponse
- type UpdateRoleDescriptionRequest
- type UpdateRoleDescriptionResponse
- type UpdateSAMLProviderRequest
- type UpdateSAMLProviderResponse
- type UpdateUserRequest
- type UpdateUserResponse
- type UpdateUserSAMLConfigRequest
- type UpdateUserSAMLConfigResponse
Constants ¶
const ( // No permission. AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // Operation failed. FAILEDOPERATION = "FailedOperation" // An error occurred while manipulating the access key. FAILEDOPERATION_ACCESSKEY = "FailedOperation.Accesskey" // The number of user policies has exceeded the limit. FAILEDOPERATION_POLICYFULL = "FailedOperation.PolicyFull" // The policy name specified by the `PolicyName` field already exists. FAILEDOPERATION_POLICYNAMEINUSE = "FailedOperation.PolicyNameInUse" // The policy version is already the default policy version. FAILEDOPERATION_POLICYVERSIONALREADYDEFAULT = "FailedOperation.PolicyVersionAlreadyDefault" // The number of policy versions has reached the upper limit. FAILEDOPERATION_POLICYVERSIONFULL = "FailedOperation.PolicyVersionFull" // No mobile number is bound to the account FAILEDOPERATION_USERNOTBINDPHONE = "FailedOperation.UserNotBindPhone" // No WeChat Account is bound to the account FAILEDOPERATION_USERNOTBINDWECHAT = "FailedOperation.UserNotBindWechat" // User does not have permission. FAILEDOPERATION_USERUNBINDNOPERMISSION = "FailedOperation.UserUnbindNoPermission" // Internal error. INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" // Incorrect parameter. INVALIDPARAMETER = "InvalidParameter" // `Action` field of policy document invalid. INVALIDPARAMETER_ACTIONERROR = "InvalidParameter.ActionError" // The action in the policy syntax does not exist. INVALIDPARAMETER_ACTIONMISS = "InvalidParameter.ActionMiss" // The action in the policy syntax does not exist. INVALIDPARAMETER_ACTIONNOTEXIST = "InvalidParameter.ActionNotExist" // The action service in the policy syntax does not exist. INVALIDPARAMETER_ACTIONSERVICENOTEXIST = "InvalidParameter.ActionServiceNotExist" // Limit on number of authorization object associated policies in the `principal` field reached. INVALIDPARAMETER_ATTACHMENTFULL = "InvalidParameter.AttachmentFull" // The condition content in the policy syntax is incorrect. INVALIDPARAMETER_CONDITIONCONTENTERROR = "InvalidParameter.ConditionContentError" // `condition` field of policy document invalid. INVALIDPARAMETER_CONDITIONERROR = "InvalidParameter.ConditionError" // The condition operator in the policy syntax is incorrect. INVALIDPARAMETER_CONDITIONTYPEERROR = "InvalidParameter.ConditionTypeError" // The task does not exist. INVALIDPARAMETER_DELETIONTASKNOTEXIST = "InvalidParameter.DeletionTaskNotExist" // The input parameter `description` cannot exceed 300 bytes in length. INVALIDPARAMETER_DESCRIPTIONLENGTHOVERLIMIT = "InvalidParameter.DescriptionLengthOverlimit" // `Effect` field of policy document invalid. INVALIDPARAMETER_EFFECTERROR = "InvalidParameter.EffectError" // `EntityFilter` field invalid. INVALIDPARAMETER_ENTITYFILTERERROR = "InvalidParameter.EntityFilterError" // Limit on number of user groups reached. INVALIDPARAMETER_GROUPFULL = "InvalidParameter.GroupFull" // `GroupId` field invalid. INVALIDPARAMETER_GROUPIDERROR = "InvalidParameter.GroupIdError" // User Group name repeated. INVALIDPARAMETER_GROUPNAMEINUSE = "InvalidParameter.GroupNameInUse" // User Group does not exist. INVALIDPARAMETER_GROUPNOTEXIST = "InvalidParameter.GroupNotExist" // Limit on number of sub-users in the user group reached. INVALIDPARAMETER_GROUPUSERFULL = "InvalidParameter.GroupUserFull" // Identity provider name already in use. INVALIDPARAMETER_IDENTITYNAMEINUSE = "InvalidParameter.IdentityNameInUse" // `Keyword` field invalid. INVALIDPARAMETER_KEYWORDERROR = "InvalidParameter.KeywordError" // Multi-factor Token verification failed. INVALIDPARAMETER_MFATOKENERROR = "InvalidParameter.MFATokenError" // CAM does not support the resource type specified in the policy document. INVALIDPARAMETER_NOTSUPPORTPRODUCT = "InvalidParameter.NotSupportProduct" // There were too many entities in one operation. INVALIDPARAMETER_OPERATEENTITIESOVERLIMIT = "InvalidParameter.OperateEntitiesOverLimit" // Invalid input parameter. INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" // Password incompatible with user safety settings. INVALIDPARAMETER_PASSWORDVIOLATEDRULES = "InvalidParameter.PasswordViolatedRules" // `PolicyDocument` field invalid. INVALIDPARAMETER_POLICYDOCUMENTERROR = "InvalidParameter.PolicyDocumentError" // `PolicyDocument` field exceeds length restriction. INVALIDPARAMETER_POLICYDOCUMENTLENGTHOVERLIMIT = "InvalidParameter.PolicyDocumentLengthOverLimit" // Input parameter `PolicyId` invalid. INVALIDPARAMETER_POLICYIDERROR = "InvalidParameter.PolicyIdError" // Policy ID does not exist. INVALIDPARAMETER_POLICYIDNOTEXIST = "InvalidParameter.PolicyIdNotExist" // `PolicyName` field invalid. INVALIDPARAMETER_POLICYNAMEERROR = "InvalidParameter.PolicyNameError" // The policy version does not exist. INVALIDPARAMETER_POLICYVERSIONNOTEXISTS = "InvalidParameter.PolicyVersionNotExists" // `principal` field of policy document invalid. INVALIDPARAMETER_PRINCIPALERROR = "InvalidParameter.PrincipalError" // Cross-site access is not supported for this role entity. INVALIDPARAMETER_PRINCIPALQCSCROSSERROR = "InvalidParameter.PrincipalQcsCrossError" // Incorrect `PrincipalQcsc`. INVALIDPARAMETER_PRINCIPALQCSERROR = "InvalidParameter.PrincipalQcsError" // `PrincipalQcs` does not exist. INVALIDPARAMETER_PRINCIPALQCSNOTEXIST = "InvalidParameter.PrincipalQcsNotExist" // `PrincipalService` does not exist. INVALIDPARAMETER_PRINCIPALSERVICENOTEXIST = "InvalidParameter.PrincipalServiceNotExist" // The resource context in the policy syntax is incorrect. INVALIDPARAMETER_RESOURCECONTENTERROR = "InvalidParameter.ResourceContentError" // `Resource` field of policy document invalid. INVALIDPARAMETER_RESOURCEERROR = "InvalidParameter.ResourceError" // The resource project in the policy syntax is incorrect. INVALIDPARAMETER_RESOURCEPROJECTERROR = "InvalidParameter.ResourceProjectError" // Incorrect resource `QCS`. INVALIDPARAMETER_RESOURCEQCSERROR = "InvalidParameter.ResourceQcsError" // The resource region in the policy syntax is incorrect. INVALIDPARAMETER_RESOURCEREGIONERROR = "InvalidParameter.ResourceRegionError" // The resource service in the policy syntax does not exist. INVALIDPARAMETER_RESOURCESERVICENOTEXIST = "InvalidParameter.ResourceServiceNotExist" // The resource root account in the policy syntax is incorrect. INVALIDPARAMETER_RESOURCEUINERROR = "InvalidParameter.ResourceUinError" // Limit on number of roles reached. INVALIDPARAMETER_ROLEFULL = "InvalidParameter.RoleFull" // Role name invalid. INVALIDPARAMETER_ROLENAMEERROR = "InvalidParameter.RoleNameError" // A role with the same name already exists. INVALIDPARAMETER_ROLENAMEINUSE = "InvalidParameter.RoleNameInUse" // Role does not exist. INVALIDPARAMETER_ROLENOTEXIST = "InvalidParameter.RoleNotExist" // `Scope` field invalid. INVALIDPARAMETER_SCOPEERROR = "InvalidParameter.ScopeError" // Service policies cannot be used for permission boundaries. INVALIDPARAMETER_SERVICELINKEDPOLICYCANTINPERMISSIONBOUNDARY = "InvalidParameter.ServiceLinkedPolicyCantInPermissionBoundary" // Permission boundaries cannot be used for service roles. INVALIDPARAMETER_SERVICELINKEDROLECANTUSEPERMISSIONBOUNDARY = "InvalidParameter.ServiceLinkedRoleCantUsePermissionBoundary" // `ServiceType` field invalid. INVALIDPARAMETER_SERVICETYPEERROR = "InvalidParameter.ServiceTypeError" // `Statement` field of policy document invalid. INVALIDPARAMETER_STATEMENTERROR = "InvalidParameter.StatementError" // Limit on number of sub-accounts reached. INVALIDPARAMETER_SUBUSERFULL = "InvalidParameter.SubUserFull" // Sub-user name repeated. INVALIDPARAMETER_SUBUSERNAMEINUSE = "InvalidParameter.SubUserNameInUse" // `Uin` field invalid. INVALIDPARAMETER_UINERROR = "InvalidParameter.UinError" // Limit on number of user groups joined by a sub-user reached. INVALIDPARAMETER_USERGROUPFULL = "InvalidParameter.UserGroupFull" // Invalid username. INVALIDPARAMETER_USERNAMEILLEGAL = "InvalidParameter.UserNameIllegal" // User object does not exist INVALIDPARAMETER_USERNOTEXIST = "InvalidParameter.UserNotExist" // A user’s UIN and UID cannot be left empty at the same time. INVALIDPARAMETER_USERUINANDUINNOTALLNULL = "InvalidParameter.UserUinAndUinNotAllNull" // `Version` field of policy document invalid. INVALIDPARAMETER_VERSIONERROR = "InvalidParameter.VersionError" // Identity provider metadata document error. INVALIDPARAMETERVALUE_METADATAERROR = "InvalidParameterValue.MetadataError" // Identity provider name error. INVALIDPARAMETERVALUE_NAMEERROR = "InvalidParameterValue.NameError" // Limit on number of identity providers reached. LIMITEXCEEDED_IDENTITYFULL = "LimitExceeded.IdentityFull" // Each account can have up to two `AccessKey`. OPERATIONDENIED_ACCESSKEYOVERLIMIT = "OperationDenied.AccessKeyOverLimit" // There are undeleted API keys. OPERATIONDENIED_HAVEKEYS = "OperationDenied.HaveKeys" // The sub-user is not allowed to use the root account key. OPERATIONDENIED_SUBUIN = "OperationDenied.SubUin" // The access key does not match the account. OPERATIONDENIED_UINNOTMATCH = "OperationDenied.UinNotMatch" // The frequency limit of creating sub-users has been reached. REQUESTLIMITEXCEEDED_CREATEUSER = "RequestLimitExceeded.CreateUser" // The user account limit has been reached. REQUESTLIMITEXCEEDED_UINLIMITEXCEEDED = "RequestLimitExceeded.UinLimitExceeded" // User group does not exist. RESOURCENOTFOUND_GROUPNOTEXIST = "ResourceNotFound.GroupNotExist" // Identity provider does not exist. RESOURCENOTFOUND_IDENTITYNOTEXIST = "ResourceNotFound.IdentityNotExist" // Resource does not exist. RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" // Resources specified by `PolicyId` does not exist. RESOURCENOTFOUND_POLICYIDNOTFOUND = "ResourceNotFound.PolicyIdNotFound" // User does not exist. RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist" // Unauthorized operation. UNAUTHORIZEDOPERATION = "UnauthorizedOperation" // User do not have the authorization to delete API keys. UNAUTHORIZEDOPERATION_DELETEAPIKEY = "UnauthorizedOperation.DeleteApiKey" )
const APIVersion = "2019-01-16"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessKey ¶
type AccessKey struct { // Access key ID AccessKeyId *string `json:"AccessKeyId,omitempty" name:"AccessKeyId"` // Key status. Valid values: Active (activated), Inactive (not activated) Status *string `json:"Status,omitempty" name:"Status"` // Creation time CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` }
type AddUserRequest ¶
type AddUserRequest struct { *tchttp.BaseRequest // Sub-user username Name *string `json:"Name,omitempty" name:"Name"` // Sub-user remarks Remark *string `json:"Remark,omitempty" name:"Remark"` // Whether or not the sub-user is allowed to log in to the console. 0: No; 1: Yes. ConsoleLogin *uint64 `json:"ConsoleLogin,omitempty" name:"ConsoleLogin"` // Whether or not to generate keys for sub-users. 0: No; 1: Yes. UseApi *uint64 `json:"UseApi,omitempty" name:"UseApi"` // Sub-user's console login password. If no password rules have been set, the password must have a minimum of 8 characters containing uppercase letters, lowercase letters, digits, and special characters by default. This parameter will be valid only when the sub-user is allowed to log in to the console. If it is not specified and console login is allowed, the system will automatically generate a random 32-character password that contains uppercase letters, lowercase letters, digits, and special characters. Password *string `json:"Password,omitempty" name:"Password"` // If the sub-user needs to reset their password when they next log in to the console. 0: No; 1: Yes. NeedResetPassword *uint64 `json:"NeedResetPassword,omitempty" name:"NeedResetPassword"` // Mobile number PhoneNum *string `json:"PhoneNum,omitempty" name:"PhoneNum"` // Country/Area Code CountryCode *string `json:"CountryCode,omitempty" name:"CountryCode"` // Email Email *string `json:"Email,omitempty" name:"Email"` }
func NewAddUserRequest ¶
func NewAddUserRequest() (request *AddUserRequest)
func (*AddUserRequest) FromJsonString ¶
func (r *AddUserRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddUserRequest) ToJsonString ¶
func (r *AddUserRequest) ToJsonString() string
type AddUserResponse ¶
type AddUserResponse struct { *tchttp.BaseResponse Response *struct { // Sub-user UIN Uin *uint64 `json:"Uin,omitempty" name:"Uin"` // Sub-user username Name *string `json:"Name,omitempty" name:"Name"` // If the combination of input parameters indicates that a random password should be generated, the generated password is returned Password *string `json:"Password,omitempty" name:"Password"` // Sub-user's key ID SecretId *string `json:"SecretId,omitempty" name:"SecretId"` // Sub-user's secret key SecretKey *string `json:"SecretKey,omitempty" name:"SecretKey"` // Sub-user UID Uid *uint64 `json:"Uid,omitempty" name:"Uid"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewAddUserResponse ¶
func NewAddUserResponse() (response *AddUserResponse)
func (*AddUserResponse) FromJsonString ¶
func (r *AddUserResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddUserResponse) ToJsonString ¶
func (r *AddUserResponse) ToJsonString() string
type AddUserToGroupRequest ¶
type AddUserToGroupRequest struct { *tchttp.BaseRequest // The association between the user group ID and the sub-user UIN/UID. Info []*GroupIdOfUidInfo `json:"Info,omitempty" name:"Info"` }
func NewAddUserToGroupRequest ¶
func NewAddUserToGroupRequest() (request *AddUserToGroupRequest)
func (*AddUserToGroupRequest) FromJsonString ¶
func (r *AddUserToGroupRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddUserToGroupRequest) ToJsonString ¶
func (r *AddUserToGroupRequest) ToJsonString() string
type AddUserToGroupResponse ¶
type AddUserToGroupResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewAddUserToGroupResponse ¶
func NewAddUserToGroupResponse() (response *AddUserToGroupResponse)
func (*AddUserToGroupResponse) FromJsonString ¶
func (r *AddUserToGroupResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddUserToGroupResponse) ToJsonString ¶
func (r *AddUserToGroupResponse) ToJsonString() string
type AttachEntityOfPolicy ¶
type AttachEntityOfPolicy struct { // Entity ID Id *string `json:"Id,omitempty" name:"Id"` // Entity Name // Note: This field may return null, indicating that no valid value was found. Name *string `json:"Name,omitempty" name:"Name"` // Entity UIN // Note: This field may return null, indicating that no valid value was found. Uin *uint64 `json:"Uin,omitempty" name:"Uin"` // Type of entity association. 1: Associate by users; 2: Associate by User Groups RelatedType *uint64 `json:"RelatedType,omitempty" name:"RelatedType"` // Policy association time // Note: this field may return `null`, indicating that no valid value was found. AttachmentTime *string `json:"AttachmentTime,omitempty" name:"AttachmentTime"` }
type AttachGroupPolicyRequest ¶
type AttachGroupPolicyRequest struct { *tchttp.BaseRequest // Policy ID PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"` // User Group ID AttachGroupId *uint64 `json:"AttachGroupId,omitempty" name:"AttachGroupId"` }
func NewAttachGroupPolicyRequest ¶
func NewAttachGroupPolicyRequest() (request *AttachGroupPolicyRequest)
func (*AttachGroupPolicyRequest) FromJsonString ¶
func (r *AttachGroupPolicyRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AttachGroupPolicyRequest) ToJsonString ¶
func (r *AttachGroupPolicyRequest) ToJsonString() string
type AttachGroupPolicyResponse ¶
type AttachGroupPolicyResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewAttachGroupPolicyResponse ¶
func NewAttachGroupPolicyResponse() (response *AttachGroupPolicyResponse)
func (*AttachGroupPolicyResponse) FromJsonString ¶
func (r *AttachGroupPolicyResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AttachGroupPolicyResponse) ToJsonString ¶
func (r *AttachGroupPolicyResponse) ToJsonString() string
type AttachPolicyInfo ¶
type AttachPolicyInfo struct { // Policy ID PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"` // Policy name // Note: This field may return null, indicating that no valid value was found. PolicyName *string `json:"PolicyName,omitempty" name:"PolicyName"` // Time created // Note: This field may return null, indicating that no valid value was found. AddTime *string `json:"AddTime,omitempty" name:"AddTime"` // How the policy was created: 1: Via console; 2: Via syntax // Note: This field may return null, indicating that no valid value was found. CreateMode *uint64 `json:"CreateMode,omitempty" name:"CreateMode"` // Valid values: `user` and `QCS` // Note: This field may return null, indicating that no valid value was found. PolicyType *string `json:"PolicyType,omitempty" name:"PolicyType"` // Policy remarks Remark *string `json:"Remark,omitempty" name:"Remark"` // Root account of the operator associating the policy // Note: this field may return null, indicating that no valid values can be obtained. OperateOwnerUin *string `json:"OperateOwnerUin,omitempty" name:"OperateOwnerUin"` // The ID of the account associating the policy. If `UinType` is 0, this indicates that this is a sub-account `UIN`. If `UinType` is 1, this indicates this is a role ID OperateUin *string `json:"OperateUin,omitempty" name:"OperateUin"` // If `UinType` is 0, `OperateUin` indicates that this is a sub-account `UIN`. If `UinType` is 1, `OperateUin` indicates that this is a role ID OperateUinType *uint64 `json:"OperateUinType,omitempty" name:"OperateUinType"` // Queries if the policy has been deactivated // Note: this field may return null, indicating that no valid values can be obtained. Deactived *uint64 `json:"Deactived,omitempty" name:"Deactived"` // List of deprecated products // Note: this field may return null, indicating that no valid values can be obtained. DeactivedDetail []*string `json:"DeactivedDetail,omitempty" name:"DeactivedDetail"` }
type AttachRolePolicyRequest ¶
type AttachRolePolicyRequest struct { *tchttp.BaseRequest // Policy ID. Either `PolicyId` or `PolicyName` must be entered PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"` // Role ID, used to specify a role. Input either `AttachRoleId` or `AttachRoleName` AttachRoleId *string `json:"AttachRoleId,omitempty" name:"AttachRoleId"` // Role name, used to specify a role. Input either `AttachRoleId` or `AttachRoleName` AttachRoleName *string `json:"AttachRoleName,omitempty" name:"AttachRoleName"` // Policy name. Either `PolicyId` or `PolicyName` must be entered PolicyName *string `json:"PolicyName,omitempty" name:"PolicyName"` }
func NewAttachRolePolicyRequest ¶
func NewAttachRolePolicyRequest() (request *AttachRolePolicyRequest)
func (*AttachRolePolicyRequest) FromJsonString ¶
func (r *AttachRolePolicyRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AttachRolePolicyRequest) ToJsonString ¶
func (r *AttachRolePolicyRequest) ToJsonString() string
type AttachRolePolicyResponse ¶
type AttachRolePolicyResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewAttachRolePolicyResponse ¶
func NewAttachRolePolicyResponse() (response *AttachRolePolicyResponse)
func (*AttachRolePolicyResponse) FromJsonString ¶
func (r *AttachRolePolicyResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AttachRolePolicyResponse) ToJsonString ¶
func (r *AttachRolePolicyResponse) ToJsonString() string
type AttachUserPolicyRequest ¶
type AttachUserPolicyRequest struct { *tchttp.BaseRequest // Policy ID PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"` // Sub-account UIN AttachUin *uint64 `json:"AttachUin,omitempty" name:"AttachUin"` }
func NewAttachUserPolicyRequest ¶
func NewAttachUserPolicyRequest() (request *AttachUserPolicyRequest)
func (*AttachUserPolicyRequest) FromJsonString ¶
func (r *AttachUserPolicyRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AttachUserPolicyRequest) ToJsonString ¶
func (r *AttachUserPolicyRequest) ToJsonString() string
type AttachUserPolicyResponse ¶
type AttachUserPolicyResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewAttachUserPolicyResponse ¶
func NewAttachUserPolicyResponse() (response *AttachUserPolicyResponse)
func (*AttachUserPolicyResponse) FromJsonString ¶
func (r *AttachUserPolicyResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AttachUserPolicyResponse) ToJsonString ¶
func (r *AttachUserPolicyResponse) ToJsonString() string
type AttachedPolicyOfRole ¶
type AttachedPolicyOfRole struct { // Policy ID PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"` // Policy name PolicyName *string `json:"PolicyName,omitempty" name:"PolicyName"` // Time of association AddTime *string `json:"AddTime,omitempty" name:"AddTime"` // Policy type. `User` indicates custom policy; `QCS` indicates preset policy // Note: This field may return null, indicating that no valid value was found. PolicyType *string `json:"PolicyType,omitempty" name:"PolicyType"` // Policy creation method. 1: indicates the policy was created based on product function or item permission; other values indicate the policy was created based on the policy syntax CreateMode *uint64 `json:"CreateMode,omitempty" name:"CreateMode"` // Whether the product has been deprecated (0: no; 1: yes) // Note: this field may return null, indicating that no valid values can be obtained. Deactived *uint64 `json:"Deactived,omitempty" name:"Deactived"` // List of deprecated products // Note: this field may return null, indicating that no valid values can be obtained. DeactivedDetail []*string `json:"DeactivedDetail,omitempty" name:"DeactivedDetail"` // Policy description // Note: this field may return null, indicating that no valid values can be obtained. Description *string `json:"Description,omitempty" name:"Description"` }
type AttachedUserPolicy ¶
type AttachedUserPolicy struct { // Policy ID. PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` // Policy name. PolicyName *string `json:"PolicyName,omitempty" name:"PolicyName"` // Policy description. Description *string `json:"Description,omitempty" name:"Description"` // Creation time. AddTime *string `json:"AddTime,omitempty" name:"AddTime"` // Policy type (`1`: custom policy; `2`: preset policy). StrategyType *string `json:"StrategyType,omitempty" name:"StrategyType"` // Creation mode (`1`: create by product feature or project permission; other values: create by policy syntax). CreateMode *string `json:"CreateMode,omitempty" name:"CreateMode"` // Information on policies inherited from the user group. // Note: this field may return `null`, indicating that no valid values can be obtained. Groups []*AttachedUserPolicyGroupInfo `json:"Groups,omitempty" name:"Groups"` // Whether the product has been deprecated (`0`: no; `1`: yes). // Note: this field may return `null`, indicating that no valid values can be obtained. Deactived *uint64 `json:"Deactived,omitempty" name:"Deactived"` // List of deprecated products. // Note: this field may return `null`, indicating that no valid values can be obtained. DeactivedDetail []*string `json:"DeactivedDetail,omitempty" name:"DeactivedDetail"` }
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) AddUser ¶
func (c *Client) AddUser(request *AddUserRequest) (response *AddUserResponse, err error)
AddUser This API is used to add sub-users.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_PASSWORDVIOLATEDRULES = "InvalidParameter.PasswordViolatedRules" INVALIDPARAMETER_SUBUSERFULL = "InvalidParameter.SubUserFull" INVALIDPARAMETER_SUBUSERNAMEINUSE = "InvalidParameter.SubUserNameInUse" INVALIDPARAMETER_USERNAMEILLEGAL = "InvalidParameter.UserNameIllegal" REQUESTLIMITEXCEEDED_CREATEUSER = "RequestLimitExceeded.CreateUser"
func (*Client) AddUserToGroup ¶
func (c *Client) AddUserToGroup(request *AddUserToGroupRequest) (response *AddUserToGroupResponse, err error)
AddUserToGroup This API is used to add users to a user group.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INVALIDPARAMETER_GROUPNOTEXIST = "InvalidParameter.GroupNotExist" INVALIDPARAMETER_GROUPUSERFULL = "InvalidParameter.GroupUserFull" INVALIDPARAMETER_USERGROUPFULL = "InvalidParameter.UserGroupFull" INVALIDPARAMETER_USERUINANDUINNOTALLNULL = "InvalidParameter.UserUinAndUinNotAllNull" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) AddUserToGroupWithContext ¶
func (c *Client) AddUserToGroupWithContext(ctx context.Context, request *AddUserToGroupRequest) (response *AddUserToGroupResponse, err error)
AddUserToGroup This API is used to add users to a user group.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INVALIDPARAMETER_GROUPNOTEXIST = "InvalidParameter.GroupNotExist" INVALIDPARAMETER_GROUPUSERFULL = "InvalidParameter.GroupUserFull" INVALIDPARAMETER_USERGROUPFULL = "InvalidParameter.UserGroupFull" INVALIDPARAMETER_USERUINANDUINNOTALLNULL = "InvalidParameter.UserUinAndUinNotAllNull" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) AddUserWithContext ¶
func (c *Client) AddUserWithContext(ctx context.Context, request *AddUserRequest) (response *AddUserResponse, err error)
AddUser This API is used to add sub-users.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_PASSWORDVIOLATEDRULES = "InvalidParameter.PasswordViolatedRules" INVALIDPARAMETER_SUBUSERFULL = "InvalidParameter.SubUserFull" INVALIDPARAMETER_SUBUSERNAMEINUSE = "InvalidParameter.SubUserNameInUse" INVALIDPARAMETER_USERNAMEILLEGAL = "InvalidParameter.UserNameIllegal" REQUESTLIMITEXCEEDED_CREATEUSER = "RequestLimitExceeded.CreateUser"
func (*Client) AttachGroupPolicy ¶
func (c *Client) AttachGroupPolicy(request *AttachGroupPolicyRequest) (response *AttachGroupPolicyResponse, err error)
AttachGroupPolicy This API (AttachGroupPolicy) is used to associate a policy with a user group.
error code that may be returned:
FAILEDOPERATION_POLICYFULL = "FailedOperation.PolicyFull" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_ATTACHMENTFULL = "InvalidParameter.AttachmentFull" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYIDERROR = "InvalidParameter.PolicyIdError" INVALIDPARAMETER_POLICYIDNOTEXIST = "InvalidParameter.PolicyIdNotExist" INVALIDPARAMETER_USERNOTEXIST = "InvalidParameter.UserNotExist" RESOURCENOTFOUND_GROUPNOTEXIST = "ResourceNotFound.GroupNotExist" RESOURCENOTFOUND_POLICYIDNOTFOUND = "ResourceNotFound.PolicyIdNotFound" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) AttachGroupPolicyWithContext ¶
func (c *Client) AttachGroupPolicyWithContext(ctx context.Context, request *AttachGroupPolicyRequest) (response *AttachGroupPolicyResponse, err error)
AttachGroupPolicy This API (AttachGroupPolicy) is used to associate a policy with a user group.
error code that may be returned:
FAILEDOPERATION_POLICYFULL = "FailedOperation.PolicyFull" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_ATTACHMENTFULL = "InvalidParameter.AttachmentFull" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYIDERROR = "InvalidParameter.PolicyIdError" INVALIDPARAMETER_POLICYIDNOTEXIST = "InvalidParameter.PolicyIdNotExist" INVALIDPARAMETER_USERNOTEXIST = "InvalidParameter.UserNotExist" RESOURCENOTFOUND_GROUPNOTEXIST = "ResourceNotFound.GroupNotExist" RESOURCENOTFOUND_POLICYIDNOTFOUND = "ResourceNotFound.PolicyIdNotFound" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) AttachRolePolicy ¶
func (c *Client) AttachRolePolicy(request *AttachRolePolicyRequest) (response *AttachRolePolicyResponse, err error)
AttachRolePolicy This API (AttachRolePolicy) is used to associate a policy with a role.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_ATTACHMENTFULL = "InvalidParameter.AttachmentFull" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYIDNOTEXIST = "InvalidParameter.PolicyIdNotExist" INVALIDPARAMETER_POLICYNAMEERROR = "InvalidParameter.PolicyNameError" INVALIDPARAMETER_ROLENOTEXIST = "InvalidParameter.RoleNotExist" INVALIDPARAMETER_VERSIONERROR = "InvalidParameter.VersionError"
func (*Client) AttachRolePolicyWithContext ¶
func (c *Client) AttachRolePolicyWithContext(ctx context.Context, request *AttachRolePolicyRequest) (response *AttachRolePolicyResponse, err error)
AttachRolePolicy This API (AttachRolePolicy) is used to associate a policy with a role.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_ATTACHMENTFULL = "InvalidParameter.AttachmentFull" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYIDNOTEXIST = "InvalidParameter.PolicyIdNotExist" INVALIDPARAMETER_POLICYNAMEERROR = "InvalidParameter.PolicyNameError" INVALIDPARAMETER_ROLENOTEXIST = "InvalidParameter.RoleNotExist" INVALIDPARAMETER_VERSIONERROR = "InvalidParameter.VersionError"
func (*Client) AttachUserPolicy ¶
func (c *Client) AttachUserPolicy(request *AttachUserPolicyRequest) (response *AttachUserPolicyResponse, err error)
AttachUserPolicy This API (AttachUserPolicy) is used to associates a policy with a user.
error code that may be returned:
FAILEDOPERATION_POLICYFULL = "FailedOperation.PolicyFull" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_ATTACHMENTFULL = "InvalidParameter.AttachmentFull" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYIDERROR = "InvalidParameter.PolicyIdError" INVALIDPARAMETER_POLICYIDNOTEXIST = "InvalidParameter.PolicyIdNotExist" INVALIDPARAMETER_USERNOTEXIST = "InvalidParameter.UserNotExist" RESOURCENOTFOUND_POLICYIDNOTFOUND = "ResourceNotFound.PolicyIdNotFound" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) AttachUserPolicyWithContext ¶
func (c *Client) AttachUserPolicyWithContext(ctx context.Context, request *AttachUserPolicyRequest) (response *AttachUserPolicyResponse, err error)
AttachUserPolicy This API (AttachUserPolicy) is used to associates a policy with a user.
error code that may be returned:
FAILEDOPERATION_POLICYFULL = "FailedOperation.PolicyFull" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_ATTACHMENTFULL = "InvalidParameter.AttachmentFull" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYIDERROR = "InvalidParameter.PolicyIdError" INVALIDPARAMETER_POLICYIDNOTEXIST = "InvalidParameter.PolicyIdNotExist" INVALIDPARAMETER_USERNOTEXIST = "InvalidParameter.UserNotExist" RESOURCENOTFOUND_POLICYIDNOTFOUND = "ResourceNotFound.PolicyIdNotFound" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) ConsumeCustomMFAToken ¶
func (c *Client) ConsumeCustomMFAToken(request *ConsumeCustomMFATokenRequest) (response *ConsumeCustomMFATokenResponse, err error)
ConsumeCustomMFAToken This API is used to verify a custom multi-factor Token.
error code that may be returned:
INVALIDPARAMETER_MFATOKENERROR = "InvalidParameter.MFATokenError"
func (*Client) ConsumeCustomMFATokenWithContext ¶
func (c *Client) ConsumeCustomMFATokenWithContext(ctx context.Context, request *ConsumeCustomMFATokenRequest) (response *ConsumeCustomMFATokenResponse, err error)
ConsumeCustomMFAToken This API is used to verify a custom multi-factor Token.
error code that may be returned:
INVALIDPARAMETER_MFATOKENERROR = "InvalidParameter.MFATokenError"
func (*Client) CreateGroup ¶
func (c *Client) CreateGroup(request *CreateGroupRequest) (response *CreateGroupResponse, err error)
CreateGroup This API is used to create a user group.
error code that may be returned:
INVALIDPARAMETER_GROUPFULL = "InvalidParameter.GroupFull" INVALIDPARAMETER_GROUPNAMEINUSE = "InvalidParameter.GroupNameInUse"
func (*Client) CreateGroupWithContext ¶
func (c *Client) CreateGroupWithContext(ctx context.Context, request *CreateGroupRequest) (response *CreateGroupResponse, err error)
CreateGroup This API is used to create a user group.
error code that may be returned:
INVALIDPARAMETER_GROUPFULL = "InvalidParameter.GroupFull" INVALIDPARAMETER_GROUPNAMEINUSE = "InvalidParameter.GroupNameInUse"
func (*Client) CreatePolicy ¶
func (c *Client) CreatePolicy(request *CreatePolicyRequest) (response *CreatePolicyResponse, err error)
CreatePolicy This API (CreatePolicy) is used to create a policy.
error code that may be returned:
FAILEDOPERATION_POLICYFULL = "FailedOperation.PolicyFull" FAILEDOPERATION_POLICYNAMEINUSE = "FailedOperation.PolicyNameInUse" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_ACTIONERROR = "InvalidParameter.ActionError" INVALIDPARAMETER_ACTIONMISS = "InvalidParameter.ActionMiss" INVALIDPARAMETER_ACTIONNOTEXIST = "InvalidParameter.ActionNotExist" INVALIDPARAMETER_ACTIONSERVICENOTEXIST = "InvalidParameter.ActionServiceNotExist" INVALIDPARAMETER_ATTACHMENTFULL = "InvalidParameter.AttachmentFull" INVALIDPARAMETER_CONDITIONCONTENTERROR = "InvalidParameter.ConditionContentError" INVALIDPARAMETER_CONDITIONERROR = "InvalidParameter.ConditionError" INVALIDPARAMETER_CONDITIONTYPEERROR = "InvalidParameter.ConditionTypeError" INVALIDPARAMETER_DESCRIPTIONLENGTHOVERLIMIT = "InvalidParameter.DescriptionLengthOverlimit" INVALIDPARAMETER_EFFECTERROR = "InvalidParameter.EffectError" INVALIDPARAMETER_NOTSUPPORTPRODUCT = "InvalidParameter.NotSupportProduct" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYDOCUMENTERROR = "InvalidParameter.PolicyDocumentError" INVALIDPARAMETER_POLICYDOCUMENTLENGTHOVERLIMIT = "InvalidParameter.PolicyDocumentLengthOverLimit" INVALIDPARAMETER_POLICYNAMEERROR = "InvalidParameter.PolicyNameError" INVALIDPARAMETER_PRINCIPALERROR = "InvalidParameter.PrincipalError" INVALIDPARAMETER_RESOURCECONTENTERROR = "InvalidParameter.ResourceContentError" INVALIDPARAMETER_RESOURCEERROR = "InvalidParameter.ResourceError" INVALIDPARAMETER_RESOURCEPROJECTERROR = "InvalidParameter.ResourceProjectError" INVALIDPARAMETER_RESOURCEQCSERROR = "InvalidParameter.ResourceQcsError" INVALIDPARAMETER_RESOURCEREGIONERROR = "InvalidParameter.ResourceRegionError" INVALIDPARAMETER_RESOURCESERVICENOTEXIST = "InvalidParameter.ResourceServiceNotExist" INVALIDPARAMETER_RESOURCEUINERROR = "InvalidParameter.ResourceUinError" INVALIDPARAMETER_STATEMENTERROR = "InvalidParameter.StatementError" INVALIDPARAMETER_USERNOTEXIST = "InvalidParameter.UserNotExist" INVALIDPARAMETER_VERSIONERROR = "InvalidParameter.VersionError" RESOURCENOTFOUND_GROUPNOTEXIST = "ResourceNotFound.GroupNotExist" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) CreatePolicyVersion ¶
func (c *Client) CreatePolicyVersion(request *CreatePolicyVersionRequest) (response *CreatePolicyVersionResponse, err error)
CreatePolicyVersion This API is used to add a policy version. After creating a policy version, you can easily change the policy by changing the policy version.
error code that may be returned:
FAILEDOPERATION_POLICYFULL = "FailedOperation.PolicyFull" FAILEDOPERATION_POLICYNAMEINUSE = "FailedOperation.PolicyNameInUse" FAILEDOPERATION_POLICYVERSIONFULL = "FailedOperation.PolicyVersionFull" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_ACTIONERROR = "InvalidParameter.ActionError" INVALIDPARAMETER_ACTIONMISS = "InvalidParameter.ActionMiss" INVALIDPARAMETER_ACTIONNOTEXIST = "InvalidParameter.ActionNotExist" INVALIDPARAMETER_ACTIONSERVICENOTEXIST = "InvalidParameter.ActionServiceNotExist" INVALIDPARAMETER_ATTACHMENTFULL = "InvalidParameter.AttachmentFull" INVALIDPARAMETER_CONDITIONCONTENTERROR = "InvalidParameter.ConditionContentError" INVALIDPARAMETER_CONDITIONERROR = "InvalidParameter.ConditionError" INVALIDPARAMETER_CONDITIONTYPEERROR = "InvalidParameter.ConditionTypeError" INVALIDPARAMETER_DESCRIPTIONLENGTHOVERLIMIT = "InvalidParameter.DescriptionLengthOverlimit" INVALIDPARAMETER_EFFECTERROR = "InvalidParameter.EffectError" INVALIDPARAMETER_NOTSUPPORTPRODUCT = "InvalidParameter.NotSupportProduct" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYDOCUMENTERROR = "InvalidParameter.PolicyDocumentError" INVALIDPARAMETER_POLICYDOCUMENTLENGTHOVERLIMIT = "InvalidParameter.PolicyDocumentLengthOverLimit" INVALIDPARAMETER_POLICYIDNOTEXIST = "InvalidParameter.PolicyIdNotExist" INVALIDPARAMETER_POLICYNAMEERROR = "InvalidParameter.PolicyNameError" INVALIDPARAMETER_PRINCIPALERROR = "InvalidParameter.PrincipalError" INVALIDPARAMETER_RESOURCECONTENTERROR = "InvalidParameter.ResourceContentError" INVALIDPARAMETER_RESOURCEERROR = "InvalidParameter.ResourceError" INVALIDPARAMETER_RESOURCEPROJECTERROR = "InvalidParameter.ResourceProjectError" INVALIDPARAMETER_RESOURCEQCSERROR = "InvalidParameter.ResourceQcsError" INVALIDPARAMETER_RESOURCEREGIONERROR = "InvalidParameter.ResourceRegionError" INVALIDPARAMETER_RESOURCESERVICENOTEXIST = "InvalidParameter.ResourceServiceNotExist" INVALIDPARAMETER_RESOURCEUINERROR = "InvalidParameter.ResourceUinError" INVALIDPARAMETER_STATEMENTERROR = "InvalidParameter.StatementError" INVALIDPARAMETER_USERNOTEXIST = "InvalidParameter.UserNotExist" INVALIDPARAMETER_VERSIONERROR = "InvalidParameter.VersionError" RESOURCENOTFOUND_GROUPNOTEXIST = "ResourceNotFound.GroupNotExist" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) CreatePolicyVersionWithContext ¶
func (c *Client) CreatePolicyVersionWithContext(ctx context.Context, request *CreatePolicyVersionRequest) (response *CreatePolicyVersionResponse, err error)
CreatePolicyVersion This API is used to add a policy version. After creating a policy version, you can easily change the policy by changing the policy version.
error code that may be returned:
FAILEDOPERATION_POLICYFULL = "FailedOperation.PolicyFull" FAILEDOPERATION_POLICYNAMEINUSE = "FailedOperation.PolicyNameInUse" FAILEDOPERATION_POLICYVERSIONFULL = "FailedOperation.PolicyVersionFull" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_ACTIONERROR = "InvalidParameter.ActionError" INVALIDPARAMETER_ACTIONMISS = "InvalidParameter.ActionMiss" INVALIDPARAMETER_ACTIONNOTEXIST = "InvalidParameter.ActionNotExist" INVALIDPARAMETER_ACTIONSERVICENOTEXIST = "InvalidParameter.ActionServiceNotExist" INVALIDPARAMETER_ATTACHMENTFULL = "InvalidParameter.AttachmentFull" INVALIDPARAMETER_CONDITIONCONTENTERROR = "InvalidParameter.ConditionContentError" INVALIDPARAMETER_CONDITIONERROR = "InvalidParameter.ConditionError" INVALIDPARAMETER_CONDITIONTYPEERROR = "InvalidParameter.ConditionTypeError" INVALIDPARAMETER_DESCRIPTIONLENGTHOVERLIMIT = "InvalidParameter.DescriptionLengthOverlimit" INVALIDPARAMETER_EFFECTERROR = "InvalidParameter.EffectError" INVALIDPARAMETER_NOTSUPPORTPRODUCT = "InvalidParameter.NotSupportProduct" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYDOCUMENTERROR = "InvalidParameter.PolicyDocumentError" INVALIDPARAMETER_POLICYDOCUMENTLENGTHOVERLIMIT = "InvalidParameter.PolicyDocumentLengthOverLimit" INVALIDPARAMETER_POLICYIDNOTEXIST = "InvalidParameter.PolicyIdNotExist" INVALIDPARAMETER_POLICYNAMEERROR = "InvalidParameter.PolicyNameError" INVALIDPARAMETER_PRINCIPALERROR = "InvalidParameter.PrincipalError" INVALIDPARAMETER_RESOURCECONTENTERROR = "InvalidParameter.ResourceContentError" INVALIDPARAMETER_RESOURCEERROR = "InvalidParameter.ResourceError" INVALIDPARAMETER_RESOURCEPROJECTERROR = "InvalidParameter.ResourceProjectError" INVALIDPARAMETER_RESOURCEQCSERROR = "InvalidParameter.ResourceQcsError" INVALIDPARAMETER_RESOURCEREGIONERROR = "InvalidParameter.ResourceRegionError" INVALIDPARAMETER_RESOURCESERVICENOTEXIST = "InvalidParameter.ResourceServiceNotExist" INVALIDPARAMETER_RESOURCEUINERROR = "InvalidParameter.ResourceUinError" INVALIDPARAMETER_STATEMENTERROR = "InvalidParameter.StatementError" INVALIDPARAMETER_USERNOTEXIST = "InvalidParameter.UserNotExist" INVALIDPARAMETER_VERSIONERROR = "InvalidParameter.VersionError" RESOURCENOTFOUND_GROUPNOTEXIST = "ResourceNotFound.GroupNotExist" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) CreatePolicyWithContext ¶
func (c *Client) CreatePolicyWithContext(ctx context.Context, request *CreatePolicyRequest) (response *CreatePolicyResponse, err error)
CreatePolicy This API (CreatePolicy) is used to create a policy.
error code that may be returned:
FAILEDOPERATION_POLICYFULL = "FailedOperation.PolicyFull" FAILEDOPERATION_POLICYNAMEINUSE = "FailedOperation.PolicyNameInUse" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_ACTIONERROR = "InvalidParameter.ActionError" INVALIDPARAMETER_ACTIONMISS = "InvalidParameter.ActionMiss" INVALIDPARAMETER_ACTIONNOTEXIST = "InvalidParameter.ActionNotExist" INVALIDPARAMETER_ACTIONSERVICENOTEXIST = "InvalidParameter.ActionServiceNotExist" INVALIDPARAMETER_ATTACHMENTFULL = "InvalidParameter.AttachmentFull" INVALIDPARAMETER_CONDITIONCONTENTERROR = "InvalidParameter.ConditionContentError" INVALIDPARAMETER_CONDITIONERROR = "InvalidParameter.ConditionError" INVALIDPARAMETER_CONDITIONTYPEERROR = "InvalidParameter.ConditionTypeError" INVALIDPARAMETER_DESCRIPTIONLENGTHOVERLIMIT = "InvalidParameter.DescriptionLengthOverlimit" INVALIDPARAMETER_EFFECTERROR = "InvalidParameter.EffectError" INVALIDPARAMETER_NOTSUPPORTPRODUCT = "InvalidParameter.NotSupportProduct" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYDOCUMENTERROR = "InvalidParameter.PolicyDocumentError" INVALIDPARAMETER_POLICYDOCUMENTLENGTHOVERLIMIT = "InvalidParameter.PolicyDocumentLengthOverLimit" INVALIDPARAMETER_POLICYNAMEERROR = "InvalidParameter.PolicyNameError" INVALIDPARAMETER_PRINCIPALERROR = "InvalidParameter.PrincipalError" INVALIDPARAMETER_RESOURCECONTENTERROR = "InvalidParameter.ResourceContentError" INVALIDPARAMETER_RESOURCEERROR = "InvalidParameter.ResourceError" INVALIDPARAMETER_RESOURCEPROJECTERROR = "InvalidParameter.ResourceProjectError" INVALIDPARAMETER_RESOURCEQCSERROR = "InvalidParameter.ResourceQcsError" INVALIDPARAMETER_RESOURCEREGIONERROR = "InvalidParameter.ResourceRegionError" INVALIDPARAMETER_RESOURCESERVICENOTEXIST = "InvalidParameter.ResourceServiceNotExist" INVALIDPARAMETER_RESOURCEUINERROR = "InvalidParameter.ResourceUinError" INVALIDPARAMETER_STATEMENTERROR = "InvalidParameter.StatementError" INVALIDPARAMETER_USERNOTEXIST = "InvalidParameter.UserNotExist" INVALIDPARAMETER_VERSIONERROR = "InvalidParameter.VersionError" RESOURCENOTFOUND_GROUPNOTEXIST = "ResourceNotFound.GroupNotExist" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) CreateRole ¶
func (c *Client) CreateRole(request *CreateRoleRequest) (response *CreateRoleResponse, err error)
CreateRole This API (CreateRole) is used to create a role.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_ACTIONERROR = "InvalidParameter.ActionError" INVALIDPARAMETER_ACTIONMISS = "InvalidParameter.ActionMiss" INVALIDPARAMETER_ATTACHMENTFULL = "InvalidParameter.AttachmentFull" INVALIDPARAMETER_CONDITIONCONTENTERROR = "InvalidParameter.ConditionContentError" INVALIDPARAMETER_CONDITIONERROR = "InvalidParameter.ConditionError" INVALIDPARAMETER_CONDITIONTYPEERROR = "InvalidParameter.ConditionTypeError" INVALIDPARAMETER_DESCRIPTIONLENGTHOVERLIMIT = "InvalidParameter.DescriptionLengthOverlimit" INVALIDPARAMETER_EFFECTERROR = "InvalidParameter.EffectError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_PRINCIPALERROR = "InvalidParameter.PrincipalError" INVALIDPARAMETER_PRINCIPALQCSCROSSERROR = "InvalidParameter.PrincipalQcsCrossError" INVALIDPARAMETER_PRINCIPALQCSERROR = "InvalidParameter.PrincipalQcsError" INVALIDPARAMETER_PRINCIPALQCSNOTEXIST = "InvalidParameter.PrincipalQcsNotExist" INVALIDPARAMETER_PRINCIPALSERVICENOTEXIST = "InvalidParameter.PrincipalServiceNotExist" INVALIDPARAMETER_ROLEFULL = "InvalidParameter.RoleFull" INVALIDPARAMETER_ROLENAMEERROR = "InvalidParameter.RoleNameError" INVALIDPARAMETER_ROLENAMEINUSE = "InvalidParameter.RoleNameInUse" INVALIDPARAMETER_STATEMENTERROR = "InvalidParameter.StatementError" INVALIDPARAMETER_USERNOTEXIST = "InvalidParameter.UserNotExist" INVALIDPARAMETER_VERSIONERROR = "InvalidParameter.VersionError"
func (*Client) CreateRoleWithContext ¶
func (c *Client) CreateRoleWithContext(ctx context.Context, request *CreateRoleRequest) (response *CreateRoleResponse, err error)
CreateRole This API (CreateRole) is used to create a role.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_ACTIONERROR = "InvalidParameter.ActionError" INVALIDPARAMETER_ACTIONMISS = "InvalidParameter.ActionMiss" INVALIDPARAMETER_ATTACHMENTFULL = "InvalidParameter.AttachmentFull" INVALIDPARAMETER_CONDITIONCONTENTERROR = "InvalidParameter.ConditionContentError" INVALIDPARAMETER_CONDITIONERROR = "InvalidParameter.ConditionError" INVALIDPARAMETER_CONDITIONTYPEERROR = "InvalidParameter.ConditionTypeError" INVALIDPARAMETER_DESCRIPTIONLENGTHOVERLIMIT = "InvalidParameter.DescriptionLengthOverlimit" INVALIDPARAMETER_EFFECTERROR = "InvalidParameter.EffectError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_PRINCIPALERROR = "InvalidParameter.PrincipalError" INVALIDPARAMETER_PRINCIPALQCSCROSSERROR = "InvalidParameter.PrincipalQcsCrossError" INVALIDPARAMETER_PRINCIPALQCSERROR = "InvalidParameter.PrincipalQcsError" INVALIDPARAMETER_PRINCIPALQCSNOTEXIST = "InvalidParameter.PrincipalQcsNotExist" INVALIDPARAMETER_PRINCIPALSERVICENOTEXIST = "InvalidParameter.PrincipalServiceNotExist" INVALIDPARAMETER_ROLEFULL = "InvalidParameter.RoleFull" INVALIDPARAMETER_ROLENAMEERROR = "InvalidParameter.RoleNameError" INVALIDPARAMETER_ROLENAMEINUSE = "InvalidParameter.RoleNameInUse" INVALIDPARAMETER_STATEMENTERROR = "InvalidParameter.StatementError" INVALIDPARAMETER_USERNOTEXIST = "InvalidParameter.UserNotExist" INVALIDPARAMETER_VERSIONERROR = "InvalidParameter.VersionError"
func (*Client) CreateSAMLProvider ¶
func (c *Client) CreateSAMLProvider(request *CreateSAMLProviderRequest) (response *CreateSAMLProviderResponse, err error)
CreateSAMLProvider This API is used to create a SAML identity provider.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INVALIDPARAMETER_IDENTITYNAMEINUSE = "InvalidParameter.IdentityNameInUse" INVALIDPARAMETERVALUE_METADATAERROR = "InvalidParameterValue.MetadataError" INVALIDPARAMETERVALUE_NAMEERROR = "InvalidParameterValue.NameError" LIMITEXCEEDED_IDENTITYFULL = "LimitExceeded.IdentityFull"
func (*Client) CreateSAMLProviderWithContext ¶
func (c *Client) CreateSAMLProviderWithContext(ctx context.Context, request *CreateSAMLProviderRequest) (response *CreateSAMLProviderResponse, err error)
CreateSAMLProvider This API is used to create a SAML identity provider.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INVALIDPARAMETER_IDENTITYNAMEINUSE = "InvalidParameter.IdentityNameInUse" INVALIDPARAMETERVALUE_METADATAERROR = "InvalidParameterValue.MetadataError" INVALIDPARAMETERVALUE_NAMEERROR = "InvalidParameterValue.NameError" LIMITEXCEEDED_IDENTITYFULL = "LimitExceeded.IdentityFull"
func (*Client) CreateServiceLinkedRole ¶
func (c *Client) CreateServiceLinkedRole(request *CreateServiceLinkedRoleRequest) (response *CreateServiceLinkedRoleResponse, err error)
CreateServiceLinkedRole This API is used to create a service-linked role.
error code that may be returned:
INVALIDPARAMETER_DESCRIPTIONLENGTHOVERLIMIT = "InvalidParameter.DescriptionLengthOverlimit" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYIDNOTEXIST = "InvalidParameter.PolicyIdNotExist" INVALIDPARAMETER_ROLENAMEERROR = "InvalidParameter.RoleNameError" INVALIDPARAMETER_ROLENAMEINUSE = "InvalidParameter.RoleNameInUse"
func (*Client) CreateServiceLinkedRoleWithContext ¶
func (c *Client) CreateServiceLinkedRoleWithContext(ctx context.Context, request *CreateServiceLinkedRoleRequest) (response *CreateServiceLinkedRoleResponse, err error)
CreateServiceLinkedRole This API is used to create a service-linked role.
error code that may be returned:
INVALIDPARAMETER_DESCRIPTIONLENGTHOVERLIMIT = "InvalidParameter.DescriptionLengthOverlimit" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYIDNOTEXIST = "InvalidParameter.PolicyIdNotExist" INVALIDPARAMETER_ROLENAMEERROR = "InvalidParameter.RoleNameError" INVALIDPARAMETER_ROLENAMEINUSE = "InvalidParameter.RoleNameInUse"
func (*Client) CreateUserSAMLConfig ¶
func (c *Client) CreateUserSAMLConfig(request *CreateUserSAMLConfigRequest) (response *CreateUserSAMLConfigResponse, err error)
CreateUserSAMLConfig This API is used to create user SAML configurations.
error code that may be returned:
INVALIDPARAMETERVALUE_METADATAERROR = "InvalidParameterValue.MetadataError"
func (*Client) CreateUserSAMLConfigWithContext ¶
func (c *Client) CreateUserSAMLConfigWithContext(ctx context.Context, request *CreateUserSAMLConfigRequest) (response *CreateUserSAMLConfigResponse, err error)
CreateUserSAMLConfig This API is used to create user SAML configurations.
error code that may be returned:
INVALIDPARAMETERVALUE_METADATAERROR = "InvalidParameterValue.MetadataError"
func (*Client) DeleteGroup ¶
func (c *Client) DeleteGroup(request *DeleteGroupRequest) (response *DeleteGroupResponse, err error)
DeleteGroup This API is used to delete a user group.
error code that may be returned:
RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) DeleteGroupWithContext ¶
func (c *Client) DeleteGroupWithContext(ctx context.Context, request *DeleteGroupRequest) (response *DeleteGroupResponse, err error)
DeleteGroup This API is used to delete a user group.
error code that may be returned:
RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) DeletePolicy ¶
func (c *Client) DeletePolicy(request *DeletePolicyRequest) (response *DeletePolicyResponse, err error)
DeletePolicy This API (DeletePolicy) is used to delete a policy.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYIDERROR = "InvalidParameter.PolicyIdError" INVALIDPARAMETER_POLICYIDNOTEXIST = "InvalidParameter.PolicyIdNotExist" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCENOTFOUND_POLICYIDNOTFOUND = "ResourceNotFound.PolicyIdNotFound"
func (*Client) DeletePolicyVersion ¶
func (c *Client) DeletePolicyVersion(request *DeletePolicyVersionRequest) (response *DeletePolicyVersionResponse, err error)
DeletePolicyVersion This API is used to delete a policy version of a policy.
error code that may be returned:
FAILEDOPERATION_POLICYNAMEINUSE = "FailedOperation.PolicyNameInUse" FAILEDOPERATION_POLICYVERSIONALREADYDEFAULT = "FailedOperation.PolicyVersionAlreadyDefault" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_ACTIONERROR = "InvalidParameter.ActionError" INVALIDPARAMETER_ATTACHMENTFULL = "InvalidParameter.AttachmentFull" INVALIDPARAMETER_CONDITIONERROR = "InvalidParameter.ConditionError" INVALIDPARAMETER_DESCRIPTIONLENGTHOVERLIMIT = "InvalidParameter.DescriptionLengthOverlimit" INVALIDPARAMETER_EFFECTERROR = "InvalidParameter.EffectError" INVALIDPARAMETER_NOTSUPPORTPRODUCT = "InvalidParameter.NotSupportProduct" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYDOCUMENTERROR = "InvalidParameter.PolicyDocumentError" INVALIDPARAMETER_POLICYDOCUMENTLENGTHOVERLIMIT = "InvalidParameter.PolicyDocumentLengthOverLimit" INVALIDPARAMETER_POLICYIDERROR = "InvalidParameter.PolicyIdError" INVALIDPARAMETER_POLICYIDNOTEXIST = "InvalidParameter.PolicyIdNotExist" INVALIDPARAMETER_POLICYNAMEERROR = "InvalidParameter.PolicyNameError" INVALIDPARAMETER_POLICYVERSIONNOTEXISTS = "InvalidParameter.PolicyVersionNotExists" INVALIDPARAMETER_PRINCIPALERROR = "InvalidParameter.PrincipalError" INVALIDPARAMETER_RESOURCEERROR = "InvalidParameter.ResourceError" INVALIDPARAMETER_STATEMENTERROR = "InvalidParameter.StatementError" INVALIDPARAMETER_USERNOTEXIST = "InvalidParameter.UserNotExist" INVALIDPARAMETER_VERSIONERROR = "InvalidParameter.VersionError" RESOURCENOTFOUND_GROUPNOTEXIST = "ResourceNotFound.GroupNotExist" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCENOTFOUND_POLICYIDNOTFOUND = "ResourceNotFound.PolicyIdNotFound" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) DeletePolicyVersionWithContext ¶
func (c *Client) DeletePolicyVersionWithContext(ctx context.Context, request *DeletePolicyVersionRequest) (response *DeletePolicyVersionResponse, err error)
DeletePolicyVersion This API is used to delete a policy version of a policy.
error code that may be returned:
FAILEDOPERATION_POLICYNAMEINUSE = "FailedOperation.PolicyNameInUse" FAILEDOPERATION_POLICYVERSIONALREADYDEFAULT = "FailedOperation.PolicyVersionAlreadyDefault" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_ACTIONERROR = "InvalidParameter.ActionError" INVALIDPARAMETER_ATTACHMENTFULL = "InvalidParameter.AttachmentFull" INVALIDPARAMETER_CONDITIONERROR = "InvalidParameter.ConditionError" INVALIDPARAMETER_DESCRIPTIONLENGTHOVERLIMIT = "InvalidParameter.DescriptionLengthOverlimit" INVALIDPARAMETER_EFFECTERROR = "InvalidParameter.EffectError" INVALIDPARAMETER_NOTSUPPORTPRODUCT = "InvalidParameter.NotSupportProduct" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYDOCUMENTERROR = "InvalidParameter.PolicyDocumentError" INVALIDPARAMETER_POLICYDOCUMENTLENGTHOVERLIMIT = "InvalidParameter.PolicyDocumentLengthOverLimit" INVALIDPARAMETER_POLICYIDERROR = "InvalidParameter.PolicyIdError" INVALIDPARAMETER_POLICYIDNOTEXIST = "InvalidParameter.PolicyIdNotExist" INVALIDPARAMETER_POLICYNAMEERROR = "InvalidParameter.PolicyNameError" INVALIDPARAMETER_POLICYVERSIONNOTEXISTS = "InvalidParameter.PolicyVersionNotExists" INVALIDPARAMETER_PRINCIPALERROR = "InvalidParameter.PrincipalError" INVALIDPARAMETER_RESOURCEERROR = "InvalidParameter.ResourceError" INVALIDPARAMETER_STATEMENTERROR = "InvalidParameter.StatementError" INVALIDPARAMETER_USERNOTEXIST = "InvalidParameter.UserNotExist" INVALIDPARAMETER_VERSIONERROR = "InvalidParameter.VersionError" RESOURCENOTFOUND_GROUPNOTEXIST = "ResourceNotFound.GroupNotExist" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCENOTFOUND_POLICYIDNOTFOUND = "ResourceNotFound.PolicyIdNotFound" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) DeletePolicyWithContext ¶
func (c *Client) DeletePolicyWithContext(ctx context.Context, request *DeletePolicyRequest) (response *DeletePolicyResponse, err error)
DeletePolicy This API (DeletePolicy) is used to delete a policy.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYIDERROR = "InvalidParameter.PolicyIdError" INVALIDPARAMETER_POLICYIDNOTEXIST = "InvalidParameter.PolicyIdNotExist" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCENOTFOUND_POLICYIDNOTFOUND = "ResourceNotFound.PolicyIdNotFound"
func (*Client) DeleteRole ¶
func (c *Client) DeleteRole(request *DeleteRoleRequest) (response *DeleteRoleResponse, err error)
DeleteRole This API (DeleteRole) is used to delete a specified role.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYNAMEERROR = "InvalidParameter.PolicyNameError" INVALIDPARAMETER_ROLENOTEXIST = "InvalidParameter.RoleNotExist"
func (*Client) DeleteRolePermissionsBoundary ¶
func (c *Client) DeleteRolePermissionsBoundary(request *DeleteRolePermissionsBoundaryRequest) (response *DeleteRolePermissionsBoundaryResponse, err error)
DeleteRolePermissionsBoundary This API is used to delete a role permission boundary.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_OPERATEENTITIESOVERLIMIT = "InvalidParameter.OperateEntitiesOverLimit" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYIDNOTEXIST = "InvalidParameter.PolicyIdNotExist" INVALIDPARAMETER_ROLENOTEXIST = "InvalidParameter.RoleNotExist" INVALIDPARAMETER_SERVICELINKEDROLECANTUSEPERMISSIONBOUNDARY = "InvalidParameter.ServiceLinkedRoleCantUsePermissionBoundary" INVALIDPARAMETER_USERNOTEXIST = "InvalidParameter.UserNotExist" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DeleteRolePermissionsBoundaryWithContext ¶
func (c *Client) DeleteRolePermissionsBoundaryWithContext(ctx context.Context, request *DeleteRolePermissionsBoundaryRequest) (response *DeleteRolePermissionsBoundaryResponse, err error)
DeleteRolePermissionsBoundary This API is used to delete a role permission boundary.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_OPERATEENTITIESOVERLIMIT = "InvalidParameter.OperateEntitiesOverLimit" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYIDNOTEXIST = "InvalidParameter.PolicyIdNotExist" INVALIDPARAMETER_ROLENOTEXIST = "InvalidParameter.RoleNotExist" INVALIDPARAMETER_SERVICELINKEDROLECANTUSEPERMISSIONBOUNDARY = "InvalidParameter.ServiceLinkedRoleCantUsePermissionBoundary" INVALIDPARAMETER_USERNOTEXIST = "InvalidParameter.UserNotExist" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DeleteRoleWithContext ¶
func (c *Client) DeleteRoleWithContext(ctx context.Context, request *DeleteRoleRequest) (response *DeleteRoleResponse, err error)
DeleteRole This API (DeleteRole) is used to delete a specified role.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYNAMEERROR = "InvalidParameter.PolicyNameError" INVALIDPARAMETER_ROLENOTEXIST = "InvalidParameter.RoleNotExist"
func (*Client) DeleteSAMLProvider ¶
func (c *Client) DeleteSAMLProvider(request *DeleteSAMLProviderRequest) (response *DeleteSAMLProviderResponse, err error)
DeleteSAMLProvider This API is used to delete a SAML identity provider.
error code that may be returned:
RESOURCENOTFOUND_IDENTITYNOTEXIST = "ResourceNotFound.IdentityNotExist" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound"
func (*Client) DeleteSAMLProviderWithContext ¶
func (c *Client) DeleteSAMLProviderWithContext(ctx context.Context, request *DeleteSAMLProviderRequest) (response *DeleteSAMLProviderResponse, err error)
DeleteSAMLProvider This API is used to delete a SAML identity provider.
error code that may be returned:
RESOURCENOTFOUND_IDENTITYNOTEXIST = "ResourceNotFound.IdentityNotExist" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound"
func (*Client) DeleteServiceLinkedRole ¶
func (c *Client) DeleteServiceLinkedRole(request *DeleteServiceLinkedRoleRequest) (response *DeleteServiceLinkedRoleResponse, err error)
DeleteServiceLinkedRole This API is used to delete a service-linked role.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_ROLENOTEXIST = "InvalidParameter.RoleNotExist"
func (*Client) DeleteServiceLinkedRoleWithContext ¶
func (c *Client) DeleteServiceLinkedRoleWithContext(ctx context.Context, request *DeleteServiceLinkedRoleRequest) (response *DeleteServiceLinkedRoleResponse, err error)
DeleteServiceLinkedRole This API is used to delete a service-linked role.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_ROLENOTEXIST = "InvalidParameter.RoleNotExist"
func (*Client) DeleteUser ¶
func (c *Client) DeleteUser(request *DeleteUserRequest) (response *DeleteUserResponse, err error)
DeleteUser This API is used to delete a sub-user.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" OPERATIONDENIED_HAVEKEYS = "OperationDenied.HaveKeys" REQUESTLIMITEXCEEDED_UINLIMITEXCEEDED = "RequestLimitExceeded.UinLimitExceeded" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist" UNAUTHORIZEDOPERATION_DELETEAPIKEY = "UnauthorizedOperation.DeleteApiKey"
func (*Client) DeleteUserPermissionsBoundary ¶
func (c *Client) DeleteUserPermissionsBoundary(request *DeleteUserPermissionsBoundaryRequest) (response *DeleteUserPermissionsBoundaryResponse, err error)
DeleteUserPermissionsBoundary This API is used to delete a user permission boundary.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_OPERATEENTITIESOVERLIMIT = "InvalidParameter.OperateEntitiesOverLimit" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_ROLENOTEXIST = "InvalidParameter.RoleNotExist" INVALIDPARAMETER_USERNOTEXIST = "InvalidParameter.UserNotExist" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DeleteUserPermissionsBoundaryWithContext ¶
func (c *Client) DeleteUserPermissionsBoundaryWithContext(ctx context.Context, request *DeleteUserPermissionsBoundaryRequest) (response *DeleteUserPermissionsBoundaryResponse, err error)
DeleteUserPermissionsBoundary This API is used to delete a user permission boundary.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_OPERATEENTITIESOVERLIMIT = "InvalidParameter.OperateEntitiesOverLimit" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_ROLENOTEXIST = "InvalidParameter.RoleNotExist" INVALIDPARAMETER_USERNOTEXIST = "InvalidParameter.UserNotExist" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DeleteUserWithContext ¶
func (c *Client) DeleteUserWithContext(ctx context.Context, request *DeleteUserRequest) (response *DeleteUserResponse, err error)
DeleteUser This API is used to delete a sub-user.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" OPERATIONDENIED_HAVEKEYS = "OperationDenied.HaveKeys" REQUESTLIMITEXCEEDED_UINLIMITEXCEEDED = "RequestLimitExceeded.UinLimitExceeded" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist" UNAUTHORIZEDOPERATION_DELETEAPIKEY = "UnauthorizedOperation.DeleteApiKey"
func (*Client) DescribeRoleList ¶
func (c *Client) DescribeRoleList(request *DescribeRoleListRequest) (response *DescribeRoleListResponse, err error)
DescribeRoleList This API (DescribeRoleList) is used to get the role list under the account.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError"
func (*Client) DescribeRoleListWithContext ¶
func (c *Client) DescribeRoleListWithContext(ctx context.Context, request *DescribeRoleListRequest) (response *DescribeRoleListResponse, err error)
DescribeRoleList This API (DescribeRoleList) is used to get the role list under the account.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError"
func (*Client) DescribeSafeAuthFlag ¶
func (c *Client) DescribeSafeAuthFlag(request *DescribeSafeAuthFlagRequest) (response *DescribeSafeAuthFlagResponse, err error)
DescribeSafeAuthFlag This API is used to query security settings.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) DescribeSafeAuthFlagColl ¶
func (c *Client) DescribeSafeAuthFlagColl(request *DescribeSafeAuthFlagCollRequest) (response *DescribeSafeAuthFlagCollResponse, err error)
DescribeSafeAuthFlagColl This API is used to query security settings.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) DescribeSafeAuthFlagCollWithContext ¶
func (c *Client) DescribeSafeAuthFlagCollWithContext(ctx context.Context, request *DescribeSafeAuthFlagCollRequest) (response *DescribeSafeAuthFlagCollResponse, err error)
DescribeSafeAuthFlagColl This API is used to query security settings.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) DescribeSafeAuthFlagIntl ¶
func (c *Client) DescribeSafeAuthFlagIntl(request *DescribeSafeAuthFlagIntlRequest) (response *DescribeSafeAuthFlagIntlResponse, err error)
DescribeSafeAuthFlagIntl This API is used to query security settings.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) DescribeSafeAuthFlagIntlWithContext ¶
func (c *Client) DescribeSafeAuthFlagIntlWithContext(ctx context.Context, request *DescribeSafeAuthFlagIntlRequest) (response *DescribeSafeAuthFlagIntlResponse, err error)
DescribeSafeAuthFlagIntl This API is used to query security settings.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) DescribeSafeAuthFlagWithContext ¶
func (c *Client) DescribeSafeAuthFlagWithContext(ctx context.Context, request *DescribeSafeAuthFlagRequest) (response *DescribeSafeAuthFlagResponse, err error)
DescribeSafeAuthFlag This API is used to query security settings.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) DescribeSubAccounts ¶
func (c *Client) DescribeSubAccounts(request *DescribeSubAccountsRequest) (response *DescribeSubAccountsResponse, err error)
DescribeSubAccounts This API is used to query sub-users through the sub-user UIN list.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER = "InvalidParameter"
func (*Client) DescribeSubAccountsWithContext ¶
func (c *Client) DescribeSubAccountsWithContext(ctx context.Context, request *DescribeSubAccountsRequest) (response *DescribeSubAccountsResponse, err error)
DescribeSubAccounts This API is used to query sub-users through the sub-user UIN list.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER = "InvalidParameter"
func (*Client) DescribeUserSAMLConfig ¶
func (c *Client) DescribeUserSAMLConfig(request *DescribeUserSAMLConfigRequest) (response *DescribeUserSAMLConfigResponse, err error)
DescribeUserSAMLConfig This API is used to query user SAML configurations.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER = "InvalidParameter"
func (*Client) DescribeUserSAMLConfigWithContext ¶
func (c *Client) DescribeUserSAMLConfigWithContext(ctx context.Context, request *DescribeUserSAMLConfigRequest) (response *DescribeUserSAMLConfigResponse, err error)
DescribeUserSAMLConfig This API is used to query user SAML configurations.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER = "InvalidParameter"
func (*Client) DetachGroupPolicy ¶
func (c *Client) DetachGroupPolicy(request *DetachGroupPolicyRequest) (response *DetachGroupPolicyResponse, err error)
DetachGroupPolicy This API (DetachGroupPolicy) is used to unassociate a policy and a user group.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYIDERROR = "InvalidParameter.PolicyIdError" INVALIDPARAMETER_POLICYIDNOTEXIST = "InvalidParameter.PolicyIdNotExist" INVALIDPARAMETER_USERNOTEXIST = "InvalidParameter.UserNotExist" RESOURCENOTFOUND_GROUPNOTEXIST = "ResourceNotFound.GroupNotExist" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) DetachGroupPolicyWithContext ¶
func (c *Client) DetachGroupPolicyWithContext(ctx context.Context, request *DetachGroupPolicyRequest) (response *DetachGroupPolicyResponse, err error)
DetachGroupPolicy This API (DetachGroupPolicy) is used to unassociate a policy and a user group.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYIDERROR = "InvalidParameter.PolicyIdError" INVALIDPARAMETER_POLICYIDNOTEXIST = "InvalidParameter.PolicyIdNotExist" INVALIDPARAMETER_USERNOTEXIST = "InvalidParameter.UserNotExist" RESOURCENOTFOUND_GROUPNOTEXIST = "ResourceNotFound.GroupNotExist" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) DetachRolePolicy ¶
func (c *Client) DetachRolePolicy(request *DetachRolePolicyRequest) (response *DetachRolePolicyResponse, err error)
DetachRolePolicy This API (DetachRolePolicy) is used to unassociate a policy and a role.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYIDNOTEXIST = "InvalidParameter.PolicyIdNotExist" INVALIDPARAMETER_ROLENOTEXIST = "InvalidParameter.RoleNotExist"
func (*Client) DetachRolePolicyWithContext ¶
func (c *Client) DetachRolePolicyWithContext(ctx context.Context, request *DetachRolePolicyRequest) (response *DetachRolePolicyResponse, err error)
DetachRolePolicy This API (DetachRolePolicy) is used to unassociate a policy and a role.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYIDNOTEXIST = "InvalidParameter.PolicyIdNotExist" INVALIDPARAMETER_ROLENOTEXIST = "InvalidParameter.RoleNotExist"
func (*Client) DetachUserPolicy ¶
func (c *Client) DetachUserPolicy(request *DetachUserPolicyRequest) (response *DetachUserPolicyResponse, err error)
DetachUserPolicy This API (DetachUserPolicy) is used to unassociate a policy and a user.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_ATTACHMENTFULL = "InvalidParameter.AttachmentFull" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYIDERROR = "InvalidParameter.PolicyIdError" INVALIDPARAMETER_POLICYIDNOTEXIST = "InvalidParameter.PolicyIdNotExist" INVALIDPARAMETER_USERNOTEXIST = "InvalidParameter.UserNotExist" RESOURCENOTFOUND_POLICYIDNOTFOUND = "ResourceNotFound.PolicyIdNotFound" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) DetachUserPolicyWithContext ¶
func (c *Client) DetachUserPolicyWithContext(ctx context.Context, request *DetachUserPolicyRequest) (response *DetachUserPolicyResponse, err error)
DetachUserPolicy This API (DetachUserPolicy) is used to unassociate a policy and a user.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_ATTACHMENTFULL = "InvalidParameter.AttachmentFull" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYIDERROR = "InvalidParameter.PolicyIdError" INVALIDPARAMETER_POLICYIDNOTEXIST = "InvalidParameter.PolicyIdNotExist" INVALIDPARAMETER_USERNOTEXIST = "InvalidParameter.UserNotExist" RESOURCENOTFOUND_POLICYIDNOTFOUND = "ResourceNotFound.PolicyIdNotFound" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) GetAccountSummary ¶
func (c *Client) GetAccountSummary(request *GetAccountSummaryRequest) (response *GetAccountSummaryResponse, err error)
GetAccountSummary This API is used to query account summary.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
func (*Client) GetAccountSummaryWithContext ¶
func (c *Client) GetAccountSummaryWithContext(ctx context.Context, request *GetAccountSummaryRequest) (response *GetAccountSummaryResponse, err error)
GetAccountSummary This API is used to query account summary.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
func (*Client) GetCustomMFATokenInfo ¶
func (c *Client) GetCustomMFATokenInfo(request *GetCustomMFATokenInfoRequest) (response *GetCustomMFATokenInfoResponse, err error)
GetCustomMFATokenInfo This API is used to get information associated with a custom multi-factor Token
error code that may be returned:
INVALIDPARAMETER_MFATOKENERROR = "InvalidParameter.MFATokenError"
func (*Client) GetCustomMFATokenInfoWithContext ¶
func (c *Client) GetCustomMFATokenInfoWithContext(ctx context.Context, request *GetCustomMFATokenInfoRequest) (response *GetCustomMFATokenInfoResponse, err error)
GetCustomMFATokenInfo This API is used to get information associated with a custom multi-factor Token
error code that may be returned:
INVALIDPARAMETER_MFATOKENERROR = "InvalidParameter.MFATokenError"
func (*Client) GetGroup ¶
func (c *Client) GetGroup(request *GetGroupRequest) (response *GetGroupResponse, err error)
GetGroup This API is used to query user group details.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) GetGroupWithContext ¶
func (c *Client) GetGroupWithContext(ctx context.Context, request *GetGroupRequest) (response *GetGroupResponse, err error)
GetGroup This API is used to query user group details.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) GetPolicy ¶
func (c *Client) GetPolicy(request *GetPolicyRequest) (response *GetPolicyResponse, err error)
GetPolicy This API (GetPolicy) is used to query and view policy details.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYIDERROR = "InvalidParameter.PolicyIdError" RESOURCENOTFOUND_POLICYIDNOTFOUND = "ResourceNotFound.PolicyIdNotFound"
func (*Client) GetPolicyVersion ¶
func (c *Client) GetPolicyVersion(request *GetPolicyVersionRequest) (response *GetPolicyVersionResponse, err error)
GetPolicyVersion This API is used to query policy version details.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYIDERROR = "InvalidParameter.PolicyIdError" INVALIDPARAMETER_POLICYVERSIONNOTEXISTS = "InvalidParameter.PolicyVersionNotExists" RESOURCENOTFOUND_POLICYIDNOTFOUND = "ResourceNotFound.PolicyIdNotFound"
func (*Client) GetPolicyVersionWithContext ¶
func (c *Client) GetPolicyVersionWithContext(ctx context.Context, request *GetPolicyVersionRequest) (response *GetPolicyVersionResponse, err error)
GetPolicyVersion This API is used to query policy version details.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYIDERROR = "InvalidParameter.PolicyIdError" INVALIDPARAMETER_POLICYVERSIONNOTEXISTS = "InvalidParameter.PolicyVersionNotExists" RESOURCENOTFOUND_POLICYIDNOTFOUND = "ResourceNotFound.PolicyIdNotFound"
func (*Client) GetPolicyWithContext ¶
func (c *Client) GetPolicyWithContext(ctx context.Context, request *GetPolicyRequest) (response *GetPolicyResponse, err error)
GetPolicy This API (GetPolicy) is used to query and view policy details.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYIDERROR = "InvalidParameter.PolicyIdError" RESOURCENOTFOUND_POLICYIDNOTFOUND = "ResourceNotFound.PolicyIdNotFound"
func (*Client) GetRole ¶
func (c *Client) GetRole(request *GetRoleRequest) (response *GetRoleResponse, err error)
GetRole This API (GetRole) is used to get the details of a specified role.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_ROLENOTEXIST = "InvalidParameter.RoleNotExist"
func (*Client) GetRoleWithContext ¶
func (c *Client) GetRoleWithContext(ctx context.Context, request *GetRoleRequest) (response *GetRoleResponse, err error)
GetRole This API (GetRole) is used to get the details of a specified role.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_ROLENOTEXIST = "InvalidParameter.RoleNotExist"
func (*Client) GetSAMLProvider ¶
func (c *Client) GetSAMLProvider(request *GetSAMLProviderRequest) (response *GetSAMLProviderResponse, err error)
GetSAMLProvider This API is used to query SAML identity provider details.
error code that may be returned:
RESOURCENOTFOUND_IDENTITYNOTEXIST = "ResourceNotFound.IdentityNotExist" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound"
func (*Client) GetSAMLProviderWithContext ¶
func (c *Client) GetSAMLProviderWithContext(ctx context.Context, request *GetSAMLProviderRequest) (response *GetSAMLProviderResponse, err error)
GetSAMLProvider This API is used to query SAML identity provider details.
error code that may be returned:
RESOURCENOTFOUND_IDENTITYNOTEXIST = "ResourceNotFound.IdentityNotExist" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound"
func (*Client) GetSecurityLastUsed ¶
func (c *Client) GetSecurityLastUsed(request *GetSecurityLastUsedRequest) (response *GetSecurityLastUsedResponse, err error)
GetSecurityLastUsed This API is used to get a key’s recent usage details.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INVALIDPARAMETER = "InvalidParameter"
func (*Client) GetSecurityLastUsedWithContext ¶
func (c *Client) GetSecurityLastUsedWithContext(ctx context.Context, request *GetSecurityLastUsedRequest) (response *GetSecurityLastUsedResponse, err error)
GetSecurityLastUsed This API is used to get a key’s recent usage details.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INVALIDPARAMETER = "InvalidParameter"
func (*Client) GetServiceLinkedRoleDeletionStatus ¶
func (c *Client) GetServiceLinkedRoleDeletionStatus(request *GetServiceLinkedRoleDeletionStatusRequest) (response *GetServiceLinkedRoleDeletionStatusResponse, err error)
GetServiceLinkedRoleDeletionStatus This API is used to get the status of the service-linked role deletion based on the `TaskId`
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_DELETIONTASKNOTEXIST = "InvalidParameter.DeletionTaskNotExist" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError"
func (*Client) GetServiceLinkedRoleDeletionStatusWithContext ¶
func (c *Client) GetServiceLinkedRoleDeletionStatusWithContext(ctx context.Context, request *GetServiceLinkedRoleDeletionStatusRequest) (response *GetServiceLinkedRoleDeletionStatusResponse, err error)
GetServiceLinkedRoleDeletionStatus This API is used to get the status of the service-linked role deletion based on the `TaskId`
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_DELETIONTASKNOTEXIST = "InvalidParameter.DeletionTaskNotExist" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError"
func (*Client) GetUser ¶
func (c *Client) GetUser(request *GetUserRequest) (response *GetUserResponse, err error)
GetUser This API is used to query sub-users.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) GetUserAppId ¶
func (c *Client) GetUserAppId(request *GetUserAppIdRequest) (response *GetUserAppIdResponse, err error)
GetUserAppId This API is used to get the user AppId.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
func (*Client) GetUserAppIdWithContext ¶
func (c *Client) GetUserAppIdWithContext(ctx context.Context, request *GetUserAppIdRequest) (response *GetUserAppIdResponse, err error)
GetUserAppId This API is used to get the user AppId.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
func (*Client) GetUserWithContext ¶
func (c *Client) GetUserWithContext(ctx context.Context, request *GetUserRequest) (response *GetUserResponse, err error)
GetUser This API is used to query sub-users.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) ListAccessKeys ¶
func (c *Client) ListAccessKeys(request *ListAccessKeysRequest) (response *ListAccessKeysResponse, err error)
ListAccessKeys This API is used to list the access keys associated with a specified CAM user.
error code that may be returned:
AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" FAILEDOPERATION_ACCESSKEY = "FailedOperation.Accesskey" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_USERNOTEXIST = "InvalidParameter.UserNotExist" OPERATIONDENIED_ACCESSKEYOVERLIMIT = "OperationDenied.AccessKeyOverLimit" OPERATIONDENIED_SUBUIN = "OperationDenied.SubUin" OPERATIONDENIED_UINNOTMATCH = "OperationDenied.UinNotMatch"
func (*Client) ListAccessKeysWithContext ¶
func (c *Client) ListAccessKeysWithContext(ctx context.Context, request *ListAccessKeysRequest) (response *ListAccessKeysResponse, err error)
ListAccessKeys This API is used to list the access keys associated with a specified CAM user.
error code that may be returned:
AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" FAILEDOPERATION_ACCESSKEY = "FailedOperation.Accesskey" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_USERNOTEXIST = "InvalidParameter.UserNotExist" OPERATIONDENIED_ACCESSKEYOVERLIMIT = "OperationDenied.AccessKeyOverLimit" OPERATIONDENIED_SUBUIN = "OperationDenied.SubUin" OPERATIONDENIED_UINNOTMATCH = "OperationDenied.UinNotMatch"
func (*Client) ListAttachedGroupPolicies ¶
func (c *Client) ListAttachedGroupPolicies(request *ListAttachedGroupPoliciesRequest) (response *ListAttachedGroupPoliciesResponse, err error)
ListAttachedGroupPolicies This API (ListAttachedGroupPolicies) is used to query the list of policies associated with a user group.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError"
func (*Client) ListAttachedGroupPoliciesWithContext ¶
func (c *Client) ListAttachedGroupPoliciesWithContext(ctx context.Context, request *ListAttachedGroupPoliciesRequest) (response *ListAttachedGroupPoliciesResponse, err error)
ListAttachedGroupPolicies This API (ListAttachedGroupPolicies) is used to query the list of policies associated with a user group.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError"
func (*Client) ListAttachedRolePolicies ¶
func (c *Client) ListAttachedRolePolicies(request *ListAttachedRolePoliciesRequest) (response *ListAttachedRolePoliciesResponse, err error)
ListAttachedRolePolicies This API (ListAttachedRolePolicies) is used to obtain the list of the policies associated with a role.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError"
func (*Client) ListAttachedRolePoliciesWithContext ¶
func (c *Client) ListAttachedRolePoliciesWithContext(ctx context.Context, request *ListAttachedRolePoliciesRequest) (response *ListAttachedRolePoliciesResponse, err error)
ListAttachedRolePolicies This API (ListAttachedRolePolicies) is used to obtain the list of the policies associated with a role.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError"
func (*Client) ListAttachedUserAllPolicies ¶
func (c *Client) ListAttachedUserAllPolicies(request *ListAttachedUserAllPoliciesRequest) (response *ListAttachedUserAllPoliciesResponse, err error)
ListAttachedUserAllPolicies This API is used to list policies associated with the user (including those inherited from the user group).
error code that may be returned:
INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) ListAttachedUserAllPoliciesWithContext ¶
func (c *Client) ListAttachedUserAllPoliciesWithContext(ctx context.Context, request *ListAttachedUserAllPoliciesRequest) (response *ListAttachedUserAllPoliciesResponse, err error)
ListAttachedUserAllPolicies This API is used to list policies associated with the user (including those inherited from the user group).
error code that may be returned:
INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) ListAttachedUserPolicies ¶
func (c *Client) ListAttachedUserPolicies(request *ListAttachedUserPoliciesRequest) (response *ListAttachedUserPoliciesResponse, err error)
ListAttachedUserPolicies This API (ListAttachedUserPolicies) is used to query the list of policies associated with a sub-account.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError"
func (*Client) ListAttachedUserPoliciesWithContext ¶
func (c *Client) ListAttachedUserPoliciesWithContext(ctx context.Context, request *ListAttachedUserPoliciesRequest) (response *ListAttachedUserPoliciesResponse, err error)
ListAttachedUserPolicies This API (ListAttachedUserPolicies) is used to query the list of policies associated with a sub-account.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError"
func (*Client) ListCollaborators ¶
func (c *Client) ListCollaborators(request *ListCollaboratorsRequest) (response *ListCollaboratorsResponse, err error)
ListCollaborators This API is used to get the collaborator list.
error code that may be returned:
FAILEDOPERATION = "FailedOperation"
func (*Client) ListCollaboratorsWithContext ¶
func (c *Client) ListCollaboratorsWithContext(ctx context.Context, request *ListCollaboratorsRequest) (response *ListCollaboratorsResponse, err error)
ListCollaborators This API is used to get the collaborator list.
error code that may be returned:
FAILEDOPERATION = "FailedOperation"
func (*Client) ListEntitiesForPolicy ¶
func (c *Client) ListEntitiesForPolicy(request *ListEntitiesForPolicyRequest) (response *ListEntitiesForPolicyResponse, err error)
ListEntitiesForPolicy This API (ListEntitiesForPolicy) is used to query the list of entities associated with a policy.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_ENTITYFILTERERROR = "InvalidParameter.EntityFilterError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYIDERROR = "InvalidParameter.PolicyIdError"
func (*Client) ListEntitiesForPolicyWithContext ¶
func (c *Client) ListEntitiesForPolicyWithContext(ctx context.Context, request *ListEntitiesForPolicyRequest) (response *ListEntitiesForPolicyResponse, err error)
ListEntitiesForPolicy This API (ListEntitiesForPolicy) is used to query the list of entities associated with a policy.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_ENTITYFILTERERROR = "InvalidParameter.EntityFilterError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYIDERROR = "InvalidParameter.PolicyIdError"
func (*Client) ListGroups ¶
func (c *Client) ListGroups(request *ListGroupsRequest) (response *ListGroupsResponse, err error)
ListGroups This API is used to query the list of user groups.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_ENTITYFILTERERROR = "InvalidParameter.EntityFilterError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYIDERROR = "InvalidParameter.PolicyIdError"
func (*Client) ListGroupsForUser ¶
func (c *Client) ListGroupsForUser(request *ListGroupsForUserRequest) (response *ListGroupsForUserResponse, err error)
ListGroupsForUser This API is used to list user groups associated with a user.
error code that may be returned:
RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) ListGroupsForUserWithContext ¶
func (c *Client) ListGroupsForUserWithContext(ctx context.Context, request *ListGroupsForUserRequest) (response *ListGroupsForUserResponse, err error)
ListGroupsForUser This API is used to list user groups associated with a user.
error code that may be returned:
RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) ListGroupsWithContext ¶
func (c *Client) ListGroupsWithContext(ctx context.Context, request *ListGroupsRequest) (response *ListGroupsResponse, err error)
ListGroups This API is used to query the list of user groups.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_ENTITYFILTERERROR = "InvalidParameter.EntityFilterError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYIDERROR = "InvalidParameter.PolicyIdError"
func (*Client) ListPolicies ¶
func (c *Client) ListPolicies(request *ListPoliciesRequest) (response *ListPoliciesResponse, err error)
ListPolicies This API is used to query the policy list.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_GROUPIDERROR = "InvalidParameter.GroupIdError" INVALIDPARAMETER_KEYWORDERROR = "InvalidParameter.KeywordError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_SCOPEERROR = "InvalidParameter.ScopeError" INVALIDPARAMETER_SERVICETYPEERROR = "InvalidParameter.ServiceTypeError" INVALIDPARAMETER_UINERROR = "InvalidParameter.UinError"
func (*Client) ListPoliciesWithContext ¶
func (c *Client) ListPoliciesWithContext(ctx context.Context, request *ListPoliciesRequest) (response *ListPoliciesResponse, err error)
ListPolicies This API is used to query the policy list.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_GROUPIDERROR = "InvalidParameter.GroupIdError" INVALIDPARAMETER_KEYWORDERROR = "InvalidParameter.KeywordError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_SCOPEERROR = "InvalidParameter.ScopeError" INVALIDPARAMETER_SERVICETYPEERROR = "InvalidParameter.ServiceTypeError" INVALIDPARAMETER_UINERROR = "InvalidParameter.UinError"
func (*Client) ListPolicyVersions ¶
func (c *Client) ListPolicyVersions(request *ListPolicyVersionsRequest) (response *ListPolicyVersionsResponse, err error)
ListPolicyVersions This API is used to get the list of policy versions.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYIDNOTEXIST = "InvalidParameter.PolicyIdNotExist" RESOURCENOTFOUND_POLICYIDNOTFOUND = "ResourceNotFound.PolicyIdNotFound"
func (*Client) ListPolicyVersionsWithContext ¶
func (c *Client) ListPolicyVersionsWithContext(ctx context.Context, request *ListPolicyVersionsRequest) (response *ListPolicyVersionsResponse, err error)
ListPolicyVersions This API is used to get the list of policy versions.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYIDNOTEXIST = "InvalidParameter.PolicyIdNotExist" RESOURCENOTFOUND_POLICYIDNOTFOUND = "ResourceNotFound.PolicyIdNotFound"
func (*Client) ListSAMLProviders ¶
func (c *Client) ListSAMLProviders(request *ListSAMLProvidersRequest) (response *ListSAMLProvidersResponse, err error)
ListSAMLProviders This API is used to query the list of SAML identity providers.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYIDNOTEXIST = "InvalidParameter.PolicyIdNotExist" RESOURCENOTFOUND_POLICYIDNOTFOUND = "ResourceNotFound.PolicyIdNotFound"
func (*Client) ListSAMLProvidersWithContext ¶
func (c *Client) ListSAMLProvidersWithContext(ctx context.Context, request *ListSAMLProvidersRequest) (response *ListSAMLProvidersResponse, err error)
ListSAMLProviders This API is used to query the list of SAML identity providers.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYIDNOTEXIST = "InvalidParameter.PolicyIdNotExist" RESOURCENOTFOUND_POLICYIDNOTFOUND = "ResourceNotFound.PolicyIdNotFound"
func (*Client) ListUsers ¶
func (c *Client) ListUsers(request *ListUsersRequest) (response *ListUsersResponse, err error)
ListUsers This API is used to pull sub-users.
error code that may be returned:
FAILEDOPERATION = "FailedOperation"
func (*Client) ListUsersForGroup ¶
func (c *Client) ListUsersForGroup(request *ListUsersForGroupRequest) (response *ListUsersForGroupResponse, err error)
ListUsersForGroup This API is used to query the list of users associated with a user group.
error code that may be returned:
RESOURCENOTFOUND_GROUPNOTEXIST = "ResourceNotFound.GroupNotExist"
func (*Client) ListUsersForGroupWithContext ¶
func (c *Client) ListUsersForGroupWithContext(ctx context.Context, request *ListUsersForGroupRequest) (response *ListUsersForGroupResponse, err error)
ListUsersForGroup This API is used to query the list of users associated with a user group.
error code that may be returned:
RESOURCENOTFOUND_GROUPNOTEXIST = "ResourceNotFound.GroupNotExist"
func (*Client) ListUsersWithContext ¶
func (c *Client) ListUsersWithContext(ctx context.Context, request *ListUsersRequest) (response *ListUsersResponse, err error)
ListUsers This API is used to pull sub-users.
error code that may be returned:
FAILEDOPERATION = "FailedOperation"
func (*Client) PutRolePermissionsBoundary ¶
func (c *Client) PutRolePermissionsBoundary(request *PutRolePermissionsBoundaryRequest) (response *PutRolePermissionsBoundaryResponse, err error)
PutRolePermissionsBoundary This API is used to set a role permission boundary.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_OPERATEENTITIESOVERLIMIT = "InvalidParameter.OperateEntitiesOverLimit" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYIDNOTEXIST = "InvalidParameter.PolicyIdNotExist" INVALIDPARAMETER_ROLENOTEXIST = "InvalidParameter.RoleNotExist" INVALIDPARAMETER_SERVICELINKEDPOLICYCANTINPERMISSIONBOUNDARY = "InvalidParameter.ServiceLinkedPolicyCantInPermissionBoundary" INVALIDPARAMETER_SERVICELINKEDROLECANTUSEPERMISSIONBOUNDARY = "InvalidParameter.ServiceLinkedRoleCantUsePermissionBoundary" INVALIDPARAMETER_USERNOTEXIST = "InvalidParameter.UserNotExist" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) PutRolePermissionsBoundaryWithContext ¶
func (c *Client) PutRolePermissionsBoundaryWithContext(ctx context.Context, request *PutRolePermissionsBoundaryRequest) (response *PutRolePermissionsBoundaryResponse, err error)
PutRolePermissionsBoundary This API is used to set a role permission boundary.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_OPERATEENTITIESOVERLIMIT = "InvalidParameter.OperateEntitiesOverLimit" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYIDNOTEXIST = "InvalidParameter.PolicyIdNotExist" INVALIDPARAMETER_ROLENOTEXIST = "InvalidParameter.RoleNotExist" INVALIDPARAMETER_SERVICELINKEDPOLICYCANTINPERMISSIONBOUNDARY = "InvalidParameter.ServiceLinkedPolicyCantInPermissionBoundary" INVALIDPARAMETER_SERVICELINKEDROLECANTUSEPERMISSIONBOUNDARY = "InvalidParameter.ServiceLinkedRoleCantUsePermissionBoundary" INVALIDPARAMETER_USERNOTEXIST = "InvalidParameter.UserNotExist" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) PutUserPermissionsBoundary ¶
func (c *Client) PutUserPermissionsBoundary(request *PutUserPermissionsBoundaryRequest) (response *PutUserPermissionsBoundaryResponse, err error)
PutUserPermissionsBoundary This API is used to set a user permission boundary.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_OPERATEENTITIESOVERLIMIT = "InvalidParameter.OperateEntitiesOverLimit" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYIDNOTEXIST = "InvalidParameter.PolicyIdNotExist" INVALIDPARAMETER_ROLENOTEXIST = "InvalidParameter.RoleNotExist" INVALIDPARAMETER_SERVICELINKEDPOLICYCANTINPERMISSIONBOUNDARY = "InvalidParameter.ServiceLinkedPolicyCantInPermissionBoundary" INVALIDPARAMETER_USERNOTEXIST = "InvalidParameter.UserNotExist" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) PutUserPermissionsBoundaryWithContext ¶
func (c *Client) PutUserPermissionsBoundaryWithContext(ctx context.Context, request *PutUserPermissionsBoundaryRequest) (response *PutUserPermissionsBoundaryResponse, err error)
PutUserPermissionsBoundary This API is used to set a user permission boundary.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_OPERATEENTITIESOVERLIMIT = "InvalidParameter.OperateEntitiesOverLimit" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYIDNOTEXIST = "InvalidParameter.PolicyIdNotExist" INVALIDPARAMETER_ROLENOTEXIST = "InvalidParameter.RoleNotExist" INVALIDPARAMETER_SERVICELINKEDPOLICYCANTINPERMISSIONBOUNDARY = "InvalidParameter.ServiceLinkedPolicyCantInPermissionBoundary" INVALIDPARAMETER_USERNOTEXIST = "InvalidParameter.UserNotExist" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) RemoveUserFromGroup ¶
func (c *Client) RemoveUserFromGroup(request *RemoveUserFromGroupRequest) (response *RemoveUserFromGroupResponse, err error)
RemoveUserFromGroup This API is used to delete users from a user group.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INVALIDPARAMETER_USERUINANDUINNOTALLNULL = "InvalidParameter.UserUinAndUinNotAllNull" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) RemoveUserFromGroupWithContext ¶
func (c *Client) RemoveUserFromGroupWithContext(ctx context.Context, request *RemoveUserFromGroupRequest) (response *RemoveUserFromGroupResponse, err error)
RemoveUserFromGroup This API is used to delete users from a user group.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INVALIDPARAMETER_USERUINANDUINNOTALLNULL = "InvalidParameter.UserUinAndUinNotAllNull" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) SetDefaultPolicyVersion ¶
func (c *Client) SetDefaultPolicyVersion(request *SetDefaultPolicyVersionRequest) (response *SetDefaultPolicyVersionResponse, err error)
SetDefaultPolicyVersion This API is used to set the operative policy version.
error code that may be returned:
FAILEDOPERATION_POLICYNAMEINUSE = "FailedOperation.PolicyNameInUse" FAILEDOPERATION_POLICYVERSIONALREADYDEFAULT = "FailedOperation.PolicyVersionAlreadyDefault" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_ACTIONERROR = "InvalidParameter.ActionError" INVALIDPARAMETER_ACTIONMISS = "InvalidParameter.ActionMiss" INVALIDPARAMETER_ACTIONNOTEXIST = "InvalidParameter.ActionNotExist" INVALIDPARAMETER_ACTIONSERVICENOTEXIST = "InvalidParameter.ActionServiceNotExist" INVALIDPARAMETER_ATTACHMENTFULL = "InvalidParameter.AttachmentFull" INVALIDPARAMETER_CONDITIONCONTENTERROR = "InvalidParameter.ConditionContentError" INVALIDPARAMETER_CONDITIONERROR = "InvalidParameter.ConditionError" INVALIDPARAMETER_CONDITIONTYPEERROR = "InvalidParameter.ConditionTypeError" INVALIDPARAMETER_DESCRIPTIONLENGTHOVERLIMIT = "InvalidParameter.DescriptionLengthOverlimit" INVALIDPARAMETER_EFFECTERROR = "InvalidParameter.EffectError" INVALIDPARAMETER_NOTSUPPORTPRODUCT = "InvalidParameter.NotSupportProduct" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYDOCUMENTERROR = "InvalidParameter.PolicyDocumentError" INVALIDPARAMETER_POLICYDOCUMENTLENGTHOVERLIMIT = "InvalidParameter.PolicyDocumentLengthOverLimit" INVALIDPARAMETER_POLICYIDERROR = "InvalidParameter.PolicyIdError" INVALIDPARAMETER_POLICYIDNOTEXIST = "InvalidParameter.PolicyIdNotExist" INVALIDPARAMETER_POLICYNAMEERROR = "InvalidParameter.PolicyNameError" INVALIDPARAMETER_POLICYVERSIONNOTEXISTS = "InvalidParameter.PolicyVersionNotExists" INVALIDPARAMETER_PRINCIPALERROR = "InvalidParameter.PrincipalError" INVALIDPARAMETER_PRINCIPALQCSERROR = "InvalidParameter.PrincipalQcsError" INVALIDPARAMETER_PRINCIPALQCSNOTEXIST = "InvalidParameter.PrincipalQcsNotExist" INVALIDPARAMETER_PRINCIPALSERVICENOTEXIST = "InvalidParameter.PrincipalServiceNotExist" INVALIDPARAMETER_RESOURCECONTENTERROR = "InvalidParameter.ResourceContentError" INVALIDPARAMETER_RESOURCEERROR = "InvalidParameter.ResourceError" INVALIDPARAMETER_RESOURCEPROJECTERROR = "InvalidParameter.ResourceProjectError" INVALIDPARAMETER_RESOURCEQCSERROR = "InvalidParameter.ResourceQcsError" INVALIDPARAMETER_RESOURCEREGIONERROR = "InvalidParameter.ResourceRegionError" INVALIDPARAMETER_RESOURCESERVICENOTEXIST = "InvalidParameter.ResourceServiceNotExist" INVALIDPARAMETER_RESOURCEUINERROR = "InvalidParameter.ResourceUinError" INVALIDPARAMETER_STATEMENTERROR = "InvalidParameter.StatementError" INVALIDPARAMETER_USERNOTEXIST = "InvalidParameter.UserNotExist" INVALIDPARAMETER_VERSIONERROR = "InvalidParameter.VersionError" RESOURCENOTFOUND_GROUPNOTEXIST = "ResourceNotFound.GroupNotExist" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCENOTFOUND_POLICYIDNOTFOUND = "ResourceNotFound.PolicyIdNotFound" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) SetDefaultPolicyVersionWithContext ¶
func (c *Client) SetDefaultPolicyVersionWithContext(ctx context.Context, request *SetDefaultPolicyVersionRequest) (response *SetDefaultPolicyVersionResponse, err error)
SetDefaultPolicyVersion This API is used to set the operative policy version.
error code that may be returned:
FAILEDOPERATION_POLICYNAMEINUSE = "FailedOperation.PolicyNameInUse" FAILEDOPERATION_POLICYVERSIONALREADYDEFAULT = "FailedOperation.PolicyVersionAlreadyDefault" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_ACTIONERROR = "InvalidParameter.ActionError" INVALIDPARAMETER_ACTIONMISS = "InvalidParameter.ActionMiss" INVALIDPARAMETER_ACTIONNOTEXIST = "InvalidParameter.ActionNotExist" INVALIDPARAMETER_ACTIONSERVICENOTEXIST = "InvalidParameter.ActionServiceNotExist" INVALIDPARAMETER_ATTACHMENTFULL = "InvalidParameter.AttachmentFull" INVALIDPARAMETER_CONDITIONCONTENTERROR = "InvalidParameter.ConditionContentError" INVALIDPARAMETER_CONDITIONERROR = "InvalidParameter.ConditionError" INVALIDPARAMETER_CONDITIONTYPEERROR = "InvalidParameter.ConditionTypeError" INVALIDPARAMETER_DESCRIPTIONLENGTHOVERLIMIT = "InvalidParameter.DescriptionLengthOverlimit" INVALIDPARAMETER_EFFECTERROR = "InvalidParameter.EffectError" INVALIDPARAMETER_NOTSUPPORTPRODUCT = "InvalidParameter.NotSupportProduct" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYDOCUMENTERROR = "InvalidParameter.PolicyDocumentError" INVALIDPARAMETER_POLICYDOCUMENTLENGTHOVERLIMIT = "InvalidParameter.PolicyDocumentLengthOverLimit" INVALIDPARAMETER_POLICYIDERROR = "InvalidParameter.PolicyIdError" INVALIDPARAMETER_POLICYIDNOTEXIST = "InvalidParameter.PolicyIdNotExist" INVALIDPARAMETER_POLICYNAMEERROR = "InvalidParameter.PolicyNameError" INVALIDPARAMETER_POLICYVERSIONNOTEXISTS = "InvalidParameter.PolicyVersionNotExists" INVALIDPARAMETER_PRINCIPALERROR = "InvalidParameter.PrincipalError" INVALIDPARAMETER_PRINCIPALQCSERROR = "InvalidParameter.PrincipalQcsError" INVALIDPARAMETER_PRINCIPALQCSNOTEXIST = "InvalidParameter.PrincipalQcsNotExist" INVALIDPARAMETER_PRINCIPALSERVICENOTEXIST = "InvalidParameter.PrincipalServiceNotExist" INVALIDPARAMETER_RESOURCECONTENTERROR = "InvalidParameter.ResourceContentError" INVALIDPARAMETER_RESOURCEERROR = "InvalidParameter.ResourceError" INVALIDPARAMETER_RESOURCEPROJECTERROR = "InvalidParameter.ResourceProjectError" INVALIDPARAMETER_RESOURCEQCSERROR = "InvalidParameter.ResourceQcsError" INVALIDPARAMETER_RESOURCEREGIONERROR = "InvalidParameter.ResourceRegionError" INVALIDPARAMETER_RESOURCESERVICENOTEXIST = "InvalidParameter.ResourceServiceNotExist" INVALIDPARAMETER_RESOURCEUINERROR = "InvalidParameter.ResourceUinError" INVALIDPARAMETER_STATEMENTERROR = "InvalidParameter.StatementError" INVALIDPARAMETER_USERNOTEXIST = "InvalidParameter.UserNotExist" INVALIDPARAMETER_VERSIONERROR = "InvalidParameter.VersionError" RESOURCENOTFOUND_GROUPNOTEXIST = "ResourceNotFound.GroupNotExist" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCENOTFOUND_POLICYIDNOTFOUND = "ResourceNotFound.PolicyIdNotFound" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) SetMfaFlag ¶
func (c *Client) SetMfaFlag(request *SetMfaFlagRequest) (response *SetMfaFlagResponse, err error)
SetMfaFlag This API is used to set account verification for login and sensitive operations for sub-users.
error code that may be returned:
FAILEDOPERATION_USERNOTBINDPHONE = "FailedOperation.UserNotBindPhone" FAILEDOPERATION_USERNOTBINDWECHAT = "FailedOperation.UserNotBindWechat" FAILEDOPERATION_USERUNBINDNOPERMISSION = "FailedOperation.UserUnbindNoPermission" INVALIDPARAMETER_MFATOKENERROR = "InvalidParameter.MFATokenError" INVALIDPARAMETER_USERNOTEXIST = "InvalidParameter.UserNotExist" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) SetMfaFlagWithContext ¶
func (c *Client) SetMfaFlagWithContext(ctx context.Context, request *SetMfaFlagRequest) (response *SetMfaFlagResponse, err error)
SetMfaFlag This API is used to set account verification for login and sensitive operations for sub-users.
error code that may be returned:
FAILEDOPERATION_USERNOTBINDPHONE = "FailedOperation.UserNotBindPhone" FAILEDOPERATION_USERNOTBINDWECHAT = "FailedOperation.UserNotBindWechat" FAILEDOPERATION_USERUNBINDNOPERMISSION = "FailedOperation.UserUnbindNoPermission" INVALIDPARAMETER_MFATOKENERROR = "InvalidParameter.MFATokenError" INVALIDPARAMETER_USERNOTEXIST = "InvalidParameter.UserNotExist" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) UpdateAssumeRolePolicy ¶
func (c *Client) UpdateAssumeRolePolicy(request *UpdateAssumeRolePolicyRequest) (response *UpdateAssumeRolePolicyResponse, err error)
UpdateAssumeRolePolicy This API (UpdateAssumeRolePolicy) is used to modify the trust policy of a role.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_ACTIONERROR = "InvalidParameter.ActionError" INVALIDPARAMETER_ACTIONMISS = "InvalidParameter.ActionMiss" INVALIDPARAMETER_ATTACHMENTFULL = "InvalidParameter.AttachmentFull" INVALIDPARAMETER_CONDITIONCONTENTERROR = "InvalidParameter.ConditionContentError" INVALIDPARAMETER_CONDITIONERROR = "InvalidParameter.ConditionError" INVALIDPARAMETER_CONDITIONTYPEERROR = "InvalidParameter.ConditionTypeError" INVALIDPARAMETER_EFFECTERROR = "InvalidParameter.EffectError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYDOCUMENTLENGTHOVERLIMIT = "InvalidParameter.PolicyDocumentLengthOverLimit" INVALIDPARAMETER_PRINCIPALERROR = "InvalidParameter.PrincipalError" INVALIDPARAMETER_PRINCIPALQCSCROSSERROR = "InvalidParameter.PrincipalQcsCrossError" INVALIDPARAMETER_PRINCIPALQCSERROR = "InvalidParameter.PrincipalQcsError" INVALIDPARAMETER_PRINCIPALQCSNOTEXIST = "InvalidParameter.PrincipalQcsNotExist" INVALIDPARAMETER_PRINCIPALSERVICENOTEXIST = "InvalidParameter.PrincipalServiceNotExist" INVALIDPARAMETER_ROLENOTEXIST = "InvalidParameter.RoleNotExist" INVALIDPARAMETER_STATEMENTERROR = "InvalidParameter.StatementError" INVALIDPARAMETER_USERNOTEXIST = "InvalidParameter.UserNotExist" INVALIDPARAMETER_VERSIONERROR = "InvalidParameter.VersionError"
func (*Client) UpdateAssumeRolePolicyWithContext ¶
func (c *Client) UpdateAssumeRolePolicyWithContext(ctx context.Context, request *UpdateAssumeRolePolicyRequest) (response *UpdateAssumeRolePolicyResponse, err error)
UpdateAssumeRolePolicy This API (UpdateAssumeRolePolicy) is used to modify the trust policy of a role.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_ACTIONERROR = "InvalidParameter.ActionError" INVALIDPARAMETER_ACTIONMISS = "InvalidParameter.ActionMiss" INVALIDPARAMETER_ATTACHMENTFULL = "InvalidParameter.AttachmentFull" INVALIDPARAMETER_CONDITIONCONTENTERROR = "InvalidParameter.ConditionContentError" INVALIDPARAMETER_CONDITIONERROR = "InvalidParameter.ConditionError" INVALIDPARAMETER_CONDITIONTYPEERROR = "InvalidParameter.ConditionTypeError" INVALIDPARAMETER_EFFECTERROR = "InvalidParameter.EffectError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYDOCUMENTLENGTHOVERLIMIT = "InvalidParameter.PolicyDocumentLengthOverLimit" INVALIDPARAMETER_PRINCIPALERROR = "InvalidParameter.PrincipalError" INVALIDPARAMETER_PRINCIPALQCSCROSSERROR = "InvalidParameter.PrincipalQcsCrossError" INVALIDPARAMETER_PRINCIPALQCSERROR = "InvalidParameter.PrincipalQcsError" INVALIDPARAMETER_PRINCIPALQCSNOTEXIST = "InvalidParameter.PrincipalQcsNotExist" INVALIDPARAMETER_PRINCIPALSERVICENOTEXIST = "InvalidParameter.PrincipalServiceNotExist" INVALIDPARAMETER_ROLENOTEXIST = "InvalidParameter.RoleNotExist" INVALIDPARAMETER_STATEMENTERROR = "InvalidParameter.StatementError" INVALIDPARAMETER_USERNOTEXIST = "InvalidParameter.UserNotExist" INVALIDPARAMETER_VERSIONERROR = "InvalidParameter.VersionError"
func (*Client) UpdateGroup ¶
func (c *Client) UpdateGroup(request *UpdateGroupRequest) (response *UpdateGroupResponse, err error)
UpdateGroup This API is used to update a user group.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INVALIDPARAMETER_GROUPNAMEINUSE = "InvalidParameter.GroupNameInUse" INVALIDPARAMETER_GROUPNOTEXIST = "InvalidParameter.GroupNotExist" RESOURCENOTFOUND_GROUPNOTEXIST = "ResourceNotFound.GroupNotExist"
func (*Client) UpdateGroupWithContext ¶
func (c *Client) UpdateGroupWithContext(ctx context.Context, request *UpdateGroupRequest) (response *UpdateGroupResponse, err error)
UpdateGroup This API is used to update a user group.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INVALIDPARAMETER_GROUPNAMEINUSE = "InvalidParameter.GroupNameInUse" INVALIDPARAMETER_GROUPNOTEXIST = "InvalidParameter.GroupNotExist" RESOURCENOTFOUND_GROUPNOTEXIST = "ResourceNotFound.GroupNotExist"
func (*Client) UpdatePolicy ¶
func (c *Client) UpdatePolicy(request *UpdatePolicyRequest) (response *UpdatePolicyResponse, err error)
UpdatePolicy This API is used to update a policy.
This API will update the default version of an existing policy instead of creating a new one. If no policy exists, a default version will be created.
error code that may be returned:
FAILEDOPERATION_POLICYNAMEINUSE = "FailedOperation.PolicyNameInUse" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_ACTIONERROR = "InvalidParameter.ActionError" INVALIDPARAMETER_ACTIONMISS = "InvalidParameter.ActionMiss" INVALIDPARAMETER_ACTIONNOTEXIST = "InvalidParameter.ActionNotExist" INVALIDPARAMETER_ACTIONSERVICENOTEXIST = "InvalidParameter.ActionServiceNotExist" INVALIDPARAMETER_ATTACHMENTFULL = "InvalidParameter.AttachmentFull" INVALIDPARAMETER_CONDITIONCONTENTERROR = "InvalidParameter.ConditionContentError" INVALIDPARAMETER_CONDITIONERROR = "InvalidParameter.ConditionError" INVALIDPARAMETER_CONDITIONTYPEERROR = "InvalidParameter.ConditionTypeError" INVALIDPARAMETER_DESCRIPTIONLENGTHOVERLIMIT = "InvalidParameter.DescriptionLengthOverlimit" INVALIDPARAMETER_EFFECTERROR = "InvalidParameter.EffectError" INVALIDPARAMETER_NOTSUPPORTPRODUCT = "InvalidParameter.NotSupportProduct" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYDOCUMENTERROR = "InvalidParameter.PolicyDocumentError" INVALIDPARAMETER_POLICYDOCUMENTLENGTHOVERLIMIT = "InvalidParameter.PolicyDocumentLengthOverLimit" INVALIDPARAMETER_POLICYIDERROR = "InvalidParameter.PolicyIdError" INVALIDPARAMETER_POLICYIDNOTEXIST = "InvalidParameter.PolicyIdNotExist" INVALIDPARAMETER_POLICYNAMEERROR = "InvalidParameter.PolicyNameError" INVALIDPARAMETER_PRINCIPALERROR = "InvalidParameter.PrincipalError" INVALIDPARAMETER_PRINCIPALQCSERROR = "InvalidParameter.PrincipalQcsError" INVALIDPARAMETER_PRINCIPALQCSNOTEXIST = "InvalidParameter.PrincipalQcsNotExist" INVALIDPARAMETER_PRINCIPALSERVICENOTEXIST = "InvalidParameter.PrincipalServiceNotExist" INVALIDPARAMETER_RESOURCECONTENTERROR = "InvalidParameter.ResourceContentError" INVALIDPARAMETER_RESOURCEERROR = "InvalidParameter.ResourceError" INVALIDPARAMETER_RESOURCEPROJECTERROR = "InvalidParameter.ResourceProjectError" INVALIDPARAMETER_RESOURCEQCSERROR = "InvalidParameter.ResourceQcsError" INVALIDPARAMETER_RESOURCEREGIONERROR = "InvalidParameter.ResourceRegionError" INVALIDPARAMETER_RESOURCESERVICENOTEXIST = "InvalidParameter.ResourceServiceNotExist" INVALIDPARAMETER_RESOURCEUINERROR = "InvalidParameter.ResourceUinError" INVALIDPARAMETER_STATEMENTERROR = "InvalidParameter.StatementError" INVALIDPARAMETER_USERNOTEXIST = "InvalidParameter.UserNotExist" INVALIDPARAMETER_VERSIONERROR = "InvalidParameter.VersionError" RESOURCENOTFOUND_GROUPNOTEXIST = "ResourceNotFound.GroupNotExist" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCENOTFOUND_POLICYIDNOTFOUND = "ResourceNotFound.PolicyIdNotFound" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) UpdatePolicyWithContext ¶
func (c *Client) UpdatePolicyWithContext(ctx context.Context, request *UpdatePolicyRequest) (response *UpdatePolicyResponse, err error)
UpdatePolicy This API is used to update a policy.
This API will update the default version of an existing policy instead of creating a new one. If no policy exists, a default version will be created.
error code that may be returned:
FAILEDOPERATION_POLICYNAMEINUSE = "FailedOperation.PolicyNameInUse" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_ACTIONERROR = "InvalidParameter.ActionError" INVALIDPARAMETER_ACTIONMISS = "InvalidParameter.ActionMiss" INVALIDPARAMETER_ACTIONNOTEXIST = "InvalidParameter.ActionNotExist" INVALIDPARAMETER_ACTIONSERVICENOTEXIST = "InvalidParameter.ActionServiceNotExist" INVALIDPARAMETER_ATTACHMENTFULL = "InvalidParameter.AttachmentFull" INVALIDPARAMETER_CONDITIONCONTENTERROR = "InvalidParameter.ConditionContentError" INVALIDPARAMETER_CONDITIONERROR = "InvalidParameter.ConditionError" INVALIDPARAMETER_CONDITIONTYPEERROR = "InvalidParameter.ConditionTypeError" INVALIDPARAMETER_DESCRIPTIONLENGTHOVERLIMIT = "InvalidParameter.DescriptionLengthOverlimit" INVALIDPARAMETER_EFFECTERROR = "InvalidParameter.EffectError" INVALIDPARAMETER_NOTSUPPORTPRODUCT = "InvalidParameter.NotSupportProduct" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_POLICYDOCUMENTERROR = "InvalidParameter.PolicyDocumentError" INVALIDPARAMETER_POLICYDOCUMENTLENGTHOVERLIMIT = "InvalidParameter.PolicyDocumentLengthOverLimit" INVALIDPARAMETER_POLICYIDERROR = "InvalidParameter.PolicyIdError" INVALIDPARAMETER_POLICYIDNOTEXIST = "InvalidParameter.PolicyIdNotExist" INVALIDPARAMETER_POLICYNAMEERROR = "InvalidParameter.PolicyNameError" INVALIDPARAMETER_PRINCIPALERROR = "InvalidParameter.PrincipalError" INVALIDPARAMETER_PRINCIPALQCSERROR = "InvalidParameter.PrincipalQcsError" INVALIDPARAMETER_PRINCIPALQCSNOTEXIST = "InvalidParameter.PrincipalQcsNotExist" INVALIDPARAMETER_PRINCIPALSERVICENOTEXIST = "InvalidParameter.PrincipalServiceNotExist" INVALIDPARAMETER_RESOURCECONTENTERROR = "InvalidParameter.ResourceContentError" INVALIDPARAMETER_RESOURCEERROR = "InvalidParameter.ResourceError" INVALIDPARAMETER_RESOURCEPROJECTERROR = "InvalidParameter.ResourceProjectError" INVALIDPARAMETER_RESOURCEQCSERROR = "InvalidParameter.ResourceQcsError" INVALIDPARAMETER_RESOURCEREGIONERROR = "InvalidParameter.ResourceRegionError" INVALIDPARAMETER_RESOURCESERVICENOTEXIST = "InvalidParameter.ResourceServiceNotExist" INVALIDPARAMETER_RESOURCEUINERROR = "InvalidParameter.ResourceUinError" INVALIDPARAMETER_STATEMENTERROR = "InvalidParameter.StatementError" INVALIDPARAMETER_USERNOTEXIST = "InvalidParameter.UserNotExist" INVALIDPARAMETER_VERSIONERROR = "InvalidParameter.VersionError" RESOURCENOTFOUND_GROUPNOTEXIST = "ResourceNotFound.GroupNotExist" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCENOTFOUND_POLICYIDNOTFOUND = "ResourceNotFound.PolicyIdNotFound" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) UpdateRoleConsoleLogin ¶
func (c *Client) UpdateRoleConsoleLogin(request *UpdateRoleConsoleLoginRequest) (response *UpdateRoleConsoleLoginResponse, err error)
UpdateRoleConsoleLogin This API is used to modify a role's login permissions.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_ROLENOTEXIST = "InvalidParameter.RoleNotExist"
func (*Client) UpdateRoleConsoleLoginWithContext ¶
func (c *Client) UpdateRoleConsoleLoginWithContext(ctx context.Context, request *UpdateRoleConsoleLoginRequest) (response *UpdateRoleConsoleLoginResponse, err error)
UpdateRoleConsoleLogin This API is used to modify a role's login permissions.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_ROLENOTEXIST = "InvalidParameter.RoleNotExist"
func (*Client) UpdateRoleDescription ¶
func (c *Client) UpdateRoleDescription(request *UpdateRoleDescriptionRequest) (response *UpdateRoleDescriptionResponse, err error)
UpdateRoleDescription This API (UpdateRoleDescription) is used to modify the description of a role.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_DESCRIPTIONLENGTHOVERLIMIT = "InvalidParameter.DescriptionLengthOverlimit" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_ROLENOTEXIST = "InvalidParameter.RoleNotExist"
func (*Client) UpdateRoleDescriptionWithContext ¶
func (c *Client) UpdateRoleDescriptionWithContext(ctx context.Context, request *UpdateRoleDescriptionRequest) (response *UpdateRoleDescriptionResponse, err error)
UpdateRoleDescription This API (UpdateRoleDescription) is used to modify the description of a role.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_DESCRIPTIONLENGTHOVERLIMIT = "InvalidParameter.DescriptionLengthOverlimit" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_ROLENOTEXIST = "InvalidParameter.RoleNotExist"
func (*Client) UpdateSAMLProvider ¶
func (c *Client) UpdateSAMLProvider(request *UpdateSAMLProviderRequest) (response *UpdateSAMLProviderResponse, err error)
UpdateSAMLProvider This API is used to update SAML identity provider information.
error code that may be returned:
INVALIDPARAMETERVALUE_METADATAERROR = "InvalidParameterValue.MetadataError" RESOURCENOTFOUND_IDENTITYNOTEXIST = "ResourceNotFound.IdentityNotExist"
func (*Client) UpdateSAMLProviderWithContext ¶
func (c *Client) UpdateSAMLProviderWithContext(ctx context.Context, request *UpdateSAMLProviderRequest) (response *UpdateSAMLProviderResponse, err error)
UpdateSAMLProvider This API is used to update SAML identity provider information.
error code that may be returned:
INVALIDPARAMETERVALUE_METADATAERROR = "InvalidParameterValue.MetadataError" RESOURCENOTFOUND_IDENTITYNOTEXIST = "ResourceNotFound.IdentityNotExist"
func (*Client) UpdateUser ¶
func (c *Client) UpdateUser(request *UpdateUserRequest) (response *UpdateUserResponse, err error)
UpdateUser This API is used to update a sub-user.
error code that may be returned:
INVALIDPARAMETER_PASSWORDVIOLATEDRULES = "InvalidParameter.PasswordViolatedRules" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) UpdateUserSAMLConfig ¶
func (c *Client) UpdateUserSAMLConfig(request *UpdateUserSAMLConfigRequest) (response *UpdateUserSAMLConfigResponse, err error)
UpdateUserSAMLConfig This API is used to modify user SAML configurations.
error code that may be returned:
INVALIDPARAMETERVALUE_METADATAERROR = "InvalidParameterValue.MetadataError" RESOURCENOTFOUND_IDENTITYNOTEXIST = "ResourceNotFound.IdentityNotExist"
func (*Client) UpdateUserSAMLConfigWithContext ¶
func (c *Client) UpdateUserSAMLConfigWithContext(ctx context.Context, request *UpdateUserSAMLConfigRequest) (response *UpdateUserSAMLConfigResponse, err error)
UpdateUserSAMLConfig This API is used to modify user SAML configurations.
error code that may be returned:
INVALIDPARAMETERVALUE_METADATAERROR = "InvalidParameterValue.MetadataError" RESOURCENOTFOUND_IDENTITYNOTEXIST = "ResourceNotFound.IdentityNotExist"
func (*Client) UpdateUserWithContext ¶
func (c *Client) UpdateUserWithContext(ctx context.Context, request *UpdateUserRequest) (response *UpdateUserResponse, err error)
UpdateUser This API is used to update a sub-user.
error code that may be returned:
INVALIDPARAMETER_PASSWORDVIOLATEDRULES = "InvalidParameter.PasswordViolatedRules" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
type ConsumeCustomMFATokenRequest ¶
type ConsumeCustomMFATokenRequest struct { *tchttp.BaseRequest // Custom multi-factor verification Token MFAToken *string `json:"MFAToken,omitempty" name:"MFAToken"` }
func NewConsumeCustomMFATokenRequest ¶
func NewConsumeCustomMFATokenRequest() (request *ConsumeCustomMFATokenRequest)
func (*ConsumeCustomMFATokenRequest) FromJsonString ¶
func (r *ConsumeCustomMFATokenRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ConsumeCustomMFATokenRequest) ToJsonString ¶
func (r *ConsumeCustomMFATokenRequest) ToJsonString() string
type ConsumeCustomMFATokenResponse ¶
type ConsumeCustomMFATokenResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewConsumeCustomMFATokenResponse ¶
func NewConsumeCustomMFATokenResponse() (response *ConsumeCustomMFATokenResponse)
func (*ConsumeCustomMFATokenResponse) FromJsonString ¶
func (r *ConsumeCustomMFATokenResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ConsumeCustomMFATokenResponse) ToJsonString ¶
func (r *ConsumeCustomMFATokenResponse) ToJsonString() string
type CreateGroupRequest ¶
type CreateGroupRequest struct { *tchttp.BaseRequest // User Group name GroupName *string `json:"GroupName,omitempty" name:"GroupName"` // User Group description Remark *string `json:"Remark,omitempty" name:"Remark"` }
func NewCreateGroupRequest ¶
func NewCreateGroupRequest() (request *CreateGroupRequest)
func (*CreateGroupRequest) FromJsonString ¶
func (r *CreateGroupRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateGroupRequest) ToJsonString ¶
func (r *CreateGroupRequest) ToJsonString() string
type CreateGroupResponse ¶
type CreateGroupResponse struct { *tchttp.BaseResponse Response *struct { // User Group ID GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateGroupResponse ¶
func NewCreateGroupResponse() (response *CreateGroupResponse)
func (*CreateGroupResponse) FromJsonString ¶
func (r *CreateGroupResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateGroupResponse) ToJsonString ¶
func (r *CreateGroupResponse) ToJsonString() string
type CreatePolicyRequest ¶
type CreatePolicyRequest struct { *tchttp.BaseRequest // Policy name PolicyName *string `json:"PolicyName,omitempty" name:"PolicyName"` // Policy document, such as `{"version":"2.0","statement":[{"action":"name/sts:AssumeRole","effect":"allow","principal":{"service":["cloudaudit.cloud.tencent.com","cls.cloud.tencent.com"]}}]}`, where `principal` is used to specify the resources that the role is authorized to access. For more information on this parameter, please see the `RoleInfo` output parameter of the [GetRole](https://intl.cloud.tencent.com/document/product/598/36221?from_cn_redirect=1) API PolicyDocument *string `json:"PolicyDocument,omitempty" name:"PolicyDocument"` // Policy description Description *string `json:"Description,omitempty" name:"Description"` }
func NewCreatePolicyRequest ¶
func NewCreatePolicyRequest() (request *CreatePolicyRequest)
func (*CreatePolicyRequest) FromJsonString ¶
func (r *CreatePolicyRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreatePolicyRequest) ToJsonString ¶
func (r *CreatePolicyRequest) ToJsonString() string
type CreatePolicyResponse ¶
type CreatePolicyResponse struct { *tchttp.BaseResponse Response *struct { // ID of newly added policy PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreatePolicyResponse ¶
func NewCreatePolicyResponse() (response *CreatePolicyResponse)
func (*CreatePolicyResponse) FromJsonString ¶
func (r *CreatePolicyResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreatePolicyResponse) ToJsonString ¶
func (r *CreatePolicyResponse) ToJsonString() string
type CreatePolicyVersionRequest ¶
type CreatePolicyVersionRequest struct { *tchttp.BaseRequest // Policy ID PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"` // The policy document to use as the content for the new version PolicyDocument *string `json:"PolicyDocument,omitempty" name:"PolicyDocument"` // Specifies whether to set this version as the default version SetAsDefault *bool `json:"SetAsDefault,omitempty" name:"SetAsDefault"` }
func NewCreatePolicyVersionRequest ¶
func NewCreatePolicyVersionRequest() (request *CreatePolicyVersionRequest)
func (*CreatePolicyVersionRequest) FromJsonString ¶
func (r *CreatePolicyVersionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreatePolicyVersionRequest) ToJsonString ¶
func (r *CreatePolicyVersionRequest) ToJsonString() string
type CreatePolicyVersionResponse ¶
type CreatePolicyVersionResponse struct { *tchttp.BaseResponse Response *struct { // Policy version ID // Note: this field may return null, indicating that no valid values can be obtained. VersionId *uint64 `json:"VersionId,omitempty" name:"VersionId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreatePolicyVersionResponse ¶
func NewCreatePolicyVersionResponse() (response *CreatePolicyVersionResponse)
func (*CreatePolicyVersionResponse) FromJsonString ¶
func (r *CreatePolicyVersionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreatePolicyVersionResponse) ToJsonString ¶
func (r *CreatePolicyVersionResponse) ToJsonString() string
type CreateRoleRequest ¶
type CreateRoleRequest struct { *tchttp.BaseRequest // Role name RoleName *string `json:"RoleName,omitempty" name:"RoleName"` // Policy document PolicyDocument *string `json:"PolicyDocument,omitempty" name:"PolicyDocument"` // Role description Description *string `json:"Description,omitempty" name:"Description"` // Whether login is allowed. 1: yes, 0: no ConsoleLogin *uint64 `json:"ConsoleLogin,omitempty" name:"ConsoleLogin"` // The maximum validity period of the temporary key for creating a role (range: 0-43200) SessionDuration *uint64 `json:"SessionDuration,omitempty" name:"SessionDuration"` }
func NewCreateRoleRequest ¶
func NewCreateRoleRequest() (request *CreateRoleRequest)
func (*CreateRoleRequest) FromJsonString ¶
func (r *CreateRoleRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateRoleRequest) ToJsonString ¶
func (r *CreateRoleRequest) ToJsonString() string
type CreateRoleResponse ¶
type CreateRoleResponse struct { *tchttp.BaseResponse Response *struct { // Role ID // Note: This field may return null, indicating that no valid value was found. RoleId *string `json:"RoleId,omitempty" name:"RoleId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateRoleResponse ¶
func NewCreateRoleResponse() (response *CreateRoleResponse)
func (*CreateRoleResponse) FromJsonString ¶
func (r *CreateRoleResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateRoleResponse) ToJsonString ¶
func (r *CreateRoleResponse) ToJsonString() string
type CreateSAMLProviderRequest ¶
type CreateSAMLProviderRequest struct { *tchttp.BaseRequest // SAML identity provider name Name *string `json:"Name,omitempty" name:"Name"` // SAML identity provider description Description *string `json:"Description,omitempty" name:"Description"` // SAML identity provider metadata document (Base64) SAMLMetadataDocument *string `json:"SAMLMetadataDocument,omitempty" name:"SAMLMetadataDocument"` }
func NewCreateSAMLProviderRequest ¶
func NewCreateSAMLProviderRequest() (request *CreateSAMLProviderRequest)
func (*CreateSAMLProviderRequest) FromJsonString ¶
func (r *CreateSAMLProviderRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateSAMLProviderRequest) ToJsonString ¶
func (r *CreateSAMLProviderRequest) ToJsonString() string
type CreateSAMLProviderResponse ¶
type CreateSAMLProviderResponse struct { *tchttp.BaseResponse Response *struct { // SAML identity provider resource descriptor ProviderArn *string `json:"ProviderArn,omitempty" name:"ProviderArn"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateSAMLProviderResponse ¶
func NewCreateSAMLProviderResponse() (response *CreateSAMLProviderResponse)
func (*CreateSAMLProviderResponse) FromJsonString ¶
func (r *CreateSAMLProviderResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateSAMLProviderResponse) ToJsonString ¶
func (r *CreateSAMLProviderResponse) ToJsonString() string
type CreateServiceLinkedRoleRequest ¶
type CreateServiceLinkedRoleRequest struct { *tchttp.BaseRequest // Authorized service, i.e., Tencent Cloud service entity with this role attached. QCSServiceName []*string `json:"QCSServiceName,omitempty" name:"QCSServiceName"` // Custom suffix. A string you provide, which is combined with the service-provided prefix to form the complete role name. CustomSuffix *string `json:"CustomSuffix,omitempty" name:"CustomSuffix"` // Role description. Description *string `json:"Description,omitempty" name:"Description"` }
func NewCreateServiceLinkedRoleRequest ¶
func NewCreateServiceLinkedRoleRequest() (request *CreateServiceLinkedRoleRequest)
func (*CreateServiceLinkedRoleRequest) FromJsonString ¶
func (r *CreateServiceLinkedRoleRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateServiceLinkedRoleRequest) ToJsonString ¶
func (r *CreateServiceLinkedRoleRequest) ToJsonString() string
type CreateServiceLinkedRoleResponse ¶
type CreateServiceLinkedRoleResponse struct { *tchttp.BaseResponse Response *struct { // Role ID RoleId *string `json:"RoleId,omitempty" name:"RoleId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateServiceLinkedRoleResponse ¶
func NewCreateServiceLinkedRoleResponse() (response *CreateServiceLinkedRoleResponse)
func (*CreateServiceLinkedRoleResponse) FromJsonString ¶
func (r *CreateServiceLinkedRoleResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateServiceLinkedRoleResponse) ToJsonString ¶
func (r *CreateServiceLinkedRoleResponse) ToJsonString() string
type CreateUserSAMLConfigRequest ¶
type CreateUserSAMLConfigRequest struct { *tchttp.BaseRequest // SAML metadata document, which must be Base64 encoded. SAMLMetadataDocument *string `json:"SAMLMetadataDocument,omitempty" name:"SAMLMetadataDocument"` }
func NewCreateUserSAMLConfigRequest ¶
func NewCreateUserSAMLConfigRequest() (request *CreateUserSAMLConfigRequest)
func (*CreateUserSAMLConfigRequest) FromJsonString ¶
func (r *CreateUserSAMLConfigRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateUserSAMLConfigRequest) ToJsonString ¶
func (r *CreateUserSAMLConfigRequest) ToJsonString() string
type CreateUserSAMLConfigResponse ¶
type CreateUserSAMLConfigResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateUserSAMLConfigResponse ¶
func NewCreateUserSAMLConfigResponse() (response *CreateUserSAMLConfigResponse)
func (*CreateUserSAMLConfigResponse) FromJsonString ¶
func (r *CreateUserSAMLConfigResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateUserSAMLConfigResponse) ToJsonString ¶
func (r *CreateUserSAMLConfigResponse) ToJsonString() string
type DeleteGroupRequest ¶
type DeleteGroupRequest struct { *tchttp.BaseRequest // User Group ID GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"` }
func NewDeleteGroupRequest ¶
func NewDeleteGroupRequest() (request *DeleteGroupRequest)
func (*DeleteGroupRequest) FromJsonString ¶
func (r *DeleteGroupRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteGroupRequest) ToJsonString ¶
func (r *DeleteGroupRequest) ToJsonString() string
type DeleteGroupResponse ¶
type DeleteGroupResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteGroupResponse ¶
func NewDeleteGroupResponse() (response *DeleteGroupResponse)
func (*DeleteGroupResponse) FromJsonString ¶
func (r *DeleteGroupResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteGroupResponse) ToJsonString ¶
func (r *DeleteGroupResponse) ToJsonString() string
type DeletePolicyRequest ¶
type DeletePolicyRequest struct { *tchttp.BaseRequest // Array. Array elements are policy IDs. Policies can be deleted in a batch PolicyId []*uint64 `json:"PolicyId,omitempty" name:"PolicyId"` }
func NewDeletePolicyRequest ¶
func NewDeletePolicyRequest() (request *DeletePolicyRequest)
func (*DeletePolicyRequest) FromJsonString ¶
func (r *DeletePolicyRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeletePolicyRequest) ToJsonString ¶
func (r *DeletePolicyRequest) ToJsonString() string
type DeletePolicyResponse ¶
type DeletePolicyResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeletePolicyResponse ¶
func NewDeletePolicyResponse() (response *DeletePolicyResponse)
func (*DeletePolicyResponse) FromJsonString ¶
func (r *DeletePolicyResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeletePolicyResponse) ToJsonString ¶
func (r *DeletePolicyResponse) ToJsonString() string
type DeletePolicyVersionRequest ¶
type DeletePolicyVersionRequest struct { *tchttp.BaseRequest // Policy ID PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"` // Policy version ID VersionId []*uint64 `json:"VersionId,omitempty" name:"VersionId"` }
func NewDeletePolicyVersionRequest ¶
func NewDeletePolicyVersionRequest() (request *DeletePolicyVersionRequest)
func (*DeletePolicyVersionRequest) FromJsonString ¶
func (r *DeletePolicyVersionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeletePolicyVersionRequest) ToJsonString ¶
func (r *DeletePolicyVersionRequest) ToJsonString() string
type DeletePolicyVersionResponse ¶
type DeletePolicyVersionResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeletePolicyVersionResponse ¶
func NewDeletePolicyVersionResponse() (response *DeletePolicyVersionResponse)
func (*DeletePolicyVersionResponse) FromJsonString ¶
func (r *DeletePolicyVersionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeletePolicyVersionResponse) ToJsonString ¶
func (r *DeletePolicyVersionResponse) ToJsonString() string
type DeleteRolePermissionsBoundaryRequest ¶
type DeleteRolePermissionsBoundaryRequest struct { *tchttp.BaseRequest // Role ID (either it or the role name must be entered) RoleId *string `json:"RoleId,omitempty" name:"RoleId"` // Role name (either it or the role ID must be entered) RoleName *string `json:"RoleName,omitempty" name:"RoleName"` }
func NewDeleteRolePermissionsBoundaryRequest ¶
func NewDeleteRolePermissionsBoundaryRequest() (request *DeleteRolePermissionsBoundaryRequest)
func (*DeleteRolePermissionsBoundaryRequest) FromJsonString ¶
func (r *DeleteRolePermissionsBoundaryRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteRolePermissionsBoundaryRequest) ToJsonString ¶
func (r *DeleteRolePermissionsBoundaryRequest) ToJsonString() string
type DeleteRolePermissionsBoundaryResponse ¶
type DeleteRolePermissionsBoundaryResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteRolePermissionsBoundaryResponse ¶
func NewDeleteRolePermissionsBoundaryResponse() (response *DeleteRolePermissionsBoundaryResponse)
func (*DeleteRolePermissionsBoundaryResponse) FromJsonString ¶
func (r *DeleteRolePermissionsBoundaryResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteRolePermissionsBoundaryResponse) ToJsonString ¶
func (r *DeleteRolePermissionsBoundaryResponse) ToJsonString() string
type DeleteRoleRequest ¶
type DeleteRoleRequest struct { *tchttp.BaseRequest // Role ID, used to specify a role. Input either `RoleId` or `RoleName` RoleId *string `json:"RoleId,omitempty" name:"RoleId"` // Role name, used to specify a role. Input either `RoleId` or `RoleName` RoleName *string `json:"RoleName,omitempty" name:"RoleName"` }
func NewDeleteRoleRequest ¶
func NewDeleteRoleRequest() (request *DeleteRoleRequest)
func (*DeleteRoleRequest) FromJsonString ¶
func (r *DeleteRoleRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteRoleRequest) ToJsonString ¶
func (r *DeleteRoleRequest) ToJsonString() string
type DeleteRoleResponse ¶
type DeleteRoleResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteRoleResponse ¶
func NewDeleteRoleResponse() (response *DeleteRoleResponse)
func (*DeleteRoleResponse) FromJsonString ¶
func (r *DeleteRoleResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteRoleResponse) ToJsonString ¶
func (r *DeleteRoleResponse) ToJsonString() string
type DeleteSAMLProviderRequest ¶
type DeleteSAMLProviderRequest struct { *tchttp.BaseRequest // SAML identity provider name Name *string `json:"Name,omitempty" name:"Name"` }
func NewDeleteSAMLProviderRequest ¶
func NewDeleteSAMLProviderRequest() (request *DeleteSAMLProviderRequest)
func (*DeleteSAMLProviderRequest) FromJsonString ¶
func (r *DeleteSAMLProviderRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteSAMLProviderRequest) ToJsonString ¶
func (r *DeleteSAMLProviderRequest) ToJsonString() string
type DeleteSAMLProviderResponse ¶
type DeleteSAMLProviderResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteSAMLProviderResponse ¶
func NewDeleteSAMLProviderResponse() (response *DeleteSAMLProviderResponse)
func (*DeleteSAMLProviderResponse) FromJsonString ¶
func (r *DeleteSAMLProviderResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteSAMLProviderResponse) ToJsonString ¶
func (r *DeleteSAMLProviderResponse) ToJsonString() string
type DeleteServiceLinkedRoleRequest ¶
type DeleteServiceLinkedRoleRequest struct { *tchttp.BaseRequest // Name of the service-linked role to be deleted. RoleName *string `json:"RoleName,omitempty" name:"RoleName"` }
func NewDeleteServiceLinkedRoleRequest ¶
func NewDeleteServiceLinkedRoleRequest() (request *DeleteServiceLinkedRoleRequest)
func (*DeleteServiceLinkedRoleRequest) FromJsonString ¶
func (r *DeleteServiceLinkedRoleRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteServiceLinkedRoleRequest) ToJsonString ¶
func (r *DeleteServiceLinkedRoleRequest) ToJsonString() string
type DeleteServiceLinkedRoleResponse ¶
type DeleteServiceLinkedRoleResponse struct { *tchttp.BaseResponse Response *struct { // Deletion task identifier, which can be used to check the status of a service-linked role deletion. DeletionTaskId *string `json:"DeletionTaskId,omitempty" name:"DeletionTaskId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteServiceLinkedRoleResponse ¶
func NewDeleteServiceLinkedRoleResponse() (response *DeleteServiceLinkedRoleResponse)
func (*DeleteServiceLinkedRoleResponse) FromJsonString ¶
func (r *DeleteServiceLinkedRoleResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteServiceLinkedRoleResponse) ToJsonString ¶
func (r *DeleteServiceLinkedRoleResponse) ToJsonString() string
type DeleteUserPermissionsBoundaryRequest ¶
type DeleteUserPermissionsBoundaryRequest struct { *tchttp.BaseRequest // Sub-account `Uin` TargetUin *int64 `json:"TargetUin,omitempty" name:"TargetUin"` }
func NewDeleteUserPermissionsBoundaryRequest ¶
func NewDeleteUserPermissionsBoundaryRequest() (request *DeleteUserPermissionsBoundaryRequest)
func (*DeleteUserPermissionsBoundaryRequest) FromJsonString ¶
func (r *DeleteUserPermissionsBoundaryRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteUserPermissionsBoundaryRequest) ToJsonString ¶
func (r *DeleteUserPermissionsBoundaryRequest) ToJsonString() string
type DeleteUserPermissionsBoundaryResponse ¶
type DeleteUserPermissionsBoundaryResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteUserPermissionsBoundaryResponse ¶
func NewDeleteUserPermissionsBoundaryResponse() (response *DeleteUserPermissionsBoundaryResponse)
func (*DeleteUserPermissionsBoundaryResponse) FromJsonString ¶
func (r *DeleteUserPermissionsBoundaryResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteUserPermissionsBoundaryResponse) ToJsonString ¶
func (r *DeleteUserPermissionsBoundaryResponse) ToJsonString() string
type DeleteUserRequest ¶
type DeleteUserRequest struct { *tchttp.BaseRequest // Sub-user username Name *string `json:"Name,omitempty" name:"Name"` // Whether to forcibly delete the sub-user. The default input parameter is `0`. `0`: do not delete the user if the user has undeleted API keys; `1`: first delete the API keys then delete the user if the user has undeleted API keys. To delete API keys, you need to have cam:DeleteApiKey permission, which enables you to delete both enabled and disabled API keys. If you do not have this permission, you will not be able to delete API keys and the user. Force *uint64 `json:"Force,omitempty" name:"Force"` }
func NewDeleteUserRequest ¶
func NewDeleteUserRequest() (request *DeleteUserRequest)
func (*DeleteUserRequest) FromJsonString ¶
func (r *DeleteUserRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteUserRequest) ToJsonString ¶
func (r *DeleteUserRequest) ToJsonString() string
type DeleteUserResponse ¶
type DeleteUserResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteUserResponse ¶
func NewDeleteUserResponse() (response *DeleteUserResponse)
func (*DeleteUserResponse) FromJsonString ¶
func (r *DeleteUserResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteUserResponse) ToJsonString ¶
func (r *DeleteUserResponse) ToJsonString() string
type DescribeRoleListRequest ¶
type DescribeRoleListRequest struct { *tchttp.BaseRequest // Page number, beginning from 1 Page *uint64 `json:"Page,omitempty" name:"Page"` // Number of lines per page, no greater than 200 Rp *uint64 `json:"Rp,omitempty" name:"Rp"` }
func NewDescribeRoleListRequest ¶
func NewDescribeRoleListRequest() (request *DescribeRoleListRequest)
func (*DescribeRoleListRequest) FromJsonString ¶
func (r *DescribeRoleListRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeRoleListRequest) ToJsonString ¶
func (r *DescribeRoleListRequest) ToJsonString() string
type DescribeRoleListResponse ¶
type DescribeRoleListResponse struct { *tchttp.BaseResponse Response *struct { // Role details list // Note: This field may return null, indicating that no valid value was found. List []*RoleInfo `json:"List,omitempty" name:"List"` // Total number of roles TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeRoleListResponse ¶
func NewDescribeRoleListResponse() (response *DescribeRoleListResponse)
func (*DescribeRoleListResponse) FromJsonString ¶
func (r *DescribeRoleListResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeRoleListResponse) ToJsonString ¶
func (r *DescribeRoleListResponse) ToJsonString() string
type DescribeSafeAuthFlagCollRequest ¶
type DescribeSafeAuthFlagCollRequest struct { *tchttp.BaseRequest // Sub-account SubUin *uint64 `json:"SubUin,omitempty" name:"SubUin"` }
func NewDescribeSafeAuthFlagCollRequest ¶
func NewDescribeSafeAuthFlagCollRequest() (request *DescribeSafeAuthFlagCollRequest)
func (*DescribeSafeAuthFlagCollRequest) FromJsonString ¶
func (r *DescribeSafeAuthFlagCollRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSafeAuthFlagCollRequest) ToJsonString ¶
func (r *DescribeSafeAuthFlagCollRequest) ToJsonString() string
type DescribeSafeAuthFlagCollResponse ¶
type DescribeSafeAuthFlagCollResponse struct { *tchttp.BaseResponse Response *struct { // Login protection settings LoginFlag *LoginActionFlag `json:"LoginFlag,omitempty" name:"LoginFlag"` // Sensitive operation protection settings ActionFlag *LoginActionFlag `json:"ActionFlag,omitempty" name:"ActionFlag"` // Suspicious login location protection settings OffsiteFlag *OffsiteFlag `json:"OffsiteFlag,omitempty" name:"OffsiteFlag"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeSafeAuthFlagCollResponse ¶
func NewDescribeSafeAuthFlagCollResponse() (response *DescribeSafeAuthFlagCollResponse)
func (*DescribeSafeAuthFlagCollResponse) FromJsonString ¶
func (r *DescribeSafeAuthFlagCollResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSafeAuthFlagCollResponse) ToJsonString ¶
func (r *DescribeSafeAuthFlagCollResponse) ToJsonString() string
type DescribeSafeAuthFlagIntlRequest ¶
type DescribeSafeAuthFlagIntlRequest struct {
*tchttp.BaseRequest
}
func NewDescribeSafeAuthFlagIntlRequest ¶
func NewDescribeSafeAuthFlagIntlRequest() (request *DescribeSafeAuthFlagIntlRequest)
func (*DescribeSafeAuthFlagIntlRequest) FromJsonString ¶
func (r *DescribeSafeAuthFlagIntlRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSafeAuthFlagIntlRequest) ToJsonString ¶
func (r *DescribeSafeAuthFlagIntlRequest) ToJsonString() string
type DescribeSafeAuthFlagIntlResponse ¶
type DescribeSafeAuthFlagIntlResponse struct { *tchttp.BaseResponse Response *struct { // Login protection settings LoginFlag *LoginActionFlagIntl `json:"LoginFlag,omitempty" name:"LoginFlag"` // Sensitive operation protection settings ActionFlag *LoginActionFlagIntl `json:"ActionFlag,omitempty" name:"ActionFlag"` // Suspicious login location protection settings OffsiteFlag *OffsiteFlag `json:"OffsiteFlag,omitempty" name:"OffsiteFlag"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeSafeAuthFlagIntlResponse ¶
func NewDescribeSafeAuthFlagIntlResponse() (response *DescribeSafeAuthFlagIntlResponse)
func (*DescribeSafeAuthFlagIntlResponse) FromJsonString ¶
func (r *DescribeSafeAuthFlagIntlResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSafeAuthFlagIntlResponse) ToJsonString ¶
func (r *DescribeSafeAuthFlagIntlResponse) ToJsonString() string
type DescribeSafeAuthFlagRequest ¶
type DescribeSafeAuthFlagRequest struct {
*tchttp.BaseRequest
}
func NewDescribeSafeAuthFlagRequest ¶
func NewDescribeSafeAuthFlagRequest() (request *DescribeSafeAuthFlagRequest)
func (*DescribeSafeAuthFlagRequest) FromJsonString ¶
func (r *DescribeSafeAuthFlagRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSafeAuthFlagRequest) ToJsonString ¶
func (r *DescribeSafeAuthFlagRequest) ToJsonString() string
type DescribeSafeAuthFlagResponse ¶
type DescribeSafeAuthFlagResponse struct { *tchttp.BaseResponse Response *struct { // Login protection settings LoginFlag *LoginActionFlag `json:"LoginFlag,omitempty" name:"LoginFlag"` // Sensitive operation protection settings ActionFlag *LoginActionFlag `json:"ActionFlag,omitempty" name:"ActionFlag"` // Suspicious login location protection settings OffsiteFlag *OffsiteFlag `json:"OffsiteFlag,omitempty" name:"OffsiteFlag"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeSafeAuthFlagResponse ¶
func NewDescribeSafeAuthFlagResponse() (response *DescribeSafeAuthFlagResponse)
func (*DescribeSafeAuthFlagResponse) FromJsonString ¶
func (r *DescribeSafeAuthFlagResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSafeAuthFlagResponse) ToJsonString ¶
func (r *DescribeSafeAuthFlagResponse) ToJsonString() string
type DescribeSubAccountsRequest ¶
type DescribeSubAccountsRequest struct { *tchttp.BaseRequest // List of sub-user UINs. Up to 50 UINs are supported. FilterSubAccountUin []*uint64 `json:"FilterSubAccountUin,omitempty" name:"FilterSubAccountUin"` }
func NewDescribeSubAccountsRequest ¶
func NewDescribeSubAccountsRequest() (request *DescribeSubAccountsRequest)
func (*DescribeSubAccountsRequest) FromJsonString ¶
func (r *DescribeSubAccountsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSubAccountsRequest) ToJsonString ¶
func (r *DescribeSubAccountsRequest) ToJsonString() string
type DescribeSubAccountsResponse ¶
type DescribeSubAccountsResponse struct { *tchttp.BaseResponse Response *struct { // Sub-user list SubAccounts []*SubAccountUser `json:"SubAccounts,omitempty" name:"SubAccounts"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeSubAccountsResponse ¶
func NewDescribeSubAccountsResponse() (response *DescribeSubAccountsResponse)
func (*DescribeSubAccountsResponse) FromJsonString ¶
func (r *DescribeSubAccountsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSubAccountsResponse) ToJsonString ¶
func (r *DescribeSubAccountsResponse) ToJsonString() string
type DescribeUserSAMLConfigRequest ¶
type DescribeUserSAMLConfigRequest struct {
*tchttp.BaseRequest
}
func NewDescribeUserSAMLConfigRequest ¶
func NewDescribeUserSAMLConfigRequest() (request *DescribeUserSAMLConfigRequest)
func (*DescribeUserSAMLConfigRequest) FromJsonString ¶
func (r *DescribeUserSAMLConfigRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeUserSAMLConfigRequest) ToJsonString ¶
func (r *DescribeUserSAMLConfigRequest) ToJsonString() string
type DescribeUserSAMLConfigResponse ¶
type DescribeUserSAMLConfigResponse struct { *tchttp.BaseResponse Response *struct { // SAML metadata document. SAMLMetadata *string `json:"SAMLMetadata,omitempty" name:"SAMLMetadata"` // Status. `0`: not set, `1`: enabled, `2`: disabled. Status *uint64 `json:"Status,omitempty" name:"Status"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeUserSAMLConfigResponse ¶
func NewDescribeUserSAMLConfigResponse() (response *DescribeUserSAMLConfigResponse)
func (*DescribeUserSAMLConfigResponse) FromJsonString ¶
func (r *DescribeUserSAMLConfigResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeUserSAMLConfigResponse) ToJsonString ¶
func (r *DescribeUserSAMLConfigResponse) ToJsonString() string
type DetachGroupPolicyRequest ¶
type DetachGroupPolicyRequest struct { *tchttp.BaseRequest // Policy ID PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"` // User Group ID DetachGroupId *uint64 `json:"DetachGroupId,omitempty" name:"DetachGroupId"` }
func NewDetachGroupPolicyRequest ¶
func NewDetachGroupPolicyRequest() (request *DetachGroupPolicyRequest)
func (*DetachGroupPolicyRequest) FromJsonString ¶
func (r *DetachGroupPolicyRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DetachGroupPolicyRequest) ToJsonString ¶
func (r *DetachGroupPolicyRequest) ToJsonString() string
type DetachGroupPolicyResponse ¶
type DetachGroupPolicyResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDetachGroupPolicyResponse ¶
func NewDetachGroupPolicyResponse() (response *DetachGroupPolicyResponse)
func (*DetachGroupPolicyResponse) FromJsonString ¶
func (r *DetachGroupPolicyResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DetachGroupPolicyResponse) ToJsonString ¶
func (r *DetachGroupPolicyResponse) ToJsonString() string
type DetachRolePolicyRequest ¶
type DetachRolePolicyRequest struct { *tchttp.BaseRequest // Policy ID. Either `PolicyId` or `PolicyName` must be entered PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"` // Role ID, used to specify a role. Input either `AttachRoleId` or `AttachRoleName` DetachRoleId *string `json:"DetachRoleId,omitempty" name:"DetachRoleId"` // Role name, used to specify a role. Input either `AttachRoleId` or `AttachRoleName` DetachRoleName *string `json:"DetachRoleName,omitempty" name:"DetachRoleName"` // Policy name. Either `PolicyId` or `PolicyName` must be entered PolicyName *string `json:"PolicyName,omitempty" name:"PolicyName"` }
func NewDetachRolePolicyRequest ¶
func NewDetachRolePolicyRequest() (request *DetachRolePolicyRequest)
func (*DetachRolePolicyRequest) FromJsonString ¶
func (r *DetachRolePolicyRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DetachRolePolicyRequest) ToJsonString ¶
func (r *DetachRolePolicyRequest) ToJsonString() string
type DetachRolePolicyResponse ¶
type DetachRolePolicyResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDetachRolePolicyResponse ¶
func NewDetachRolePolicyResponse() (response *DetachRolePolicyResponse)
func (*DetachRolePolicyResponse) FromJsonString ¶
func (r *DetachRolePolicyResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DetachRolePolicyResponse) ToJsonString ¶
func (r *DetachRolePolicyResponse) ToJsonString() string
type DetachUserPolicyRequest ¶
type DetachUserPolicyRequest struct { *tchttp.BaseRequest // Policy ID PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"` // Sub-account UIN DetachUin *uint64 `json:"DetachUin,omitempty" name:"DetachUin"` }
func NewDetachUserPolicyRequest ¶
func NewDetachUserPolicyRequest() (request *DetachUserPolicyRequest)
func (*DetachUserPolicyRequest) FromJsonString ¶
func (r *DetachUserPolicyRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DetachUserPolicyRequest) ToJsonString ¶
func (r *DetachUserPolicyRequest) ToJsonString() string
type DetachUserPolicyResponse ¶
type DetachUserPolicyResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDetachUserPolicyResponse ¶
func NewDetachUserPolicyResponse() (response *DetachUserPolicyResponse)
func (*DetachUserPolicyResponse) FromJsonString ¶
func (r *DetachUserPolicyResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DetachUserPolicyResponse) ToJsonString ¶
func (r *DetachUserPolicyResponse) ToJsonString() string
type GetAccountSummaryRequest ¶
type GetAccountSummaryRequest struct {
*tchttp.BaseRequest
}
func NewGetAccountSummaryRequest ¶
func NewGetAccountSummaryRequest() (request *GetAccountSummaryRequest)
func (*GetAccountSummaryRequest) FromJsonString ¶
func (r *GetAccountSummaryRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetAccountSummaryRequest) ToJsonString ¶
func (r *GetAccountSummaryRequest) ToJsonString() string
type GetAccountSummaryResponse ¶
type GetAccountSummaryResponse struct { *tchttp.BaseResponse Response *struct { // Number of policies Policies *uint64 `json:"Policies,omitempty" name:"Policies"` // Number of roles Roles *uint64 `json:"Roles,omitempty" name:"Roles"` // Number of identity providers Idps *uint64 `json:"Idps,omitempty" name:"Idps"` // Number of sub-accounts User *uint64 `json:"User,omitempty" name:"User"` // Number of groups Group *uint64 `json:"Group,omitempty" name:"Group"` // Total number of grouped users Member *uint64 `json:"Member,omitempty" name:"Member"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewGetAccountSummaryResponse ¶
func NewGetAccountSummaryResponse() (response *GetAccountSummaryResponse)
func (*GetAccountSummaryResponse) FromJsonString ¶
func (r *GetAccountSummaryResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetAccountSummaryResponse) ToJsonString ¶
func (r *GetAccountSummaryResponse) ToJsonString() string
type GetCustomMFATokenInfoRequest ¶
type GetCustomMFATokenInfoRequest struct { *tchttp.BaseRequest // Custom multi-factor verification Token MFAToken *string `json:"MFAToken,omitempty" name:"MFAToken"` }
func NewGetCustomMFATokenInfoRequest ¶
func NewGetCustomMFATokenInfoRequest() (request *GetCustomMFATokenInfoRequest)
func (*GetCustomMFATokenInfoRequest) FromJsonString ¶
func (r *GetCustomMFATokenInfoRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetCustomMFATokenInfoRequest) ToJsonString ¶
func (r *GetCustomMFATokenInfoRequest) ToJsonString() string
type GetCustomMFATokenInfoResponse ¶
type GetCustomMFATokenInfoResponse struct { *tchttp.BaseResponse Response *struct { // Account ID corresponding to the custom multi-factor verification Token Uin *uint64 `json:"Uin,omitempty" name:"Uin"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewGetCustomMFATokenInfoResponse ¶
func NewGetCustomMFATokenInfoResponse() (response *GetCustomMFATokenInfoResponse)
func (*GetCustomMFATokenInfoResponse) FromJsonString ¶
func (r *GetCustomMFATokenInfoResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetCustomMFATokenInfoResponse) ToJsonString ¶
func (r *GetCustomMFATokenInfoResponse) ToJsonString() string
type GetGroupRequest ¶
type GetGroupRequest struct { *tchttp.BaseRequest // User Group ID GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"` }
func NewGetGroupRequest ¶
func NewGetGroupRequest() (request *GetGroupRequest)
func (*GetGroupRequest) FromJsonString ¶
func (r *GetGroupRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetGroupRequest) ToJsonString ¶
func (r *GetGroupRequest) ToJsonString() string
type GetGroupResponse ¶
type GetGroupResponse struct { *tchttp.BaseResponse Response *struct { // User Group ID GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"` // User Group name GroupName *string `json:"GroupName,omitempty" name:"GroupName"` // Number of members in the User Group GroupNum *uint64 `json:"GroupNum,omitempty" name:"GroupNum"` // User Group description Remark *string `json:"Remark,omitempty" name:"Remark"` // Time User Group created CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // User Group member information UserInfo []*GroupMemberInfo `json:"UserInfo,omitempty" name:"UserInfo"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewGetGroupResponse ¶
func NewGetGroupResponse() (response *GetGroupResponse)
func (*GetGroupResponse) FromJsonString ¶
func (r *GetGroupResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetGroupResponse) ToJsonString ¶
func (r *GetGroupResponse) ToJsonString() string
type GetPolicyRequest ¶
type GetPolicyRequest struct { *tchttp.BaseRequest // Policy ID PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"` }
func NewGetPolicyRequest ¶
func NewGetPolicyRequest() (request *GetPolicyRequest)
func (*GetPolicyRequest) FromJsonString ¶
func (r *GetPolicyRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetPolicyRequest) ToJsonString ¶
func (r *GetPolicyRequest) ToJsonString() string
type GetPolicyResponse ¶
type GetPolicyResponse struct { *tchttp.BaseResponse Response *struct { // Policy name // Note: This field may return null, indicating that no valid value was found. PolicyName *string `json:"PolicyName,omitempty" name:"PolicyName"` // Policy description // Note: This field may return null, indicating that no valid value was found. Description *string `json:"Description,omitempty" name:"Description"` // 1: Custom policy; 2: Preset policy // Note: This field may return null, indicating that no valid value was found. Type *uint64 `json:"Type,omitempty" name:"Type"` // Time created // Note: This field may return null, indicating that no valid value was found. AddTime *string `json:"AddTime,omitempty" name:"AddTime"` // Time of latest update // Note: This field may return null, indicating that no valid value was found. UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` // Policy document // Note: This field may return null, indicating that no valid value was found. PolicyDocument *string `json:"PolicyDocument,omitempty" name:"PolicyDocument"` // Remarks // Note: this field may return null, indicating that no valid values can be obtained. PresetAlias *string `json:"PresetAlias,omitempty" name:"PresetAlias"` // Whether it is a service-linked policy // Note: this field may return null, indicating that no valid values can be obtained. IsServiceLinkedRolePolicy *uint64 `json:"IsServiceLinkedRolePolicy,omitempty" name:"IsServiceLinkedRolePolicy"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewGetPolicyResponse ¶
func NewGetPolicyResponse() (response *GetPolicyResponse)
func (*GetPolicyResponse) FromJsonString ¶
func (r *GetPolicyResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetPolicyResponse) ToJsonString ¶
func (r *GetPolicyResponse) ToJsonString() string
type GetPolicyVersionRequest ¶
type GetPolicyVersionRequest struct { *tchttp.BaseRequest // Policy ID PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"` // Policy version, which can be obtained through `ListPolicyVersions`. VersionId *uint64 `json:"VersionId,omitempty" name:"VersionId"` }
func NewGetPolicyVersionRequest ¶
func NewGetPolicyVersionRequest() (request *GetPolicyVersionRequest)
func (*GetPolicyVersionRequest) FromJsonString ¶
func (r *GetPolicyVersionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetPolicyVersionRequest) ToJsonString ¶
func (r *GetPolicyVersionRequest) ToJsonString() string
type GetPolicyVersionResponse ¶
type GetPolicyVersionResponse struct { *tchttp.BaseResponse Response *struct { // Policy version details // Note: this field may return null, indicating that no valid values can be obtained. PolicyVersion *PolicyVersionDetail `json:"PolicyVersion,omitempty" name:"PolicyVersion"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewGetPolicyVersionResponse ¶
func NewGetPolicyVersionResponse() (response *GetPolicyVersionResponse)
func (*GetPolicyVersionResponse) FromJsonString ¶
func (r *GetPolicyVersionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetPolicyVersionResponse) ToJsonString ¶
func (r *GetPolicyVersionResponse) ToJsonString() string
type GetRoleRequest ¶
type GetRoleRequest struct { *tchttp.BaseRequest // Role ID, used to specify role. Input either `RoleId` or `RoleName` RoleId *string `json:"RoleId,omitempty" name:"RoleId"` // Role name, used to specify role. Input either `RoleId` or `RoleName` RoleName *string `json:"RoleName,omitempty" name:"RoleName"` }
func NewGetRoleRequest ¶
func NewGetRoleRequest() (request *GetRoleRequest)
func (*GetRoleRequest) FromJsonString ¶
func (r *GetRoleRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetRoleRequest) ToJsonString ¶
func (r *GetRoleRequest) ToJsonString() string
type GetRoleResponse ¶
type GetRoleResponse struct { *tchttp.BaseResponse Response *struct { // Role details RoleInfo *RoleInfo `json:"RoleInfo,omitempty" name:"RoleInfo"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewGetRoleResponse ¶
func NewGetRoleResponse() (response *GetRoleResponse)
func (*GetRoleResponse) FromJsonString ¶
func (r *GetRoleResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetRoleResponse) ToJsonString ¶
func (r *GetRoleResponse) ToJsonString() string
type GetSAMLProviderRequest ¶
type GetSAMLProviderRequest struct { *tchttp.BaseRequest // SAML identity provider name Name *string `json:"Name,omitempty" name:"Name"` }
func NewGetSAMLProviderRequest ¶
func NewGetSAMLProviderRequest() (request *GetSAMLProviderRequest)
func (*GetSAMLProviderRequest) FromJsonString ¶
func (r *GetSAMLProviderRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetSAMLProviderRequest) ToJsonString ¶
func (r *GetSAMLProviderRequest) ToJsonString() string
type GetSAMLProviderResponse ¶
type GetSAMLProviderResponse struct { *tchttp.BaseResponse Response *struct { // SAML identity provider name Name *string `json:"Name,omitempty" name:"Name"` // SAML identity provider description Description *string `json:"Description,omitempty" name:"Description"` // Time SAML identity provider created CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Time SAML identity provider last modified ModifyTime *string `json:"ModifyTime,omitempty" name:"ModifyTime"` // SAML identity provider metadata document SAMLMetadata *string `json:"SAMLMetadata,omitempty" name:"SAMLMetadata"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewGetSAMLProviderResponse ¶
func NewGetSAMLProviderResponse() (response *GetSAMLProviderResponse)
func (*GetSAMLProviderResponse) FromJsonString ¶
func (r *GetSAMLProviderResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetSAMLProviderResponse) ToJsonString ¶
func (r *GetSAMLProviderResponse) ToJsonString() string
type GetSecurityLastUsedRequest ¶
type GetSecurityLastUsedRequest struct { *tchttp.BaseRequest // Key ID list query. Up to 10 key IDs can be queried. SecretIdList []*string `json:"SecretIdList,omitempty" name:"SecretIdList"` }
func NewGetSecurityLastUsedRequest ¶
func NewGetSecurityLastUsedRequest() (request *GetSecurityLastUsedRequest)
func (*GetSecurityLastUsedRequest) FromJsonString ¶
func (r *GetSecurityLastUsedRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetSecurityLastUsedRequest) ToJsonString ¶
func (r *GetSecurityLastUsedRequest) ToJsonString() string
type GetSecurityLastUsedResponse ¶
type GetSecurityLastUsedResponse struct { *tchttp.BaseResponse Response *struct { // List of key ID’s recent usage records. SecretIdLastUsedRows []*SecretIdLastUsed `json:"SecretIdLastUsedRows,omitempty" name:"SecretIdLastUsedRows"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewGetSecurityLastUsedResponse ¶
func NewGetSecurityLastUsedResponse() (response *GetSecurityLastUsedResponse)
func (*GetSecurityLastUsedResponse) FromJsonString ¶
func (r *GetSecurityLastUsedResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetSecurityLastUsedResponse) ToJsonString ¶
func (r *GetSecurityLastUsedResponse) ToJsonString() string
type GetServiceLinkedRoleDeletionStatusRequest ¶
type GetServiceLinkedRoleDeletionStatusRequest struct { *tchttp.BaseRequest // Deletion task ID DeletionTaskId *string `json:"DeletionTaskId,omitempty" name:"DeletionTaskId"` }
func NewGetServiceLinkedRoleDeletionStatusRequest ¶
func NewGetServiceLinkedRoleDeletionStatusRequest() (request *GetServiceLinkedRoleDeletionStatusRequest)
func (*GetServiceLinkedRoleDeletionStatusRequest) FromJsonString ¶
func (r *GetServiceLinkedRoleDeletionStatusRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetServiceLinkedRoleDeletionStatusRequest) ToJsonString ¶
func (r *GetServiceLinkedRoleDeletionStatusRequest) ToJsonString() string
type GetServiceLinkedRoleDeletionStatusResponse ¶
type GetServiceLinkedRoleDeletionStatusResponse struct { *tchttp.BaseResponse Response *struct { // Status: NOT_STARTED, IN_PROGRESS, SUCCEEDED, FAILED Status *string `json:"Status,omitempty" name:"Status"` // Reasons why the deletion failed. Reason *string `json:"Reason,omitempty" name:"Reason"` // Service type // Note: this field may return null, indicating that no valid values can be obtained. ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"` // Service name // Note: this field may return null, indicating that no valid values can be obtained. ServiceName *string `json:"ServiceName,omitempty" name:"ServiceName"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewGetServiceLinkedRoleDeletionStatusResponse ¶
func NewGetServiceLinkedRoleDeletionStatusResponse() (response *GetServiceLinkedRoleDeletionStatusResponse)
func (*GetServiceLinkedRoleDeletionStatusResponse) FromJsonString ¶
func (r *GetServiceLinkedRoleDeletionStatusResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetServiceLinkedRoleDeletionStatusResponse) ToJsonString ¶
func (r *GetServiceLinkedRoleDeletionStatusResponse) ToJsonString() string
type GetUserAppIdRequest ¶
type GetUserAppIdRequest struct {
*tchttp.BaseRequest
}
func NewGetUserAppIdRequest ¶
func NewGetUserAppIdRequest() (request *GetUserAppIdRequest)
func (*GetUserAppIdRequest) FromJsonString ¶
func (r *GetUserAppIdRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetUserAppIdRequest) ToJsonString ¶
func (r *GetUserAppIdRequest) ToJsonString() string
type GetUserAppIdResponse ¶
type GetUserAppIdResponse struct { *tchttp.BaseResponse Response *struct { // UIN of the current account. Uin *string `json:"Uin,omitempty" name:"Uin"` // OwnerUin of the current account. OwnerUin *string `json:"OwnerUin,omitempty" name:"OwnerUin"` // AppId of the current account. AppId *uint64 `json:"AppId,omitempty" name:"AppId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewGetUserAppIdResponse ¶
func NewGetUserAppIdResponse() (response *GetUserAppIdResponse)
func (*GetUserAppIdResponse) FromJsonString ¶
func (r *GetUserAppIdResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetUserAppIdResponse) ToJsonString ¶
func (r *GetUserAppIdResponse) ToJsonString() string
type GetUserRequest ¶
type GetUserRequest struct { *tchttp.BaseRequest // Sub-user username Name *string `json:"Name,omitempty" name:"Name"` }
func NewGetUserRequest ¶
func NewGetUserRequest() (request *GetUserRequest)
func (*GetUserRequest) FromJsonString ¶
func (r *GetUserRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetUserRequest) ToJsonString ¶
func (r *GetUserRequest) ToJsonString() string
type GetUserResponse ¶
type GetUserResponse struct { *tchttp.BaseResponse Response *struct { // Sub-user UIN Uin *uint64 `json:"Uin,omitempty" name:"Uin"` // Sub-user username Name *string `json:"Name,omitempty" name:"Name"` // Sub-user UID Uid *uint64 `json:"Uid,omitempty" name:"Uid"` // Sub-user remarks // Note: This field may return `null`, indicating that no valid values can be obtained. Remark *string `json:"Remark,omitempty" name:"Remark"` // Whether the sub-user can log in to the console. `0`: No; `1`: Yes. ConsoleLogin *uint64 `json:"ConsoleLogin,omitempty" name:"ConsoleLogin"` // Mobile number PhoneNum *string `json:"PhoneNum,omitempty" name:"PhoneNum"` // Country/Area code CountryCode *string `json:"CountryCode,omitempty" name:"CountryCode"` // Email Email *string `json:"Email,omitempty" name:"Email"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewGetUserResponse ¶
func NewGetUserResponse() (response *GetUserResponse)
func (*GetUserResponse) FromJsonString ¶
func (r *GetUserResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetUserResponse) ToJsonString ¶
func (r *GetUserResponse) ToJsonString() string
type GroupIdOfUidInfo ¶
type GroupInfo ¶
type GroupInfo struct { // User group ID GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"` // User Group name GroupName *string `json:"GroupName,omitempty" name:"GroupName"` // Time User Group created CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // User Group description Remark *string `json:"Remark,omitempty" name:"Remark"` }
type GroupMemberInfo ¶
type GroupMemberInfo struct { // Sub-user UID Uid *uint64 `json:"Uid,omitempty" name:"Uid"` // Sub-user UIN Uin *uint64 `json:"Uin,omitempty" name:"Uin"` // Sub-user name Name *string `json:"Name,omitempty" name:"Name"` // Mobile number PhoneNum *string `json:"PhoneNum,omitempty" name:"PhoneNum"` // Mobile number country/area code CountryCode *string `json:"CountryCode,omitempty" name:"CountryCode"` // Whether the mobile phone has been verified. `0`: No; `1`: Yes. PhoneFlag *uint64 `json:"PhoneFlag,omitempty" name:"PhoneFlag"` // Email address Email *string `json:"Email,omitempty" name:"Email"` // Whether the email has been verified. `0`: No; `1`: Yes. EmailFlag *uint64 `json:"EmailFlag,omitempty" name:"EmailFlag"` // User type. `1`: Global collaborator; `2`: Project collaborator; `3`: Message recipient. UserType *uint64 `json:"UserType,omitempty" name:"UserType"` // Time policy created CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Whether the user is the primary message recipient. `0`: No; `1`: Yes. IsReceiverOwner *uint64 `json:"IsReceiverOwner,omitempty" name:"IsReceiverOwner"` }
type ListAccessKeysRequest ¶
type ListAccessKeysRequest struct { *tchttp.BaseRequest // `UIN` of the specified user. If this parameter is left empty, access keys of the current user will be listed by default TargetUin *uint64 `json:"TargetUin,omitempty" name:"TargetUin"` }
func NewListAccessKeysRequest ¶
func NewListAccessKeysRequest() (request *ListAccessKeysRequest)
func (*ListAccessKeysRequest) FromJsonString ¶
func (r *ListAccessKeysRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListAccessKeysRequest) ToJsonString ¶
func (r *ListAccessKeysRequest) ToJsonString() string
type ListAccessKeysResponse ¶
type ListAccessKeysResponse struct { *tchttp.BaseResponse Response *struct { // Access key list // Note: this field may return null, indicating that no valid values can be obtained. AccessKeys []*AccessKey `json:"AccessKeys,omitempty" name:"AccessKeys"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewListAccessKeysResponse ¶
func NewListAccessKeysResponse() (response *ListAccessKeysResponse)
func (*ListAccessKeysResponse) FromJsonString ¶
func (r *ListAccessKeysResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListAccessKeysResponse) ToJsonString ¶
func (r *ListAccessKeysResponse) ToJsonString() string
type ListAttachedGroupPoliciesRequest ¶
type ListAttachedGroupPoliciesRequest struct { *tchttp.BaseRequest // User group ID TargetGroupId *uint64 `json:"TargetGroupId,omitempty" name:"TargetGroupId"` // Page number, which starts from 1. Default is 1 Page *uint64 `json:"Page,omitempty" name:"Page"` // Number of entries per page; 20 by default Rp *uint64 `json:"Rp,omitempty" name:"Rp"` // Search by keyword Keyword *string `json:"Keyword,omitempty" name:"Keyword"` }
func NewListAttachedGroupPoliciesRequest ¶
func NewListAttachedGroupPoliciesRequest() (request *ListAttachedGroupPoliciesRequest)
func (*ListAttachedGroupPoliciesRequest) FromJsonString ¶
func (r *ListAttachedGroupPoliciesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListAttachedGroupPoliciesRequest) ToJsonString ¶
func (r *ListAttachedGroupPoliciesRequest) ToJsonString() string
type ListAttachedGroupPoliciesResponse ¶
type ListAttachedGroupPoliciesResponse struct { *tchttp.BaseResponse Response *struct { // Total number of policies TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"` // Policy list List []*AttachPolicyInfo `json:"List,omitempty" name:"List"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewListAttachedGroupPoliciesResponse ¶
func NewListAttachedGroupPoliciesResponse() (response *ListAttachedGroupPoliciesResponse)
func (*ListAttachedGroupPoliciesResponse) FromJsonString ¶
func (r *ListAttachedGroupPoliciesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListAttachedGroupPoliciesResponse) ToJsonString ¶
func (r *ListAttachedGroupPoliciesResponse) ToJsonString() string
type ListAttachedRolePoliciesRequest ¶
type ListAttachedRolePoliciesRequest struct { *tchttp.BaseRequest // Page number, beginning from 1 Page *uint64 `json:"Page,omitempty" name:"Page"` // Number of lines per page, no more than 200 Rp *uint64 `json:"Rp,omitempty" name:"Rp"` // Role ID, used to specify a role. Input either `RoleId` or `RoleName` RoleId *string `json:"RoleId,omitempty" name:"RoleId"` // Role name, used to specify a role. Input either `RoleId` or `RoleName` RoleName *string `json:"RoleName,omitempty" name:"RoleName"` // Filter according to policy type. `User` indicates querying custom policies only. `QCS` indicates querying preset policies only PolicyType *string `json:"PolicyType,omitempty" name:"PolicyType"` // Search by keyword Keyword *string `json:"Keyword,omitempty" name:"Keyword"` }
func NewListAttachedRolePoliciesRequest ¶
func NewListAttachedRolePoliciesRequest() (request *ListAttachedRolePoliciesRequest)
func (*ListAttachedRolePoliciesRequest) FromJsonString ¶
func (r *ListAttachedRolePoliciesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListAttachedRolePoliciesRequest) ToJsonString ¶
func (r *ListAttachedRolePoliciesRequest) ToJsonString() string
type ListAttachedRolePoliciesResponse ¶
type ListAttachedRolePoliciesResponse struct { *tchttp.BaseResponse Response *struct { // List of policies associated with the role List []*AttachedPolicyOfRole `json:"List,omitempty" name:"List"` // Total number of policies associated with the role TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewListAttachedRolePoliciesResponse ¶
func NewListAttachedRolePoliciesResponse() (response *ListAttachedRolePoliciesResponse)
func (*ListAttachedRolePoliciesResponse) FromJsonString ¶
func (r *ListAttachedRolePoliciesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListAttachedRolePoliciesResponse) ToJsonString ¶
func (r *ListAttachedRolePoliciesResponse) ToJsonString() string
type ListAttachedUserAllPoliciesRequest ¶
type ListAttachedUserAllPoliciesRequest struct { *tchttp.BaseRequest // Target user ID. TargetUin *uint64 `json:"TargetUin,omitempty" name:"TargetUin"` // The number of policies displayed on each page. Value range: 1-200. Rp *uint64 `json:"Rp,omitempty" name:"Rp"` // Page number. Value range: 1-200. Page *uint64 `json:"Page,omitempty" name:"Page"` // `0`: return policies that are directly associated and inherited from the user group; `1`: return policies that are directly associated; `2`: return policies inherited from the user group. AttachType *uint64 `json:"AttachType,omitempty" name:"AttachType"` // Policy type. StrategyType *uint64 `json:"StrategyType,omitempty" name:"StrategyType"` // Keyword for searching. Keyword *string `json:"Keyword,omitempty" name:"Keyword"` }
func NewListAttachedUserAllPoliciesRequest ¶
func NewListAttachedUserAllPoliciesRequest() (request *ListAttachedUserAllPoliciesRequest)
func (*ListAttachedUserAllPoliciesRequest) FromJsonString ¶
func (r *ListAttachedUserAllPoliciesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListAttachedUserAllPoliciesRequest) ToJsonString ¶
func (r *ListAttachedUserAllPoliciesRequest) ToJsonString() string
type ListAttachedUserAllPoliciesResponse ¶
type ListAttachedUserAllPoliciesResponse struct { *tchttp.BaseResponse Response *struct { // Policy list. PolicyList []*AttachedUserPolicy `json:"PolicyList,omitempty" name:"PolicyList"` // Total number of policies. TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewListAttachedUserAllPoliciesResponse ¶
func NewListAttachedUserAllPoliciesResponse() (response *ListAttachedUserAllPoliciesResponse)
func (*ListAttachedUserAllPoliciesResponse) FromJsonString ¶
func (r *ListAttachedUserAllPoliciesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListAttachedUserAllPoliciesResponse) ToJsonString ¶
func (r *ListAttachedUserAllPoliciesResponse) ToJsonString() string
type ListAttachedUserPoliciesRequest ¶
type ListAttachedUserPoliciesRequest struct { *tchttp.BaseRequest // Sub-account UIN TargetUin *uint64 `json:"TargetUin,omitempty" name:"TargetUin"` // Page number, which starts from 1. Default is 1 Page *uint64 `json:"Page,omitempty" name:"Page"` // Number of entries per page; 20 by default Rp *uint64 `json:"Rp,omitempty" name:"Rp"` }
func NewListAttachedUserPoliciesRequest ¶
func NewListAttachedUserPoliciesRequest() (request *ListAttachedUserPoliciesRequest)
func (*ListAttachedUserPoliciesRequest) FromJsonString ¶
func (r *ListAttachedUserPoliciesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListAttachedUserPoliciesRequest) ToJsonString ¶
func (r *ListAttachedUserPoliciesRequest) ToJsonString() string
type ListAttachedUserPoliciesResponse ¶
type ListAttachedUserPoliciesResponse struct { *tchttp.BaseResponse Response *struct { // Total number of policies TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"` // Policy list List []*AttachPolicyInfo `json:"List,omitempty" name:"List"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewListAttachedUserPoliciesResponse ¶
func NewListAttachedUserPoliciesResponse() (response *ListAttachedUserPoliciesResponse)
func (*ListAttachedUserPoliciesResponse) FromJsonString ¶
func (r *ListAttachedUserPoliciesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListAttachedUserPoliciesResponse) ToJsonString ¶
func (r *ListAttachedUserPoliciesResponse) ToJsonString() string
type ListCollaboratorsRequest ¶
type ListCollaboratorsRequest struct { *tchttp.BaseRequest // Number of entries per page. Default value: 20 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Pagination start value. Default value: 0 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` }
func NewListCollaboratorsRequest ¶
func NewListCollaboratorsRequest() (request *ListCollaboratorsRequest)
func (*ListCollaboratorsRequest) FromJsonString ¶
func (r *ListCollaboratorsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListCollaboratorsRequest) ToJsonString ¶
func (r *ListCollaboratorsRequest) ToJsonString() string
type ListCollaboratorsResponse ¶
type ListCollaboratorsResponse struct { *tchttp.BaseResponse Response *struct { // Total number TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"` // Collaborator information Data []*SubAccountInfo `json:"Data,omitempty" name:"Data"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewListCollaboratorsResponse ¶
func NewListCollaboratorsResponse() (response *ListCollaboratorsResponse)
func (*ListCollaboratorsResponse) FromJsonString ¶
func (r *ListCollaboratorsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListCollaboratorsResponse) ToJsonString ¶
func (r *ListCollaboratorsResponse) ToJsonString() string
type ListEntitiesForPolicyRequest ¶
type ListEntitiesForPolicyRequest struct { *tchttp.BaseRequest // Policy ID PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"` // Page number, which starts from 1. Default is 1 Page *uint64 `json:"Page,omitempty" name:"Page"` // Number of entries per page; 20 by default Rp *uint64 `json:"Rp,omitempty" name:"Rp"` // Valid values: `All`, `User`, `Group`, and `Role`. `All` means all entity types will be returned; `User` means only sub-accounts will be returned; `Group` means only User Groups will be returned; `Role` means only roles will be returned. `All` is the default value. EntityFilter *string `json:"EntityFilter,omitempty" name:"EntityFilter"` }
func NewListEntitiesForPolicyRequest ¶
func NewListEntitiesForPolicyRequest() (request *ListEntitiesForPolicyRequest)
func (*ListEntitiesForPolicyRequest) FromJsonString ¶
func (r *ListEntitiesForPolicyRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListEntitiesForPolicyRequest) ToJsonString ¶
func (r *ListEntitiesForPolicyRequest) ToJsonString() string
type ListEntitiesForPolicyResponse ¶
type ListEntitiesForPolicyResponse struct { *tchttp.BaseResponse Response *struct { // Number of entities // Note: This field may return null, indicating that no valid value was found. TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"` // Entity list // Note: This field may return null, indicating that no valid value was found. List []*AttachEntityOfPolicy `json:"List,omitempty" name:"List"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewListEntitiesForPolicyResponse ¶
func NewListEntitiesForPolicyResponse() (response *ListEntitiesForPolicyResponse)
func (*ListEntitiesForPolicyResponse) FromJsonString ¶
func (r *ListEntitiesForPolicyResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListEntitiesForPolicyResponse) ToJsonString ¶
func (r *ListEntitiesForPolicyResponse) ToJsonString() string
type ListGroupsForUserRequest ¶
type ListGroupsForUserRequest struct { *tchttp.BaseRequest // Sub-user UID Uid *uint64 `json:"Uid,omitempty" name:"Uid"` // Number of entries per page; default is 20 Rp *uint64 `json:"Rp,omitempty" name:"Rp"` // Page number; default is 1 Page *uint64 `json:"Page,omitempty" name:"Page"` // Sub-account UIN SubUin *uint64 `json:"SubUin,omitempty" name:"SubUin"` }
func NewListGroupsForUserRequest ¶
func NewListGroupsForUserRequest() (request *ListGroupsForUserRequest)
func (*ListGroupsForUserRequest) FromJsonString ¶
func (r *ListGroupsForUserRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListGroupsForUserRequest) ToJsonString ¶
func (r *ListGroupsForUserRequest) ToJsonString() string
type ListGroupsForUserResponse ¶
type ListGroupsForUserResponse struct { *tchttp.BaseResponse Response *struct { // Total number of User Groups to which the sub-user has been added TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"` // User Group information GroupInfo []*GroupInfo `json:"GroupInfo,omitempty" name:"GroupInfo"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewListGroupsForUserResponse ¶
func NewListGroupsForUserResponse() (response *ListGroupsForUserResponse)
func (*ListGroupsForUserResponse) FromJsonString ¶
func (r *ListGroupsForUserResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListGroupsForUserResponse) ToJsonString ¶
func (r *ListGroupsForUserResponse) ToJsonString() string
type ListGroupsRequest ¶
type ListGroupsRequest struct { *tchttp.BaseRequest // Page number; default is 1 Page *uint64 `json:"Page,omitempty" name:"Page"` // Number of entries per page; default is 20 Rp *uint64 `json:"Rp,omitempty" name:"Rp"` // Filter by User Group name Keyword *string `json:"Keyword,omitempty" name:"Keyword"` }
func NewListGroupsRequest ¶
func NewListGroupsRequest() (request *ListGroupsRequest)
func (*ListGroupsRequest) FromJsonString ¶
func (r *ListGroupsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListGroupsRequest) ToJsonString ¶
func (r *ListGroupsRequest) ToJsonString() string
type ListGroupsResponse ¶
type ListGroupsResponse struct { *tchttp.BaseResponse Response *struct { // Total number of User Groups TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"` // User group information array GroupInfo []*GroupInfo `json:"GroupInfo,omitempty" name:"GroupInfo"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewListGroupsResponse ¶
func NewListGroupsResponse() (response *ListGroupsResponse)
func (*ListGroupsResponse) FromJsonString ¶
func (r *ListGroupsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListGroupsResponse) ToJsonString ¶
func (r *ListGroupsResponse) ToJsonString() string
type ListPoliciesRequest ¶
type ListPoliciesRequest struct { *tchttp.BaseRequest // Number of entries per page: must be greater than 0 and no greater than 200. Default is 20 Rp *uint64 `json:"Rp,omitempty" name:"Rp"` // Page number. Starts from 1 and cannot be greater than 200. Default is 1 Page *uint64 `json:"Page,omitempty" name:"Page"` // Valid values: `All`, `QCS`, and `Local`. `All` means all policies will be returned; `QCS` means only preset policies will be returned; `Local` means only custom policies will be returned. `All` is the default value Scope *string `json:"Scope,omitempty" name:"Scope"` // Filter by policy name Keyword *string `json:"Keyword,omitempty" name:"Keyword"` }
func NewListPoliciesRequest ¶
func NewListPoliciesRequest() (request *ListPoliciesRequest)
func (*ListPoliciesRequest) FromJsonString ¶
func (r *ListPoliciesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListPoliciesRequest) ToJsonString ¶
func (r *ListPoliciesRequest) ToJsonString() string
type ListPoliciesResponse ¶
type ListPoliciesResponse struct { *tchttp.BaseResponse Response *struct { // Total number of policies TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"` // Policy array. Each array contains fields including `policyId`, `policyName`, `addTime`, `type`, `description`, and `createMode`. // policyId: policy ID // policyName: policy name // addTime: policy creation time // type: 1: custom policy, 2: preset policy // description: policy description // createMode: 1 indicates a policy created based on business permissions, while other values indicate that the policy syntax can be viewed and the policy can be updated using the policy syntax // Attachments: number of associated users // ServiceType: the product the policy is associated with // IsAttached: this value should not be null when querying if a marked entity has been associated with a policy. 0 indicates that no policy has been associated, and 1 indicates that a policy has been associated List []*StrategyInfo `json:"List,omitempty" name:"List"` // Reserved field // Note: This field may return null, indicating that no valid value was found. ServiceTypeList []*string `json:"ServiceTypeList,omitempty" name:"ServiceTypeList"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewListPoliciesResponse ¶
func NewListPoliciesResponse() (response *ListPoliciesResponse)
func (*ListPoliciesResponse) FromJsonString ¶
func (r *ListPoliciesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListPoliciesResponse) ToJsonString ¶
func (r *ListPoliciesResponse) ToJsonString() string
type ListPolicyVersionsRequest ¶
type ListPolicyVersionsRequest struct { *tchttp.BaseRequest // Policy ID PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"` }
func NewListPolicyVersionsRequest ¶
func NewListPolicyVersionsRequest() (request *ListPolicyVersionsRequest)
func (*ListPolicyVersionsRequest) FromJsonString ¶
func (r *ListPolicyVersionsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListPolicyVersionsRequest) ToJsonString ¶
func (r *ListPolicyVersionsRequest) ToJsonString() string
type ListPolicyVersionsResponse ¶
type ListPolicyVersionsResponse struct { *tchttp.BaseResponse Response *struct { // Policy version list // Note: this field may return null, indicating that no valid values can be obtained. Versions []*PolicyVersionItem `json:"Versions,omitempty" name:"Versions"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewListPolicyVersionsResponse ¶
func NewListPolicyVersionsResponse() (response *ListPolicyVersionsResponse)
func (*ListPolicyVersionsResponse) FromJsonString ¶
func (r *ListPolicyVersionsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListPolicyVersionsResponse) ToJsonString ¶
func (r *ListPolicyVersionsResponse) ToJsonString() string
type ListSAMLProvidersRequest ¶
type ListSAMLProvidersRequest struct {
*tchttp.BaseRequest
}
func NewListSAMLProvidersRequest ¶
func NewListSAMLProvidersRequest() (request *ListSAMLProvidersRequest)
func (*ListSAMLProvidersRequest) FromJsonString ¶
func (r *ListSAMLProvidersRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListSAMLProvidersRequest) ToJsonString ¶
func (r *ListSAMLProvidersRequest) ToJsonString() string
type ListSAMLProvidersResponse ¶
type ListSAMLProvidersResponse struct { *tchttp.BaseResponse Response *struct { // Total number of SAML identity providers TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // List of SAML identity providers SAMLProviderSet []*SAMLProviderInfo `json:"SAMLProviderSet,omitempty" name:"SAMLProviderSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewListSAMLProvidersResponse ¶
func NewListSAMLProvidersResponse() (response *ListSAMLProvidersResponse)
func (*ListSAMLProvidersResponse) FromJsonString ¶
func (r *ListSAMLProvidersResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListSAMLProvidersResponse) ToJsonString ¶
func (r *ListSAMLProvidersResponse) ToJsonString() string
type ListUsersForGroupRequest ¶
type ListUsersForGroupRequest struct { *tchttp.BaseRequest // User group ID GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"` // Page number; default is 1 Page *uint64 `json:"Page,omitempty" name:"Page"` // Number of entries per page; default is 20 Rp *uint64 `json:"Rp,omitempty" name:"Rp"` }
func NewListUsersForGroupRequest ¶
func NewListUsersForGroupRequest() (request *ListUsersForGroupRequest)
func (*ListUsersForGroupRequest) FromJsonString ¶
func (r *ListUsersForGroupRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListUsersForGroupRequest) ToJsonString ¶
func (r *ListUsersForGroupRequest) ToJsonString() string
type ListUsersForGroupResponse ¶
type ListUsersForGroupResponse struct { *tchttp.BaseResponse Response *struct { // Total number of users associated with the User Group TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"` // Sub-user information UserInfo []*GroupMemberInfo `json:"UserInfo,omitempty" name:"UserInfo"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewListUsersForGroupResponse ¶
func NewListUsersForGroupResponse() (response *ListUsersForGroupResponse)
func (*ListUsersForGroupResponse) FromJsonString ¶
func (r *ListUsersForGroupResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListUsersForGroupResponse) ToJsonString ¶
func (r *ListUsersForGroupResponse) ToJsonString() string
type ListUsersRequest ¶
type ListUsersRequest struct {
*tchttp.BaseRequest
}
func NewListUsersRequest ¶
func NewListUsersRequest() (request *ListUsersRequest)
func (*ListUsersRequest) FromJsonString ¶
func (r *ListUsersRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListUsersRequest) ToJsonString ¶
func (r *ListUsersRequest) ToJsonString() string
type ListUsersResponse ¶
type ListUsersResponse struct { *tchttp.BaseResponse Response *struct { // Sub-user information Data []*SubAccountInfo `json:"Data,omitempty" name:"Data"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewListUsersResponse ¶
func NewListUsersResponse() (response *ListUsersResponse)
func (*ListUsersResponse) FromJsonString ¶
func (r *ListUsersResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListUsersResponse) ToJsonString ¶
func (r *ListUsersResponse) ToJsonString() string
type LoginActionFlag ¶
type LoginActionFlag struct { // Phone Phone *uint64 `json:"Phone,omitempty" name:"Phone"` // Hard token Token *uint64 `json:"Token,omitempty" name:"Token"` // Soft token Stoken *uint64 `json:"Stoken,omitempty" name:"Stoken"` // WeChat Wechat *uint64 `json:"Wechat,omitempty" name:"Wechat"` // Custom Custom *uint64 `json:"Custom,omitempty" name:"Custom"` }
type LoginActionFlagIntl ¶
type LoginActionFlagIntl struct { // Mobile number Phone *uint64 `json:"Phone,omitempty" name:"Phone"` // Hard token Token *uint64 `json:"Token,omitempty" name:"Token"` // Soft token Stoken *uint64 `json:"Stoken,omitempty" name:"Stoken"` // WeChat Wechat *uint64 `json:"Wechat,omitempty" name:"Wechat"` // Custom Custom *uint64 `json:"Custom,omitempty" name:"Custom"` // Email Mail *uint64 `json:"Mail,omitempty" name:"Mail"` }
type LoginActionMfaFlag ¶
type OffsiteFlag ¶
type OffsiteFlag struct { // Verification flag VerifyFlag *uint64 `json:"VerifyFlag,omitempty" name:"VerifyFlag"` // Phone notification NotifyPhone *uint64 `json:"NotifyPhone,omitempty" name:"NotifyPhone"` // Email notification NotifyEmail *int64 `json:"NotifyEmail,omitempty" name:"NotifyEmail"` // WeChat notification NotifyWechat *uint64 `json:"NotifyWechat,omitempty" name:"NotifyWechat"` // Alert Tips *uint64 `json:"Tips,omitempty" name:"Tips"` }
type PolicyVersionDetail ¶
type PolicyVersionDetail struct { // Policy version ID // Note: this field may return null, indicating that no valid values can be obtained. VersionId *uint64 `json:"VersionId,omitempty" name:"VersionId"` // Policy version creation time // Note: this field may return null, indicating that no valid values can be obtained. CreateDate *string `json:"CreateDate,omitempty" name:"CreateDate"` // Whether it is the operative version. 0: no, 1: yes // Note: this field may return null, indicating that no valid values can be obtained. IsDefaultVersion *uint64 `json:"IsDefaultVersion,omitempty" name:"IsDefaultVersion"` // Policy syntax text // Note: this field may return null, indicating that no valid values can be obtained. Document *string `json:"Document,omitempty" name:"Document"` }
type PolicyVersionItem ¶
type PolicyVersionItem struct { // Policy version ID // Note: this field may return null, indicating that no valid values can be obtained. VersionId *uint64 `json:"VersionId,omitempty" name:"VersionId"` // Policy version creation time // Note: this field may return null, indicating that no valid values can be obtained. CreateDate *string `json:"CreateDate,omitempty" name:"CreateDate"` // Whether it is the operative version. 0: no, 1: yes // Note: this field may return null, indicating that no valid values can be obtained. IsDefaultVersion *int64 `json:"IsDefaultVersion,omitempty" name:"IsDefaultVersion"` }
type PutRolePermissionsBoundaryRequest ¶
type PutRolePermissionsBoundaryRequest struct { *tchttp.BaseRequest // Policy ID PolicyId *int64 `json:"PolicyId,omitempty" name:"PolicyId"` // Role ID (either it or the role name must be entered) RoleId *string `json:"RoleId,omitempty" name:"RoleId"` // Role name (either it or the role ID must be entered) RoleName *string `json:"RoleName,omitempty" name:"RoleName"` }
func NewPutRolePermissionsBoundaryRequest ¶
func NewPutRolePermissionsBoundaryRequest() (request *PutRolePermissionsBoundaryRequest)
func (*PutRolePermissionsBoundaryRequest) FromJsonString ¶
func (r *PutRolePermissionsBoundaryRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PutRolePermissionsBoundaryRequest) ToJsonString ¶
func (r *PutRolePermissionsBoundaryRequest) ToJsonString() string
type PutRolePermissionsBoundaryResponse ¶
type PutRolePermissionsBoundaryResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewPutRolePermissionsBoundaryResponse ¶
func NewPutRolePermissionsBoundaryResponse() (response *PutRolePermissionsBoundaryResponse)
func (*PutRolePermissionsBoundaryResponse) FromJsonString ¶
func (r *PutRolePermissionsBoundaryResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PutRolePermissionsBoundaryResponse) ToJsonString ¶
func (r *PutRolePermissionsBoundaryResponse) ToJsonString() string
type PutUserPermissionsBoundaryRequest ¶
type PutUserPermissionsBoundaryRequest struct { *tchttp.BaseRequest // Sub-account `Uin` TargetUin *int64 `json:"TargetUin,omitempty" name:"TargetUin"` // Policy ID PolicyId *int64 `json:"PolicyId,omitempty" name:"PolicyId"` }
func NewPutUserPermissionsBoundaryRequest ¶
func NewPutUserPermissionsBoundaryRequest() (request *PutUserPermissionsBoundaryRequest)
func (*PutUserPermissionsBoundaryRequest) FromJsonString ¶
func (r *PutUserPermissionsBoundaryRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PutUserPermissionsBoundaryRequest) ToJsonString ¶
func (r *PutUserPermissionsBoundaryRequest) ToJsonString() string
type PutUserPermissionsBoundaryResponse ¶
type PutUserPermissionsBoundaryResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewPutUserPermissionsBoundaryResponse ¶
func NewPutUserPermissionsBoundaryResponse() (response *PutUserPermissionsBoundaryResponse)
func (*PutUserPermissionsBoundaryResponse) FromJsonString ¶
func (r *PutUserPermissionsBoundaryResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PutUserPermissionsBoundaryResponse) ToJsonString ¶
func (r *PutUserPermissionsBoundaryResponse) ToJsonString() string
type RemoveUserFromGroupRequest ¶
type RemoveUserFromGroupRequest struct { *tchttp.BaseRequest // The user’s UIN/UID to be deleted and the array corresponding to the user group ID. Info []*GroupIdOfUidInfo `json:"Info,omitempty" name:"Info"` }
func NewRemoveUserFromGroupRequest ¶
func NewRemoveUserFromGroupRequest() (request *RemoveUserFromGroupRequest)
func (*RemoveUserFromGroupRequest) FromJsonString ¶
func (r *RemoveUserFromGroupRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RemoveUserFromGroupRequest) ToJsonString ¶
func (r *RemoveUserFromGroupRequest) ToJsonString() string
type RemoveUserFromGroupResponse ¶
type RemoveUserFromGroupResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewRemoveUserFromGroupResponse ¶
func NewRemoveUserFromGroupResponse() (response *RemoveUserFromGroupResponse)
func (*RemoveUserFromGroupResponse) FromJsonString ¶
func (r *RemoveUserFromGroupResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RemoveUserFromGroupResponse) ToJsonString ¶
func (r *RemoveUserFromGroupResponse) ToJsonString() string
type RoleInfo ¶
type RoleInfo struct { // Role ID RoleId *string `json:"RoleId,omitempty" name:"RoleId"` // Role name RoleName *string `json:"RoleName,omitempty" name:"RoleName"` // Role policy document PolicyDocument *string `json:"PolicyDocument,omitempty" name:"PolicyDocument"` // Role description Description *string `json:"Description,omitempty" name:"Description"` // Time role created AddTime *string `json:"AddTime,omitempty" name:"AddTime"` // Time role last updated UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` // If login is allowed for the role ConsoleLogin *uint64 `json:"ConsoleLogin,omitempty" name:"ConsoleLogin"` // User role. Valid values: `user`, `system`, `service_linked` // Note: this field may return null, indicating that no valid values can be obtained. RoleType *string `json:"RoleType,omitempty" name:"RoleType"` // Valid period // Note: this field may return null, indicating that no valid values can be obtained. SessionDuration *uint64 `json:"SessionDuration,omitempty" name:"SessionDuration"` // Task identifier for deleting a service-linked role // Note: this field may return null, indicating that no valid values can be obtained. DeletionTaskId *string `json:"DeletionTaskId,omitempty" name:"DeletionTaskId"` }
type SAMLProviderInfo ¶
type SAMLProviderInfo struct { // SAML identity provider name Name *string `json:"Name,omitempty" name:"Name"` // SAML identity provider description Description *string `json:"Description,omitempty" name:"Description"` // Time SAML identity provider created CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Time SAML identity provider last modified ModifyTime *string `json:"ModifyTime,omitempty" name:"ModifyTime"` }
type SecretIdLastUsed ¶
type SecretIdLastUsed struct { // Key ID. SecretId *string `json:"SecretId,omitempty" name:"SecretId"` // The date when the key ID was last used (the value is obtained one day later). // Note: this field may return `null`, indicating that no valid value can be obtained. LastUsedDate *string `json:"LastUsedDate,omitempty" name:"LastUsedDate"` }
type SetDefaultPolicyVersionRequest ¶
type SetDefaultPolicyVersionRequest struct { *tchttp.BaseRequest // Policy ID PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"` // Policy version, which can be obtained through `ListPolicyVersions`. VersionId *uint64 `json:"VersionId,omitempty" name:"VersionId"` }
func NewSetDefaultPolicyVersionRequest ¶
func NewSetDefaultPolicyVersionRequest() (request *SetDefaultPolicyVersionRequest)
func (*SetDefaultPolicyVersionRequest) FromJsonString ¶
func (r *SetDefaultPolicyVersionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SetDefaultPolicyVersionRequest) ToJsonString ¶
func (r *SetDefaultPolicyVersionRequest) ToJsonString() string
type SetDefaultPolicyVersionResponse ¶
type SetDefaultPolicyVersionResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewSetDefaultPolicyVersionResponse ¶
func NewSetDefaultPolicyVersionResponse() (response *SetDefaultPolicyVersionResponse)
func (*SetDefaultPolicyVersionResponse) FromJsonString ¶
func (r *SetDefaultPolicyVersionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SetDefaultPolicyVersionResponse) ToJsonString ¶
func (r *SetDefaultPolicyVersionResponse) ToJsonString() string
type SetMfaFlagRequest ¶
type SetMfaFlagRequest struct { *tchttp.BaseRequest // Sets user UIN OpUin *uint64 `json:"OpUin,omitempty" name:"OpUin"` // Sets login protection LoginFlag *LoginActionMfaFlag `json:"LoginFlag,omitempty" name:"LoginFlag"` // Sets operation protection ActionFlag *LoginActionMfaFlag `json:"ActionFlag,omitempty" name:"ActionFlag"` }
func NewSetMfaFlagRequest ¶
func NewSetMfaFlagRequest() (request *SetMfaFlagRequest)
func (*SetMfaFlagRequest) FromJsonString ¶
func (r *SetMfaFlagRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SetMfaFlagRequest) ToJsonString ¶
func (r *SetMfaFlagRequest) ToJsonString() string
type SetMfaFlagResponse ¶
type SetMfaFlagResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewSetMfaFlagResponse ¶
func NewSetMfaFlagResponse() (response *SetMfaFlagResponse)
func (*SetMfaFlagResponse) FromJsonString ¶
func (r *SetMfaFlagResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SetMfaFlagResponse) ToJsonString ¶
func (r *SetMfaFlagResponse) ToJsonString() string
type StrategyInfo ¶
type StrategyInfo struct { // Policy ID PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"` // Policy name PolicyName *string `json:"PolicyName,omitempty" name:"PolicyName"` // Time policy created // Note: This field may return null, indicating that no valid value was found. AddTime *string `json:"AddTime,omitempty" name:"AddTime"` // Policy type. 1: Custom policy; 2: Preset policy Type *uint64 `json:"Type,omitempty" name:"Type"` // Policy description // Note: This field may return null, indicating that no valid value was found. Description *string `json:"Description,omitempty" name:"Description"` // How the policy was created: 1: Via console; 2: Via syntax CreateMode *uint64 `json:"CreateMode,omitempty" name:"CreateMode"` // Number of associated users Attachments *uint64 `json:"Attachments,omitempty" name:"Attachments"` // Product associated with the policy // Note: This field may return null, indicating that no valid value was found. ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"` // This value should not be null when querying whether a marked entity has been associated with a policy. 0 indicates that no policy has been associated, while 1 indicates that a policy has been associated IsAttached *uint64 `json:"IsAttached,omitempty" name:"IsAttached"` // Queries if the policy has been deactivated // Note: this field may return null, indicating that no valid values can be obtained. Deactived *uint64 `json:"Deactived,omitempty" name:"Deactived"` // List of deprecated products // Note: this field may return null, indicating that no valid values can be obtained. DeactivedDetail []*string `json:"DeactivedDetail,omitempty" name:"DeactivedDetail"` // The deletion task identifier used to check the deletion status of the service-linked role // Note: this field may return null, indicating that no valid values can be obtained. IsServiceLinkedPolicy *uint64 `json:"IsServiceLinkedPolicy,omitempty" name:"IsServiceLinkedPolicy"` // The number of entities associated with the policy. // Note: this field may return `null`, indicating that no valid values can be obtained. AttachEntityCount *int64 `json:"AttachEntityCount,omitempty" name:"AttachEntityCount"` // The number of entities associated with the permission boundary. // Note: this field may return `null`, indicating that no valid values can be obtained. AttachEntityBoundaryCount *int64 `json:"AttachEntityBoundaryCount,omitempty" name:"AttachEntityBoundaryCount"` // The last edited time. // Note: this field may return `null`, indicating that no valid values can be obtained. UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` }
type SubAccountInfo ¶
type SubAccountInfo struct { // Sub-user user ID Uin *uint64 `json:"Uin,omitempty" name:"Uin"` // Sub-user username Name *string `json:"Name,omitempty" name:"Name"` // Sub-user UID Uid *uint64 `json:"Uid,omitempty" name:"Uid"` // Sub-user remarks Remark *string `json:"Remark,omitempty" name:"Remark"` // If sub-user can log in to the console ConsoleLogin *uint64 `json:"ConsoleLogin,omitempty" name:"ConsoleLogin"` // Mobile number PhoneNum *string `json:"PhoneNum,omitempty" name:"PhoneNum"` // Country/Area code CountryCode *string `json:"CountryCode,omitempty" name:"CountryCode"` // Email Email *string `json:"Email,omitempty" name:"Email"` // Creation time // Note: this field may return `null`, indicating that no valid values can be obtained. CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Nickname. // Note: This field may return `null`, indicating that no valid values can be obtained. NickName *string `json:"NickName,omitempty" name:"NickName"` }
type SubAccountUser ¶
type SubAccountUser struct { // Sub-user ID Uin *uint64 `json:"Uin,omitempty" name:"Uin"` // Sub-user name Name *string `json:"Name,omitempty" name:"Name"` // Sub-user UID. UID is the unique identifier of a user who is a message recipient, while UIN is a unique identifier of a user. Uid *uint64 `json:"Uid,omitempty" name:"Uid"` // Sub-user remarks Remark *string `json:"Remark,omitempty" name:"Remark"` // Creation time // Note: this field may return null, indicating that no valid values can be obtained. CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // User type (1: root account; 2: sub-user; 3: WeCom sub-user; 4: collaborator; 5: message recipient) UserType *uint64 `json:"UserType,omitempty" name:"UserType"` // LastLoginIp *string `json:"LastLoginIp,omitempty" name:"LastLoginIp"` // LastLoginTime *string `json:"LastLoginTime,omitempty" name:"LastLoginTime"` }
type UpdateAssumeRolePolicyRequest ¶
type UpdateAssumeRolePolicyRequest struct { *tchttp.BaseRequest // Policy document PolicyDocument *string `json:"PolicyDocument,omitempty" name:"PolicyDocument"` // Role ID, used to specify a role. Input either `RoleId` or `RoleName` RoleId *string `json:"RoleId,omitempty" name:"RoleId"` // Role name, used to specify a role. Input either `RoleId` or `RoleName` RoleName *string `json:"RoleName,omitempty" name:"RoleName"` }
func NewUpdateAssumeRolePolicyRequest ¶
func NewUpdateAssumeRolePolicyRequest() (request *UpdateAssumeRolePolicyRequest)
func (*UpdateAssumeRolePolicyRequest) FromJsonString ¶
func (r *UpdateAssumeRolePolicyRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateAssumeRolePolicyRequest) ToJsonString ¶
func (r *UpdateAssumeRolePolicyRequest) ToJsonString() string
type UpdateAssumeRolePolicyResponse ¶
type UpdateAssumeRolePolicyResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewUpdateAssumeRolePolicyResponse ¶
func NewUpdateAssumeRolePolicyResponse() (response *UpdateAssumeRolePolicyResponse)
func (*UpdateAssumeRolePolicyResponse) FromJsonString ¶
func (r *UpdateAssumeRolePolicyResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateAssumeRolePolicyResponse) ToJsonString ¶
func (r *UpdateAssumeRolePolicyResponse) ToJsonString() string
type UpdateGroupRequest ¶
type UpdateGroupRequest struct { *tchttp.BaseRequest // User Group ID GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"` // User Group name GroupName *string `json:"GroupName,omitempty" name:"GroupName"` // User Group description Remark *string `json:"Remark,omitempty" name:"Remark"` }
func NewUpdateGroupRequest ¶
func NewUpdateGroupRequest() (request *UpdateGroupRequest)
func (*UpdateGroupRequest) FromJsonString ¶
func (r *UpdateGroupRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateGroupRequest) ToJsonString ¶
func (r *UpdateGroupRequest) ToJsonString() string
type UpdateGroupResponse ¶
type UpdateGroupResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewUpdateGroupResponse ¶
func NewUpdateGroupResponse() (response *UpdateGroupResponse)
func (*UpdateGroupResponse) FromJsonString ¶
func (r *UpdateGroupResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateGroupResponse) ToJsonString ¶
func (r *UpdateGroupResponse) ToJsonString() string
type UpdatePolicyRequest ¶
type UpdatePolicyRequest struct { *tchttp.BaseRequest // Policy ID. Either `PolicyId` or `PolicyName` must be entered PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"` // Policy name. Either `PolicyName` or `PolicyId` must be entered PolicyName *string `json:"PolicyName,omitempty" name:"PolicyName"` // Policy description Description *string `json:"Description,omitempty" name:"Description"` // Policy documentation, for example: `{"version":"2.0","statement":[{"action":"name/sts:AssumeRole","effect":"allow","principal":{"service":["cloudaudit.cloud.tencent.com","cls.cloud.tencent.com"]}}]}`, where `principal` is used to specify the service that is authorized to use the role. For more information about this parameter, see **RoleInfo** under **Output Parameters** in the [GetRole](https://intl.cloud.tencent.com/document/product/598/36221?from_cn_redirect=1). PolicyDocument *string `json:"PolicyDocument,omitempty" name:"PolicyDocument"` // Preset policy remark Alias *string `json:"Alias,omitempty" name:"Alias"` }
func NewUpdatePolicyRequest ¶
func NewUpdatePolicyRequest() (request *UpdatePolicyRequest)
func (*UpdatePolicyRequest) FromJsonString ¶
func (r *UpdatePolicyRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdatePolicyRequest) ToJsonString ¶
func (r *UpdatePolicyRequest) ToJsonString() string
type UpdatePolicyResponse ¶
type UpdatePolicyResponse struct { *tchttp.BaseResponse Response *struct { // Policy ID, which will be returned only if the input parameter is `PolicyName` // Note: this field may return null, indicating that no valid values can be obtained. PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewUpdatePolicyResponse ¶
func NewUpdatePolicyResponse() (response *UpdatePolicyResponse)
func (*UpdatePolicyResponse) FromJsonString ¶
func (r *UpdatePolicyResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdatePolicyResponse) ToJsonString ¶
func (r *UpdatePolicyResponse) ToJsonString() string
type UpdateRoleConsoleLoginRequest ¶
type UpdateRoleConsoleLoginRequest struct { *tchttp.BaseRequest // Whether login is allowed. 1: yes, 0: no ConsoleLogin *int64 `json:"ConsoleLogin,omitempty" name:"ConsoleLogin"` // Role ID. Use either `RoleId` or `RoleName` as the input parameter. RoleId *int64 `json:"RoleId,omitempty" name:"RoleId"` // Role name. Use either `RoleId` or `RoleName` as the input parameter. RoleName *string `json:"RoleName,omitempty" name:"RoleName"` }
func NewUpdateRoleConsoleLoginRequest ¶
func NewUpdateRoleConsoleLoginRequest() (request *UpdateRoleConsoleLoginRequest)
func (*UpdateRoleConsoleLoginRequest) FromJsonString ¶
func (r *UpdateRoleConsoleLoginRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateRoleConsoleLoginRequest) ToJsonString ¶
func (r *UpdateRoleConsoleLoginRequest) ToJsonString() string
type UpdateRoleConsoleLoginResponse ¶
type UpdateRoleConsoleLoginResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewUpdateRoleConsoleLoginResponse ¶
func NewUpdateRoleConsoleLoginResponse() (response *UpdateRoleConsoleLoginResponse)
func (*UpdateRoleConsoleLoginResponse) FromJsonString ¶
func (r *UpdateRoleConsoleLoginResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateRoleConsoleLoginResponse) ToJsonString ¶
func (r *UpdateRoleConsoleLoginResponse) ToJsonString() string
type UpdateRoleDescriptionRequest ¶
type UpdateRoleDescriptionRequest struct { *tchttp.BaseRequest // Role description Description *string `json:"Description,omitempty" name:"Description"` // Role ID, used to specify a role. Input either `RoleId` or `RoleName` RoleId *string `json:"RoleId,omitempty" name:"RoleId"` // Role name, used to specify a role. Input either `RoleId` or `RoleName` RoleName *string `json:"RoleName,omitempty" name:"RoleName"` }
func NewUpdateRoleDescriptionRequest ¶
func NewUpdateRoleDescriptionRequest() (request *UpdateRoleDescriptionRequest)
func (*UpdateRoleDescriptionRequest) FromJsonString ¶
func (r *UpdateRoleDescriptionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateRoleDescriptionRequest) ToJsonString ¶
func (r *UpdateRoleDescriptionRequest) ToJsonString() string
type UpdateRoleDescriptionResponse ¶
type UpdateRoleDescriptionResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewUpdateRoleDescriptionResponse ¶
func NewUpdateRoleDescriptionResponse() (response *UpdateRoleDescriptionResponse)
func (*UpdateRoleDescriptionResponse) FromJsonString ¶
func (r *UpdateRoleDescriptionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateRoleDescriptionResponse) ToJsonString ¶
func (r *UpdateRoleDescriptionResponse) ToJsonString() string
type UpdateSAMLProviderRequest ¶
type UpdateSAMLProviderRequest struct { *tchttp.BaseRequest // SAML identity provider name Name *string `json:"Name,omitempty" name:"Name"` // SAML identity provider description Description *string `json:"Description,omitempty" name:"Description"` // SAML identity provider metadata document (Base64) SAMLMetadataDocument *string `json:"SAMLMetadataDocument,omitempty" name:"SAMLMetadataDocument"` }
func NewUpdateSAMLProviderRequest ¶
func NewUpdateSAMLProviderRequest() (request *UpdateSAMLProviderRequest)
func (*UpdateSAMLProviderRequest) FromJsonString ¶
func (r *UpdateSAMLProviderRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateSAMLProviderRequest) ToJsonString ¶
func (r *UpdateSAMLProviderRequest) ToJsonString() string
type UpdateSAMLProviderResponse ¶
type UpdateSAMLProviderResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewUpdateSAMLProviderResponse ¶
func NewUpdateSAMLProviderResponse() (response *UpdateSAMLProviderResponse)
func (*UpdateSAMLProviderResponse) FromJsonString ¶
func (r *UpdateSAMLProviderResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateSAMLProviderResponse) ToJsonString ¶
func (r *UpdateSAMLProviderResponse) ToJsonString() string
type UpdateUserRequest ¶
type UpdateUserRequest struct { *tchttp.BaseRequest // Sub-user username Name *string `json:"Name,omitempty" name:"Name"` // Sub-user remarks Remark *string `json:"Remark,omitempty" name:"Remark"` // Whether or not the sub-user is allowed to log in to the console. 0: No; 1: Yes. ConsoleLogin *uint64 `json:"ConsoleLogin,omitempty" name:"ConsoleLogin"` // Sub-user's console login password. If no password rules have been set, the password must have a minimum of 8 characters containing uppercase letters, lowercase letters, digits, and special characters by default. This parameter will be valid only when the sub-user is allowed to log in to the console. If it is not specified and console login is allowed, the system will automatically generate a random 32-character password that contains uppercase letters, lowercase letters, digits, and special characters. Password *string `json:"Password,omitempty" name:"Password"` // If the sub-user needs to reset their password when they next log in to the console. 0: No; 1: Yes. NeedResetPassword *uint64 `json:"NeedResetPassword,omitempty" name:"NeedResetPassword"` // Mobile number PhoneNum *string `json:"PhoneNum,omitempty" name:"PhoneNum"` // Country/Area Code CountryCode *string `json:"CountryCode,omitempty" name:"CountryCode"` // Email Email *string `json:"Email,omitempty" name:"Email"` }
func NewUpdateUserRequest ¶
func NewUpdateUserRequest() (request *UpdateUserRequest)
func (*UpdateUserRequest) FromJsonString ¶
func (r *UpdateUserRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateUserRequest) ToJsonString ¶
func (r *UpdateUserRequest) ToJsonString() string
type UpdateUserResponse ¶
type UpdateUserResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewUpdateUserResponse ¶
func NewUpdateUserResponse() (response *UpdateUserResponse)
func (*UpdateUserResponse) FromJsonString ¶
func (r *UpdateUserResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateUserResponse) ToJsonString ¶
func (r *UpdateUserResponse) ToJsonString() string
type UpdateUserSAMLConfigRequest ¶
type UpdateUserSAMLConfigRequest struct { *tchttp.BaseRequest // Type of the modification operation. `enable`: enable, `disable`: disable, `updateSAML`: modify metadata document. Operate *string `json:"Operate,omitempty" name:"Operate"` // Metadata document, which must be Base64 encoded. This parameter is required only when the value of `Operate` is `updateSAML`. SAMLMetadataDocument *string `json:"SAMLMetadataDocument,omitempty" name:"SAMLMetadataDocument"` }
func NewUpdateUserSAMLConfigRequest ¶
func NewUpdateUserSAMLConfigRequest() (request *UpdateUserSAMLConfigRequest)
func (*UpdateUserSAMLConfigRequest) FromJsonString ¶
func (r *UpdateUserSAMLConfigRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateUserSAMLConfigRequest) ToJsonString ¶
func (r *UpdateUserSAMLConfigRequest) ToJsonString() string
type UpdateUserSAMLConfigResponse ¶
type UpdateUserSAMLConfigResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewUpdateUserSAMLConfigResponse ¶
func NewUpdateUserSAMLConfigResponse() (response *UpdateUserSAMLConfigResponse)
func (*UpdateUserSAMLConfigResponse) FromJsonString ¶
func (r *UpdateUserSAMLConfigResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateUserSAMLConfigResponse) ToJsonString ¶
func (r *UpdateUserSAMLConfigResponse) ToJsonString() string