Documentation
¶
Index ¶
- type AccessKey
- func (*AccessKey) ElementType() reflect.Type
- func (i *AccessKey) ToAccessKeyOutput() AccessKeyOutput
- func (i *AccessKey) ToAccessKeyOutputWithContext(ctx context.Context) AccessKeyOutput
- func (i *AccessKey) ToAccessKeyPtrOutput() AccessKeyPtrOutput
- func (i *AccessKey) ToAccessKeyPtrOutputWithContext(ctx context.Context) AccessKeyPtrOutput
- type AccessKeyArgs
- type AccessKeyArray
- type AccessKeyArrayInput
- type AccessKeyArrayOutput
- func (AccessKeyArrayOutput) ElementType() reflect.Type
- func (o AccessKeyArrayOutput) Index(i pulumi.IntInput) AccessKeyOutput
- func (o AccessKeyArrayOutput) ToAccessKeyArrayOutput() AccessKeyArrayOutput
- func (o AccessKeyArrayOutput) ToAccessKeyArrayOutputWithContext(ctx context.Context) AccessKeyArrayOutput
- type AccessKeyInput
- type AccessKeyMap
- type AccessKeyMapInput
- type AccessKeyMapOutput
- type AccessKeyOutput
- func (AccessKeyOutput) ElementType() reflect.Type
- func (o AccessKeyOutput) ToAccessKeyOutput() AccessKeyOutput
- func (o AccessKeyOutput) ToAccessKeyOutputWithContext(ctx context.Context) AccessKeyOutput
- func (o AccessKeyOutput) ToAccessKeyPtrOutput() AccessKeyPtrOutput
- func (o AccessKeyOutput) ToAccessKeyPtrOutputWithContext(ctx context.Context) AccessKeyPtrOutput
- type AccessKeyPtrInput
- type AccessKeyPtrOutput
- type AccessKeyState
- type AccountAlias
- func (*AccountAlias) ElementType() reflect.Type
- func (i *AccountAlias) ToAccountAliasOutput() AccountAliasOutput
- func (i *AccountAlias) ToAccountAliasOutputWithContext(ctx context.Context) AccountAliasOutput
- func (i *AccountAlias) ToAccountAliasPtrOutput() AccountAliasPtrOutput
- func (i *AccountAlias) ToAccountAliasPtrOutputWithContext(ctx context.Context) AccountAliasPtrOutput
- type AccountAliasArgs
- type AccountAliasArray
- type AccountAliasArrayInput
- type AccountAliasArrayOutput
- func (AccountAliasArrayOutput) ElementType() reflect.Type
- func (o AccountAliasArrayOutput) Index(i pulumi.IntInput) AccountAliasOutput
- func (o AccountAliasArrayOutput) ToAccountAliasArrayOutput() AccountAliasArrayOutput
- func (o AccountAliasArrayOutput) ToAccountAliasArrayOutputWithContext(ctx context.Context) AccountAliasArrayOutput
- type AccountAliasInput
- type AccountAliasMap
- type AccountAliasMapInput
- type AccountAliasMapOutput
- func (AccountAliasMapOutput) ElementType() reflect.Type
- func (o AccountAliasMapOutput) MapIndex(k pulumi.StringInput) AccountAliasOutput
- func (o AccountAliasMapOutput) ToAccountAliasMapOutput() AccountAliasMapOutput
- func (o AccountAliasMapOutput) ToAccountAliasMapOutputWithContext(ctx context.Context) AccountAliasMapOutput
- type AccountAliasOutput
- func (AccountAliasOutput) ElementType() reflect.Type
- func (o AccountAliasOutput) ToAccountAliasOutput() AccountAliasOutput
- func (o AccountAliasOutput) ToAccountAliasOutputWithContext(ctx context.Context) AccountAliasOutput
- func (o AccountAliasOutput) ToAccountAliasPtrOutput() AccountAliasPtrOutput
- func (o AccountAliasOutput) ToAccountAliasPtrOutputWithContext(ctx context.Context) AccountAliasPtrOutput
- type AccountAliasPtrInput
- type AccountAliasPtrOutput
- type AccountAliasState
- type AccountPasswordPolicy
- func (*AccountPasswordPolicy) ElementType() reflect.Type
- func (i *AccountPasswordPolicy) ToAccountPasswordPolicyOutput() AccountPasswordPolicyOutput
- func (i *AccountPasswordPolicy) ToAccountPasswordPolicyOutputWithContext(ctx context.Context) AccountPasswordPolicyOutput
- func (i *AccountPasswordPolicy) ToAccountPasswordPolicyPtrOutput() AccountPasswordPolicyPtrOutput
- func (i *AccountPasswordPolicy) ToAccountPasswordPolicyPtrOutputWithContext(ctx context.Context) AccountPasswordPolicyPtrOutput
- type AccountPasswordPolicyArgs
- type AccountPasswordPolicyArray
- func (AccountPasswordPolicyArray) ElementType() reflect.Type
- func (i AccountPasswordPolicyArray) ToAccountPasswordPolicyArrayOutput() AccountPasswordPolicyArrayOutput
- func (i AccountPasswordPolicyArray) ToAccountPasswordPolicyArrayOutputWithContext(ctx context.Context) AccountPasswordPolicyArrayOutput
- type AccountPasswordPolicyArrayInput
- type AccountPasswordPolicyArrayOutput
- func (AccountPasswordPolicyArrayOutput) ElementType() reflect.Type
- func (o AccountPasswordPolicyArrayOutput) Index(i pulumi.IntInput) AccountPasswordPolicyOutput
- func (o AccountPasswordPolicyArrayOutput) ToAccountPasswordPolicyArrayOutput() AccountPasswordPolicyArrayOutput
- func (o AccountPasswordPolicyArrayOutput) ToAccountPasswordPolicyArrayOutputWithContext(ctx context.Context) AccountPasswordPolicyArrayOutput
- type AccountPasswordPolicyInput
- type AccountPasswordPolicyMap
- type AccountPasswordPolicyMapInput
- type AccountPasswordPolicyMapOutput
- func (AccountPasswordPolicyMapOutput) ElementType() reflect.Type
- func (o AccountPasswordPolicyMapOutput) MapIndex(k pulumi.StringInput) AccountPasswordPolicyOutput
- func (o AccountPasswordPolicyMapOutput) ToAccountPasswordPolicyMapOutput() AccountPasswordPolicyMapOutput
- func (o AccountPasswordPolicyMapOutput) ToAccountPasswordPolicyMapOutputWithContext(ctx context.Context) AccountPasswordPolicyMapOutput
- type AccountPasswordPolicyOutput
- func (AccountPasswordPolicyOutput) ElementType() reflect.Type
- func (o AccountPasswordPolicyOutput) ToAccountPasswordPolicyOutput() AccountPasswordPolicyOutput
- func (o AccountPasswordPolicyOutput) ToAccountPasswordPolicyOutputWithContext(ctx context.Context) AccountPasswordPolicyOutput
- func (o AccountPasswordPolicyOutput) ToAccountPasswordPolicyPtrOutput() AccountPasswordPolicyPtrOutput
- func (o AccountPasswordPolicyOutput) ToAccountPasswordPolicyPtrOutputWithContext(ctx context.Context) AccountPasswordPolicyPtrOutput
- type AccountPasswordPolicyPtrInput
- type AccountPasswordPolicyPtrOutput
- func (AccountPasswordPolicyPtrOutput) ElementType() reflect.Type
- func (o AccountPasswordPolicyPtrOutput) ToAccountPasswordPolicyPtrOutput() AccountPasswordPolicyPtrOutput
- func (o AccountPasswordPolicyPtrOutput) ToAccountPasswordPolicyPtrOutputWithContext(ctx context.Context) AccountPasswordPolicyPtrOutput
- type AccountPasswordPolicyState
- type Alias
- type AliasArgs
- type AliasArray
- type AliasArrayInput
- type AliasArrayOutput
- type AliasInput
- type AliasMap
- type AliasMapInput
- type AliasMapOutput
- type AliasOutput
- func (AliasOutput) ElementType() reflect.Type
- func (o AliasOutput) ToAliasOutput() AliasOutput
- func (o AliasOutput) ToAliasOutputWithContext(ctx context.Context) AliasOutput
- func (o AliasOutput) ToAliasPtrOutput() AliasPtrOutput
- func (o AliasOutput) ToAliasPtrOutputWithContext(ctx context.Context) AliasPtrOutput
- type AliasPtrInput
- type AliasPtrOutput
- type AliasState
- type GetAccountAliasesArgs
- type GetAccountAliasesResult
- type GetGroupsArgs
- type GetGroupsGroup
- type GetGroupsGroupArgs
- type GetGroupsGroupArray
- type GetGroupsGroupArrayInput
- type GetGroupsGroupArrayOutput
- func (GetGroupsGroupArrayOutput) ElementType() reflect.Type
- func (o GetGroupsGroupArrayOutput) Index(i pulumi.IntInput) GetGroupsGroupOutput
- func (o GetGroupsGroupArrayOutput) ToGetGroupsGroupArrayOutput() GetGroupsGroupArrayOutput
- func (o GetGroupsGroupArrayOutput) ToGetGroupsGroupArrayOutputWithContext(ctx context.Context) GetGroupsGroupArrayOutput
- type GetGroupsGroupInput
- type GetGroupsGroupOutput
- func (o GetGroupsGroupOutput) Comments() pulumi.StringOutput
- func (GetGroupsGroupOutput) ElementType() reflect.Type
- func (o GetGroupsGroupOutput) Name() pulumi.StringOutput
- func (o GetGroupsGroupOutput) ToGetGroupsGroupOutput() GetGroupsGroupOutput
- func (o GetGroupsGroupOutput) ToGetGroupsGroupOutputWithContext(ctx context.Context) GetGroupsGroupOutput
- type GetGroupsResult
- type GetPoliciesArgs
- type GetPoliciesPolicy
- type GetPoliciesPolicyArgs
- type GetPoliciesPolicyArray
- type GetPoliciesPolicyArrayInput
- type GetPoliciesPolicyArrayOutput
- func (GetPoliciesPolicyArrayOutput) ElementType() reflect.Type
- func (o GetPoliciesPolicyArrayOutput) Index(i pulumi.IntInput) GetPoliciesPolicyOutput
- func (o GetPoliciesPolicyArrayOutput) ToGetPoliciesPolicyArrayOutput() GetPoliciesPolicyArrayOutput
- func (o GetPoliciesPolicyArrayOutput) ToGetPoliciesPolicyArrayOutputWithContext(ctx context.Context) GetPoliciesPolicyArrayOutput
- type GetPoliciesPolicyInput
- type GetPoliciesPolicyOutput
- func (o GetPoliciesPolicyOutput) AttachmentCount() pulumi.IntOutput
- func (o GetPoliciesPolicyOutput) CreateDate() pulumi.StringOutput
- func (o GetPoliciesPolicyOutput) DefaultVersion() pulumi.StringOutput
- func (o GetPoliciesPolicyOutput) Description() pulumi.StringOutput
- func (o GetPoliciesPolicyOutput) Document() pulumi.StringOutput
- func (GetPoliciesPolicyOutput) ElementType() reflect.Type
- func (o GetPoliciesPolicyOutput) Id() pulumi.StringOutput
- func (o GetPoliciesPolicyOutput) Name() pulumi.StringOutput
- func (o GetPoliciesPolicyOutput) PolicyDocument() pulumi.StringOutput
- func (o GetPoliciesPolicyOutput) PolicyName() pulumi.StringOutput
- func (o GetPoliciesPolicyOutput) ToGetPoliciesPolicyOutput() GetPoliciesPolicyOutput
- func (o GetPoliciesPolicyOutput) ToGetPoliciesPolicyOutputWithContext(ctx context.Context) GetPoliciesPolicyOutput
- func (o GetPoliciesPolicyOutput) Type() pulumi.StringOutput
- func (o GetPoliciesPolicyOutput) UpdateDate() pulumi.StringOutput
- func (o GetPoliciesPolicyOutput) UserName() pulumi.StringOutput
- func (o GetPoliciesPolicyOutput) VersionId() pulumi.StringOutput
- type GetPoliciesResult
- type GetRolesArgs
- type GetRolesResult
- type GetRolesRole
- type GetRolesRoleArgs
- type GetRolesRoleArray
- type GetRolesRoleArrayInput
- type GetRolesRoleArrayOutput
- func (GetRolesRoleArrayOutput) ElementType() reflect.Type
- func (o GetRolesRoleArrayOutput) Index(i pulumi.IntInput) GetRolesRoleOutput
- func (o GetRolesRoleArrayOutput) ToGetRolesRoleArrayOutput() GetRolesRoleArrayOutput
- func (o GetRolesRoleArrayOutput) ToGetRolesRoleArrayOutputWithContext(ctx context.Context) GetRolesRoleArrayOutput
- type GetRolesRoleInput
- type GetRolesRoleOutput
- func (o GetRolesRoleOutput) Arn() pulumi.StringOutput
- func (o GetRolesRoleOutput) AssumeRolePolicyDocument() pulumi.StringOutput
- func (o GetRolesRoleOutput) CreateDate() pulumi.StringOutput
- func (o GetRolesRoleOutput) Description() pulumi.StringOutput
- func (o GetRolesRoleOutput) Document() pulumi.StringOutput
- func (GetRolesRoleOutput) ElementType() reflect.Type
- func (o GetRolesRoleOutput) Id() pulumi.StringOutput
- func (o GetRolesRoleOutput) Name() pulumi.StringOutput
- func (o GetRolesRoleOutput) ToGetRolesRoleOutput() GetRolesRoleOutput
- func (o GetRolesRoleOutput) ToGetRolesRoleOutputWithContext(ctx context.Context) GetRolesRoleOutput
- func (o GetRolesRoleOutput) UpdateDate() pulumi.StringOutput
- type GetSamlProvidersArgs
- type GetSamlProvidersProvider
- type GetSamlProvidersProviderArgs
- func (GetSamlProvidersProviderArgs) ElementType() reflect.Type
- func (i GetSamlProvidersProviderArgs) ToGetSamlProvidersProviderOutput() GetSamlProvidersProviderOutput
- func (i GetSamlProvidersProviderArgs) ToGetSamlProvidersProviderOutputWithContext(ctx context.Context) GetSamlProvidersProviderOutput
- type GetSamlProvidersProviderArray
- func (GetSamlProvidersProviderArray) ElementType() reflect.Type
- func (i GetSamlProvidersProviderArray) ToGetSamlProvidersProviderArrayOutput() GetSamlProvidersProviderArrayOutput
- func (i GetSamlProvidersProviderArray) ToGetSamlProvidersProviderArrayOutputWithContext(ctx context.Context) GetSamlProvidersProviderArrayOutput
- type GetSamlProvidersProviderArrayInput
- type GetSamlProvidersProviderArrayOutput
- func (GetSamlProvidersProviderArrayOutput) ElementType() reflect.Type
- func (o GetSamlProvidersProviderArrayOutput) Index(i pulumi.IntInput) GetSamlProvidersProviderOutput
- func (o GetSamlProvidersProviderArrayOutput) ToGetSamlProvidersProviderArrayOutput() GetSamlProvidersProviderArrayOutput
- func (o GetSamlProvidersProviderArrayOutput) ToGetSamlProvidersProviderArrayOutputWithContext(ctx context.Context) GetSamlProvidersProviderArrayOutput
- type GetSamlProvidersProviderInput
- type GetSamlProvidersProviderOutput
- func (o GetSamlProvidersProviderOutput) Arn() pulumi.StringOutput
- func (o GetSamlProvidersProviderOutput) Description() pulumi.StringOutput
- func (GetSamlProvidersProviderOutput) ElementType() reflect.Type
- func (o GetSamlProvidersProviderOutput) EncodedsamlMetadataDocument() pulumi.StringOutput
- func (o GetSamlProvidersProviderOutput) Id() pulumi.StringOutput
- func (o GetSamlProvidersProviderOutput) SamlProviderName() pulumi.StringOutput
- func (o GetSamlProvidersProviderOutput) ToGetSamlProvidersProviderOutput() GetSamlProvidersProviderOutput
- func (o GetSamlProvidersProviderOutput) ToGetSamlProvidersProviderOutputWithContext(ctx context.Context) GetSamlProvidersProviderOutput
- func (o GetSamlProvidersProviderOutput) UpdateDate() pulumi.StringOutput
- type GetSamlProvidersResult
- type GetUsersArgs
- type GetUsersResult
- type GetUsersUser
- type GetUsersUserArgs
- type GetUsersUserArray
- type GetUsersUserArrayInput
- type GetUsersUserArrayOutput
- func (GetUsersUserArrayOutput) ElementType() reflect.Type
- func (o GetUsersUserArrayOutput) Index(i pulumi.IntInput) GetUsersUserOutput
- func (o GetUsersUserArrayOutput) ToGetUsersUserArrayOutput() GetUsersUserArrayOutput
- func (o GetUsersUserArrayOutput) ToGetUsersUserArrayOutputWithContext(ctx context.Context) GetUsersUserArrayOutput
- type GetUsersUserInput
- type GetUsersUserOutput
- func (o GetUsersUserOutput) CreateDate() pulumi.StringOutput
- func (GetUsersUserOutput) ElementType() reflect.Type
- func (o GetUsersUserOutput) Id() pulumi.StringOutput
- func (o GetUsersUserOutput) LastLoginDate() pulumi.StringOutput
- func (o GetUsersUserOutput) Name() pulumi.StringOutput
- func (o GetUsersUserOutput) ToGetUsersUserOutput() GetUsersUserOutput
- func (o GetUsersUserOutput) ToGetUsersUserOutputWithContext(ctx context.Context) GetUsersUserOutput
- type Group
- type GroupArgs
- type GroupArray
- type GroupArrayInput
- type GroupArrayOutput
- type GroupInput
- type GroupMap
- type GroupMapInput
- type GroupMapOutput
- type GroupMembership
- func (*GroupMembership) ElementType() reflect.Type
- func (i *GroupMembership) ToGroupMembershipOutput() GroupMembershipOutput
- func (i *GroupMembership) ToGroupMembershipOutputWithContext(ctx context.Context) GroupMembershipOutput
- func (i *GroupMembership) ToGroupMembershipPtrOutput() GroupMembershipPtrOutput
- func (i *GroupMembership) ToGroupMembershipPtrOutputWithContext(ctx context.Context) GroupMembershipPtrOutput
- type GroupMembershipArgs
- type GroupMembershipArray
- type GroupMembershipArrayInput
- type GroupMembershipArrayOutput
- func (GroupMembershipArrayOutput) ElementType() reflect.Type
- func (o GroupMembershipArrayOutput) Index(i pulumi.IntInput) GroupMembershipOutput
- func (o GroupMembershipArrayOutput) ToGroupMembershipArrayOutput() GroupMembershipArrayOutput
- func (o GroupMembershipArrayOutput) ToGroupMembershipArrayOutputWithContext(ctx context.Context) GroupMembershipArrayOutput
- type GroupMembershipInput
- type GroupMembershipMap
- type GroupMembershipMapInput
- type GroupMembershipMapOutput
- func (GroupMembershipMapOutput) ElementType() reflect.Type
- func (o GroupMembershipMapOutput) MapIndex(k pulumi.StringInput) GroupMembershipOutput
- func (o GroupMembershipMapOutput) ToGroupMembershipMapOutput() GroupMembershipMapOutput
- func (o GroupMembershipMapOutput) ToGroupMembershipMapOutputWithContext(ctx context.Context) GroupMembershipMapOutput
- type GroupMembershipOutput
- func (GroupMembershipOutput) ElementType() reflect.Type
- func (o GroupMembershipOutput) ToGroupMembershipOutput() GroupMembershipOutput
- func (o GroupMembershipOutput) ToGroupMembershipOutputWithContext(ctx context.Context) GroupMembershipOutput
- func (o GroupMembershipOutput) ToGroupMembershipPtrOutput() GroupMembershipPtrOutput
- func (o GroupMembershipOutput) ToGroupMembershipPtrOutputWithContext(ctx context.Context) GroupMembershipPtrOutput
- type GroupMembershipPtrInput
- type GroupMembershipPtrOutput
- type GroupMembershipState
- type GroupOutput
- func (GroupOutput) ElementType() reflect.Type
- func (o GroupOutput) ToGroupOutput() GroupOutput
- func (o GroupOutput) ToGroupOutputWithContext(ctx context.Context) GroupOutput
- func (o GroupOutput) ToGroupPtrOutput() GroupPtrOutput
- func (o GroupOutput) ToGroupPtrOutputWithContext(ctx context.Context) GroupPtrOutput
- type GroupPolicyAttachment
- func (*GroupPolicyAttachment) ElementType() reflect.Type
- func (i *GroupPolicyAttachment) ToGroupPolicyAttachmentOutput() GroupPolicyAttachmentOutput
- func (i *GroupPolicyAttachment) ToGroupPolicyAttachmentOutputWithContext(ctx context.Context) GroupPolicyAttachmentOutput
- func (i *GroupPolicyAttachment) ToGroupPolicyAttachmentPtrOutput() GroupPolicyAttachmentPtrOutput
- func (i *GroupPolicyAttachment) ToGroupPolicyAttachmentPtrOutputWithContext(ctx context.Context) GroupPolicyAttachmentPtrOutput
- type GroupPolicyAttachmentArgs
- type GroupPolicyAttachmentArray
- func (GroupPolicyAttachmentArray) ElementType() reflect.Type
- func (i GroupPolicyAttachmentArray) ToGroupPolicyAttachmentArrayOutput() GroupPolicyAttachmentArrayOutput
- func (i GroupPolicyAttachmentArray) ToGroupPolicyAttachmentArrayOutputWithContext(ctx context.Context) GroupPolicyAttachmentArrayOutput
- type GroupPolicyAttachmentArrayInput
- type GroupPolicyAttachmentArrayOutput
- func (GroupPolicyAttachmentArrayOutput) ElementType() reflect.Type
- func (o GroupPolicyAttachmentArrayOutput) Index(i pulumi.IntInput) GroupPolicyAttachmentOutput
- func (o GroupPolicyAttachmentArrayOutput) ToGroupPolicyAttachmentArrayOutput() GroupPolicyAttachmentArrayOutput
- func (o GroupPolicyAttachmentArrayOutput) ToGroupPolicyAttachmentArrayOutputWithContext(ctx context.Context) GroupPolicyAttachmentArrayOutput
- type GroupPolicyAttachmentInput
- type GroupPolicyAttachmentMap
- type GroupPolicyAttachmentMapInput
- type GroupPolicyAttachmentMapOutput
- func (GroupPolicyAttachmentMapOutput) ElementType() reflect.Type
- func (o GroupPolicyAttachmentMapOutput) MapIndex(k pulumi.StringInput) GroupPolicyAttachmentOutput
- func (o GroupPolicyAttachmentMapOutput) ToGroupPolicyAttachmentMapOutput() GroupPolicyAttachmentMapOutput
- func (o GroupPolicyAttachmentMapOutput) ToGroupPolicyAttachmentMapOutputWithContext(ctx context.Context) GroupPolicyAttachmentMapOutput
- type GroupPolicyAttachmentOutput
- func (GroupPolicyAttachmentOutput) ElementType() reflect.Type
- func (o GroupPolicyAttachmentOutput) ToGroupPolicyAttachmentOutput() GroupPolicyAttachmentOutput
- func (o GroupPolicyAttachmentOutput) ToGroupPolicyAttachmentOutputWithContext(ctx context.Context) GroupPolicyAttachmentOutput
- func (o GroupPolicyAttachmentOutput) ToGroupPolicyAttachmentPtrOutput() GroupPolicyAttachmentPtrOutput
- func (o GroupPolicyAttachmentOutput) ToGroupPolicyAttachmentPtrOutputWithContext(ctx context.Context) GroupPolicyAttachmentPtrOutput
- type GroupPolicyAttachmentPtrInput
- type GroupPolicyAttachmentPtrOutput
- func (GroupPolicyAttachmentPtrOutput) ElementType() reflect.Type
- func (o GroupPolicyAttachmentPtrOutput) ToGroupPolicyAttachmentPtrOutput() GroupPolicyAttachmentPtrOutput
- func (o GroupPolicyAttachmentPtrOutput) ToGroupPolicyAttachmentPtrOutputWithContext(ctx context.Context) GroupPolicyAttachmentPtrOutput
- type GroupPolicyAttachmentState
- type GroupPtrInput
- type GroupPtrOutput
- type GroupState
- type LoginProfile
- func (*LoginProfile) ElementType() reflect.Type
- func (i *LoginProfile) ToLoginProfileOutput() LoginProfileOutput
- func (i *LoginProfile) ToLoginProfileOutputWithContext(ctx context.Context) LoginProfileOutput
- func (i *LoginProfile) ToLoginProfilePtrOutput() LoginProfilePtrOutput
- func (i *LoginProfile) ToLoginProfilePtrOutputWithContext(ctx context.Context) LoginProfilePtrOutput
- type LoginProfileArgs
- type LoginProfileArray
- type LoginProfileArrayInput
- type LoginProfileArrayOutput
- func (LoginProfileArrayOutput) ElementType() reflect.Type
- func (o LoginProfileArrayOutput) Index(i pulumi.IntInput) LoginProfileOutput
- func (o LoginProfileArrayOutput) ToLoginProfileArrayOutput() LoginProfileArrayOutput
- func (o LoginProfileArrayOutput) ToLoginProfileArrayOutputWithContext(ctx context.Context) LoginProfileArrayOutput
- type LoginProfileInput
- type LoginProfileMap
- type LoginProfileMapInput
- type LoginProfileMapOutput
- func (LoginProfileMapOutput) ElementType() reflect.Type
- func (o LoginProfileMapOutput) MapIndex(k pulumi.StringInput) LoginProfileOutput
- func (o LoginProfileMapOutput) ToLoginProfileMapOutput() LoginProfileMapOutput
- func (o LoginProfileMapOutput) ToLoginProfileMapOutputWithContext(ctx context.Context) LoginProfileMapOutput
- type LoginProfileOutput
- func (LoginProfileOutput) ElementType() reflect.Type
- func (o LoginProfileOutput) ToLoginProfileOutput() LoginProfileOutput
- func (o LoginProfileOutput) ToLoginProfileOutputWithContext(ctx context.Context) LoginProfileOutput
- func (o LoginProfileOutput) ToLoginProfilePtrOutput() LoginProfilePtrOutput
- func (o LoginProfileOutput) ToLoginProfilePtrOutputWithContext(ctx context.Context) LoginProfilePtrOutput
- type LoginProfilePtrInput
- type LoginProfilePtrOutput
- type LoginProfileState
- type LookupAccountAliasArgs
- type LookupAccountAliasResult
- type Policy
- func (*Policy) ElementType() reflect.Type
- func (i *Policy) ToPolicyOutput() PolicyOutput
- func (i *Policy) ToPolicyOutputWithContext(ctx context.Context) PolicyOutput
- func (i *Policy) ToPolicyPtrOutput() PolicyPtrOutput
- func (i *Policy) ToPolicyPtrOutputWithContext(ctx context.Context) PolicyPtrOutput
- type PolicyArgs
- type PolicyArray
- type PolicyArrayInput
- type PolicyArrayOutput
- type PolicyInput
- type PolicyMap
- type PolicyMapInput
- type PolicyMapOutput
- type PolicyOutput
- func (PolicyOutput) ElementType() reflect.Type
- func (o PolicyOutput) ToPolicyOutput() PolicyOutput
- func (o PolicyOutput) ToPolicyOutputWithContext(ctx context.Context) PolicyOutput
- func (o PolicyOutput) ToPolicyPtrOutput() PolicyPtrOutput
- func (o PolicyOutput) ToPolicyPtrOutputWithContext(ctx context.Context) PolicyPtrOutput
- type PolicyPtrInput
- type PolicyPtrOutput
- type PolicyState
- type PolicyStatement
- type PolicyStatementArgs
- type PolicyStatementArray
- type PolicyStatementArrayInput
- type PolicyStatementArrayOutput
- func (PolicyStatementArrayOutput) ElementType() reflect.Type
- func (o PolicyStatementArrayOutput) Index(i pulumi.IntInput) PolicyStatementOutput
- func (o PolicyStatementArrayOutput) ToPolicyStatementArrayOutput() PolicyStatementArrayOutput
- func (o PolicyStatementArrayOutput) ToPolicyStatementArrayOutputWithContext(ctx context.Context) PolicyStatementArrayOutput
- type PolicyStatementInput
- type PolicyStatementOutput
- func (o PolicyStatementOutput) Actions() pulumi.StringArrayOutput
- func (o PolicyStatementOutput) Effect() pulumi.StringOutput
- func (PolicyStatementOutput) ElementType() reflect.Type
- func (o PolicyStatementOutput) Resources() pulumi.StringArrayOutput
- func (o PolicyStatementOutput) ToPolicyStatementOutput() PolicyStatementOutput
- func (o PolicyStatementOutput) ToPolicyStatementOutputWithContext(ctx context.Context) PolicyStatementOutput
- type Role
- type RoleArgs
- type RoleArray
- type RoleArrayInput
- type RoleArrayOutput
- type RoleAttachment
- func (*RoleAttachment) ElementType() reflect.Type
- func (i *RoleAttachment) ToRoleAttachmentOutput() RoleAttachmentOutput
- func (i *RoleAttachment) ToRoleAttachmentOutputWithContext(ctx context.Context) RoleAttachmentOutput
- func (i *RoleAttachment) ToRoleAttachmentPtrOutput() RoleAttachmentPtrOutput
- func (i *RoleAttachment) ToRoleAttachmentPtrOutputWithContext(ctx context.Context) RoleAttachmentPtrOutput
- type RoleAttachmentArgs
- type RoleAttachmentArray
- type RoleAttachmentArrayInput
- type RoleAttachmentArrayOutput
- func (RoleAttachmentArrayOutput) ElementType() reflect.Type
- func (o RoleAttachmentArrayOutput) Index(i pulumi.IntInput) RoleAttachmentOutput
- func (o RoleAttachmentArrayOutput) ToRoleAttachmentArrayOutput() RoleAttachmentArrayOutput
- func (o RoleAttachmentArrayOutput) ToRoleAttachmentArrayOutputWithContext(ctx context.Context) RoleAttachmentArrayOutput
- type RoleAttachmentInput
- type RoleAttachmentMap
- type RoleAttachmentMapInput
- type RoleAttachmentMapOutput
- func (RoleAttachmentMapOutput) ElementType() reflect.Type
- func (o RoleAttachmentMapOutput) MapIndex(k pulumi.StringInput) RoleAttachmentOutput
- func (o RoleAttachmentMapOutput) ToRoleAttachmentMapOutput() RoleAttachmentMapOutput
- func (o RoleAttachmentMapOutput) ToRoleAttachmentMapOutputWithContext(ctx context.Context) RoleAttachmentMapOutput
- type RoleAttachmentOutput
- func (RoleAttachmentOutput) ElementType() reflect.Type
- func (o RoleAttachmentOutput) ToRoleAttachmentOutput() RoleAttachmentOutput
- func (o RoleAttachmentOutput) ToRoleAttachmentOutputWithContext(ctx context.Context) RoleAttachmentOutput
- func (o RoleAttachmentOutput) ToRoleAttachmentPtrOutput() RoleAttachmentPtrOutput
- func (o RoleAttachmentOutput) ToRoleAttachmentPtrOutputWithContext(ctx context.Context) RoleAttachmentPtrOutput
- type RoleAttachmentPtrInput
- type RoleAttachmentPtrOutput
- type RoleAttachmentState
- type RoleInput
- type RoleMap
- type RoleMapInput
- type RoleMapOutput
- type RoleOutput
- func (RoleOutput) ElementType() reflect.Type
- func (o RoleOutput) ToRoleOutput() RoleOutput
- func (o RoleOutput) ToRoleOutputWithContext(ctx context.Context) RoleOutput
- func (o RoleOutput) ToRolePtrOutput() RolePtrOutput
- func (o RoleOutput) ToRolePtrOutputWithContext(ctx context.Context) RolePtrOutput
- type RolePolicyAttachment
- func (*RolePolicyAttachment) ElementType() reflect.Type
- func (i *RolePolicyAttachment) ToRolePolicyAttachmentOutput() RolePolicyAttachmentOutput
- func (i *RolePolicyAttachment) ToRolePolicyAttachmentOutputWithContext(ctx context.Context) RolePolicyAttachmentOutput
- func (i *RolePolicyAttachment) ToRolePolicyAttachmentPtrOutput() RolePolicyAttachmentPtrOutput
- func (i *RolePolicyAttachment) ToRolePolicyAttachmentPtrOutputWithContext(ctx context.Context) RolePolicyAttachmentPtrOutput
- type RolePolicyAttachmentArgs
- type RolePolicyAttachmentArray
- type RolePolicyAttachmentArrayInput
- type RolePolicyAttachmentArrayOutput
- func (RolePolicyAttachmentArrayOutput) ElementType() reflect.Type
- func (o RolePolicyAttachmentArrayOutput) Index(i pulumi.IntInput) RolePolicyAttachmentOutput
- func (o RolePolicyAttachmentArrayOutput) ToRolePolicyAttachmentArrayOutput() RolePolicyAttachmentArrayOutput
- func (o RolePolicyAttachmentArrayOutput) ToRolePolicyAttachmentArrayOutputWithContext(ctx context.Context) RolePolicyAttachmentArrayOutput
- type RolePolicyAttachmentInput
- type RolePolicyAttachmentMap
- type RolePolicyAttachmentMapInput
- type RolePolicyAttachmentMapOutput
- func (RolePolicyAttachmentMapOutput) ElementType() reflect.Type
- func (o RolePolicyAttachmentMapOutput) MapIndex(k pulumi.StringInput) RolePolicyAttachmentOutput
- func (o RolePolicyAttachmentMapOutput) ToRolePolicyAttachmentMapOutput() RolePolicyAttachmentMapOutput
- func (o RolePolicyAttachmentMapOutput) ToRolePolicyAttachmentMapOutputWithContext(ctx context.Context) RolePolicyAttachmentMapOutput
- type RolePolicyAttachmentOutput
- func (RolePolicyAttachmentOutput) ElementType() reflect.Type
- func (o RolePolicyAttachmentOutput) ToRolePolicyAttachmentOutput() RolePolicyAttachmentOutput
- func (o RolePolicyAttachmentOutput) ToRolePolicyAttachmentOutputWithContext(ctx context.Context) RolePolicyAttachmentOutput
- func (o RolePolicyAttachmentOutput) ToRolePolicyAttachmentPtrOutput() RolePolicyAttachmentPtrOutput
- func (o RolePolicyAttachmentOutput) ToRolePolicyAttachmentPtrOutputWithContext(ctx context.Context) RolePolicyAttachmentPtrOutput
- type RolePolicyAttachmentPtrInput
- type RolePolicyAttachmentPtrOutput
- type RolePolicyAttachmentState
- type RolePtrInput
- type RolePtrOutput
- type RoleState
- type SamlProvider
- func (*SamlProvider) ElementType() reflect.Type
- func (i *SamlProvider) ToSamlProviderOutput() SamlProviderOutput
- func (i *SamlProvider) ToSamlProviderOutputWithContext(ctx context.Context) SamlProviderOutput
- func (i *SamlProvider) ToSamlProviderPtrOutput() SamlProviderPtrOutput
- func (i *SamlProvider) ToSamlProviderPtrOutputWithContext(ctx context.Context) SamlProviderPtrOutput
- type SamlProviderArgs
- type SamlProviderArray
- type SamlProviderArrayInput
- type SamlProviderArrayOutput
- func (SamlProviderArrayOutput) ElementType() reflect.Type
- func (o SamlProviderArrayOutput) Index(i pulumi.IntInput) SamlProviderOutput
- func (o SamlProviderArrayOutput) ToSamlProviderArrayOutput() SamlProviderArrayOutput
- func (o SamlProviderArrayOutput) ToSamlProviderArrayOutputWithContext(ctx context.Context) SamlProviderArrayOutput
- type SamlProviderInput
- type SamlProviderMap
- type SamlProviderMapInput
- type SamlProviderMapOutput
- func (SamlProviderMapOutput) ElementType() reflect.Type
- func (o SamlProviderMapOutput) MapIndex(k pulumi.StringInput) SamlProviderOutput
- func (o SamlProviderMapOutput) ToSamlProviderMapOutput() SamlProviderMapOutput
- func (o SamlProviderMapOutput) ToSamlProviderMapOutputWithContext(ctx context.Context) SamlProviderMapOutput
- type SamlProviderOutput
- func (SamlProviderOutput) ElementType() reflect.Type
- func (o SamlProviderOutput) ToSamlProviderOutput() SamlProviderOutput
- func (o SamlProviderOutput) ToSamlProviderOutputWithContext(ctx context.Context) SamlProviderOutput
- func (o SamlProviderOutput) ToSamlProviderPtrOutput() SamlProviderPtrOutput
- func (o SamlProviderOutput) ToSamlProviderPtrOutputWithContext(ctx context.Context) SamlProviderPtrOutput
- type SamlProviderPtrInput
- type SamlProviderPtrOutput
- type SamlProviderState
- type User
- type UserArgs
- type UserArray
- type UserArrayInput
- type UserArrayOutput
- type UserInput
- type UserMap
- type UserMapInput
- type UserMapOutput
- type UserOutput
- func (UserOutput) ElementType() reflect.Type
- func (o UserOutput) ToUserOutput() UserOutput
- func (o UserOutput) ToUserOutputWithContext(ctx context.Context) UserOutput
- func (o UserOutput) ToUserPtrOutput() UserPtrOutput
- func (o UserOutput) ToUserPtrOutputWithContext(ctx context.Context) UserPtrOutput
- type UserPolicyAttachment
- func (*UserPolicyAttachment) ElementType() reflect.Type
- func (i *UserPolicyAttachment) ToUserPolicyAttachmentOutput() UserPolicyAttachmentOutput
- func (i *UserPolicyAttachment) ToUserPolicyAttachmentOutputWithContext(ctx context.Context) UserPolicyAttachmentOutput
- func (i *UserPolicyAttachment) ToUserPolicyAttachmentPtrOutput() UserPolicyAttachmentPtrOutput
- func (i *UserPolicyAttachment) ToUserPolicyAttachmentPtrOutputWithContext(ctx context.Context) UserPolicyAttachmentPtrOutput
- type UserPolicyAttachmentArgs
- type UserPolicyAttachmentArray
- type UserPolicyAttachmentArrayInput
- type UserPolicyAttachmentArrayOutput
- func (UserPolicyAttachmentArrayOutput) ElementType() reflect.Type
- func (o UserPolicyAttachmentArrayOutput) Index(i pulumi.IntInput) UserPolicyAttachmentOutput
- func (o UserPolicyAttachmentArrayOutput) ToUserPolicyAttachmentArrayOutput() UserPolicyAttachmentArrayOutput
- func (o UserPolicyAttachmentArrayOutput) ToUserPolicyAttachmentArrayOutputWithContext(ctx context.Context) UserPolicyAttachmentArrayOutput
- type UserPolicyAttachmentInput
- type UserPolicyAttachmentMap
- type UserPolicyAttachmentMapInput
- type UserPolicyAttachmentMapOutput
- func (UserPolicyAttachmentMapOutput) ElementType() reflect.Type
- func (o UserPolicyAttachmentMapOutput) MapIndex(k pulumi.StringInput) UserPolicyAttachmentOutput
- func (o UserPolicyAttachmentMapOutput) ToUserPolicyAttachmentMapOutput() UserPolicyAttachmentMapOutput
- func (o UserPolicyAttachmentMapOutput) ToUserPolicyAttachmentMapOutputWithContext(ctx context.Context) UserPolicyAttachmentMapOutput
- type UserPolicyAttachmentOutput
- func (UserPolicyAttachmentOutput) ElementType() reflect.Type
- func (o UserPolicyAttachmentOutput) ToUserPolicyAttachmentOutput() UserPolicyAttachmentOutput
- func (o UserPolicyAttachmentOutput) ToUserPolicyAttachmentOutputWithContext(ctx context.Context) UserPolicyAttachmentOutput
- func (o UserPolicyAttachmentOutput) ToUserPolicyAttachmentPtrOutput() UserPolicyAttachmentPtrOutput
- func (o UserPolicyAttachmentOutput) ToUserPolicyAttachmentPtrOutputWithContext(ctx context.Context) UserPolicyAttachmentPtrOutput
- type UserPolicyAttachmentPtrInput
- type UserPolicyAttachmentPtrOutput
- type UserPolicyAttachmentState
- type UserPtrInput
- type UserPtrOutput
- type UserState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessKey ¶
type AccessKey struct { pulumi.CustomResourceState EncryptedSecret pulumi.StringOutput `pulumi:"encryptedSecret"` // The fingerprint of the PGP key used to encrypt the secret KeyFingerprint pulumi.StringOutput `pulumi:"keyFingerprint"` // Either a base-64 encoded PGP public key, or a keybase username in the form `keybase:some_person_that_exists` PgpKey pulumi.StringPtrOutput `pulumi:"pgpKey"` Secret pulumi.StringOutput `pulumi:"secret"` // The name of file that can save access key id and access key secret. Strongly suggest you to specified it when you creating access key, otherwise, you wouldn't get its secret ever. SecretFile pulumi.StringPtrOutput `pulumi:"secretFile"` // Status of access key. It must be `Active` or `Inactive`. Default value is `Active`. Status pulumi.StringPtrOutput `pulumi:"status"` // Name of the RAM user. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen. UserName pulumi.StringPtrOutput `pulumi:"userName"` }
Provides a RAM User access key resource.
> **NOTE:** You should set the `secretFile` if you want to get the access key.
> **NOTE:** From version 1.98.0, if not set `pgpKey`, the resource will output the access key secret to field `secret` and please protect your backend state file judiciously
## Example Usage
Output the secret to a file. ```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/ram" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { user, err := ram.NewUser(ctx, "user", &ram.UserArgs{ DisplayName: pulumi.String("user_display_name"), Mobile: pulumi.String("86-18688888888"), Email: pulumi.String("hello.uuu@aaa.com"), Comments: pulumi.String("yoyoyo"), Force: pulumi.Bool(true), }) if err != nil { return err } _, err = ram.NewAccessKey(ctx, "ak", &ram.AccessKeyArgs{ UserName: user.Name, SecretFile: pulumi.String("/xxx/xxx/xxx.txt"), }) if err != nil { return err } return nil }) }
```
Using `pgpKey` to encrypt the secret. ```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/ram" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { user, err := ram.NewUser(ctx, "user", &ram.UserArgs{ DisplayName: pulumi.String("user_display_name"), Mobile: pulumi.String("86-18688888888"), Email: pulumi.String("hello.uuu@aaa.com"), Comments: pulumi.String("yoyoyo"), Force: pulumi.Bool(true), }) if err != nil { return err } encrypt, err := ram.NewAccessKey(ctx, "encrypt", &ram.AccessKeyArgs{ UserName: user.Name, PgpKey: pulumi.String("keybase:some_person_that_exists"), }) if err != nil { return err } ctx.Export("secret", encrypt.EncryptedSecret) return nil }) }
```
func GetAccessKey ¶
func GetAccessKey(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AccessKeyState, opts ...pulumi.ResourceOption) (*AccessKey, error)
GetAccessKey gets an existing AccessKey resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewAccessKey ¶
func NewAccessKey(ctx *pulumi.Context, name string, args *AccessKeyArgs, opts ...pulumi.ResourceOption) (*AccessKey, error)
NewAccessKey registers a new resource with the given unique name, arguments, and options.
func (*AccessKey) ElementType ¶ added in v2.25.1
func (*AccessKey) ToAccessKeyOutput ¶ added in v2.25.1
func (i *AccessKey) ToAccessKeyOutput() AccessKeyOutput
func (*AccessKey) ToAccessKeyOutputWithContext ¶ added in v2.25.1
func (i *AccessKey) ToAccessKeyOutputWithContext(ctx context.Context) AccessKeyOutput
func (*AccessKey) ToAccessKeyPtrOutput ¶ added in v2.35.1
func (i *AccessKey) ToAccessKeyPtrOutput() AccessKeyPtrOutput
func (*AccessKey) ToAccessKeyPtrOutputWithContext ¶ added in v2.35.1
func (i *AccessKey) ToAccessKeyPtrOutputWithContext(ctx context.Context) AccessKeyPtrOutput
type AccessKeyArgs ¶
type AccessKeyArgs struct { // Either a base-64 encoded PGP public key, or a keybase username in the form `keybase:some_person_that_exists` PgpKey pulumi.StringPtrInput // The name of file that can save access key id and access key secret. Strongly suggest you to specified it when you creating access key, otherwise, you wouldn't get its secret ever. SecretFile pulumi.StringPtrInput // Status of access key. It must be `Active` or `Inactive`. Default value is `Active`. Status pulumi.StringPtrInput // Name of the RAM user. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen. UserName pulumi.StringPtrInput }
The set of arguments for constructing a AccessKey resource.
func (AccessKeyArgs) ElementType ¶
func (AccessKeyArgs) ElementType() reflect.Type
type AccessKeyArray ¶ added in v2.35.1
type AccessKeyArray []AccessKeyInput
func (AccessKeyArray) ElementType ¶ added in v2.35.1
func (AccessKeyArray) ElementType() reflect.Type
func (AccessKeyArray) ToAccessKeyArrayOutput ¶ added in v2.35.1
func (i AccessKeyArray) ToAccessKeyArrayOutput() AccessKeyArrayOutput
func (AccessKeyArray) ToAccessKeyArrayOutputWithContext ¶ added in v2.35.1
func (i AccessKeyArray) ToAccessKeyArrayOutputWithContext(ctx context.Context) AccessKeyArrayOutput
type AccessKeyArrayInput ¶ added in v2.35.1
type AccessKeyArrayInput interface { pulumi.Input ToAccessKeyArrayOutput() AccessKeyArrayOutput ToAccessKeyArrayOutputWithContext(context.Context) AccessKeyArrayOutput }
AccessKeyArrayInput is an input type that accepts AccessKeyArray and AccessKeyArrayOutput values. You can construct a concrete instance of `AccessKeyArrayInput` via:
AccessKeyArray{ AccessKeyArgs{...} }
type AccessKeyArrayOutput ¶ added in v2.35.1
type AccessKeyArrayOutput struct{ *pulumi.OutputState }
func (AccessKeyArrayOutput) ElementType ¶ added in v2.35.1
func (AccessKeyArrayOutput) ElementType() reflect.Type
func (AccessKeyArrayOutput) Index ¶ added in v2.35.1
func (o AccessKeyArrayOutput) Index(i pulumi.IntInput) AccessKeyOutput
func (AccessKeyArrayOutput) ToAccessKeyArrayOutput ¶ added in v2.35.1
func (o AccessKeyArrayOutput) ToAccessKeyArrayOutput() AccessKeyArrayOutput
func (AccessKeyArrayOutput) ToAccessKeyArrayOutputWithContext ¶ added in v2.35.1
func (o AccessKeyArrayOutput) ToAccessKeyArrayOutputWithContext(ctx context.Context) AccessKeyArrayOutput
type AccessKeyInput ¶ added in v2.25.1
type AccessKeyInput interface { pulumi.Input ToAccessKeyOutput() AccessKeyOutput ToAccessKeyOutputWithContext(ctx context.Context) AccessKeyOutput }
type AccessKeyMap ¶ added in v2.35.1
type AccessKeyMap map[string]AccessKeyInput
func (AccessKeyMap) ElementType ¶ added in v2.35.1
func (AccessKeyMap) ElementType() reflect.Type
func (AccessKeyMap) ToAccessKeyMapOutput ¶ added in v2.35.1
func (i AccessKeyMap) ToAccessKeyMapOutput() AccessKeyMapOutput
func (AccessKeyMap) ToAccessKeyMapOutputWithContext ¶ added in v2.35.1
func (i AccessKeyMap) ToAccessKeyMapOutputWithContext(ctx context.Context) AccessKeyMapOutput
type AccessKeyMapInput ¶ added in v2.35.1
type AccessKeyMapInput interface { pulumi.Input ToAccessKeyMapOutput() AccessKeyMapOutput ToAccessKeyMapOutputWithContext(context.Context) AccessKeyMapOutput }
AccessKeyMapInput is an input type that accepts AccessKeyMap and AccessKeyMapOutput values. You can construct a concrete instance of `AccessKeyMapInput` via:
AccessKeyMap{ "key": AccessKeyArgs{...} }
type AccessKeyMapOutput ¶ added in v2.35.1
type AccessKeyMapOutput struct{ *pulumi.OutputState }
func (AccessKeyMapOutput) ElementType ¶ added in v2.35.1
func (AccessKeyMapOutput) ElementType() reflect.Type
func (AccessKeyMapOutput) MapIndex ¶ added in v2.35.1
func (o AccessKeyMapOutput) MapIndex(k pulumi.StringInput) AccessKeyOutput
func (AccessKeyMapOutput) ToAccessKeyMapOutput ¶ added in v2.35.1
func (o AccessKeyMapOutput) ToAccessKeyMapOutput() AccessKeyMapOutput
func (AccessKeyMapOutput) ToAccessKeyMapOutputWithContext ¶ added in v2.35.1
func (o AccessKeyMapOutput) ToAccessKeyMapOutputWithContext(ctx context.Context) AccessKeyMapOutput
type AccessKeyOutput ¶ added in v2.25.1
type AccessKeyOutput struct {
*pulumi.OutputState
}
func (AccessKeyOutput) ElementType ¶ added in v2.25.1
func (AccessKeyOutput) ElementType() reflect.Type
func (AccessKeyOutput) ToAccessKeyOutput ¶ added in v2.25.1
func (o AccessKeyOutput) ToAccessKeyOutput() AccessKeyOutput
func (AccessKeyOutput) ToAccessKeyOutputWithContext ¶ added in v2.25.1
func (o AccessKeyOutput) ToAccessKeyOutputWithContext(ctx context.Context) AccessKeyOutput
func (AccessKeyOutput) ToAccessKeyPtrOutput ¶ added in v2.35.1
func (o AccessKeyOutput) ToAccessKeyPtrOutput() AccessKeyPtrOutput
func (AccessKeyOutput) ToAccessKeyPtrOutputWithContext ¶ added in v2.35.1
func (o AccessKeyOutput) ToAccessKeyPtrOutputWithContext(ctx context.Context) AccessKeyPtrOutput
type AccessKeyPtrInput ¶ added in v2.35.1
type AccessKeyPtrInput interface { pulumi.Input ToAccessKeyPtrOutput() AccessKeyPtrOutput ToAccessKeyPtrOutputWithContext(ctx context.Context) AccessKeyPtrOutput }
type AccessKeyPtrOutput ¶ added in v2.35.1
type AccessKeyPtrOutput struct {
*pulumi.OutputState
}
func (AccessKeyPtrOutput) ElementType ¶ added in v2.35.1
func (AccessKeyPtrOutput) ElementType() reflect.Type
func (AccessKeyPtrOutput) ToAccessKeyPtrOutput ¶ added in v2.35.1
func (o AccessKeyPtrOutput) ToAccessKeyPtrOutput() AccessKeyPtrOutput
func (AccessKeyPtrOutput) ToAccessKeyPtrOutputWithContext ¶ added in v2.35.1
func (o AccessKeyPtrOutput) ToAccessKeyPtrOutputWithContext(ctx context.Context) AccessKeyPtrOutput
type AccessKeyState ¶
type AccessKeyState struct { EncryptedSecret pulumi.StringPtrInput // The fingerprint of the PGP key used to encrypt the secret KeyFingerprint pulumi.StringPtrInput // Either a base-64 encoded PGP public key, or a keybase username in the form `keybase:some_person_that_exists` PgpKey pulumi.StringPtrInput Secret pulumi.StringPtrInput // The name of file that can save access key id and access key secret. Strongly suggest you to specified it when you creating access key, otherwise, you wouldn't get its secret ever. SecretFile pulumi.StringPtrInput // Status of access key. It must be `Active` or `Inactive`. Default value is `Active`. Status pulumi.StringPtrInput // Name of the RAM user. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen. UserName pulumi.StringPtrInput }
func (AccessKeyState) ElementType ¶
func (AccessKeyState) ElementType() reflect.Type
type AccountAlias ¶
type AccountAlias struct { pulumi.CustomResourceState // Alias of cloud account. This name can have a string of 3 to 32 characters, must contain only alphanumeric characters or hyphens, such as "-", and must not begin with a hyphen. AccountAlias pulumi.StringOutput `pulumi:"accountAlias"` }
Provides a RAM cloud account alias.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/ram" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := ram.NewAccountAlias(ctx, "alias", &ram.AccountAliasArgs{ AccountAlias: pulumi.String("hallo"), }) if err != nil { return err } return nil }) }
```
## Import
RAM account alias can be imported using the id, e.g.
```sh
$ pulumi import alicloud:ram/accountAlias:AccountAlias example my-alias
```
func GetAccountAlias ¶
func GetAccountAlias(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AccountAliasState, opts ...pulumi.ResourceOption) (*AccountAlias, error)
GetAccountAlias gets an existing AccountAlias resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewAccountAlias ¶
func NewAccountAlias(ctx *pulumi.Context, name string, args *AccountAliasArgs, opts ...pulumi.ResourceOption) (*AccountAlias, error)
NewAccountAlias registers a new resource with the given unique name, arguments, and options.
func (*AccountAlias) ElementType ¶ added in v2.25.1
func (*AccountAlias) ElementType() reflect.Type
func (*AccountAlias) ToAccountAliasOutput ¶ added in v2.25.1
func (i *AccountAlias) ToAccountAliasOutput() AccountAliasOutput
func (*AccountAlias) ToAccountAliasOutputWithContext ¶ added in v2.25.1
func (i *AccountAlias) ToAccountAliasOutputWithContext(ctx context.Context) AccountAliasOutput
func (*AccountAlias) ToAccountAliasPtrOutput ¶ added in v2.35.1
func (i *AccountAlias) ToAccountAliasPtrOutput() AccountAliasPtrOutput
func (*AccountAlias) ToAccountAliasPtrOutputWithContext ¶ added in v2.35.1
func (i *AccountAlias) ToAccountAliasPtrOutputWithContext(ctx context.Context) AccountAliasPtrOutput
type AccountAliasArgs ¶
type AccountAliasArgs struct { // Alias of cloud account. This name can have a string of 3 to 32 characters, must contain only alphanumeric characters or hyphens, such as "-", and must not begin with a hyphen. AccountAlias pulumi.StringInput }
The set of arguments for constructing a AccountAlias resource.
func (AccountAliasArgs) ElementType ¶
func (AccountAliasArgs) ElementType() reflect.Type
type AccountAliasArray ¶ added in v2.35.1
type AccountAliasArray []AccountAliasInput
func (AccountAliasArray) ElementType ¶ added in v2.35.1
func (AccountAliasArray) ElementType() reflect.Type
func (AccountAliasArray) ToAccountAliasArrayOutput ¶ added in v2.35.1
func (i AccountAliasArray) ToAccountAliasArrayOutput() AccountAliasArrayOutput
func (AccountAliasArray) ToAccountAliasArrayOutputWithContext ¶ added in v2.35.1
func (i AccountAliasArray) ToAccountAliasArrayOutputWithContext(ctx context.Context) AccountAliasArrayOutput
type AccountAliasArrayInput ¶ added in v2.35.1
type AccountAliasArrayInput interface { pulumi.Input ToAccountAliasArrayOutput() AccountAliasArrayOutput ToAccountAliasArrayOutputWithContext(context.Context) AccountAliasArrayOutput }
AccountAliasArrayInput is an input type that accepts AccountAliasArray and AccountAliasArrayOutput values. You can construct a concrete instance of `AccountAliasArrayInput` via:
AccountAliasArray{ AccountAliasArgs{...} }
type AccountAliasArrayOutput ¶ added in v2.35.1
type AccountAliasArrayOutput struct{ *pulumi.OutputState }
func (AccountAliasArrayOutput) ElementType ¶ added in v2.35.1
func (AccountAliasArrayOutput) ElementType() reflect.Type
func (AccountAliasArrayOutput) Index ¶ added in v2.35.1
func (o AccountAliasArrayOutput) Index(i pulumi.IntInput) AccountAliasOutput
func (AccountAliasArrayOutput) ToAccountAliasArrayOutput ¶ added in v2.35.1
func (o AccountAliasArrayOutput) ToAccountAliasArrayOutput() AccountAliasArrayOutput
func (AccountAliasArrayOutput) ToAccountAliasArrayOutputWithContext ¶ added in v2.35.1
func (o AccountAliasArrayOutput) ToAccountAliasArrayOutputWithContext(ctx context.Context) AccountAliasArrayOutput
type AccountAliasInput ¶ added in v2.25.1
type AccountAliasInput interface { pulumi.Input ToAccountAliasOutput() AccountAliasOutput ToAccountAliasOutputWithContext(ctx context.Context) AccountAliasOutput }
type AccountAliasMap ¶ added in v2.35.1
type AccountAliasMap map[string]AccountAliasInput
func (AccountAliasMap) ElementType ¶ added in v2.35.1
func (AccountAliasMap) ElementType() reflect.Type
func (AccountAliasMap) ToAccountAliasMapOutput ¶ added in v2.35.1
func (i AccountAliasMap) ToAccountAliasMapOutput() AccountAliasMapOutput
func (AccountAliasMap) ToAccountAliasMapOutputWithContext ¶ added in v2.35.1
func (i AccountAliasMap) ToAccountAliasMapOutputWithContext(ctx context.Context) AccountAliasMapOutput
type AccountAliasMapInput ¶ added in v2.35.1
type AccountAliasMapInput interface { pulumi.Input ToAccountAliasMapOutput() AccountAliasMapOutput ToAccountAliasMapOutputWithContext(context.Context) AccountAliasMapOutput }
AccountAliasMapInput is an input type that accepts AccountAliasMap and AccountAliasMapOutput values. You can construct a concrete instance of `AccountAliasMapInput` via:
AccountAliasMap{ "key": AccountAliasArgs{...} }
type AccountAliasMapOutput ¶ added in v2.35.1
type AccountAliasMapOutput struct{ *pulumi.OutputState }
func (AccountAliasMapOutput) ElementType ¶ added in v2.35.1
func (AccountAliasMapOutput) ElementType() reflect.Type
func (AccountAliasMapOutput) MapIndex ¶ added in v2.35.1
func (o AccountAliasMapOutput) MapIndex(k pulumi.StringInput) AccountAliasOutput
func (AccountAliasMapOutput) ToAccountAliasMapOutput ¶ added in v2.35.1
func (o AccountAliasMapOutput) ToAccountAliasMapOutput() AccountAliasMapOutput
func (AccountAliasMapOutput) ToAccountAliasMapOutputWithContext ¶ added in v2.35.1
func (o AccountAliasMapOutput) ToAccountAliasMapOutputWithContext(ctx context.Context) AccountAliasMapOutput
type AccountAliasOutput ¶ added in v2.25.1
type AccountAliasOutput struct {
*pulumi.OutputState
}
func (AccountAliasOutput) ElementType ¶ added in v2.25.1
func (AccountAliasOutput) ElementType() reflect.Type
func (AccountAliasOutput) ToAccountAliasOutput ¶ added in v2.25.1
func (o AccountAliasOutput) ToAccountAliasOutput() AccountAliasOutput
func (AccountAliasOutput) ToAccountAliasOutputWithContext ¶ added in v2.25.1
func (o AccountAliasOutput) ToAccountAliasOutputWithContext(ctx context.Context) AccountAliasOutput
func (AccountAliasOutput) ToAccountAliasPtrOutput ¶ added in v2.35.1
func (o AccountAliasOutput) ToAccountAliasPtrOutput() AccountAliasPtrOutput
func (AccountAliasOutput) ToAccountAliasPtrOutputWithContext ¶ added in v2.35.1
func (o AccountAliasOutput) ToAccountAliasPtrOutputWithContext(ctx context.Context) AccountAliasPtrOutput
type AccountAliasPtrInput ¶ added in v2.35.1
type AccountAliasPtrInput interface { pulumi.Input ToAccountAliasPtrOutput() AccountAliasPtrOutput ToAccountAliasPtrOutputWithContext(ctx context.Context) AccountAliasPtrOutput }
type AccountAliasPtrOutput ¶ added in v2.35.1
type AccountAliasPtrOutput struct {
*pulumi.OutputState
}
func (AccountAliasPtrOutput) ElementType ¶ added in v2.35.1
func (AccountAliasPtrOutput) ElementType() reflect.Type
func (AccountAliasPtrOutput) ToAccountAliasPtrOutput ¶ added in v2.35.1
func (o AccountAliasPtrOutput) ToAccountAliasPtrOutput() AccountAliasPtrOutput
func (AccountAliasPtrOutput) ToAccountAliasPtrOutputWithContext ¶ added in v2.35.1
func (o AccountAliasPtrOutput) ToAccountAliasPtrOutputWithContext(ctx context.Context) AccountAliasPtrOutput
type AccountAliasState ¶
type AccountAliasState struct { // Alias of cloud account. This name can have a string of 3 to 32 characters, must contain only alphanumeric characters or hyphens, such as "-", and must not begin with a hyphen. AccountAlias pulumi.StringPtrInput }
func (AccountAliasState) ElementType ¶
func (AccountAliasState) ElementType() reflect.Type
type AccountPasswordPolicy ¶
type AccountPasswordPolicy struct { pulumi.CustomResourceState // Specifies if a password can expire in a hard way. Default to false. HardExpiry pulumi.BoolPtrOutput `pulumi:"hardExpiry"` // Maximum logon attempts with an incorrect password within an hour. Valid value range: [0-32]. Default to 5. MaxLoginAttempts pulumi.IntPtrOutput `pulumi:"maxLoginAttempts"` // The number of days after which password expires. A value of 0 indicates that the password never expires. Valid value range: [0-1095]. Default to 0. MaxPasswordAge pulumi.IntPtrOutput `pulumi:"maxPasswordAge"` // Minimal required length of password for a user. Valid value range: [8-32]. Default to 12. MinimumPasswordLength pulumi.IntPtrOutput `pulumi:"minimumPasswordLength"` // User is not allowed to use the latest number of passwords specified in this parameter. A value of 0 indicates the password history check policy is disabled. Valid value range: [0-24]. Default to 0. PasswordReusePrevention pulumi.IntPtrOutput `pulumi:"passwordReusePrevention"` // Specifies if the occurrence of a lowercase character in the password is mandatory. Default to true. RequireLowercaseCharacters pulumi.BoolPtrOutput `pulumi:"requireLowercaseCharacters"` // Specifies if the occurrence of a number in the password is mandatory. Default to true. RequireNumbers pulumi.BoolPtrOutput `pulumi:"requireNumbers"` // (Optional Specifies if the occurrence of a special character in the password is mandatory. Default to true. RequireSymbols pulumi.BoolPtrOutput `pulumi:"requireSymbols"` // Specifies if the occurrence of an uppercase character in the password is mandatory. Default to true. RequireUppercaseCharacters pulumi.BoolPtrOutput `pulumi:"requireUppercaseCharacters"` }
## Import
RAM account password policy can be imported using the `id`, e.g. bash
```sh
$ pulumi import alicloud:ram/accountPasswordPolicy:AccountPasswordPolicy example ram-account-password-policy
```
func GetAccountPasswordPolicy ¶
func GetAccountPasswordPolicy(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AccountPasswordPolicyState, opts ...pulumi.ResourceOption) (*AccountPasswordPolicy, error)
GetAccountPasswordPolicy gets an existing AccountPasswordPolicy resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewAccountPasswordPolicy ¶
func NewAccountPasswordPolicy(ctx *pulumi.Context, name string, args *AccountPasswordPolicyArgs, opts ...pulumi.ResourceOption) (*AccountPasswordPolicy, error)
NewAccountPasswordPolicy registers a new resource with the given unique name, arguments, and options.
func (*AccountPasswordPolicy) ElementType ¶ added in v2.25.1
func (*AccountPasswordPolicy) ElementType() reflect.Type
func (*AccountPasswordPolicy) ToAccountPasswordPolicyOutput ¶ added in v2.25.1
func (i *AccountPasswordPolicy) ToAccountPasswordPolicyOutput() AccountPasswordPolicyOutput
func (*AccountPasswordPolicy) ToAccountPasswordPolicyOutputWithContext ¶ added in v2.25.1
func (i *AccountPasswordPolicy) ToAccountPasswordPolicyOutputWithContext(ctx context.Context) AccountPasswordPolicyOutput
func (*AccountPasswordPolicy) ToAccountPasswordPolicyPtrOutput ¶ added in v2.35.1
func (i *AccountPasswordPolicy) ToAccountPasswordPolicyPtrOutput() AccountPasswordPolicyPtrOutput
func (*AccountPasswordPolicy) ToAccountPasswordPolicyPtrOutputWithContext ¶ added in v2.35.1
func (i *AccountPasswordPolicy) ToAccountPasswordPolicyPtrOutputWithContext(ctx context.Context) AccountPasswordPolicyPtrOutput
type AccountPasswordPolicyArgs ¶
type AccountPasswordPolicyArgs struct { // Specifies if a password can expire in a hard way. Default to false. HardExpiry pulumi.BoolPtrInput // Maximum logon attempts with an incorrect password within an hour. Valid value range: [0-32]. Default to 5. MaxLoginAttempts pulumi.IntPtrInput // The number of days after which password expires. A value of 0 indicates that the password never expires. Valid value range: [0-1095]. Default to 0. MaxPasswordAge pulumi.IntPtrInput // Minimal required length of password for a user. Valid value range: [8-32]. Default to 12. MinimumPasswordLength pulumi.IntPtrInput // User is not allowed to use the latest number of passwords specified in this parameter. A value of 0 indicates the password history check policy is disabled. Valid value range: [0-24]. Default to 0. PasswordReusePrevention pulumi.IntPtrInput // Specifies if the occurrence of a lowercase character in the password is mandatory. Default to true. RequireLowercaseCharacters pulumi.BoolPtrInput // Specifies if the occurrence of a number in the password is mandatory. Default to true. RequireNumbers pulumi.BoolPtrInput // (Optional Specifies if the occurrence of a special character in the password is mandatory. Default to true. RequireSymbols pulumi.BoolPtrInput // Specifies if the occurrence of an uppercase character in the password is mandatory. Default to true. RequireUppercaseCharacters pulumi.BoolPtrInput }
The set of arguments for constructing a AccountPasswordPolicy resource.
func (AccountPasswordPolicyArgs) ElementType ¶
func (AccountPasswordPolicyArgs) ElementType() reflect.Type
type AccountPasswordPolicyArray ¶ added in v2.35.1
type AccountPasswordPolicyArray []AccountPasswordPolicyInput
func (AccountPasswordPolicyArray) ElementType ¶ added in v2.35.1
func (AccountPasswordPolicyArray) ElementType() reflect.Type
func (AccountPasswordPolicyArray) ToAccountPasswordPolicyArrayOutput ¶ added in v2.35.1
func (i AccountPasswordPolicyArray) ToAccountPasswordPolicyArrayOutput() AccountPasswordPolicyArrayOutput
func (AccountPasswordPolicyArray) ToAccountPasswordPolicyArrayOutputWithContext ¶ added in v2.35.1
func (i AccountPasswordPolicyArray) ToAccountPasswordPolicyArrayOutputWithContext(ctx context.Context) AccountPasswordPolicyArrayOutput
type AccountPasswordPolicyArrayInput ¶ added in v2.35.1
type AccountPasswordPolicyArrayInput interface { pulumi.Input ToAccountPasswordPolicyArrayOutput() AccountPasswordPolicyArrayOutput ToAccountPasswordPolicyArrayOutputWithContext(context.Context) AccountPasswordPolicyArrayOutput }
AccountPasswordPolicyArrayInput is an input type that accepts AccountPasswordPolicyArray and AccountPasswordPolicyArrayOutput values. You can construct a concrete instance of `AccountPasswordPolicyArrayInput` via:
AccountPasswordPolicyArray{ AccountPasswordPolicyArgs{...} }
type AccountPasswordPolicyArrayOutput ¶ added in v2.35.1
type AccountPasswordPolicyArrayOutput struct{ *pulumi.OutputState }
func (AccountPasswordPolicyArrayOutput) ElementType ¶ added in v2.35.1
func (AccountPasswordPolicyArrayOutput) ElementType() reflect.Type
func (AccountPasswordPolicyArrayOutput) Index ¶ added in v2.35.1
func (o AccountPasswordPolicyArrayOutput) Index(i pulumi.IntInput) AccountPasswordPolicyOutput
func (AccountPasswordPolicyArrayOutput) ToAccountPasswordPolicyArrayOutput ¶ added in v2.35.1
func (o AccountPasswordPolicyArrayOutput) ToAccountPasswordPolicyArrayOutput() AccountPasswordPolicyArrayOutput
func (AccountPasswordPolicyArrayOutput) ToAccountPasswordPolicyArrayOutputWithContext ¶ added in v2.35.1
func (o AccountPasswordPolicyArrayOutput) ToAccountPasswordPolicyArrayOutputWithContext(ctx context.Context) AccountPasswordPolicyArrayOutput
type AccountPasswordPolicyInput ¶ added in v2.25.1
type AccountPasswordPolicyInput interface { pulumi.Input ToAccountPasswordPolicyOutput() AccountPasswordPolicyOutput ToAccountPasswordPolicyOutputWithContext(ctx context.Context) AccountPasswordPolicyOutput }
type AccountPasswordPolicyMap ¶ added in v2.35.1
type AccountPasswordPolicyMap map[string]AccountPasswordPolicyInput
func (AccountPasswordPolicyMap) ElementType ¶ added in v2.35.1
func (AccountPasswordPolicyMap) ElementType() reflect.Type
func (AccountPasswordPolicyMap) ToAccountPasswordPolicyMapOutput ¶ added in v2.35.1
func (i AccountPasswordPolicyMap) ToAccountPasswordPolicyMapOutput() AccountPasswordPolicyMapOutput
func (AccountPasswordPolicyMap) ToAccountPasswordPolicyMapOutputWithContext ¶ added in v2.35.1
func (i AccountPasswordPolicyMap) ToAccountPasswordPolicyMapOutputWithContext(ctx context.Context) AccountPasswordPolicyMapOutput
type AccountPasswordPolicyMapInput ¶ added in v2.35.1
type AccountPasswordPolicyMapInput interface { pulumi.Input ToAccountPasswordPolicyMapOutput() AccountPasswordPolicyMapOutput ToAccountPasswordPolicyMapOutputWithContext(context.Context) AccountPasswordPolicyMapOutput }
AccountPasswordPolicyMapInput is an input type that accepts AccountPasswordPolicyMap and AccountPasswordPolicyMapOutput values. You can construct a concrete instance of `AccountPasswordPolicyMapInput` via:
AccountPasswordPolicyMap{ "key": AccountPasswordPolicyArgs{...} }
type AccountPasswordPolicyMapOutput ¶ added in v2.35.1
type AccountPasswordPolicyMapOutput struct{ *pulumi.OutputState }
func (AccountPasswordPolicyMapOutput) ElementType ¶ added in v2.35.1
func (AccountPasswordPolicyMapOutput) ElementType() reflect.Type
func (AccountPasswordPolicyMapOutput) MapIndex ¶ added in v2.35.1
func (o AccountPasswordPolicyMapOutput) MapIndex(k pulumi.StringInput) AccountPasswordPolicyOutput
func (AccountPasswordPolicyMapOutput) ToAccountPasswordPolicyMapOutput ¶ added in v2.35.1
func (o AccountPasswordPolicyMapOutput) ToAccountPasswordPolicyMapOutput() AccountPasswordPolicyMapOutput
func (AccountPasswordPolicyMapOutput) ToAccountPasswordPolicyMapOutputWithContext ¶ added in v2.35.1
func (o AccountPasswordPolicyMapOutput) ToAccountPasswordPolicyMapOutputWithContext(ctx context.Context) AccountPasswordPolicyMapOutput
type AccountPasswordPolicyOutput ¶ added in v2.25.1
type AccountPasswordPolicyOutput struct {
*pulumi.OutputState
}
func (AccountPasswordPolicyOutput) ElementType ¶ added in v2.25.1
func (AccountPasswordPolicyOutput) ElementType() reflect.Type
func (AccountPasswordPolicyOutput) ToAccountPasswordPolicyOutput ¶ added in v2.25.1
func (o AccountPasswordPolicyOutput) ToAccountPasswordPolicyOutput() AccountPasswordPolicyOutput
func (AccountPasswordPolicyOutput) ToAccountPasswordPolicyOutputWithContext ¶ added in v2.25.1
func (o AccountPasswordPolicyOutput) ToAccountPasswordPolicyOutputWithContext(ctx context.Context) AccountPasswordPolicyOutput
func (AccountPasswordPolicyOutput) ToAccountPasswordPolicyPtrOutput ¶ added in v2.35.1
func (o AccountPasswordPolicyOutput) ToAccountPasswordPolicyPtrOutput() AccountPasswordPolicyPtrOutput
func (AccountPasswordPolicyOutput) ToAccountPasswordPolicyPtrOutputWithContext ¶ added in v2.35.1
func (o AccountPasswordPolicyOutput) ToAccountPasswordPolicyPtrOutputWithContext(ctx context.Context) AccountPasswordPolicyPtrOutput
type AccountPasswordPolicyPtrInput ¶ added in v2.35.1
type AccountPasswordPolicyPtrInput interface { pulumi.Input ToAccountPasswordPolicyPtrOutput() AccountPasswordPolicyPtrOutput ToAccountPasswordPolicyPtrOutputWithContext(ctx context.Context) AccountPasswordPolicyPtrOutput }
type AccountPasswordPolicyPtrOutput ¶ added in v2.35.1
type AccountPasswordPolicyPtrOutput struct {
*pulumi.OutputState
}
func (AccountPasswordPolicyPtrOutput) ElementType ¶ added in v2.35.1
func (AccountPasswordPolicyPtrOutput) ElementType() reflect.Type
func (AccountPasswordPolicyPtrOutput) ToAccountPasswordPolicyPtrOutput ¶ added in v2.35.1
func (o AccountPasswordPolicyPtrOutput) ToAccountPasswordPolicyPtrOutput() AccountPasswordPolicyPtrOutput
func (AccountPasswordPolicyPtrOutput) ToAccountPasswordPolicyPtrOutputWithContext ¶ added in v2.35.1
func (o AccountPasswordPolicyPtrOutput) ToAccountPasswordPolicyPtrOutputWithContext(ctx context.Context) AccountPasswordPolicyPtrOutput
type AccountPasswordPolicyState ¶
type AccountPasswordPolicyState struct { // Specifies if a password can expire in a hard way. Default to false. HardExpiry pulumi.BoolPtrInput // Maximum logon attempts with an incorrect password within an hour. Valid value range: [0-32]. Default to 5. MaxLoginAttempts pulumi.IntPtrInput // The number of days after which password expires. A value of 0 indicates that the password never expires. Valid value range: [0-1095]. Default to 0. MaxPasswordAge pulumi.IntPtrInput // Minimal required length of password for a user. Valid value range: [8-32]. Default to 12. MinimumPasswordLength pulumi.IntPtrInput // User is not allowed to use the latest number of passwords specified in this parameter. A value of 0 indicates the password history check policy is disabled. Valid value range: [0-24]. Default to 0. PasswordReusePrevention pulumi.IntPtrInput // Specifies if the occurrence of a lowercase character in the password is mandatory. Default to true. RequireLowercaseCharacters pulumi.BoolPtrInput // Specifies if the occurrence of a number in the password is mandatory. Default to true. RequireNumbers pulumi.BoolPtrInput // (Optional Specifies if the occurrence of a special character in the password is mandatory. Default to true. RequireSymbols pulumi.BoolPtrInput // Specifies if the occurrence of an uppercase character in the password is mandatory. Default to true. RequireUppercaseCharacters pulumi.BoolPtrInput }
func (AccountPasswordPolicyState) ElementType ¶
func (AccountPasswordPolicyState) ElementType() reflect.Type
type Alias ¶
type Alias struct { pulumi.CustomResourceState AccountAlias pulumi.StringOutput `pulumi:"accountAlias"` }
func GetAlias ¶
func GetAlias(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AliasState, opts ...pulumi.ResourceOption) (*Alias, error)
GetAlias gets an existing Alias resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewAlias ¶
func NewAlias(ctx *pulumi.Context, name string, args *AliasArgs, opts ...pulumi.ResourceOption) (*Alias, error)
NewAlias registers a new resource with the given unique name, arguments, and options.
func (*Alias) ElementType ¶ added in v2.25.1
func (*Alias) ToAliasOutput ¶ added in v2.25.1
func (i *Alias) ToAliasOutput() AliasOutput
func (*Alias) ToAliasOutputWithContext ¶ added in v2.25.1
func (i *Alias) ToAliasOutputWithContext(ctx context.Context) AliasOutput
func (*Alias) ToAliasPtrOutput ¶ added in v2.35.1
func (i *Alias) ToAliasPtrOutput() AliasPtrOutput
func (*Alias) ToAliasPtrOutputWithContext ¶ added in v2.35.1
func (i *Alias) ToAliasPtrOutputWithContext(ctx context.Context) AliasPtrOutput
type AliasArgs ¶
type AliasArgs struct {
AccountAlias pulumi.StringInput
}
The set of arguments for constructing a Alias resource.
func (AliasArgs) ElementType ¶
type AliasArray ¶ added in v2.35.1
type AliasArray []AliasInput
func (AliasArray) ElementType ¶ added in v2.35.1
func (AliasArray) ElementType() reflect.Type
func (AliasArray) ToAliasArrayOutput ¶ added in v2.35.1
func (i AliasArray) ToAliasArrayOutput() AliasArrayOutput
func (AliasArray) ToAliasArrayOutputWithContext ¶ added in v2.35.1
func (i AliasArray) ToAliasArrayOutputWithContext(ctx context.Context) AliasArrayOutput
type AliasArrayInput ¶ added in v2.35.1
type AliasArrayInput interface { pulumi.Input ToAliasArrayOutput() AliasArrayOutput ToAliasArrayOutputWithContext(context.Context) AliasArrayOutput }
AliasArrayInput is an input type that accepts AliasArray and AliasArrayOutput values. You can construct a concrete instance of `AliasArrayInput` via:
AliasArray{ AliasArgs{...} }
type AliasArrayOutput ¶ added in v2.35.1
type AliasArrayOutput struct{ *pulumi.OutputState }
func (AliasArrayOutput) ElementType ¶ added in v2.35.1
func (AliasArrayOutput) ElementType() reflect.Type
func (AliasArrayOutput) Index ¶ added in v2.35.1
func (o AliasArrayOutput) Index(i pulumi.IntInput) AliasOutput
func (AliasArrayOutput) ToAliasArrayOutput ¶ added in v2.35.1
func (o AliasArrayOutput) ToAliasArrayOutput() AliasArrayOutput
func (AliasArrayOutput) ToAliasArrayOutputWithContext ¶ added in v2.35.1
func (o AliasArrayOutput) ToAliasArrayOutputWithContext(ctx context.Context) AliasArrayOutput
type AliasInput ¶ added in v2.25.1
type AliasInput interface { pulumi.Input ToAliasOutput() AliasOutput ToAliasOutputWithContext(ctx context.Context) AliasOutput }
type AliasMap ¶ added in v2.35.1
type AliasMap map[string]AliasInput
func (AliasMap) ElementType ¶ added in v2.35.1
func (AliasMap) ToAliasMapOutput ¶ added in v2.35.1
func (i AliasMap) ToAliasMapOutput() AliasMapOutput
func (AliasMap) ToAliasMapOutputWithContext ¶ added in v2.35.1
func (i AliasMap) ToAliasMapOutputWithContext(ctx context.Context) AliasMapOutput
type AliasMapInput ¶ added in v2.35.1
type AliasMapInput interface { pulumi.Input ToAliasMapOutput() AliasMapOutput ToAliasMapOutputWithContext(context.Context) AliasMapOutput }
AliasMapInput is an input type that accepts AliasMap and AliasMapOutput values. You can construct a concrete instance of `AliasMapInput` via:
AliasMap{ "key": AliasArgs{...} }
type AliasMapOutput ¶ added in v2.35.1
type AliasMapOutput struct{ *pulumi.OutputState }
func (AliasMapOutput) ElementType ¶ added in v2.35.1
func (AliasMapOutput) ElementType() reflect.Type
func (AliasMapOutput) MapIndex ¶ added in v2.35.1
func (o AliasMapOutput) MapIndex(k pulumi.StringInput) AliasOutput
func (AliasMapOutput) ToAliasMapOutput ¶ added in v2.35.1
func (o AliasMapOutput) ToAliasMapOutput() AliasMapOutput
func (AliasMapOutput) ToAliasMapOutputWithContext ¶ added in v2.35.1
func (o AliasMapOutput) ToAliasMapOutputWithContext(ctx context.Context) AliasMapOutput
type AliasOutput ¶ added in v2.25.1
type AliasOutput struct {
*pulumi.OutputState
}
func (AliasOutput) ElementType ¶ added in v2.25.1
func (AliasOutput) ElementType() reflect.Type
func (AliasOutput) ToAliasOutput ¶ added in v2.25.1
func (o AliasOutput) ToAliasOutput() AliasOutput
func (AliasOutput) ToAliasOutputWithContext ¶ added in v2.25.1
func (o AliasOutput) ToAliasOutputWithContext(ctx context.Context) AliasOutput
func (AliasOutput) ToAliasPtrOutput ¶ added in v2.35.1
func (o AliasOutput) ToAliasPtrOutput() AliasPtrOutput
func (AliasOutput) ToAliasPtrOutputWithContext ¶ added in v2.35.1
func (o AliasOutput) ToAliasPtrOutputWithContext(ctx context.Context) AliasPtrOutput
type AliasPtrInput ¶ added in v2.35.1
type AliasPtrInput interface { pulumi.Input ToAliasPtrOutput() AliasPtrOutput ToAliasPtrOutputWithContext(ctx context.Context) AliasPtrOutput }
type AliasPtrOutput ¶ added in v2.35.1
type AliasPtrOutput struct {
*pulumi.OutputState
}
func (AliasPtrOutput) ElementType ¶ added in v2.35.1
func (AliasPtrOutput) ElementType() reflect.Type
func (AliasPtrOutput) ToAliasPtrOutput ¶ added in v2.35.1
func (o AliasPtrOutput) ToAliasPtrOutput() AliasPtrOutput
func (AliasPtrOutput) ToAliasPtrOutputWithContext ¶ added in v2.35.1
func (o AliasPtrOutput) ToAliasPtrOutputWithContext(ctx context.Context) AliasPtrOutput
type AliasState ¶
type AliasState struct {
AccountAlias pulumi.StringPtrInput
}
func (AliasState) ElementType ¶
func (AliasState) ElementType() reflect.Type
type GetAccountAliasesArgs ¶
type GetAccountAliasesArgs struct {
OutputFile *string `pulumi:"outputFile"`
}
A collection of arguments for invoking getAccountAliases.
type GetAccountAliasesResult ¶
type GetAccountAliasesResult struct { // Alias of the account. AccountAlias string `pulumi:"accountAlias"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` OutputFile *string `pulumi:"outputFile"` }
A collection of values returned by getAccountAliases.
func GetAccountAliases ¶
func GetAccountAliases(ctx *pulumi.Context, args *GetAccountAliasesArgs, opts ...pulumi.InvokeOption) (*GetAccountAliasesResult, error)
This data source provides an alias for the Alibaba Cloud account.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/ram" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { opt0 := "alias.txt" aliasDs, err := ram.GetAccountAliases(ctx, &ram.GetAccountAliasesArgs{ OutputFile: &opt0, }, nil) if err != nil { return err } ctx.Export("accountAlias", aliasDs.AccountAlias) return nil }) }
```
type GetGroupsArgs ¶
type GetGroupsArgs struct { // A regex string to filter the returned groups by their names. NameRegex *string `pulumi:"nameRegex"` OutputFile *string `pulumi:"outputFile"` // Filter the results by a specific policy name. If you set this parameter without setting `policyType`, it will be automatically set to `System`. PolicyName *string `pulumi:"policyName"` // Filter the results by a specific policy type. Valid items are `Custom` and `System`. If you set this parameter, you must set `policyName` as well. PolicyType *string `pulumi:"policyType"` // Filter the results by a specific the user name. UserName *string `pulumi:"userName"` }
A collection of arguments for invoking getGroups.
type GetGroupsGroup ¶
type GetGroupsGroupArgs ¶
type GetGroupsGroupArgs struct { // Comments of the group. Comments pulumi.StringInput `pulumi:"comments"` // Name of the group. Name pulumi.StringInput `pulumi:"name"` }
func (GetGroupsGroupArgs) ElementType ¶
func (GetGroupsGroupArgs) ElementType() reflect.Type
func (GetGroupsGroupArgs) ToGetGroupsGroupOutput ¶
func (i GetGroupsGroupArgs) ToGetGroupsGroupOutput() GetGroupsGroupOutput
func (GetGroupsGroupArgs) ToGetGroupsGroupOutputWithContext ¶
func (i GetGroupsGroupArgs) ToGetGroupsGroupOutputWithContext(ctx context.Context) GetGroupsGroupOutput
type GetGroupsGroupArray ¶
type GetGroupsGroupArray []GetGroupsGroupInput
func (GetGroupsGroupArray) ElementType ¶
func (GetGroupsGroupArray) ElementType() reflect.Type
func (GetGroupsGroupArray) ToGetGroupsGroupArrayOutput ¶
func (i GetGroupsGroupArray) ToGetGroupsGroupArrayOutput() GetGroupsGroupArrayOutput
func (GetGroupsGroupArray) ToGetGroupsGroupArrayOutputWithContext ¶
func (i GetGroupsGroupArray) ToGetGroupsGroupArrayOutputWithContext(ctx context.Context) GetGroupsGroupArrayOutput
type GetGroupsGroupArrayInput ¶
type GetGroupsGroupArrayInput interface { pulumi.Input ToGetGroupsGroupArrayOutput() GetGroupsGroupArrayOutput ToGetGroupsGroupArrayOutputWithContext(context.Context) GetGroupsGroupArrayOutput }
GetGroupsGroupArrayInput is an input type that accepts GetGroupsGroupArray and GetGroupsGroupArrayOutput values. You can construct a concrete instance of `GetGroupsGroupArrayInput` via:
GetGroupsGroupArray{ GetGroupsGroupArgs{...} }
type GetGroupsGroupArrayOutput ¶
type GetGroupsGroupArrayOutput struct{ *pulumi.OutputState }
func (GetGroupsGroupArrayOutput) ElementType ¶
func (GetGroupsGroupArrayOutput) ElementType() reflect.Type
func (GetGroupsGroupArrayOutput) Index ¶
func (o GetGroupsGroupArrayOutput) Index(i pulumi.IntInput) GetGroupsGroupOutput
func (GetGroupsGroupArrayOutput) ToGetGroupsGroupArrayOutput ¶
func (o GetGroupsGroupArrayOutput) ToGetGroupsGroupArrayOutput() GetGroupsGroupArrayOutput
func (GetGroupsGroupArrayOutput) ToGetGroupsGroupArrayOutputWithContext ¶
func (o GetGroupsGroupArrayOutput) ToGetGroupsGroupArrayOutputWithContext(ctx context.Context) GetGroupsGroupArrayOutput
type GetGroupsGroupInput ¶
type GetGroupsGroupInput interface { pulumi.Input ToGetGroupsGroupOutput() GetGroupsGroupOutput ToGetGroupsGroupOutputWithContext(context.Context) GetGroupsGroupOutput }
GetGroupsGroupInput is an input type that accepts GetGroupsGroupArgs and GetGroupsGroupOutput values. You can construct a concrete instance of `GetGroupsGroupInput` via:
GetGroupsGroupArgs{...}
type GetGroupsGroupOutput ¶
type GetGroupsGroupOutput struct{ *pulumi.OutputState }
func (GetGroupsGroupOutput) Comments ¶
func (o GetGroupsGroupOutput) Comments() pulumi.StringOutput
Comments of the group.
func (GetGroupsGroupOutput) ElementType ¶
func (GetGroupsGroupOutput) ElementType() reflect.Type
func (GetGroupsGroupOutput) Name ¶
func (o GetGroupsGroupOutput) Name() pulumi.StringOutput
Name of the group.
func (GetGroupsGroupOutput) ToGetGroupsGroupOutput ¶
func (o GetGroupsGroupOutput) ToGetGroupsGroupOutput() GetGroupsGroupOutput
func (GetGroupsGroupOutput) ToGetGroupsGroupOutputWithContext ¶
func (o GetGroupsGroupOutput) ToGetGroupsGroupOutputWithContext(ctx context.Context) GetGroupsGroupOutput
type GetGroupsResult ¶
type GetGroupsResult struct { // A list of groups. Each element contains the following attributes: Groups []GetGroupsGroup `pulumi:"groups"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` NameRegex *string `pulumi:"nameRegex"` // A list of ram group names. Names []string `pulumi:"names"` OutputFile *string `pulumi:"outputFile"` PolicyName *string `pulumi:"policyName"` PolicyType *string `pulumi:"policyType"` UserName *string `pulumi:"userName"` }
A collection of values returned by getGroups.
func GetGroups ¶
func GetGroups(ctx *pulumi.Context, args *GetGroupsArgs, opts ...pulumi.InvokeOption) (*GetGroupsResult, error)
This data source provides a list of RAM Groups in an Alibaba Cloud account according to the specified filters.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/ram" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { opt0 := "^group[0-9]*" opt1 := "groups.txt" opt2 := "user1" groupsDs, err := ram.GetGroups(ctx, &ram.GetGroupsArgs{ NameRegex: &opt0, OutputFile: &opt1, UserName: &opt2, }, nil) if err != nil { return err } ctx.Export("firstGroupName", groupsDs.Groups[0].Name) return nil }) }
```
type GetPoliciesArgs ¶
type GetPoliciesArgs struct { // Default to `true`. Set it to true can output more details. EnableDetails *bool `pulumi:"enableDetails"` // Filter results by a specific group name. Returned policies are attached to the specified group. GroupName *string `pulumi:"groupName"` Ids []string `pulumi:"ids"` // A regex string to filter resulting policies by name. NameRegex *string `pulumi:"nameRegex"` OutputFile *string `pulumi:"outputFile"` // Filter results by a specific role name. Returned policies are attached to the specified role. RoleName *string `pulumi:"roleName"` // Filter results by a specific policy type. Valid values are `Custom` and `System`. Type *string `pulumi:"type"` // Filter results by a specific user name. Returned policies are attached to the specified user. UserName *string `pulumi:"userName"` }
A collection of arguments for invoking getPolicies.
type GetPoliciesPolicy ¶
type GetPoliciesPolicy struct { // Attachment count of the policy. AttachmentCount int `pulumi:"attachmentCount"` // Creation date of the policy. CreateDate string `pulumi:"createDate"` // Default version of the policy. DefaultVersion string `pulumi:"defaultVersion"` // Description of the policy. Description string `pulumi:"description"` // Policy document of the policy. Document string `pulumi:"document"` Id string `pulumi:"id"` // Name of the policy. Name string `pulumi:"name"` // Policy document of the policy. PolicyDocument string `pulumi:"policyDocument"` // Name of the policy. PolicyName string `pulumi:"policyName"` // Filter results by a specific policy type. Valid values are `Custom` and `System`. Type string `pulumi:"type"` // Update date of the policy. UpdateDate string `pulumi:"updateDate"` // Filter results by a specific user name. Returned policies are attached to the specified user. UserName string `pulumi:"userName"` // The ID of default policy. VersionId string `pulumi:"versionId"` }
type GetPoliciesPolicyArgs ¶
type GetPoliciesPolicyArgs struct { // Attachment count of the policy. AttachmentCount pulumi.IntInput `pulumi:"attachmentCount"` // Creation date of the policy. CreateDate pulumi.StringInput `pulumi:"createDate"` // Default version of the policy. DefaultVersion pulumi.StringInput `pulumi:"defaultVersion"` // Description of the policy. Description pulumi.StringInput `pulumi:"description"` // Policy document of the policy. Document pulumi.StringInput `pulumi:"document"` Id pulumi.StringInput `pulumi:"id"` // Name of the policy. Name pulumi.StringInput `pulumi:"name"` // Policy document of the policy. PolicyDocument pulumi.StringInput `pulumi:"policyDocument"` // Name of the policy. PolicyName pulumi.StringInput `pulumi:"policyName"` // Filter results by a specific policy type. Valid values are `Custom` and `System`. Type pulumi.StringInput `pulumi:"type"` // Update date of the policy. UpdateDate pulumi.StringInput `pulumi:"updateDate"` // Filter results by a specific user name. Returned policies are attached to the specified user. UserName pulumi.StringInput `pulumi:"userName"` // The ID of default policy. VersionId pulumi.StringInput `pulumi:"versionId"` }
func (GetPoliciesPolicyArgs) ElementType ¶
func (GetPoliciesPolicyArgs) ElementType() reflect.Type
func (GetPoliciesPolicyArgs) ToGetPoliciesPolicyOutput ¶
func (i GetPoliciesPolicyArgs) ToGetPoliciesPolicyOutput() GetPoliciesPolicyOutput
func (GetPoliciesPolicyArgs) ToGetPoliciesPolicyOutputWithContext ¶
func (i GetPoliciesPolicyArgs) ToGetPoliciesPolicyOutputWithContext(ctx context.Context) GetPoliciesPolicyOutput
type GetPoliciesPolicyArray ¶
type GetPoliciesPolicyArray []GetPoliciesPolicyInput
func (GetPoliciesPolicyArray) ElementType ¶
func (GetPoliciesPolicyArray) ElementType() reflect.Type
func (GetPoliciesPolicyArray) ToGetPoliciesPolicyArrayOutput ¶
func (i GetPoliciesPolicyArray) ToGetPoliciesPolicyArrayOutput() GetPoliciesPolicyArrayOutput
func (GetPoliciesPolicyArray) ToGetPoliciesPolicyArrayOutputWithContext ¶
func (i GetPoliciesPolicyArray) ToGetPoliciesPolicyArrayOutputWithContext(ctx context.Context) GetPoliciesPolicyArrayOutput
type GetPoliciesPolicyArrayInput ¶
type GetPoliciesPolicyArrayInput interface { pulumi.Input ToGetPoliciesPolicyArrayOutput() GetPoliciesPolicyArrayOutput ToGetPoliciesPolicyArrayOutputWithContext(context.Context) GetPoliciesPolicyArrayOutput }
GetPoliciesPolicyArrayInput is an input type that accepts GetPoliciesPolicyArray and GetPoliciesPolicyArrayOutput values. You can construct a concrete instance of `GetPoliciesPolicyArrayInput` via:
GetPoliciesPolicyArray{ GetPoliciesPolicyArgs{...} }
type GetPoliciesPolicyArrayOutput ¶
type GetPoliciesPolicyArrayOutput struct{ *pulumi.OutputState }
func (GetPoliciesPolicyArrayOutput) ElementType ¶
func (GetPoliciesPolicyArrayOutput) ElementType() reflect.Type
func (GetPoliciesPolicyArrayOutput) Index ¶
func (o GetPoliciesPolicyArrayOutput) Index(i pulumi.IntInput) GetPoliciesPolicyOutput
func (GetPoliciesPolicyArrayOutput) ToGetPoliciesPolicyArrayOutput ¶
func (o GetPoliciesPolicyArrayOutput) ToGetPoliciesPolicyArrayOutput() GetPoliciesPolicyArrayOutput
func (GetPoliciesPolicyArrayOutput) ToGetPoliciesPolicyArrayOutputWithContext ¶
func (o GetPoliciesPolicyArrayOutput) ToGetPoliciesPolicyArrayOutputWithContext(ctx context.Context) GetPoliciesPolicyArrayOutput
type GetPoliciesPolicyInput ¶
type GetPoliciesPolicyInput interface { pulumi.Input ToGetPoliciesPolicyOutput() GetPoliciesPolicyOutput ToGetPoliciesPolicyOutputWithContext(context.Context) GetPoliciesPolicyOutput }
GetPoliciesPolicyInput is an input type that accepts GetPoliciesPolicyArgs and GetPoliciesPolicyOutput values. You can construct a concrete instance of `GetPoliciesPolicyInput` via:
GetPoliciesPolicyArgs{...}
type GetPoliciesPolicyOutput ¶
type GetPoliciesPolicyOutput struct{ *pulumi.OutputState }
func (GetPoliciesPolicyOutput) AttachmentCount ¶
func (o GetPoliciesPolicyOutput) AttachmentCount() pulumi.IntOutput
Attachment count of the policy.
func (GetPoliciesPolicyOutput) CreateDate ¶
func (o GetPoliciesPolicyOutput) CreateDate() pulumi.StringOutput
Creation date of the policy.
func (GetPoliciesPolicyOutput) DefaultVersion ¶
func (o GetPoliciesPolicyOutput) DefaultVersion() pulumi.StringOutput
Default version of the policy.
func (GetPoliciesPolicyOutput) Description ¶
func (o GetPoliciesPolicyOutput) Description() pulumi.StringOutput
Description of the policy.
func (GetPoliciesPolicyOutput) Document ¶
func (o GetPoliciesPolicyOutput) Document() pulumi.StringOutput
Policy document of the policy.
func (GetPoliciesPolicyOutput) ElementType ¶
func (GetPoliciesPolicyOutput) ElementType() reflect.Type
func (GetPoliciesPolicyOutput) Id ¶ added in v2.34.0
func (o GetPoliciesPolicyOutput) Id() pulumi.StringOutput
func (GetPoliciesPolicyOutput) Name ¶
func (o GetPoliciesPolicyOutput) Name() pulumi.StringOutput
Name of the policy.
func (GetPoliciesPolicyOutput) PolicyDocument ¶ added in v2.34.0
func (o GetPoliciesPolicyOutput) PolicyDocument() pulumi.StringOutput
Policy document of the policy.
func (GetPoliciesPolicyOutput) PolicyName ¶ added in v2.34.0
func (o GetPoliciesPolicyOutput) PolicyName() pulumi.StringOutput
Name of the policy.
func (GetPoliciesPolicyOutput) ToGetPoliciesPolicyOutput ¶
func (o GetPoliciesPolicyOutput) ToGetPoliciesPolicyOutput() GetPoliciesPolicyOutput
func (GetPoliciesPolicyOutput) ToGetPoliciesPolicyOutputWithContext ¶
func (o GetPoliciesPolicyOutput) ToGetPoliciesPolicyOutputWithContext(ctx context.Context) GetPoliciesPolicyOutput
func (GetPoliciesPolicyOutput) Type ¶
func (o GetPoliciesPolicyOutput) Type() pulumi.StringOutput
Filter results by a specific policy type. Valid values are `Custom` and `System`.
func (GetPoliciesPolicyOutput) UpdateDate ¶
func (o GetPoliciesPolicyOutput) UpdateDate() pulumi.StringOutput
Update date of the policy.
func (GetPoliciesPolicyOutput) UserName ¶ added in v2.34.0
func (o GetPoliciesPolicyOutput) UserName() pulumi.StringOutput
Filter results by a specific user name. Returned policies are attached to the specified user.
func (GetPoliciesPolicyOutput) VersionId ¶ added in v2.34.0
func (o GetPoliciesPolicyOutput) VersionId() pulumi.StringOutput
The ID of default policy.
type GetPoliciesResult ¶
type GetPoliciesResult struct { EnableDetails *bool `pulumi:"enableDetails"` GroupName *string `pulumi:"groupName"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Ids []string `pulumi:"ids"` NameRegex *string `pulumi:"nameRegex"` // A list of ram group names. Names []string `pulumi:"names"` OutputFile *string `pulumi:"outputFile"` // A list of policies. Each element contains the following attributes: Policies []GetPoliciesPolicy `pulumi:"policies"` RoleName *string `pulumi:"roleName"` // Type of the policy. Type *string `pulumi:"type"` UserName *string `pulumi:"userName"` }
A collection of values returned by getPolicies.
func GetPolicies ¶
func GetPolicies(ctx *pulumi.Context, args *GetPoliciesArgs, opts ...pulumi.InvokeOption) (*GetPoliciesResult, error)
This data source provides a list of RAM policies in an Alibaba Cloud account according to the specified filters.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/ram" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { opt0 := "group1" opt1 := "policies.txt" opt2 := "System" opt3 := "user1" policiesDs, err := ram.GetPolicies(ctx, &ram.GetPoliciesArgs{ GroupName: &opt0, OutputFile: &opt1, Type: &opt2, UserName: &opt3, }, nil) if err != nil { return err } ctx.Export("firstPolicyName", policiesDs.Policies[0].Name) return nil }) }
```
type GetRolesArgs ¶
type GetRolesArgs struct { // - A list of ram role IDs. Ids []string `pulumi:"ids"` // A regex string to filter results by the role name. NameRegex *string `pulumi:"nameRegex"` OutputFile *string `pulumi:"outputFile"` // Filter results by a specific policy name. If you set this parameter without setting `policyType`, the later will be automatically set to `System`. The resulting roles will be attached to the specified policy. PolicyName *string `pulumi:"policyName"` // Filter results by a specific policy type. Valid values are `Custom` and `System`. If you set this parameter, you must set `policyName` as well. PolicyType *string `pulumi:"policyType"` }
A collection of arguments for invoking getRoles.
type GetRolesResult ¶
type GetRolesResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // A list of ram role IDs. Ids []string `pulumi:"ids"` NameRegex *string `pulumi:"nameRegex"` // A list of ram role names. Names []string `pulumi:"names"` OutputFile *string `pulumi:"outputFile"` PolicyName *string `pulumi:"policyName"` PolicyType *string `pulumi:"policyType"` // A list of roles. Each element contains the following attributes: Roles []GetRolesRole `pulumi:"roles"` }
A collection of values returned by getRoles.
func GetRoles ¶
func GetRoles(ctx *pulumi.Context, args *GetRolesArgs, opts ...pulumi.InvokeOption) (*GetRolesResult, error)
This data source provides a list of RAM Roles in an Alibaba Cloud account according to the specified filters.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/ram" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { opt0 := ".*test.*" opt1 := "roles.txt" opt2 := "AliyunACSDefaultAccess" opt3 := "Custom" rolesDs, err := ram.GetRoles(ctx, &ram.GetRolesArgs{ NameRegex: &opt0, OutputFile: &opt1, PolicyName: &opt2, PolicyType: &opt3, }, nil) if err != nil { return err } ctx.Export("firstRoleId", rolesDs.Roles[0].Id) return nil }) }
```
type GetRolesRole ¶
type GetRolesRole struct { // Resource descriptor of the role. Arn string `pulumi:"arn"` // Authorization strategy of the role. This parameter is deprecated and replaced by `document`. AssumeRolePolicyDocument string `pulumi:"assumeRolePolicyDocument"` // Creation date of the role. CreateDate string `pulumi:"createDate"` // Description of the role. Description string `pulumi:"description"` // Authorization strategy of the role. Document string `pulumi:"document"` // Id of the role. Id string `pulumi:"id"` // Name of the role. Name string `pulumi:"name"` // Update date of the role. UpdateDate string `pulumi:"updateDate"` }
type GetRolesRoleArgs ¶
type GetRolesRoleArgs struct { // Resource descriptor of the role. Arn pulumi.StringInput `pulumi:"arn"` // Authorization strategy of the role. This parameter is deprecated and replaced by `document`. AssumeRolePolicyDocument pulumi.StringInput `pulumi:"assumeRolePolicyDocument"` // Creation date of the role. CreateDate pulumi.StringInput `pulumi:"createDate"` // Description of the role. Description pulumi.StringInput `pulumi:"description"` // Authorization strategy of the role. Document pulumi.StringInput `pulumi:"document"` // Id of the role. Id pulumi.StringInput `pulumi:"id"` // Name of the role. Name pulumi.StringInput `pulumi:"name"` // Update date of the role. UpdateDate pulumi.StringInput `pulumi:"updateDate"` }
func (GetRolesRoleArgs) ElementType ¶
func (GetRolesRoleArgs) ElementType() reflect.Type
func (GetRolesRoleArgs) ToGetRolesRoleOutput ¶
func (i GetRolesRoleArgs) ToGetRolesRoleOutput() GetRolesRoleOutput
func (GetRolesRoleArgs) ToGetRolesRoleOutputWithContext ¶
func (i GetRolesRoleArgs) ToGetRolesRoleOutputWithContext(ctx context.Context) GetRolesRoleOutput
type GetRolesRoleArray ¶
type GetRolesRoleArray []GetRolesRoleInput
func (GetRolesRoleArray) ElementType ¶
func (GetRolesRoleArray) ElementType() reflect.Type
func (GetRolesRoleArray) ToGetRolesRoleArrayOutput ¶
func (i GetRolesRoleArray) ToGetRolesRoleArrayOutput() GetRolesRoleArrayOutput
func (GetRolesRoleArray) ToGetRolesRoleArrayOutputWithContext ¶
func (i GetRolesRoleArray) ToGetRolesRoleArrayOutputWithContext(ctx context.Context) GetRolesRoleArrayOutput
type GetRolesRoleArrayInput ¶
type GetRolesRoleArrayInput interface { pulumi.Input ToGetRolesRoleArrayOutput() GetRolesRoleArrayOutput ToGetRolesRoleArrayOutputWithContext(context.Context) GetRolesRoleArrayOutput }
GetRolesRoleArrayInput is an input type that accepts GetRolesRoleArray and GetRolesRoleArrayOutput values. You can construct a concrete instance of `GetRolesRoleArrayInput` via:
GetRolesRoleArray{ GetRolesRoleArgs{...} }
type GetRolesRoleArrayOutput ¶
type GetRolesRoleArrayOutput struct{ *pulumi.OutputState }
func (GetRolesRoleArrayOutput) ElementType ¶
func (GetRolesRoleArrayOutput) ElementType() reflect.Type
func (GetRolesRoleArrayOutput) Index ¶
func (o GetRolesRoleArrayOutput) Index(i pulumi.IntInput) GetRolesRoleOutput
func (GetRolesRoleArrayOutput) ToGetRolesRoleArrayOutput ¶
func (o GetRolesRoleArrayOutput) ToGetRolesRoleArrayOutput() GetRolesRoleArrayOutput
func (GetRolesRoleArrayOutput) ToGetRolesRoleArrayOutputWithContext ¶
func (o GetRolesRoleArrayOutput) ToGetRolesRoleArrayOutputWithContext(ctx context.Context) GetRolesRoleArrayOutput
type GetRolesRoleInput ¶
type GetRolesRoleInput interface { pulumi.Input ToGetRolesRoleOutput() GetRolesRoleOutput ToGetRolesRoleOutputWithContext(context.Context) GetRolesRoleOutput }
GetRolesRoleInput is an input type that accepts GetRolesRoleArgs and GetRolesRoleOutput values. You can construct a concrete instance of `GetRolesRoleInput` via:
GetRolesRoleArgs{...}
type GetRolesRoleOutput ¶
type GetRolesRoleOutput struct{ *pulumi.OutputState }
func (GetRolesRoleOutput) Arn ¶
func (o GetRolesRoleOutput) Arn() pulumi.StringOutput
Resource descriptor of the role.
func (GetRolesRoleOutput) AssumeRolePolicyDocument ¶
func (o GetRolesRoleOutput) AssumeRolePolicyDocument() pulumi.StringOutput
Authorization strategy of the role. This parameter is deprecated and replaced by `document`.
func (GetRolesRoleOutput) CreateDate ¶
func (o GetRolesRoleOutput) CreateDate() pulumi.StringOutput
Creation date of the role.
func (GetRolesRoleOutput) Description ¶
func (o GetRolesRoleOutput) Description() pulumi.StringOutput
Description of the role.
func (GetRolesRoleOutput) Document ¶
func (o GetRolesRoleOutput) Document() pulumi.StringOutput
Authorization strategy of the role.
func (GetRolesRoleOutput) ElementType ¶
func (GetRolesRoleOutput) ElementType() reflect.Type
func (GetRolesRoleOutput) Name ¶
func (o GetRolesRoleOutput) Name() pulumi.StringOutput
Name of the role.
func (GetRolesRoleOutput) ToGetRolesRoleOutput ¶
func (o GetRolesRoleOutput) ToGetRolesRoleOutput() GetRolesRoleOutput
func (GetRolesRoleOutput) ToGetRolesRoleOutputWithContext ¶
func (o GetRolesRoleOutput) ToGetRolesRoleOutputWithContext(ctx context.Context) GetRolesRoleOutput
func (GetRolesRoleOutput) UpdateDate ¶
func (o GetRolesRoleOutput) UpdateDate() pulumi.StringOutput
Update date of the role.
type GetSamlProvidersArgs ¶ added in v2.34.0
type GetSamlProvidersArgs struct { // Default to `false`. Set it to `true` can output more details about resource attributes. EnableDetails *bool `pulumi:"enableDetails"` // A list of SAML Provider IDs. Ids []string `pulumi:"ids"` // A regex string to filter results by SAML Provider name. NameRegex *string `pulumi:"nameRegex"` OutputFile *string `pulumi:"outputFile"` }
A collection of arguments for invoking getSamlProviders.
type GetSamlProvidersProvider ¶ added in v2.34.0
type GetSamlProvidersProvider struct { // The Alibaba Cloud Resource Name (ARN) of the IdP. Arn string `pulumi:"arn"` // The description of SAML Provider. Description string `pulumi:"description"` // The encodedsaml metadata document. EncodedsamlMetadataDocument string `pulumi:"encodedsamlMetadataDocument"` // The ID of the SAML Provider. Id string `pulumi:"id"` // The saml provider name. SamlProviderName string `pulumi:"samlProviderName"` // The update time. UpdateDate string `pulumi:"updateDate"` }
type GetSamlProvidersProviderArgs ¶ added in v2.34.0
type GetSamlProvidersProviderArgs struct { // The Alibaba Cloud Resource Name (ARN) of the IdP. Arn pulumi.StringInput `pulumi:"arn"` // The description of SAML Provider. Description pulumi.StringInput `pulumi:"description"` // The encodedsaml metadata document. EncodedsamlMetadataDocument pulumi.StringInput `pulumi:"encodedsamlMetadataDocument"` // The ID of the SAML Provider. Id pulumi.StringInput `pulumi:"id"` // The saml provider name. SamlProviderName pulumi.StringInput `pulumi:"samlProviderName"` // The update time. UpdateDate pulumi.StringInput `pulumi:"updateDate"` }
func (GetSamlProvidersProviderArgs) ElementType ¶ added in v2.34.0
func (GetSamlProvidersProviderArgs) ElementType() reflect.Type
func (GetSamlProvidersProviderArgs) ToGetSamlProvidersProviderOutput ¶ added in v2.34.0
func (i GetSamlProvidersProviderArgs) ToGetSamlProvidersProviderOutput() GetSamlProvidersProviderOutput
func (GetSamlProvidersProviderArgs) ToGetSamlProvidersProviderOutputWithContext ¶ added in v2.34.0
func (i GetSamlProvidersProviderArgs) ToGetSamlProvidersProviderOutputWithContext(ctx context.Context) GetSamlProvidersProviderOutput
type GetSamlProvidersProviderArray ¶ added in v2.34.0
type GetSamlProvidersProviderArray []GetSamlProvidersProviderInput
func (GetSamlProvidersProviderArray) ElementType ¶ added in v2.34.0
func (GetSamlProvidersProviderArray) ElementType() reflect.Type
func (GetSamlProvidersProviderArray) ToGetSamlProvidersProviderArrayOutput ¶ added in v2.34.0
func (i GetSamlProvidersProviderArray) ToGetSamlProvidersProviderArrayOutput() GetSamlProvidersProviderArrayOutput
func (GetSamlProvidersProviderArray) ToGetSamlProvidersProviderArrayOutputWithContext ¶ added in v2.34.0
func (i GetSamlProvidersProviderArray) ToGetSamlProvidersProviderArrayOutputWithContext(ctx context.Context) GetSamlProvidersProviderArrayOutput
type GetSamlProvidersProviderArrayInput ¶ added in v2.34.0
type GetSamlProvidersProviderArrayInput interface { pulumi.Input ToGetSamlProvidersProviderArrayOutput() GetSamlProvidersProviderArrayOutput ToGetSamlProvidersProviderArrayOutputWithContext(context.Context) GetSamlProvidersProviderArrayOutput }
GetSamlProvidersProviderArrayInput is an input type that accepts GetSamlProvidersProviderArray and GetSamlProvidersProviderArrayOutput values. You can construct a concrete instance of `GetSamlProvidersProviderArrayInput` via:
GetSamlProvidersProviderArray{ GetSamlProvidersProviderArgs{...} }
type GetSamlProvidersProviderArrayOutput ¶ added in v2.34.0
type GetSamlProvidersProviderArrayOutput struct{ *pulumi.OutputState }
func (GetSamlProvidersProviderArrayOutput) ElementType ¶ added in v2.34.0
func (GetSamlProvidersProviderArrayOutput) ElementType() reflect.Type
func (GetSamlProvidersProviderArrayOutput) Index ¶ added in v2.34.0
func (o GetSamlProvidersProviderArrayOutput) Index(i pulumi.IntInput) GetSamlProvidersProviderOutput
func (GetSamlProvidersProviderArrayOutput) ToGetSamlProvidersProviderArrayOutput ¶ added in v2.34.0
func (o GetSamlProvidersProviderArrayOutput) ToGetSamlProvidersProviderArrayOutput() GetSamlProvidersProviderArrayOutput
func (GetSamlProvidersProviderArrayOutput) ToGetSamlProvidersProviderArrayOutputWithContext ¶ added in v2.34.0
func (o GetSamlProvidersProviderArrayOutput) ToGetSamlProvidersProviderArrayOutputWithContext(ctx context.Context) GetSamlProvidersProviderArrayOutput
type GetSamlProvidersProviderInput ¶ added in v2.34.0
type GetSamlProvidersProviderInput interface { pulumi.Input ToGetSamlProvidersProviderOutput() GetSamlProvidersProviderOutput ToGetSamlProvidersProviderOutputWithContext(context.Context) GetSamlProvidersProviderOutput }
GetSamlProvidersProviderInput is an input type that accepts GetSamlProvidersProviderArgs and GetSamlProvidersProviderOutput values. You can construct a concrete instance of `GetSamlProvidersProviderInput` via:
GetSamlProvidersProviderArgs{...}
type GetSamlProvidersProviderOutput ¶ added in v2.34.0
type GetSamlProvidersProviderOutput struct{ *pulumi.OutputState }
func (GetSamlProvidersProviderOutput) Arn ¶ added in v2.34.0
func (o GetSamlProvidersProviderOutput) Arn() pulumi.StringOutput
The Alibaba Cloud Resource Name (ARN) of the IdP.
func (GetSamlProvidersProviderOutput) Description ¶ added in v2.34.0
func (o GetSamlProvidersProviderOutput) Description() pulumi.StringOutput
The description of SAML Provider.
func (GetSamlProvidersProviderOutput) ElementType ¶ added in v2.34.0
func (GetSamlProvidersProviderOutput) ElementType() reflect.Type
func (GetSamlProvidersProviderOutput) EncodedsamlMetadataDocument ¶ added in v2.34.0
func (o GetSamlProvidersProviderOutput) EncodedsamlMetadataDocument() pulumi.StringOutput
The encodedsaml metadata document.
func (GetSamlProvidersProviderOutput) Id ¶ added in v2.34.0
func (o GetSamlProvidersProviderOutput) Id() pulumi.StringOutput
The ID of the SAML Provider.
func (GetSamlProvidersProviderOutput) SamlProviderName ¶ added in v2.34.0
func (o GetSamlProvidersProviderOutput) SamlProviderName() pulumi.StringOutput
The saml provider name.
func (GetSamlProvidersProviderOutput) ToGetSamlProvidersProviderOutput ¶ added in v2.34.0
func (o GetSamlProvidersProviderOutput) ToGetSamlProvidersProviderOutput() GetSamlProvidersProviderOutput
func (GetSamlProvidersProviderOutput) ToGetSamlProvidersProviderOutputWithContext ¶ added in v2.34.0
func (o GetSamlProvidersProviderOutput) ToGetSamlProvidersProviderOutputWithContext(ctx context.Context) GetSamlProvidersProviderOutput
func (GetSamlProvidersProviderOutput) UpdateDate ¶ added in v2.34.0
func (o GetSamlProvidersProviderOutput) UpdateDate() pulumi.StringOutput
The update time.
type GetSamlProvidersResult ¶ added in v2.34.0
type GetSamlProvidersResult struct { EnableDetails *bool `pulumi:"enableDetails"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Ids []string `pulumi:"ids"` NameRegex *string `pulumi:"nameRegex"` Names []string `pulumi:"names"` OutputFile *string `pulumi:"outputFile"` Providers []GetSamlProvidersProvider `pulumi:"providers"` }
A collection of values returned by getSamlProviders.
func GetSamlProviders ¶ added in v2.34.0
func GetSamlProviders(ctx *pulumi.Context, args *GetSamlProvidersArgs, opts ...pulumi.InvokeOption) (*GetSamlProvidersResult, error)
This data source provides the Ram Saml Providers of the current Alibaba Cloud user.
> **NOTE:** Available in v1.114.0+.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/ram" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { opt0 := "tf-testAcc" example, err := ram.GetSamlProviders(ctx, &ram.GetSamlProvidersArgs{ Ids: []string{ "samlProviderName", }, NameRegex: &opt0, }, nil) if err != nil { return err } ctx.Export("firstRamSamlProviderId", example.Providers[0].Id) return nil }) }
```
type GetUsersArgs ¶
type GetUsersArgs struct { // Filter results by a specific group name. Returned users are in the specified group. GroupName *string `pulumi:"groupName"` // - A list of ram user IDs. Ids []string `pulumi:"ids"` // A regex string to filter resulting users by their names. NameRegex *string `pulumi:"nameRegex"` OutputFile *string `pulumi:"outputFile"` // Filter results by a specific policy name. If you set this parameter without setting `policyType`, the later will be automatically set to `System`. Returned users are attached to the specified policy. PolicyName *string `pulumi:"policyName"` // Filter results by a specific policy type. Valid values are `Custom` and `System`. If you set this parameter, you must set `policyName` as well. PolicyType *string `pulumi:"policyType"` }
A collection of arguments for invoking getUsers.
type GetUsersResult ¶
type GetUsersResult struct { GroupName *string `pulumi:"groupName"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // A list of ram user IDs. Ids []string `pulumi:"ids"` NameRegex *string `pulumi:"nameRegex"` // A list of ram user names. Names []string `pulumi:"names"` OutputFile *string `pulumi:"outputFile"` PolicyName *string `pulumi:"policyName"` PolicyType *string `pulumi:"policyType"` // A list of users. Each element contains the following attributes: Users []GetUsersUser `pulumi:"users"` }
A collection of values returned by getUsers.
func GetUsers ¶
func GetUsers(ctx *pulumi.Context, args *GetUsersArgs, opts ...pulumi.InvokeOption) (*GetUsersResult, error)
This data source provides a list of RAM users in an Alibaba Cloud account according to the specified filters.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/ram" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { opt0 := "group1" opt1 := "^user" opt2 := "users.txt" opt3 := "AliyunACSDefaultAccess" opt4 := "Custom" usersDs, err := ram.GetUsers(ctx, &ram.GetUsersArgs{ GroupName: &opt0, NameRegex: &opt1, OutputFile: &opt2, PolicyName: &opt3, PolicyType: &opt4, }, nil) if err != nil { return err } ctx.Export("firstUserId", usersDs.Users[0].Id) return nil }) }
```
type GetUsersUser ¶
type GetUsersUser struct { // Creation date of the user. CreateDate string `pulumi:"createDate"` // The original id is user name, but it is user id in 1.37.0+. Id string `pulumi:"id"` // Last login date of the user. Removed from version 1.79.0. LastLoginDate string `pulumi:"lastLoginDate"` // Name of the user. Name string `pulumi:"name"` }
type GetUsersUserArgs ¶
type GetUsersUserArgs struct { // Creation date of the user. CreateDate pulumi.StringInput `pulumi:"createDate"` // The original id is user name, but it is user id in 1.37.0+. Id pulumi.StringInput `pulumi:"id"` // Last login date of the user. Removed from version 1.79.0. LastLoginDate pulumi.StringInput `pulumi:"lastLoginDate"` // Name of the user. Name pulumi.StringInput `pulumi:"name"` }
func (GetUsersUserArgs) ElementType ¶
func (GetUsersUserArgs) ElementType() reflect.Type
func (GetUsersUserArgs) ToGetUsersUserOutput ¶
func (i GetUsersUserArgs) ToGetUsersUserOutput() GetUsersUserOutput
func (GetUsersUserArgs) ToGetUsersUserOutputWithContext ¶
func (i GetUsersUserArgs) ToGetUsersUserOutputWithContext(ctx context.Context) GetUsersUserOutput
type GetUsersUserArray ¶
type GetUsersUserArray []GetUsersUserInput
func (GetUsersUserArray) ElementType ¶
func (GetUsersUserArray) ElementType() reflect.Type
func (GetUsersUserArray) ToGetUsersUserArrayOutput ¶
func (i GetUsersUserArray) ToGetUsersUserArrayOutput() GetUsersUserArrayOutput
func (GetUsersUserArray) ToGetUsersUserArrayOutputWithContext ¶
func (i GetUsersUserArray) ToGetUsersUserArrayOutputWithContext(ctx context.Context) GetUsersUserArrayOutput
type GetUsersUserArrayInput ¶
type GetUsersUserArrayInput interface { pulumi.Input ToGetUsersUserArrayOutput() GetUsersUserArrayOutput ToGetUsersUserArrayOutputWithContext(context.Context) GetUsersUserArrayOutput }
GetUsersUserArrayInput is an input type that accepts GetUsersUserArray and GetUsersUserArrayOutput values. You can construct a concrete instance of `GetUsersUserArrayInput` via:
GetUsersUserArray{ GetUsersUserArgs{...} }
type GetUsersUserArrayOutput ¶
type GetUsersUserArrayOutput struct{ *pulumi.OutputState }
func (GetUsersUserArrayOutput) ElementType ¶
func (GetUsersUserArrayOutput) ElementType() reflect.Type
func (GetUsersUserArrayOutput) Index ¶
func (o GetUsersUserArrayOutput) Index(i pulumi.IntInput) GetUsersUserOutput
func (GetUsersUserArrayOutput) ToGetUsersUserArrayOutput ¶
func (o GetUsersUserArrayOutput) ToGetUsersUserArrayOutput() GetUsersUserArrayOutput
func (GetUsersUserArrayOutput) ToGetUsersUserArrayOutputWithContext ¶
func (o GetUsersUserArrayOutput) ToGetUsersUserArrayOutputWithContext(ctx context.Context) GetUsersUserArrayOutput
type GetUsersUserInput ¶
type GetUsersUserInput interface { pulumi.Input ToGetUsersUserOutput() GetUsersUserOutput ToGetUsersUserOutputWithContext(context.Context) GetUsersUserOutput }
GetUsersUserInput is an input type that accepts GetUsersUserArgs and GetUsersUserOutput values. You can construct a concrete instance of `GetUsersUserInput` via:
GetUsersUserArgs{...}
type GetUsersUserOutput ¶
type GetUsersUserOutput struct{ *pulumi.OutputState }
func (GetUsersUserOutput) CreateDate ¶
func (o GetUsersUserOutput) CreateDate() pulumi.StringOutput
Creation date of the user.
func (GetUsersUserOutput) ElementType ¶
func (GetUsersUserOutput) ElementType() reflect.Type
func (GetUsersUserOutput) Id ¶
func (o GetUsersUserOutput) Id() pulumi.StringOutput
The original id is user name, but it is user id in 1.37.0+.
func (GetUsersUserOutput) LastLoginDate ¶
func (o GetUsersUserOutput) LastLoginDate() pulumi.StringOutput
Last login date of the user. Removed from version 1.79.0.
func (GetUsersUserOutput) Name ¶
func (o GetUsersUserOutput) Name() pulumi.StringOutput
Name of the user.
func (GetUsersUserOutput) ToGetUsersUserOutput ¶
func (o GetUsersUserOutput) ToGetUsersUserOutput() GetUsersUserOutput
func (GetUsersUserOutput) ToGetUsersUserOutputWithContext ¶
func (o GetUsersUserOutput) ToGetUsersUserOutputWithContext(ctx context.Context) GetUsersUserOutput
type Group ¶
type Group struct { pulumi.CustomResourceState // Comment of the RAM group. This parameter can have a string of 1 to 128 characters. Comments pulumi.StringPtrOutput `pulumi:"comments"` // This parameter is used for resource destroy. Default value is `false`. Force pulumi.BoolPtrOutput `pulumi:"force"` // Name of the RAM group. This name can have a string of 1 to 128 characters, must contain only alphanumeric characters or hyphen "-", and must not begin with a hyphen. Name pulumi.StringOutput `pulumi:"name"` }
## Import
RAM group can be imported using the id or name, e.g.
```sh
$ pulumi import alicloud:ram/group:Group example my-group
```
func GetGroup ¶
func GetGroup(ctx *pulumi.Context, name string, id pulumi.IDInput, state *GroupState, opts ...pulumi.ResourceOption) (*Group, error)
GetGroup gets an existing Group resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewGroup ¶
func NewGroup(ctx *pulumi.Context, name string, args *GroupArgs, opts ...pulumi.ResourceOption) (*Group, error)
NewGroup registers a new resource with the given unique name, arguments, and options.
func (*Group) ElementType ¶ added in v2.25.1
func (*Group) ToGroupOutput ¶ added in v2.25.1
func (i *Group) ToGroupOutput() GroupOutput
func (*Group) ToGroupOutputWithContext ¶ added in v2.25.1
func (i *Group) ToGroupOutputWithContext(ctx context.Context) GroupOutput
func (*Group) ToGroupPtrOutput ¶ added in v2.35.1
func (i *Group) ToGroupPtrOutput() GroupPtrOutput
func (*Group) ToGroupPtrOutputWithContext ¶ added in v2.35.1
func (i *Group) ToGroupPtrOutputWithContext(ctx context.Context) GroupPtrOutput
type GroupArgs ¶
type GroupArgs struct { // Comment of the RAM group. This parameter can have a string of 1 to 128 characters. Comments pulumi.StringPtrInput // This parameter is used for resource destroy. Default value is `false`. Force pulumi.BoolPtrInput // Name of the RAM group. This name can have a string of 1 to 128 characters, must contain only alphanumeric characters or hyphen "-", and must not begin with a hyphen. Name pulumi.StringPtrInput }
The set of arguments for constructing a Group resource.
func (GroupArgs) ElementType ¶
type GroupArray ¶ added in v2.35.1
type GroupArray []GroupInput
func (GroupArray) ElementType ¶ added in v2.35.1
func (GroupArray) ElementType() reflect.Type
func (GroupArray) ToGroupArrayOutput ¶ added in v2.35.1
func (i GroupArray) ToGroupArrayOutput() GroupArrayOutput
func (GroupArray) ToGroupArrayOutputWithContext ¶ added in v2.35.1
func (i GroupArray) ToGroupArrayOutputWithContext(ctx context.Context) GroupArrayOutput
type GroupArrayInput ¶ added in v2.35.1
type GroupArrayInput interface { pulumi.Input ToGroupArrayOutput() GroupArrayOutput ToGroupArrayOutputWithContext(context.Context) GroupArrayOutput }
GroupArrayInput is an input type that accepts GroupArray and GroupArrayOutput values. You can construct a concrete instance of `GroupArrayInput` via:
GroupArray{ GroupArgs{...} }
type GroupArrayOutput ¶ added in v2.35.1
type GroupArrayOutput struct{ *pulumi.OutputState }
func (GroupArrayOutput) ElementType ¶ added in v2.35.1
func (GroupArrayOutput) ElementType() reflect.Type
func (GroupArrayOutput) Index ¶ added in v2.35.1
func (o GroupArrayOutput) Index(i pulumi.IntInput) GroupOutput
func (GroupArrayOutput) ToGroupArrayOutput ¶ added in v2.35.1
func (o GroupArrayOutput) ToGroupArrayOutput() GroupArrayOutput
func (GroupArrayOutput) ToGroupArrayOutputWithContext ¶ added in v2.35.1
func (o GroupArrayOutput) ToGroupArrayOutputWithContext(ctx context.Context) GroupArrayOutput
type GroupInput ¶ added in v2.25.1
type GroupInput interface { pulumi.Input ToGroupOutput() GroupOutput ToGroupOutputWithContext(ctx context.Context) GroupOutput }
type GroupMap ¶ added in v2.35.1
type GroupMap map[string]GroupInput
func (GroupMap) ElementType ¶ added in v2.35.1
func (GroupMap) ToGroupMapOutput ¶ added in v2.35.1
func (i GroupMap) ToGroupMapOutput() GroupMapOutput
func (GroupMap) ToGroupMapOutputWithContext ¶ added in v2.35.1
func (i GroupMap) ToGroupMapOutputWithContext(ctx context.Context) GroupMapOutput
type GroupMapInput ¶ added in v2.35.1
type GroupMapInput interface { pulumi.Input ToGroupMapOutput() GroupMapOutput ToGroupMapOutputWithContext(context.Context) GroupMapOutput }
GroupMapInput is an input type that accepts GroupMap and GroupMapOutput values. You can construct a concrete instance of `GroupMapInput` via:
GroupMap{ "key": GroupArgs{...} }
type GroupMapOutput ¶ added in v2.35.1
type GroupMapOutput struct{ *pulumi.OutputState }
func (GroupMapOutput) ElementType ¶ added in v2.35.1
func (GroupMapOutput) ElementType() reflect.Type
func (GroupMapOutput) MapIndex ¶ added in v2.35.1
func (o GroupMapOutput) MapIndex(k pulumi.StringInput) GroupOutput
func (GroupMapOutput) ToGroupMapOutput ¶ added in v2.35.1
func (o GroupMapOutput) ToGroupMapOutput() GroupMapOutput
func (GroupMapOutput) ToGroupMapOutputWithContext ¶ added in v2.35.1
func (o GroupMapOutput) ToGroupMapOutputWithContext(ctx context.Context) GroupMapOutput
type GroupMembership ¶
type GroupMembership struct { pulumi.CustomResourceState // Name of the RAM group. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphen "-", and must not begin with a hyphen. GroupName pulumi.StringOutput `pulumi:"groupName"` // Set of user name which will be added to group. Each name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen. UserNames pulumi.StringArrayOutput `pulumi:"userNames"` }
Provides a RAM Group membership resource.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/ram" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { group, err := ram.NewGroup(ctx, "group", &ram.GroupArgs{ Comments: pulumi.String("this is a group comments."), Force: pulumi.Bool(true), }) if err != nil { return err } user, err := ram.NewUser(ctx, "user", &ram.UserArgs{ DisplayName: pulumi.String("user_display_name"), Mobile: pulumi.String("86-18688888888"), Email: pulumi.String("hello.uuu@aaa.com"), Comments: pulumi.String("yoyoyo"), Force: pulumi.Bool(true), }) if err != nil { return err } user1, err := ram.NewUser(ctx, "user1", &ram.UserArgs{ DisplayName: pulumi.String("user_display_name1"), Mobile: pulumi.String("86-18688888889"), Email: pulumi.String("hello.uuu@aaa.com"), Comments: pulumi.String("yoyoyo"), Force: pulumi.Bool(true), }) if err != nil { return err } _, err = ram.NewGroupMembership(ctx, "membership", &ram.GroupMembershipArgs{ GroupName: group.Name, UserNames: pulumi.StringArray{ user.Name, user1.Name, }, }) if err != nil { return err } return nil }) }
```
## Import
RAM Group membership can be imported using the id, e.g.
```sh
$ pulumi import alicloud:ram/groupMembership:GroupMembership example my-group
```
func GetGroupMembership ¶
func GetGroupMembership(ctx *pulumi.Context, name string, id pulumi.IDInput, state *GroupMembershipState, opts ...pulumi.ResourceOption) (*GroupMembership, error)
GetGroupMembership gets an existing GroupMembership resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewGroupMembership ¶
func NewGroupMembership(ctx *pulumi.Context, name string, args *GroupMembershipArgs, opts ...pulumi.ResourceOption) (*GroupMembership, error)
NewGroupMembership registers a new resource with the given unique name, arguments, and options.
func (*GroupMembership) ElementType ¶ added in v2.25.1
func (*GroupMembership) ElementType() reflect.Type
func (*GroupMembership) ToGroupMembershipOutput ¶ added in v2.25.1
func (i *GroupMembership) ToGroupMembershipOutput() GroupMembershipOutput
func (*GroupMembership) ToGroupMembershipOutputWithContext ¶ added in v2.25.1
func (i *GroupMembership) ToGroupMembershipOutputWithContext(ctx context.Context) GroupMembershipOutput
func (*GroupMembership) ToGroupMembershipPtrOutput ¶ added in v2.35.1
func (i *GroupMembership) ToGroupMembershipPtrOutput() GroupMembershipPtrOutput
func (*GroupMembership) ToGroupMembershipPtrOutputWithContext ¶ added in v2.35.1
func (i *GroupMembership) ToGroupMembershipPtrOutputWithContext(ctx context.Context) GroupMembershipPtrOutput
type GroupMembershipArgs ¶
type GroupMembershipArgs struct { // Name of the RAM group. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphen "-", and must not begin with a hyphen. GroupName pulumi.StringInput // Set of user name which will be added to group. Each name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen. UserNames pulumi.StringArrayInput }
The set of arguments for constructing a GroupMembership resource.
func (GroupMembershipArgs) ElementType ¶
func (GroupMembershipArgs) ElementType() reflect.Type
type GroupMembershipArray ¶ added in v2.35.1
type GroupMembershipArray []GroupMembershipInput
func (GroupMembershipArray) ElementType ¶ added in v2.35.1
func (GroupMembershipArray) ElementType() reflect.Type
func (GroupMembershipArray) ToGroupMembershipArrayOutput ¶ added in v2.35.1
func (i GroupMembershipArray) ToGroupMembershipArrayOutput() GroupMembershipArrayOutput
func (GroupMembershipArray) ToGroupMembershipArrayOutputWithContext ¶ added in v2.35.1
func (i GroupMembershipArray) ToGroupMembershipArrayOutputWithContext(ctx context.Context) GroupMembershipArrayOutput
type GroupMembershipArrayInput ¶ added in v2.35.1
type GroupMembershipArrayInput interface { pulumi.Input ToGroupMembershipArrayOutput() GroupMembershipArrayOutput ToGroupMembershipArrayOutputWithContext(context.Context) GroupMembershipArrayOutput }
GroupMembershipArrayInput is an input type that accepts GroupMembershipArray and GroupMembershipArrayOutput values. You can construct a concrete instance of `GroupMembershipArrayInput` via:
GroupMembershipArray{ GroupMembershipArgs{...} }
type GroupMembershipArrayOutput ¶ added in v2.35.1
type GroupMembershipArrayOutput struct{ *pulumi.OutputState }
func (GroupMembershipArrayOutput) ElementType ¶ added in v2.35.1
func (GroupMembershipArrayOutput) ElementType() reflect.Type
func (GroupMembershipArrayOutput) Index ¶ added in v2.35.1
func (o GroupMembershipArrayOutput) Index(i pulumi.IntInput) GroupMembershipOutput
func (GroupMembershipArrayOutput) ToGroupMembershipArrayOutput ¶ added in v2.35.1
func (o GroupMembershipArrayOutput) ToGroupMembershipArrayOutput() GroupMembershipArrayOutput
func (GroupMembershipArrayOutput) ToGroupMembershipArrayOutputWithContext ¶ added in v2.35.1
func (o GroupMembershipArrayOutput) ToGroupMembershipArrayOutputWithContext(ctx context.Context) GroupMembershipArrayOutput
type GroupMembershipInput ¶ added in v2.25.1
type GroupMembershipInput interface { pulumi.Input ToGroupMembershipOutput() GroupMembershipOutput ToGroupMembershipOutputWithContext(ctx context.Context) GroupMembershipOutput }
type GroupMembershipMap ¶ added in v2.35.1
type GroupMembershipMap map[string]GroupMembershipInput
func (GroupMembershipMap) ElementType ¶ added in v2.35.1
func (GroupMembershipMap) ElementType() reflect.Type
func (GroupMembershipMap) ToGroupMembershipMapOutput ¶ added in v2.35.1
func (i GroupMembershipMap) ToGroupMembershipMapOutput() GroupMembershipMapOutput
func (GroupMembershipMap) ToGroupMembershipMapOutputWithContext ¶ added in v2.35.1
func (i GroupMembershipMap) ToGroupMembershipMapOutputWithContext(ctx context.Context) GroupMembershipMapOutput
type GroupMembershipMapInput ¶ added in v2.35.1
type GroupMembershipMapInput interface { pulumi.Input ToGroupMembershipMapOutput() GroupMembershipMapOutput ToGroupMembershipMapOutputWithContext(context.Context) GroupMembershipMapOutput }
GroupMembershipMapInput is an input type that accepts GroupMembershipMap and GroupMembershipMapOutput values. You can construct a concrete instance of `GroupMembershipMapInput` via:
GroupMembershipMap{ "key": GroupMembershipArgs{...} }
type GroupMembershipMapOutput ¶ added in v2.35.1
type GroupMembershipMapOutput struct{ *pulumi.OutputState }
func (GroupMembershipMapOutput) ElementType ¶ added in v2.35.1
func (GroupMembershipMapOutput) ElementType() reflect.Type
func (GroupMembershipMapOutput) MapIndex ¶ added in v2.35.1
func (o GroupMembershipMapOutput) MapIndex(k pulumi.StringInput) GroupMembershipOutput
func (GroupMembershipMapOutput) ToGroupMembershipMapOutput ¶ added in v2.35.1
func (o GroupMembershipMapOutput) ToGroupMembershipMapOutput() GroupMembershipMapOutput
func (GroupMembershipMapOutput) ToGroupMembershipMapOutputWithContext ¶ added in v2.35.1
func (o GroupMembershipMapOutput) ToGroupMembershipMapOutputWithContext(ctx context.Context) GroupMembershipMapOutput
type GroupMembershipOutput ¶ added in v2.25.1
type GroupMembershipOutput struct {
*pulumi.OutputState
}
func (GroupMembershipOutput) ElementType ¶ added in v2.25.1
func (GroupMembershipOutput) ElementType() reflect.Type
func (GroupMembershipOutput) ToGroupMembershipOutput ¶ added in v2.25.1
func (o GroupMembershipOutput) ToGroupMembershipOutput() GroupMembershipOutput
func (GroupMembershipOutput) ToGroupMembershipOutputWithContext ¶ added in v2.25.1
func (o GroupMembershipOutput) ToGroupMembershipOutputWithContext(ctx context.Context) GroupMembershipOutput
func (GroupMembershipOutput) ToGroupMembershipPtrOutput ¶ added in v2.35.1
func (o GroupMembershipOutput) ToGroupMembershipPtrOutput() GroupMembershipPtrOutput
func (GroupMembershipOutput) ToGroupMembershipPtrOutputWithContext ¶ added in v2.35.1
func (o GroupMembershipOutput) ToGroupMembershipPtrOutputWithContext(ctx context.Context) GroupMembershipPtrOutput
type GroupMembershipPtrInput ¶ added in v2.35.1
type GroupMembershipPtrInput interface { pulumi.Input ToGroupMembershipPtrOutput() GroupMembershipPtrOutput ToGroupMembershipPtrOutputWithContext(ctx context.Context) GroupMembershipPtrOutput }
type GroupMembershipPtrOutput ¶ added in v2.35.1
type GroupMembershipPtrOutput struct {
*pulumi.OutputState
}
func (GroupMembershipPtrOutput) ElementType ¶ added in v2.35.1
func (GroupMembershipPtrOutput) ElementType() reflect.Type
func (GroupMembershipPtrOutput) ToGroupMembershipPtrOutput ¶ added in v2.35.1
func (o GroupMembershipPtrOutput) ToGroupMembershipPtrOutput() GroupMembershipPtrOutput
func (GroupMembershipPtrOutput) ToGroupMembershipPtrOutputWithContext ¶ added in v2.35.1
func (o GroupMembershipPtrOutput) ToGroupMembershipPtrOutputWithContext(ctx context.Context) GroupMembershipPtrOutput
type GroupMembershipState ¶
type GroupMembershipState struct { // Name of the RAM group. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphen "-", and must not begin with a hyphen. GroupName pulumi.StringPtrInput // Set of user name which will be added to group. Each name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen. UserNames pulumi.StringArrayInput }
func (GroupMembershipState) ElementType ¶
func (GroupMembershipState) ElementType() reflect.Type
type GroupOutput ¶ added in v2.25.1
type GroupOutput struct {
*pulumi.OutputState
}
func (GroupOutput) ElementType ¶ added in v2.25.1
func (GroupOutput) ElementType() reflect.Type
func (GroupOutput) ToGroupOutput ¶ added in v2.25.1
func (o GroupOutput) ToGroupOutput() GroupOutput
func (GroupOutput) ToGroupOutputWithContext ¶ added in v2.25.1
func (o GroupOutput) ToGroupOutputWithContext(ctx context.Context) GroupOutput
func (GroupOutput) ToGroupPtrOutput ¶ added in v2.35.1
func (o GroupOutput) ToGroupPtrOutput() GroupPtrOutput
func (GroupOutput) ToGroupPtrOutputWithContext ¶ added in v2.35.1
func (o GroupOutput) ToGroupPtrOutputWithContext(ctx context.Context) GroupPtrOutput
type GroupPolicyAttachment ¶
type GroupPolicyAttachment struct { pulumi.CustomResourceState // Name of the RAM group. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphen "-", and must not begin with a hyphen. GroupName pulumi.StringOutput `pulumi:"groupName"` // Name of the RAM policy. This name can have a string of 1 to 128 characters, must contain only alphanumeric characters or hyphen "-", and must not begin with a hyphen. PolicyName pulumi.StringOutput `pulumi:"policyName"` // Type of the RAM policy. It must be `Custom` or `System`. PolicyType pulumi.StringOutput `pulumi:"policyType"` }
Provides a RAM Group Policy attachment resource.
## Example Usage
```go package main
import (
"fmt" "github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/ram" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { group, err := ram.NewGroup(ctx, "group", &ram.GroupArgs{ Comments: pulumi.String("this is a group comments."), Force: pulumi.Bool(true), }) if err != nil { return err } policy, err := ram.NewPolicy(ctx, "policy", &ram.PolicyArgs{ Document: pulumi.String(fmt.Sprintf("%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v", " {\n", " \"Statement\": [\n", " {\n", " \"Action\": [\n", " \"oss:ListObjects\",\n", " \"oss:GetObject\"\n", " ],\n", " \"Effect\": \"Allow\",\n", " \"Resource\": [\n", " \"acs:oss:*:*:mybucket\",\n", " \"acs:oss:*:*:mybucket/*\"\n", " ]\n", " }\n", " ],\n", " \"Version\": \"1\"\n", " }\n")), Description: pulumi.String("this is a policy test"), Force: pulumi.Bool(true), }) if err != nil { return err } _, err = ram.NewGroupPolicyAttachment(ctx, "attach", &ram.GroupPolicyAttachmentArgs{ PolicyName: policy.Name, PolicyType: policy.Type, GroupName: group.Name, }) if err != nil { return err } return nil }) }
```
## Import
RAM Group Policy attachment can be imported using the id, e.g.
```sh
$ pulumi import alicloud:ram/groupPolicyAttachment:GroupPolicyAttachment example group:my-policy:Custom:my-group
```
func GetGroupPolicyAttachment ¶
func GetGroupPolicyAttachment(ctx *pulumi.Context, name string, id pulumi.IDInput, state *GroupPolicyAttachmentState, opts ...pulumi.ResourceOption) (*GroupPolicyAttachment, error)
GetGroupPolicyAttachment gets an existing GroupPolicyAttachment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewGroupPolicyAttachment ¶
func NewGroupPolicyAttachment(ctx *pulumi.Context, name string, args *GroupPolicyAttachmentArgs, opts ...pulumi.ResourceOption) (*GroupPolicyAttachment, error)
NewGroupPolicyAttachment registers a new resource with the given unique name, arguments, and options.
func (*GroupPolicyAttachment) ElementType ¶ added in v2.25.1
func (*GroupPolicyAttachment) ElementType() reflect.Type
func (*GroupPolicyAttachment) ToGroupPolicyAttachmentOutput ¶ added in v2.25.1
func (i *GroupPolicyAttachment) ToGroupPolicyAttachmentOutput() GroupPolicyAttachmentOutput
func (*GroupPolicyAttachment) ToGroupPolicyAttachmentOutputWithContext ¶ added in v2.25.1
func (i *GroupPolicyAttachment) ToGroupPolicyAttachmentOutputWithContext(ctx context.Context) GroupPolicyAttachmentOutput
func (*GroupPolicyAttachment) ToGroupPolicyAttachmentPtrOutput ¶ added in v2.35.1
func (i *GroupPolicyAttachment) ToGroupPolicyAttachmentPtrOutput() GroupPolicyAttachmentPtrOutput
func (*GroupPolicyAttachment) ToGroupPolicyAttachmentPtrOutputWithContext ¶ added in v2.35.1
func (i *GroupPolicyAttachment) ToGroupPolicyAttachmentPtrOutputWithContext(ctx context.Context) GroupPolicyAttachmentPtrOutput
type GroupPolicyAttachmentArgs ¶
type GroupPolicyAttachmentArgs struct { // Name of the RAM group. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphen "-", and must not begin with a hyphen. GroupName pulumi.StringInput // Name of the RAM policy. This name can have a string of 1 to 128 characters, must contain only alphanumeric characters or hyphen "-", and must not begin with a hyphen. PolicyName pulumi.StringInput // Type of the RAM policy. It must be `Custom` or `System`. PolicyType pulumi.StringInput }
The set of arguments for constructing a GroupPolicyAttachment resource.
func (GroupPolicyAttachmentArgs) ElementType ¶
func (GroupPolicyAttachmentArgs) ElementType() reflect.Type
type GroupPolicyAttachmentArray ¶ added in v2.35.1
type GroupPolicyAttachmentArray []GroupPolicyAttachmentInput
func (GroupPolicyAttachmentArray) ElementType ¶ added in v2.35.1
func (GroupPolicyAttachmentArray) ElementType() reflect.Type
func (GroupPolicyAttachmentArray) ToGroupPolicyAttachmentArrayOutput ¶ added in v2.35.1
func (i GroupPolicyAttachmentArray) ToGroupPolicyAttachmentArrayOutput() GroupPolicyAttachmentArrayOutput
func (GroupPolicyAttachmentArray) ToGroupPolicyAttachmentArrayOutputWithContext ¶ added in v2.35.1
func (i GroupPolicyAttachmentArray) ToGroupPolicyAttachmentArrayOutputWithContext(ctx context.Context) GroupPolicyAttachmentArrayOutput
type GroupPolicyAttachmentArrayInput ¶ added in v2.35.1
type GroupPolicyAttachmentArrayInput interface { pulumi.Input ToGroupPolicyAttachmentArrayOutput() GroupPolicyAttachmentArrayOutput ToGroupPolicyAttachmentArrayOutputWithContext(context.Context) GroupPolicyAttachmentArrayOutput }
GroupPolicyAttachmentArrayInput is an input type that accepts GroupPolicyAttachmentArray and GroupPolicyAttachmentArrayOutput values. You can construct a concrete instance of `GroupPolicyAttachmentArrayInput` via:
GroupPolicyAttachmentArray{ GroupPolicyAttachmentArgs{...} }
type GroupPolicyAttachmentArrayOutput ¶ added in v2.35.1
type GroupPolicyAttachmentArrayOutput struct{ *pulumi.OutputState }
func (GroupPolicyAttachmentArrayOutput) ElementType ¶ added in v2.35.1
func (GroupPolicyAttachmentArrayOutput) ElementType() reflect.Type
func (GroupPolicyAttachmentArrayOutput) Index ¶ added in v2.35.1
func (o GroupPolicyAttachmentArrayOutput) Index(i pulumi.IntInput) GroupPolicyAttachmentOutput
func (GroupPolicyAttachmentArrayOutput) ToGroupPolicyAttachmentArrayOutput ¶ added in v2.35.1
func (o GroupPolicyAttachmentArrayOutput) ToGroupPolicyAttachmentArrayOutput() GroupPolicyAttachmentArrayOutput
func (GroupPolicyAttachmentArrayOutput) ToGroupPolicyAttachmentArrayOutputWithContext ¶ added in v2.35.1
func (o GroupPolicyAttachmentArrayOutput) ToGroupPolicyAttachmentArrayOutputWithContext(ctx context.Context) GroupPolicyAttachmentArrayOutput
type GroupPolicyAttachmentInput ¶ added in v2.25.1
type GroupPolicyAttachmentInput interface { pulumi.Input ToGroupPolicyAttachmentOutput() GroupPolicyAttachmentOutput ToGroupPolicyAttachmentOutputWithContext(ctx context.Context) GroupPolicyAttachmentOutput }
type GroupPolicyAttachmentMap ¶ added in v2.35.1
type GroupPolicyAttachmentMap map[string]GroupPolicyAttachmentInput
func (GroupPolicyAttachmentMap) ElementType ¶ added in v2.35.1
func (GroupPolicyAttachmentMap) ElementType() reflect.Type
func (GroupPolicyAttachmentMap) ToGroupPolicyAttachmentMapOutput ¶ added in v2.35.1
func (i GroupPolicyAttachmentMap) ToGroupPolicyAttachmentMapOutput() GroupPolicyAttachmentMapOutput
func (GroupPolicyAttachmentMap) ToGroupPolicyAttachmentMapOutputWithContext ¶ added in v2.35.1
func (i GroupPolicyAttachmentMap) ToGroupPolicyAttachmentMapOutputWithContext(ctx context.Context) GroupPolicyAttachmentMapOutput
type GroupPolicyAttachmentMapInput ¶ added in v2.35.1
type GroupPolicyAttachmentMapInput interface { pulumi.Input ToGroupPolicyAttachmentMapOutput() GroupPolicyAttachmentMapOutput ToGroupPolicyAttachmentMapOutputWithContext(context.Context) GroupPolicyAttachmentMapOutput }
GroupPolicyAttachmentMapInput is an input type that accepts GroupPolicyAttachmentMap and GroupPolicyAttachmentMapOutput values. You can construct a concrete instance of `GroupPolicyAttachmentMapInput` via:
GroupPolicyAttachmentMap{ "key": GroupPolicyAttachmentArgs{...} }
type GroupPolicyAttachmentMapOutput ¶ added in v2.35.1
type GroupPolicyAttachmentMapOutput struct{ *pulumi.OutputState }
func (GroupPolicyAttachmentMapOutput) ElementType ¶ added in v2.35.1
func (GroupPolicyAttachmentMapOutput) ElementType() reflect.Type
func (GroupPolicyAttachmentMapOutput) MapIndex ¶ added in v2.35.1
func (o GroupPolicyAttachmentMapOutput) MapIndex(k pulumi.StringInput) GroupPolicyAttachmentOutput
func (GroupPolicyAttachmentMapOutput) ToGroupPolicyAttachmentMapOutput ¶ added in v2.35.1
func (o GroupPolicyAttachmentMapOutput) ToGroupPolicyAttachmentMapOutput() GroupPolicyAttachmentMapOutput
func (GroupPolicyAttachmentMapOutput) ToGroupPolicyAttachmentMapOutputWithContext ¶ added in v2.35.1
func (o GroupPolicyAttachmentMapOutput) ToGroupPolicyAttachmentMapOutputWithContext(ctx context.Context) GroupPolicyAttachmentMapOutput
type GroupPolicyAttachmentOutput ¶ added in v2.25.1
type GroupPolicyAttachmentOutput struct {
*pulumi.OutputState
}
func (GroupPolicyAttachmentOutput) ElementType ¶ added in v2.25.1
func (GroupPolicyAttachmentOutput) ElementType() reflect.Type
func (GroupPolicyAttachmentOutput) ToGroupPolicyAttachmentOutput ¶ added in v2.25.1
func (o GroupPolicyAttachmentOutput) ToGroupPolicyAttachmentOutput() GroupPolicyAttachmentOutput
func (GroupPolicyAttachmentOutput) ToGroupPolicyAttachmentOutputWithContext ¶ added in v2.25.1
func (o GroupPolicyAttachmentOutput) ToGroupPolicyAttachmentOutputWithContext(ctx context.Context) GroupPolicyAttachmentOutput
func (GroupPolicyAttachmentOutput) ToGroupPolicyAttachmentPtrOutput ¶ added in v2.35.1
func (o GroupPolicyAttachmentOutput) ToGroupPolicyAttachmentPtrOutput() GroupPolicyAttachmentPtrOutput
func (GroupPolicyAttachmentOutput) ToGroupPolicyAttachmentPtrOutputWithContext ¶ added in v2.35.1
func (o GroupPolicyAttachmentOutput) ToGroupPolicyAttachmentPtrOutputWithContext(ctx context.Context) GroupPolicyAttachmentPtrOutput
type GroupPolicyAttachmentPtrInput ¶ added in v2.35.1
type GroupPolicyAttachmentPtrInput interface { pulumi.Input ToGroupPolicyAttachmentPtrOutput() GroupPolicyAttachmentPtrOutput ToGroupPolicyAttachmentPtrOutputWithContext(ctx context.Context) GroupPolicyAttachmentPtrOutput }
type GroupPolicyAttachmentPtrOutput ¶ added in v2.35.1
type GroupPolicyAttachmentPtrOutput struct {
*pulumi.OutputState
}
func (GroupPolicyAttachmentPtrOutput) ElementType ¶ added in v2.35.1
func (GroupPolicyAttachmentPtrOutput) ElementType() reflect.Type
func (GroupPolicyAttachmentPtrOutput) ToGroupPolicyAttachmentPtrOutput ¶ added in v2.35.1
func (o GroupPolicyAttachmentPtrOutput) ToGroupPolicyAttachmentPtrOutput() GroupPolicyAttachmentPtrOutput
func (GroupPolicyAttachmentPtrOutput) ToGroupPolicyAttachmentPtrOutputWithContext ¶ added in v2.35.1
func (o GroupPolicyAttachmentPtrOutput) ToGroupPolicyAttachmentPtrOutputWithContext(ctx context.Context) GroupPolicyAttachmentPtrOutput
type GroupPolicyAttachmentState ¶
type GroupPolicyAttachmentState struct { // Name of the RAM group. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphen "-", and must not begin with a hyphen. GroupName pulumi.StringPtrInput // Name of the RAM policy. This name can have a string of 1 to 128 characters, must contain only alphanumeric characters or hyphen "-", and must not begin with a hyphen. PolicyName pulumi.StringPtrInput // Type of the RAM policy. It must be `Custom` or `System`. PolicyType pulumi.StringPtrInput }
func (GroupPolicyAttachmentState) ElementType ¶
func (GroupPolicyAttachmentState) ElementType() reflect.Type
type GroupPtrInput ¶ added in v2.35.1
type GroupPtrInput interface { pulumi.Input ToGroupPtrOutput() GroupPtrOutput ToGroupPtrOutputWithContext(ctx context.Context) GroupPtrOutput }
type GroupPtrOutput ¶ added in v2.35.1
type GroupPtrOutput struct {
*pulumi.OutputState
}
func (GroupPtrOutput) ElementType ¶ added in v2.35.1
func (GroupPtrOutput) ElementType() reflect.Type
func (GroupPtrOutput) ToGroupPtrOutput ¶ added in v2.35.1
func (o GroupPtrOutput) ToGroupPtrOutput() GroupPtrOutput
func (GroupPtrOutput) ToGroupPtrOutputWithContext ¶ added in v2.35.1
func (o GroupPtrOutput) ToGroupPtrOutputWithContext(ctx context.Context) GroupPtrOutput
type GroupState ¶
type GroupState struct { // Comment of the RAM group. This parameter can have a string of 1 to 128 characters. Comments pulumi.StringPtrInput // This parameter is used for resource destroy. Default value is `false`. Force pulumi.BoolPtrInput // Name of the RAM group. This name can have a string of 1 to 128 characters, must contain only alphanumeric characters or hyphen "-", and must not begin with a hyphen. Name pulumi.StringPtrInput }
func (GroupState) ElementType ¶
func (GroupState) ElementType() reflect.Type
type LoginProfile ¶
type LoginProfile struct { pulumi.CustomResourceState // This parameter indicates whether the MFA needs to be bind when the user first logs in. Default value is `false`. MfaBindRequired pulumi.BoolPtrOutput `pulumi:"mfaBindRequired"` // Password of the RAM user. Password pulumi.StringOutput `pulumi:"password"` // This parameter indicates whether the password needs to be reset when the user first logs in. Default value is `false`. PasswordResetRequired pulumi.BoolPtrOutput `pulumi:"passwordResetRequired"` // Name of the RAM user. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen. UserName pulumi.StringOutput `pulumi:"userName"` }
Provides a RAM User Login Profile resource.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/ram" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { user, err := ram.NewUser(ctx, "user", &ram.UserArgs{ DisplayName: pulumi.String("user_display_name"), Mobile: pulumi.String("86-18688888888"), Email: pulumi.String("hello.uuu@aaa.com"), Comments: pulumi.String("yoyoyo"), Force: pulumi.Bool(true), }) if err != nil { return err } _, err = ram.NewLoginProfile(ctx, "profile", &ram.LoginProfileArgs{ UserName: user.Name, Password: pulumi.String("Yourpassword1234"), }) if err != nil { return err } return nil }) }
```
## Import
RAM login profile can be imported using the id or user name, e.g.
```sh
$ pulumi import alicloud:ram/loginProfile:LoginProfile example my-login
```
func GetLoginProfile ¶
func GetLoginProfile(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LoginProfileState, opts ...pulumi.ResourceOption) (*LoginProfile, error)
GetLoginProfile gets an existing LoginProfile resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewLoginProfile ¶
func NewLoginProfile(ctx *pulumi.Context, name string, args *LoginProfileArgs, opts ...pulumi.ResourceOption) (*LoginProfile, error)
NewLoginProfile registers a new resource with the given unique name, arguments, and options.
func (*LoginProfile) ElementType ¶ added in v2.25.1
func (*LoginProfile) ElementType() reflect.Type
func (*LoginProfile) ToLoginProfileOutput ¶ added in v2.25.1
func (i *LoginProfile) ToLoginProfileOutput() LoginProfileOutput
func (*LoginProfile) ToLoginProfileOutputWithContext ¶ added in v2.25.1
func (i *LoginProfile) ToLoginProfileOutputWithContext(ctx context.Context) LoginProfileOutput
func (*LoginProfile) ToLoginProfilePtrOutput ¶ added in v2.35.1
func (i *LoginProfile) ToLoginProfilePtrOutput() LoginProfilePtrOutput
func (*LoginProfile) ToLoginProfilePtrOutputWithContext ¶ added in v2.35.1
func (i *LoginProfile) ToLoginProfilePtrOutputWithContext(ctx context.Context) LoginProfilePtrOutput
type LoginProfileArgs ¶
type LoginProfileArgs struct { // This parameter indicates whether the MFA needs to be bind when the user first logs in. Default value is `false`. MfaBindRequired pulumi.BoolPtrInput // Password of the RAM user. Password pulumi.StringInput // This parameter indicates whether the password needs to be reset when the user first logs in. Default value is `false`. PasswordResetRequired pulumi.BoolPtrInput // Name of the RAM user. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen. UserName pulumi.StringInput }
The set of arguments for constructing a LoginProfile resource.
func (LoginProfileArgs) ElementType ¶
func (LoginProfileArgs) ElementType() reflect.Type
type LoginProfileArray ¶ added in v2.35.1
type LoginProfileArray []LoginProfileInput
func (LoginProfileArray) ElementType ¶ added in v2.35.1
func (LoginProfileArray) ElementType() reflect.Type
func (LoginProfileArray) ToLoginProfileArrayOutput ¶ added in v2.35.1
func (i LoginProfileArray) ToLoginProfileArrayOutput() LoginProfileArrayOutput
func (LoginProfileArray) ToLoginProfileArrayOutputWithContext ¶ added in v2.35.1
func (i LoginProfileArray) ToLoginProfileArrayOutputWithContext(ctx context.Context) LoginProfileArrayOutput
type LoginProfileArrayInput ¶ added in v2.35.1
type LoginProfileArrayInput interface { pulumi.Input ToLoginProfileArrayOutput() LoginProfileArrayOutput ToLoginProfileArrayOutputWithContext(context.Context) LoginProfileArrayOutput }
LoginProfileArrayInput is an input type that accepts LoginProfileArray and LoginProfileArrayOutput values. You can construct a concrete instance of `LoginProfileArrayInput` via:
LoginProfileArray{ LoginProfileArgs{...} }
type LoginProfileArrayOutput ¶ added in v2.35.1
type LoginProfileArrayOutput struct{ *pulumi.OutputState }
func (LoginProfileArrayOutput) ElementType ¶ added in v2.35.1
func (LoginProfileArrayOutput) ElementType() reflect.Type
func (LoginProfileArrayOutput) Index ¶ added in v2.35.1
func (o LoginProfileArrayOutput) Index(i pulumi.IntInput) LoginProfileOutput
func (LoginProfileArrayOutput) ToLoginProfileArrayOutput ¶ added in v2.35.1
func (o LoginProfileArrayOutput) ToLoginProfileArrayOutput() LoginProfileArrayOutput
func (LoginProfileArrayOutput) ToLoginProfileArrayOutputWithContext ¶ added in v2.35.1
func (o LoginProfileArrayOutput) ToLoginProfileArrayOutputWithContext(ctx context.Context) LoginProfileArrayOutput
type LoginProfileInput ¶ added in v2.25.1
type LoginProfileInput interface { pulumi.Input ToLoginProfileOutput() LoginProfileOutput ToLoginProfileOutputWithContext(ctx context.Context) LoginProfileOutput }
type LoginProfileMap ¶ added in v2.35.1
type LoginProfileMap map[string]LoginProfileInput
func (LoginProfileMap) ElementType ¶ added in v2.35.1
func (LoginProfileMap) ElementType() reflect.Type
func (LoginProfileMap) ToLoginProfileMapOutput ¶ added in v2.35.1
func (i LoginProfileMap) ToLoginProfileMapOutput() LoginProfileMapOutput
func (LoginProfileMap) ToLoginProfileMapOutputWithContext ¶ added in v2.35.1
func (i LoginProfileMap) ToLoginProfileMapOutputWithContext(ctx context.Context) LoginProfileMapOutput
type LoginProfileMapInput ¶ added in v2.35.1
type LoginProfileMapInput interface { pulumi.Input ToLoginProfileMapOutput() LoginProfileMapOutput ToLoginProfileMapOutputWithContext(context.Context) LoginProfileMapOutput }
LoginProfileMapInput is an input type that accepts LoginProfileMap and LoginProfileMapOutput values. You can construct a concrete instance of `LoginProfileMapInput` via:
LoginProfileMap{ "key": LoginProfileArgs{...} }
type LoginProfileMapOutput ¶ added in v2.35.1
type LoginProfileMapOutput struct{ *pulumi.OutputState }
func (LoginProfileMapOutput) ElementType ¶ added in v2.35.1
func (LoginProfileMapOutput) ElementType() reflect.Type
func (LoginProfileMapOutput) MapIndex ¶ added in v2.35.1
func (o LoginProfileMapOutput) MapIndex(k pulumi.StringInput) LoginProfileOutput
func (LoginProfileMapOutput) ToLoginProfileMapOutput ¶ added in v2.35.1
func (o LoginProfileMapOutput) ToLoginProfileMapOutput() LoginProfileMapOutput
func (LoginProfileMapOutput) ToLoginProfileMapOutputWithContext ¶ added in v2.35.1
func (o LoginProfileMapOutput) ToLoginProfileMapOutputWithContext(ctx context.Context) LoginProfileMapOutput
type LoginProfileOutput ¶ added in v2.25.1
type LoginProfileOutput struct {
*pulumi.OutputState
}
func (LoginProfileOutput) ElementType ¶ added in v2.25.1
func (LoginProfileOutput) ElementType() reflect.Type
func (LoginProfileOutput) ToLoginProfileOutput ¶ added in v2.25.1
func (o LoginProfileOutput) ToLoginProfileOutput() LoginProfileOutput
func (LoginProfileOutput) ToLoginProfileOutputWithContext ¶ added in v2.25.1
func (o LoginProfileOutput) ToLoginProfileOutputWithContext(ctx context.Context) LoginProfileOutput
func (LoginProfileOutput) ToLoginProfilePtrOutput ¶ added in v2.35.1
func (o LoginProfileOutput) ToLoginProfilePtrOutput() LoginProfilePtrOutput
func (LoginProfileOutput) ToLoginProfilePtrOutputWithContext ¶ added in v2.35.1
func (o LoginProfileOutput) ToLoginProfilePtrOutputWithContext(ctx context.Context) LoginProfilePtrOutput
type LoginProfilePtrInput ¶ added in v2.35.1
type LoginProfilePtrInput interface { pulumi.Input ToLoginProfilePtrOutput() LoginProfilePtrOutput ToLoginProfilePtrOutputWithContext(ctx context.Context) LoginProfilePtrOutput }
type LoginProfilePtrOutput ¶ added in v2.35.1
type LoginProfilePtrOutput struct {
*pulumi.OutputState
}
func (LoginProfilePtrOutput) ElementType ¶ added in v2.35.1
func (LoginProfilePtrOutput) ElementType() reflect.Type
func (LoginProfilePtrOutput) ToLoginProfilePtrOutput ¶ added in v2.35.1
func (o LoginProfilePtrOutput) ToLoginProfilePtrOutput() LoginProfilePtrOutput
func (LoginProfilePtrOutput) ToLoginProfilePtrOutputWithContext ¶ added in v2.35.1
func (o LoginProfilePtrOutput) ToLoginProfilePtrOutputWithContext(ctx context.Context) LoginProfilePtrOutput
type LoginProfileState ¶
type LoginProfileState struct { // This parameter indicates whether the MFA needs to be bind when the user first logs in. Default value is `false`. MfaBindRequired pulumi.BoolPtrInput // Password of the RAM user. Password pulumi.StringPtrInput // This parameter indicates whether the password needs to be reset when the user first logs in. Default value is `false`. PasswordResetRequired pulumi.BoolPtrInput // Name of the RAM user. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen. UserName pulumi.StringPtrInput }
func (LoginProfileState) ElementType ¶
func (LoginProfileState) ElementType() reflect.Type
type LookupAccountAliasArgs ¶
type LookupAccountAliasArgs struct {
OutputFile *string `pulumi:"outputFile"`
}
A collection of arguments for invoking getAccountAlias.
type LookupAccountAliasResult ¶
type LookupAccountAliasResult struct { AccountAlias string `pulumi:"accountAlias"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` OutputFile *string `pulumi:"outputFile"` }
A collection of values returned by getAccountAlias.
func LookupAccountAlias ¶
func LookupAccountAlias(ctx *pulumi.Context, args *LookupAccountAliasArgs, opts ...pulumi.InvokeOption) (*LookupAccountAliasResult, error)
type Policy ¶
type Policy struct { pulumi.CustomResourceState // The policy attachment count. AttachmentCount pulumi.IntOutput `pulumi:"attachmentCount"` // The default version of policy. DefaultVersion pulumi.StringOutput `pulumi:"defaultVersion"` // Description of the RAM policy. This name can have a string of 1 to 1024 characters. Description pulumi.StringPtrOutput `pulumi:"description"` // It has been deprecated from provider version 1.114.0 and `policyDocument` instead. // // Deprecated: Field 'document' has been deprecated from provider version 1.114.0. New field 'policy_document' instead. Document pulumi.StringOutput `pulumi:"document"` // This parameter is used for resource destroy. Default value is `false`. Force pulumi.BoolPtrOutput `pulumi:"force"` // It has been deprecated from provider version 1.114.0 and `policyName` instead. // // Deprecated: Field 'name' has been deprecated from provider version 1.114.0. New field 'policy_name' instead. Name pulumi.StringOutput `pulumi:"name"` // Document of the RAM policy. It is required when the `statement` is not specified. PolicyDocument pulumi.StringOutput `pulumi:"policyDocument"` // Name of the RAM policy. This name can have a string of 1 to 128 characters, must contain only alphanumeric characters or hyphen "-", and must not begin with a hyphen. PolicyName pulumi.StringOutput `pulumi:"policyName"` // The rotation strategy of the policy. You can use this parameter to delete an early policy version. Valid Values: `None`, `DeleteOldestNonDefaultVersionWhenLimitExceeded`. Default to `None`. RotateStrategy pulumi.StringPtrOutput `pulumi:"rotateStrategy"` // (It has been deprecated from version 1.49.0, and use field 'document' to replace.) Statements of the RAM policy document. It is required when the `document` is not specified. // // Deprecated: Field 'statement' has been deprecated from version 1.49.0, and use field 'document' to replace. Statements PolicyStatementArrayOutput `pulumi:"statements"` // The policy type. Type pulumi.StringOutput `pulumi:"type"` // (It has been deprecated from version 1.49.0, and use field 'document' to replace.) Version of the RAM policy document. Valid value is `1`. Default value is `1`. // // Deprecated: Field 'version' has been deprecated from version 1.49.0, and use field 'document' to replace. Version pulumi.StringPtrOutput `pulumi:"version"` // The ID of default version policy. VersionId pulumi.StringOutput `pulumi:"versionId"` }
## Import
RAM policy can be imported using the id or name, e.g.
```sh
$ pulumi import alicloud:ram/policy:Policy example my-policy
```
func GetPolicy ¶
func GetPolicy(ctx *pulumi.Context, name string, id pulumi.IDInput, state *PolicyState, opts ...pulumi.ResourceOption) (*Policy, error)
GetPolicy gets an existing Policy resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewPolicy ¶
func NewPolicy(ctx *pulumi.Context, name string, args *PolicyArgs, opts ...pulumi.ResourceOption) (*Policy, error)
NewPolicy registers a new resource with the given unique name, arguments, and options.
func (*Policy) ElementType ¶ added in v2.25.1
func (*Policy) ToPolicyOutput ¶ added in v2.25.1
func (i *Policy) ToPolicyOutput() PolicyOutput
func (*Policy) ToPolicyOutputWithContext ¶ added in v2.25.1
func (i *Policy) ToPolicyOutputWithContext(ctx context.Context) PolicyOutput
func (*Policy) ToPolicyPtrOutput ¶ added in v2.35.1
func (i *Policy) ToPolicyPtrOutput() PolicyPtrOutput
func (*Policy) ToPolicyPtrOutputWithContext ¶ added in v2.35.1
func (i *Policy) ToPolicyPtrOutputWithContext(ctx context.Context) PolicyPtrOutput
type PolicyArgs ¶
type PolicyArgs struct { // Description of the RAM policy. This name can have a string of 1 to 1024 characters. Description pulumi.StringPtrInput // It has been deprecated from provider version 1.114.0 and `policyDocument` instead. // // Deprecated: Field 'document' has been deprecated from provider version 1.114.0. New field 'policy_document' instead. Document pulumi.StringPtrInput // This parameter is used for resource destroy. Default value is `false`. Force pulumi.BoolPtrInput // It has been deprecated from provider version 1.114.0 and `policyName` instead. // // Deprecated: Field 'name' has been deprecated from provider version 1.114.0. New field 'policy_name' instead. Name pulumi.StringPtrInput // Document of the RAM policy. It is required when the `statement` is not specified. PolicyDocument pulumi.StringPtrInput // Name of the RAM policy. This name can have a string of 1 to 128 characters, must contain only alphanumeric characters or hyphen "-", and must not begin with a hyphen. PolicyName pulumi.StringPtrInput // The rotation strategy of the policy. You can use this parameter to delete an early policy version. Valid Values: `None`, `DeleteOldestNonDefaultVersionWhenLimitExceeded`. Default to `None`. RotateStrategy pulumi.StringPtrInput // (It has been deprecated from version 1.49.0, and use field 'document' to replace.) Statements of the RAM policy document. It is required when the `document` is not specified. // // Deprecated: Field 'statement' has been deprecated from version 1.49.0, and use field 'document' to replace. Statements PolicyStatementArrayInput // (It has been deprecated from version 1.49.0, and use field 'document' to replace.) Version of the RAM policy document. Valid value is `1`. Default value is `1`. // // Deprecated: Field 'version' has been deprecated from version 1.49.0, and use field 'document' to replace. Version pulumi.StringPtrInput }
The set of arguments for constructing a Policy resource.
func (PolicyArgs) ElementType ¶
func (PolicyArgs) ElementType() reflect.Type
type PolicyArray ¶ added in v2.35.1
type PolicyArray []PolicyInput
func (PolicyArray) ElementType ¶ added in v2.35.1
func (PolicyArray) ElementType() reflect.Type
func (PolicyArray) ToPolicyArrayOutput ¶ added in v2.35.1
func (i PolicyArray) ToPolicyArrayOutput() PolicyArrayOutput
func (PolicyArray) ToPolicyArrayOutputWithContext ¶ added in v2.35.1
func (i PolicyArray) ToPolicyArrayOutputWithContext(ctx context.Context) PolicyArrayOutput
type PolicyArrayInput ¶ added in v2.35.1
type PolicyArrayInput interface { pulumi.Input ToPolicyArrayOutput() PolicyArrayOutput ToPolicyArrayOutputWithContext(context.Context) PolicyArrayOutput }
PolicyArrayInput is an input type that accepts PolicyArray and PolicyArrayOutput values. You can construct a concrete instance of `PolicyArrayInput` via:
PolicyArray{ PolicyArgs{...} }
type PolicyArrayOutput ¶ added in v2.35.1
type PolicyArrayOutput struct{ *pulumi.OutputState }
func (PolicyArrayOutput) ElementType ¶ added in v2.35.1
func (PolicyArrayOutput) ElementType() reflect.Type
func (PolicyArrayOutput) Index ¶ added in v2.35.1
func (o PolicyArrayOutput) Index(i pulumi.IntInput) PolicyOutput
func (PolicyArrayOutput) ToPolicyArrayOutput ¶ added in v2.35.1
func (o PolicyArrayOutput) ToPolicyArrayOutput() PolicyArrayOutput
func (PolicyArrayOutput) ToPolicyArrayOutputWithContext ¶ added in v2.35.1
func (o PolicyArrayOutput) ToPolicyArrayOutputWithContext(ctx context.Context) PolicyArrayOutput
type PolicyInput ¶ added in v2.25.1
type PolicyInput interface { pulumi.Input ToPolicyOutput() PolicyOutput ToPolicyOutputWithContext(ctx context.Context) PolicyOutput }
type PolicyMap ¶ added in v2.35.1
type PolicyMap map[string]PolicyInput
func (PolicyMap) ElementType ¶ added in v2.35.1
func (PolicyMap) ToPolicyMapOutput ¶ added in v2.35.1
func (i PolicyMap) ToPolicyMapOutput() PolicyMapOutput
func (PolicyMap) ToPolicyMapOutputWithContext ¶ added in v2.35.1
func (i PolicyMap) ToPolicyMapOutputWithContext(ctx context.Context) PolicyMapOutput
type PolicyMapInput ¶ added in v2.35.1
type PolicyMapInput interface { pulumi.Input ToPolicyMapOutput() PolicyMapOutput ToPolicyMapOutputWithContext(context.Context) PolicyMapOutput }
PolicyMapInput is an input type that accepts PolicyMap and PolicyMapOutput values. You can construct a concrete instance of `PolicyMapInput` via:
PolicyMap{ "key": PolicyArgs{...} }
type PolicyMapOutput ¶ added in v2.35.1
type PolicyMapOutput struct{ *pulumi.OutputState }
func (PolicyMapOutput) ElementType ¶ added in v2.35.1
func (PolicyMapOutput) ElementType() reflect.Type
func (PolicyMapOutput) MapIndex ¶ added in v2.35.1
func (o PolicyMapOutput) MapIndex(k pulumi.StringInput) PolicyOutput
func (PolicyMapOutput) ToPolicyMapOutput ¶ added in v2.35.1
func (o PolicyMapOutput) ToPolicyMapOutput() PolicyMapOutput
func (PolicyMapOutput) ToPolicyMapOutputWithContext ¶ added in v2.35.1
func (o PolicyMapOutput) ToPolicyMapOutputWithContext(ctx context.Context) PolicyMapOutput
type PolicyOutput ¶ added in v2.25.1
type PolicyOutput struct {
*pulumi.OutputState
}
func (PolicyOutput) ElementType ¶ added in v2.25.1
func (PolicyOutput) ElementType() reflect.Type
func (PolicyOutput) ToPolicyOutput ¶ added in v2.25.1
func (o PolicyOutput) ToPolicyOutput() PolicyOutput
func (PolicyOutput) ToPolicyOutputWithContext ¶ added in v2.25.1
func (o PolicyOutput) ToPolicyOutputWithContext(ctx context.Context) PolicyOutput
func (PolicyOutput) ToPolicyPtrOutput ¶ added in v2.35.1
func (o PolicyOutput) ToPolicyPtrOutput() PolicyPtrOutput
func (PolicyOutput) ToPolicyPtrOutputWithContext ¶ added in v2.35.1
func (o PolicyOutput) ToPolicyPtrOutputWithContext(ctx context.Context) PolicyPtrOutput
type PolicyPtrInput ¶ added in v2.35.1
type PolicyPtrInput interface { pulumi.Input ToPolicyPtrOutput() PolicyPtrOutput ToPolicyPtrOutputWithContext(ctx context.Context) PolicyPtrOutput }
type PolicyPtrOutput ¶ added in v2.35.1
type PolicyPtrOutput struct {
*pulumi.OutputState
}
func (PolicyPtrOutput) ElementType ¶ added in v2.35.1
func (PolicyPtrOutput) ElementType() reflect.Type
func (PolicyPtrOutput) ToPolicyPtrOutput ¶ added in v2.35.1
func (o PolicyPtrOutput) ToPolicyPtrOutput() PolicyPtrOutput
func (PolicyPtrOutput) ToPolicyPtrOutputWithContext ¶ added in v2.35.1
func (o PolicyPtrOutput) ToPolicyPtrOutputWithContext(ctx context.Context) PolicyPtrOutput
type PolicyState ¶
type PolicyState struct { // The policy attachment count. AttachmentCount pulumi.IntPtrInput // The default version of policy. DefaultVersion pulumi.StringPtrInput // Description of the RAM policy. This name can have a string of 1 to 1024 characters. Description pulumi.StringPtrInput // It has been deprecated from provider version 1.114.0 and `policyDocument` instead. // // Deprecated: Field 'document' has been deprecated from provider version 1.114.0. New field 'policy_document' instead. Document pulumi.StringPtrInput // This parameter is used for resource destroy. Default value is `false`. Force pulumi.BoolPtrInput // It has been deprecated from provider version 1.114.0 and `policyName` instead. // // Deprecated: Field 'name' has been deprecated from provider version 1.114.0. New field 'policy_name' instead. Name pulumi.StringPtrInput // Document of the RAM policy. It is required when the `statement` is not specified. PolicyDocument pulumi.StringPtrInput // Name of the RAM policy. This name can have a string of 1 to 128 characters, must contain only alphanumeric characters or hyphen "-", and must not begin with a hyphen. PolicyName pulumi.StringPtrInput // The rotation strategy of the policy. You can use this parameter to delete an early policy version. Valid Values: `None`, `DeleteOldestNonDefaultVersionWhenLimitExceeded`. Default to `None`. RotateStrategy pulumi.StringPtrInput // (It has been deprecated from version 1.49.0, and use field 'document' to replace.) Statements of the RAM policy document. It is required when the `document` is not specified. // // Deprecated: Field 'statement' has been deprecated from version 1.49.0, and use field 'document' to replace. Statements PolicyStatementArrayInput // The policy type. Type pulumi.StringPtrInput // (It has been deprecated from version 1.49.0, and use field 'document' to replace.) Version of the RAM policy document. Valid value is `1`. Default value is `1`. // // Deprecated: Field 'version' has been deprecated from version 1.49.0, and use field 'document' to replace. Version pulumi.StringPtrInput // The ID of default version policy. VersionId pulumi.StringPtrInput }
func (PolicyState) ElementType ¶
func (PolicyState) ElementType() reflect.Type
type PolicyStatement ¶
type PolicyStatement struct { // (It has been deprecated from version 1.49.0, and use field 'document' to replace.) List of operations for the `resource`. The format of each item in this list is `${service}:${action_name}`, such as `oss:ListBuckets` and `ecs:Describe*`. The `${service}` can be `ecs`, `oss`, `ots` and so on, the `${action_name}` refers to the name of an api interface which related to the `${service}`. Actions []string `pulumi:"actions"` // (It has been deprecated from version 1.49.0, and use field 'document' to replace.) This parameter indicates whether or not the `action` is allowed. Valid values are `Allow` and `Deny`. Effect string `pulumi:"effect"` // (It has been deprecated from version 1.49.0, and use field 'document' to replace.) List of specific objects which will be authorized. The format of each item in this list is `acs:${service}:${region}:${account_id}:${relative_id}`, such as `acs:ecs:*:*:instance/inst-002` and `acs:oss:*:1234567890000:mybucket`. The `${service}` can be `ecs`, `oss`, `ots` and so on, the `${region}` is the region info which can use `*` replace when it is not supplied, the `${account_id}` refers to someone's Alicloud account id or you can use `*` to replace, the `${relative_id}` is the resource description section which related to the `${service}`. Resources []string `pulumi:"resources"` }
type PolicyStatementArgs ¶
type PolicyStatementArgs struct { // (It has been deprecated from version 1.49.0, and use field 'document' to replace.) List of operations for the `resource`. The format of each item in this list is `${service}:${action_name}`, such as `oss:ListBuckets` and `ecs:Describe*`. The `${service}` can be `ecs`, `oss`, `ots` and so on, the `${action_name}` refers to the name of an api interface which related to the `${service}`. Actions pulumi.StringArrayInput `pulumi:"actions"` // (It has been deprecated from version 1.49.0, and use field 'document' to replace.) This parameter indicates whether or not the `action` is allowed. Valid values are `Allow` and `Deny`. Effect pulumi.StringInput `pulumi:"effect"` // (It has been deprecated from version 1.49.0, and use field 'document' to replace.) List of specific objects which will be authorized. The format of each item in this list is `acs:${service}:${region}:${account_id}:${relative_id}`, such as `acs:ecs:*:*:instance/inst-002` and `acs:oss:*:1234567890000:mybucket`. The `${service}` can be `ecs`, `oss`, `ots` and so on, the `${region}` is the region info which can use `*` replace when it is not supplied, the `${account_id}` refers to someone's Alicloud account id or you can use `*` to replace, the `${relative_id}` is the resource description section which related to the `${service}`. Resources pulumi.StringArrayInput `pulumi:"resources"` }
func (PolicyStatementArgs) ElementType ¶
func (PolicyStatementArgs) ElementType() reflect.Type
func (PolicyStatementArgs) ToPolicyStatementOutput ¶
func (i PolicyStatementArgs) ToPolicyStatementOutput() PolicyStatementOutput
func (PolicyStatementArgs) ToPolicyStatementOutputWithContext ¶
func (i PolicyStatementArgs) ToPolicyStatementOutputWithContext(ctx context.Context) PolicyStatementOutput
type PolicyStatementArray ¶
type PolicyStatementArray []PolicyStatementInput
func (PolicyStatementArray) ElementType ¶
func (PolicyStatementArray) ElementType() reflect.Type
func (PolicyStatementArray) ToPolicyStatementArrayOutput ¶
func (i PolicyStatementArray) ToPolicyStatementArrayOutput() PolicyStatementArrayOutput
func (PolicyStatementArray) ToPolicyStatementArrayOutputWithContext ¶
func (i PolicyStatementArray) ToPolicyStatementArrayOutputWithContext(ctx context.Context) PolicyStatementArrayOutput
type PolicyStatementArrayInput ¶
type PolicyStatementArrayInput interface { pulumi.Input ToPolicyStatementArrayOutput() PolicyStatementArrayOutput ToPolicyStatementArrayOutputWithContext(context.Context) PolicyStatementArrayOutput }
PolicyStatementArrayInput is an input type that accepts PolicyStatementArray and PolicyStatementArrayOutput values. You can construct a concrete instance of `PolicyStatementArrayInput` via:
PolicyStatementArray{ PolicyStatementArgs{...} }
type PolicyStatementArrayOutput ¶
type PolicyStatementArrayOutput struct{ *pulumi.OutputState }
func (PolicyStatementArrayOutput) ElementType ¶
func (PolicyStatementArrayOutput) ElementType() reflect.Type
func (PolicyStatementArrayOutput) Index ¶
func (o PolicyStatementArrayOutput) Index(i pulumi.IntInput) PolicyStatementOutput
func (PolicyStatementArrayOutput) ToPolicyStatementArrayOutput ¶
func (o PolicyStatementArrayOutput) ToPolicyStatementArrayOutput() PolicyStatementArrayOutput
func (PolicyStatementArrayOutput) ToPolicyStatementArrayOutputWithContext ¶
func (o PolicyStatementArrayOutput) ToPolicyStatementArrayOutputWithContext(ctx context.Context) PolicyStatementArrayOutput
type PolicyStatementInput ¶
type PolicyStatementInput interface { pulumi.Input ToPolicyStatementOutput() PolicyStatementOutput ToPolicyStatementOutputWithContext(context.Context) PolicyStatementOutput }
PolicyStatementInput is an input type that accepts PolicyStatementArgs and PolicyStatementOutput values. You can construct a concrete instance of `PolicyStatementInput` via:
PolicyStatementArgs{...}
type PolicyStatementOutput ¶
type PolicyStatementOutput struct{ *pulumi.OutputState }
func (PolicyStatementOutput) Actions ¶
func (o PolicyStatementOutput) Actions() pulumi.StringArrayOutput
(It has been deprecated from version 1.49.0, and use field 'document' to replace.) List of operations for the `resource`. The format of each item in this list is `${service}:${action_name}`, such as `oss:ListBuckets` and `ecs:Describe*`. The `${service}` can be `ecs`, `oss`, `ots` and so on, the `${action_name}` refers to the name of an api interface which related to the `${service}`.
func (PolicyStatementOutput) Effect ¶
func (o PolicyStatementOutput) Effect() pulumi.StringOutput
(It has been deprecated from version 1.49.0, and use field 'document' to replace.) This parameter indicates whether or not the `action` is allowed. Valid values are `Allow` and `Deny`.
func (PolicyStatementOutput) ElementType ¶
func (PolicyStatementOutput) ElementType() reflect.Type
func (PolicyStatementOutput) Resources ¶
func (o PolicyStatementOutput) Resources() pulumi.StringArrayOutput
(It has been deprecated from version 1.49.0, and use field 'document' to replace.) List of specific objects which will be authorized. The format of each item in this list is `acs:${service}:${region}:${account_id}:${relative_id}`, such as `acs:ecs:*:*:instance/inst-002` and `acs:oss:*:1234567890000:mybucket`. The `${service}` can be `ecs`, `oss`, `ots` and so on, the `${region}` is the region info which can use `*` replace when it is not supplied, the `${account_id}` refers to someone's Alicloud account id or you can use `*` to replace, the `${relative_id}` is the resource description section which related to the `${service}`.
func (PolicyStatementOutput) ToPolicyStatementOutput ¶
func (o PolicyStatementOutput) ToPolicyStatementOutput() PolicyStatementOutput
func (PolicyStatementOutput) ToPolicyStatementOutputWithContext ¶
func (o PolicyStatementOutput) ToPolicyStatementOutputWithContext(ctx context.Context) PolicyStatementOutput
type Role ¶
type Role struct { pulumi.CustomResourceState // The role arn. Arn pulumi.StringOutput `pulumi:"arn"` // Description of the RAM role. This name can have a string of 1 to 1024 characters. Description pulumi.StringPtrOutput `pulumi:"description"` // Authorization strategy of the RAM role. It is required when the `services` and `ramUsers` are not specified. Document pulumi.StringOutput `pulumi:"document"` // This parameter is used for resource destroy. Default value is `false`. Force pulumi.BoolPtrOutput `pulumi:"force"` // The maximum session duration of the RAM role. Valid values: 3600 to 43200. Unit: seconds. Default value: 3600. The default value is used if the parameter is not specified. MaxSessionDuration pulumi.IntPtrOutput `pulumi:"maxSessionDuration"` // Name of the RAM role. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-", "_", and must not begin with a hyphen. Name pulumi.StringOutput `pulumi:"name"` // (It has been deprecated from version 1.49.0, and use field 'document' to replace.) List of ram users who can assume the RAM role. The format of each item in this list is `acs:ram::${account_id}:root` or `acs:ram::${account_id}:user/${user_name}`, such as `acs:ram::1234567890000:root` and `acs:ram::1234567890001:user/Mary`. The `${user_name}` is the name of a RAM user which must exists in the Alicloud account indicated by the `${account_id}`. // // Deprecated: Field 'ram_users' has been deprecated from version 1.49.0, and use field 'document' to replace. RamUsers pulumi.StringArrayOutput `pulumi:"ramUsers"` // The role ID. RoleId pulumi.StringOutput `pulumi:"roleId"` // (It has been deprecated from version 1.49.0, and use field 'document' to replace.) List of services which can assume the RAM role. The format of each item in this list is `${service}.aliyuncs.com` or `${account_id}@${service}.aliyuncs.com`, such as `ecs.aliyuncs.com` and `1234567890000@ots.aliyuncs.com`. The `${service}` can be `ecs`, `log`, `apigateway` and so on, the `${account_id}` refers to someone's Alicloud account id. // // Deprecated: Field 'services' has been deprecated from version 1.49.0, and use field 'document' to replace. Services pulumi.StringArrayOutput `pulumi:"services"` // (It has been deprecated from version 1.49.0, and use field 'document' to replace.) Version of the RAM role policy document. Valid value is `1`. Default value is `1`. // // Deprecated: Field 'version' has been deprecated from version 1.49.0, and use field 'document' to replace. Version pulumi.StringPtrOutput `pulumi:"version"` }
## Import
RAM role can be imported using the id or name, e.g.
```sh
$ pulumi import alicloud:ram/role:Role example my-role
```
func GetRole ¶
func GetRole(ctx *pulumi.Context, name string, id pulumi.IDInput, state *RoleState, opts ...pulumi.ResourceOption) (*Role, error)
GetRole gets an existing Role resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewRole ¶
func NewRole(ctx *pulumi.Context, name string, args *RoleArgs, opts ...pulumi.ResourceOption) (*Role, error)
NewRole registers a new resource with the given unique name, arguments, and options.
func (*Role) ElementType ¶ added in v2.25.1
func (*Role) ToRoleOutput ¶ added in v2.25.1
func (i *Role) ToRoleOutput() RoleOutput
func (*Role) ToRoleOutputWithContext ¶ added in v2.25.1
func (i *Role) ToRoleOutputWithContext(ctx context.Context) RoleOutput
func (*Role) ToRolePtrOutput ¶ added in v2.35.1
func (i *Role) ToRolePtrOutput() RolePtrOutput
func (*Role) ToRolePtrOutputWithContext ¶ added in v2.35.1
func (i *Role) ToRolePtrOutputWithContext(ctx context.Context) RolePtrOutput
type RoleArgs ¶
type RoleArgs struct { // Description of the RAM role. This name can have a string of 1 to 1024 characters. Description pulumi.StringPtrInput // Authorization strategy of the RAM role. It is required when the `services` and `ramUsers` are not specified. Document pulumi.StringPtrInput // This parameter is used for resource destroy. Default value is `false`. Force pulumi.BoolPtrInput // The maximum session duration of the RAM role. Valid values: 3600 to 43200. Unit: seconds. Default value: 3600. The default value is used if the parameter is not specified. MaxSessionDuration pulumi.IntPtrInput // Name of the RAM role. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-", "_", and must not begin with a hyphen. Name pulumi.StringPtrInput // (It has been deprecated from version 1.49.0, and use field 'document' to replace.) List of ram users who can assume the RAM role. The format of each item in this list is `acs:ram::${account_id}:root` or `acs:ram::${account_id}:user/${user_name}`, such as `acs:ram::1234567890000:root` and `acs:ram::1234567890001:user/Mary`. The `${user_name}` is the name of a RAM user which must exists in the Alicloud account indicated by the `${account_id}`. // // Deprecated: Field 'ram_users' has been deprecated from version 1.49.0, and use field 'document' to replace. RamUsers pulumi.StringArrayInput // (It has been deprecated from version 1.49.0, and use field 'document' to replace.) List of services which can assume the RAM role. The format of each item in this list is `${service}.aliyuncs.com` or `${account_id}@${service}.aliyuncs.com`, such as `ecs.aliyuncs.com` and `1234567890000@ots.aliyuncs.com`. The `${service}` can be `ecs`, `log`, `apigateway` and so on, the `${account_id}` refers to someone's Alicloud account id. // // Deprecated: Field 'services' has been deprecated from version 1.49.0, and use field 'document' to replace. Services pulumi.StringArrayInput // (It has been deprecated from version 1.49.0, and use field 'document' to replace.) Version of the RAM role policy document. Valid value is `1`. Default value is `1`. // // Deprecated: Field 'version' has been deprecated from version 1.49.0, and use field 'document' to replace. Version pulumi.StringPtrInput }
The set of arguments for constructing a Role resource.
func (RoleArgs) ElementType ¶
type RoleArray ¶ added in v2.35.1
type RoleArray []RoleInput
func (RoleArray) ElementType ¶ added in v2.35.1
func (RoleArray) ToRoleArrayOutput ¶ added in v2.35.1
func (i RoleArray) ToRoleArrayOutput() RoleArrayOutput
func (RoleArray) ToRoleArrayOutputWithContext ¶ added in v2.35.1
func (i RoleArray) ToRoleArrayOutputWithContext(ctx context.Context) RoleArrayOutput
type RoleArrayInput ¶ added in v2.35.1
type RoleArrayInput interface { pulumi.Input ToRoleArrayOutput() RoleArrayOutput ToRoleArrayOutputWithContext(context.Context) RoleArrayOutput }
RoleArrayInput is an input type that accepts RoleArray and RoleArrayOutput values. You can construct a concrete instance of `RoleArrayInput` via:
RoleArray{ RoleArgs{...} }
type RoleArrayOutput ¶ added in v2.35.1
type RoleArrayOutput struct{ *pulumi.OutputState }
func (RoleArrayOutput) ElementType ¶ added in v2.35.1
func (RoleArrayOutput) ElementType() reflect.Type
func (RoleArrayOutput) Index ¶ added in v2.35.1
func (o RoleArrayOutput) Index(i pulumi.IntInput) RoleOutput
func (RoleArrayOutput) ToRoleArrayOutput ¶ added in v2.35.1
func (o RoleArrayOutput) ToRoleArrayOutput() RoleArrayOutput
func (RoleArrayOutput) ToRoleArrayOutputWithContext ¶ added in v2.35.1
func (o RoleArrayOutput) ToRoleArrayOutputWithContext(ctx context.Context) RoleArrayOutput
type RoleAttachment ¶
type RoleAttachment struct { pulumi.CustomResourceState // The list of ECS instance's IDs. InstanceIds pulumi.StringArrayOutput `pulumi:"instanceIds"` // The name of role used to bind. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-", "_", and must not begin with a hyphen. RoleName pulumi.StringOutput `pulumi:"roleName"` }
Provides a RAM role attachment resource to bind role for several ECS instances.
func GetRoleAttachment ¶
func GetRoleAttachment(ctx *pulumi.Context, name string, id pulumi.IDInput, state *RoleAttachmentState, opts ...pulumi.ResourceOption) (*RoleAttachment, error)
GetRoleAttachment gets an existing RoleAttachment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewRoleAttachment ¶
func NewRoleAttachment(ctx *pulumi.Context, name string, args *RoleAttachmentArgs, opts ...pulumi.ResourceOption) (*RoleAttachment, error)
NewRoleAttachment registers a new resource with the given unique name, arguments, and options.
func (*RoleAttachment) ElementType ¶ added in v2.25.1
func (*RoleAttachment) ElementType() reflect.Type
func (*RoleAttachment) ToRoleAttachmentOutput ¶ added in v2.25.1
func (i *RoleAttachment) ToRoleAttachmentOutput() RoleAttachmentOutput
func (*RoleAttachment) ToRoleAttachmentOutputWithContext ¶ added in v2.25.1
func (i *RoleAttachment) ToRoleAttachmentOutputWithContext(ctx context.Context) RoleAttachmentOutput
func (*RoleAttachment) ToRoleAttachmentPtrOutput ¶ added in v2.35.1
func (i *RoleAttachment) ToRoleAttachmentPtrOutput() RoleAttachmentPtrOutput
func (*RoleAttachment) ToRoleAttachmentPtrOutputWithContext ¶ added in v2.35.1
func (i *RoleAttachment) ToRoleAttachmentPtrOutputWithContext(ctx context.Context) RoleAttachmentPtrOutput
type RoleAttachmentArgs ¶
type RoleAttachmentArgs struct { // The list of ECS instance's IDs. InstanceIds pulumi.StringArrayInput // The name of role used to bind. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-", "_", and must not begin with a hyphen. RoleName pulumi.StringInput }
The set of arguments for constructing a RoleAttachment resource.
func (RoleAttachmentArgs) ElementType ¶
func (RoleAttachmentArgs) ElementType() reflect.Type
type RoleAttachmentArray ¶ added in v2.35.1
type RoleAttachmentArray []RoleAttachmentInput
func (RoleAttachmentArray) ElementType ¶ added in v2.35.1
func (RoleAttachmentArray) ElementType() reflect.Type
func (RoleAttachmentArray) ToRoleAttachmentArrayOutput ¶ added in v2.35.1
func (i RoleAttachmentArray) ToRoleAttachmentArrayOutput() RoleAttachmentArrayOutput
func (RoleAttachmentArray) ToRoleAttachmentArrayOutputWithContext ¶ added in v2.35.1
func (i RoleAttachmentArray) ToRoleAttachmentArrayOutputWithContext(ctx context.Context) RoleAttachmentArrayOutput
type RoleAttachmentArrayInput ¶ added in v2.35.1
type RoleAttachmentArrayInput interface { pulumi.Input ToRoleAttachmentArrayOutput() RoleAttachmentArrayOutput ToRoleAttachmentArrayOutputWithContext(context.Context) RoleAttachmentArrayOutput }
RoleAttachmentArrayInput is an input type that accepts RoleAttachmentArray and RoleAttachmentArrayOutput values. You can construct a concrete instance of `RoleAttachmentArrayInput` via:
RoleAttachmentArray{ RoleAttachmentArgs{...} }
type RoleAttachmentArrayOutput ¶ added in v2.35.1
type RoleAttachmentArrayOutput struct{ *pulumi.OutputState }
func (RoleAttachmentArrayOutput) ElementType ¶ added in v2.35.1
func (RoleAttachmentArrayOutput) ElementType() reflect.Type
func (RoleAttachmentArrayOutput) Index ¶ added in v2.35.1
func (o RoleAttachmentArrayOutput) Index(i pulumi.IntInput) RoleAttachmentOutput
func (RoleAttachmentArrayOutput) ToRoleAttachmentArrayOutput ¶ added in v2.35.1
func (o RoleAttachmentArrayOutput) ToRoleAttachmentArrayOutput() RoleAttachmentArrayOutput
func (RoleAttachmentArrayOutput) ToRoleAttachmentArrayOutputWithContext ¶ added in v2.35.1
func (o RoleAttachmentArrayOutput) ToRoleAttachmentArrayOutputWithContext(ctx context.Context) RoleAttachmentArrayOutput
type RoleAttachmentInput ¶ added in v2.25.1
type RoleAttachmentInput interface { pulumi.Input ToRoleAttachmentOutput() RoleAttachmentOutput ToRoleAttachmentOutputWithContext(ctx context.Context) RoleAttachmentOutput }
type RoleAttachmentMap ¶ added in v2.35.1
type RoleAttachmentMap map[string]RoleAttachmentInput
func (RoleAttachmentMap) ElementType ¶ added in v2.35.1
func (RoleAttachmentMap) ElementType() reflect.Type
func (RoleAttachmentMap) ToRoleAttachmentMapOutput ¶ added in v2.35.1
func (i RoleAttachmentMap) ToRoleAttachmentMapOutput() RoleAttachmentMapOutput
func (RoleAttachmentMap) ToRoleAttachmentMapOutputWithContext ¶ added in v2.35.1
func (i RoleAttachmentMap) ToRoleAttachmentMapOutputWithContext(ctx context.Context) RoleAttachmentMapOutput
type RoleAttachmentMapInput ¶ added in v2.35.1
type RoleAttachmentMapInput interface { pulumi.Input ToRoleAttachmentMapOutput() RoleAttachmentMapOutput ToRoleAttachmentMapOutputWithContext(context.Context) RoleAttachmentMapOutput }
RoleAttachmentMapInput is an input type that accepts RoleAttachmentMap and RoleAttachmentMapOutput values. You can construct a concrete instance of `RoleAttachmentMapInput` via:
RoleAttachmentMap{ "key": RoleAttachmentArgs{...} }
type RoleAttachmentMapOutput ¶ added in v2.35.1
type RoleAttachmentMapOutput struct{ *pulumi.OutputState }
func (RoleAttachmentMapOutput) ElementType ¶ added in v2.35.1
func (RoleAttachmentMapOutput) ElementType() reflect.Type
func (RoleAttachmentMapOutput) MapIndex ¶ added in v2.35.1
func (o RoleAttachmentMapOutput) MapIndex(k pulumi.StringInput) RoleAttachmentOutput
func (RoleAttachmentMapOutput) ToRoleAttachmentMapOutput ¶ added in v2.35.1
func (o RoleAttachmentMapOutput) ToRoleAttachmentMapOutput() RoleAttachmentMapOutput
func (RoleAttachmentMapOutput) ToRoleAttachmentMapOutputWithContext ¶ added in v2.35.1
func (o RoleAttachmentMapOutput) ToRoleAttachmentMapOutputWithContext(ctx context.Context) RoleAttachmentMapOutput
type RoleAttachmentOutput ¶ added in v2.25.1
type RoleAttachmentOutput struct {
*pulumi.OutputState
}
func (RoleAttachmentOutput) ElementType ¶ added in v2.25.1
func (RoleAttachmentOutput) ElementType() reflect.Type
func (RoleAttachmentOutput) ToRoleAttachmentOutput ¶ added in v2.25.1
func (o RoleAttachmentOutput) ToRoleAttachmentOutput() RoleAttachmentOutput
func (RoleAttachmentOutput) ToRoleAttachmentOutputWithContext ¶ added in v2.25.1
func (o RoleAttachmentOutput) ToRoleAttachmentOutputWithContext(ctx context.Context) RoleAttachmentOutput
func (RoleAttachmentOutput) ToRoleAttachmentPtrOutput ¶ added in v2.35.1
func (o RoleAttachmentOutput) ToRoleAttachmentPtrOutput() RoleAttachmentPtrOutput
func (RoleAttachmentOutput) ToRoleAttachmentPtrOutputWithContext ¶ added in v2.35.1
func (o RoleAttachmentOutput) ToRoleAttachmentPtrOutputWithContext(ctx context.Context) RoleAttachmentPtrOutput
type RoleAttachmentPtrInput ¶ added in v2.35.1
type RoleAttachmentPtrInput interface { pulumi.Input ToRoleAttachmentPtrOutput() RoleAttachmentPtrOutput ToRoleAttachmentPtrOutputWithContext(ctx context.Context) RoleAttachmentPtrOutput }
type RoleAttachmentPtrOutput ¶ added in v2.35.1
type RoleAttachmentPtrOutput struct {
*pulumi.OutputState
}
func (RoleAttachmentPtrOutput) ElementType ¶ added in v2.35.1
func (RoleAttachmentPtrOutput) ElementType() reflect.Type
func (RoleAttachmentPtrOutput) ToRoleAttachmentPtrOutput ¶ added in v2.35.1
func (o RoleAttachmentPtrOutput) ToRoleAttachmentPtrOutput() RoleAttachmentPtrOutput
func (RoleAttachmentPtrOutput) ToRoleAttachmentPtrOutputWithContext ¶ added in v2.35.1
func (o RoleAttachmentPtrOutput) ToRoleAttachmentPtrOutputWithContext(ctx context.Context) RoleAttachmentPtrOutput
type RoleAttachmentState ¶
type RoleAttachmentState struct { // The list of ECS instance's IDs. InstanceIds pulumi.StringArrayInput // The name of role used to bind. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-", "_", and must not begin with a hyphen. RoleName pulumi.StringPtrInput }
func (RoleAttachmentState) ElementType ¶
func (RoleAttachmentState) ElementType() reflect.Type
type RoleInput ¶ added in v2.25.1
type RoleInput interface { pulumi.Input ToRoleOutput() RoleOutput ToRoleOutputWithContext(ctx context.Context) RoleOutput }
type RoleMap ¶ added in v2.35.1
func (RoleMap) ElementType ¶ added in v2.35.1
func (RoleMap) ToRoleMapOutput ¶ added in v2.35.1
func (i RoleMap) ToRoleMapOutput() RoleMapOutput
func (RoleMap) ToRoleMapOutputWithContext ¶ added in v2.35.1
func (i RoleMap) ToRoleMapOutputWithContext(ctx context.Context) RoleMapOutput
type RoleMapInput ¶ added in v2.35.1
type RoleMapInput interface { pulumi.Input ToRoleMapOutput() RoleMapOutput ToRoleMapOutputWithContext(context.Context) RoleMapOutput }
RoleMapInput is an input type that accepts RoleMap and RoleMapOutput values. You can construct a concrete instance of `RoleMapInput` via:
RoleMap{ "key": RoleArgs{...} }
type RoleMapOutput ¶ added in v2.35.1
type RoleMapOutput struct{ *pulumi.OutputState }
func (RoleMapOutput) ElementType ¶ added in v2.35.1
func (RoleMapOutput) ElementType() reflect.Type
func (RoleMapOutput) MapIndex ¶ added in v2.35.1
func (o RoleMapOutput) MapIndex(k pulumi.StringInput) RoleOutput
func (RoleMapOutput) ToRoleMapOutput ¶ added in v2.35.1
func (o RoleMapOutput) ToRoleMapOutput() RoleMapOutput
func (RoleMapOutput) ToRoleMapOutputWithContext ¶ added in v2.35.1
func (o RoleMapOutput) ToRoleMapOutputWithContext(ctx context.Context) RoleMapOutput
type RoleOutput ¶ added in v2.25.1
type RoleOutput struct {
*pulumi.OutputState
}
func (RoleOutput) ElementType ¶ added in v2.25.1
func (RoleOutput) ElementType() reflect.Type
func (RoleOutput) ToRoleOutput ¶ added in v2.25.1
func (o RoleOutput) ToRoleOutput() RoleOutput
func (RoleOutput) ToRoleOutputWithContext ¶ added in v2.25.1
func (o RoleOutput) ToRoleOutputWithContext(ctx context.Context) RoleOutput
func (RoleOutput) ToRolePtrOutput ¶ added in v2.35.1
func (o RoleOutput) ToRolePtrOutput() RolePtrOutput
func (RoleOutput) ToRolePtrOutputWithContext ¶ added in v2.35.1
func (o RoleOutput) ToRolePtrOutputWithContext(ctx context.Context) RolePtrOutput
type RolePolicyAttachment ¶
type RolePolicyAttachment struct { pulumi.CustomResourceState // Name of the RAM policy. This name can have a string of 1 to 128 characters, must contain only alphanumeric characters or hyphen "-", and must not begin with a hyphen. PolicyName pulumi.StringOutput `pulumi:"policyName"` // Type of the RAM policy. It must be `Custom` or `System`. PolicyType pulumi.StringOutput `pulumi:"policyType"` // Name of the RAM Role. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-", "_", and must not begin with a hyphen. RoleName pulumi.StringOutput `pulumi:"roleName"` }
Provides a RAM Role attachment resource.
## Example Usage
```go package main
import (
"fmt" "github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/ram" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { role, err := ram.NewRole(ctx, "role", &ram.RoleArgs{ Document: pulumi.String(fmt.Sprintf("%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v", " {\n", " \"Statement\": [\n", " {\n", " \"Action\": \"sts:AssumeRole\",\n", " \"Effect\": \"Allow\",\n", " \"Principal\": {\n", " \"Service\": [\n", " \"apigateway.aliyuncs.com\", \n", " \"ecs.aliyuncs.com\"\n", " ]\n", " }\n", " }\n", " ],\n", " \"Version\": \"1\"\n", " }\n")), Description: pulumi.String("this is a role test."), Force: pulumi.Bool(true), }) if err != nil { return err } policy, err := ram.NewPolicy(ctx, "policy", &ram.PolicyArgs{ Document: pulumi.String(fmt.Sprintf("%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v", " {\n", " \"Statement\": [\n", " {\n", " \"Action\": [\n", " \"oss:ListObjects\",\n", " \"oss:GetObject\"\n", " ],\n", " \"Effect\": \"Allow\",\n", " \"Resource\": [\n", " \"acs:oss:*:*:mybucket\",\n", " \"acs:oss:*:*:mybucket/*\"\n", " ]\n", " }\n", " ],\n", " \"Version\": \"1\"\n", " }\n")), Description: pulumi.String("this is a policy test"), Force: pulumi.Bool(true), }) if err != nil { return err } _, err = ram.NewRolePolicyAttachment(ctx, "attach", &ram.RolePolicyAttachmentArgs{ PolicyName: policy.Name, PolicyType: policy.Type, RoleName: role.Name, }) if err != nil { return err } return nil }) }
```
## Import
RAM Role Policy attachment can be imported using the id, e.g.
```sh
$ pulumi import alicloud:ram/rolePolicyAttachment:RolePolicyAttachment example role:my-policy:Custom:my-role
```
func GetRolePolicyAttachment ¶
func GetRolePolicyAttachment(ctx *pulumi.Context, name string, id pulumi.IDInput, state *RolePolicyAttachmentState, opts ...pulumi.ResourceOption) (*RolePolicyAttachment, error)
GetRolePolicyAttachment gets an existing RolePolicyAttachment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewRolePolicyAttachment ¶
func NewRolePolicyAttachment(ctx *pulumi.Context, name string, args *RolePolicyAttachmentArgs, opts ...pulumi.ResourceOption) (*RolePolicyAttachment, error)
NewRolePolicyAttachment registers a new resource with the given unique name, arguments, and options.
func (*RolePolicyAttachment) ElementType ¶ added in v2.25.1
func (*RolePolicyAttachment) ElementType() reflect.Type
func (*RolePolicyAttachment) ToRolePolicyAttachmentOutput ¶ added in v2.25.1
func (i *RolePolicyAttachment) ToRolePolicyAttachmentOutput() RolePolicyAttachmentOutput
func (*RolePolicyAttachment) ToRolePolicyAttachmentOutputWithContext ¶ added in v2.25.1
func (i *RolePolicyAttachment) ToRolePolicyAttachmentOutputWithContext(ctx context.Context) RolePolicyAttachmentOutput
func (*RolePolicyAttachment) ToRolePolicyAttachmentPtrOutput ¶ added in v2.35.1
func (i *RolePolicyAttachment) ToRolePolicyAttachmentPtrOutput() RolePolicyAttachmentPtrOutput
func (*RolePolicyAttachment) ToRolePolicyAttachmentPtrOutputWithContext ¶ added in v2.35.1
func (i *RolePolicyAttachment) ToRolePolicyAttachmentPtrOutputWithContext(ctx context.Context) RolePolicyAttachmentPtrOutput
type RolePolicyAttachmentArgs ¶
type RolePolicyAttachmentArgs struct { // Name of the RAM policy. This name can have a string of 1 to 128 characters, must contain only alphanumeric characters or hyphen "-", and must not begin with a hyphen. PolicyName pulumi.StringInput // Type of the RAM policy. It must be `Custom` or `System`. PolicyType pulumi.StringInput // Name of the RAM Role. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-", "_", and must not begin with a hyphen. RoleName pulumi.StringInput }
The set of arguments for constructing a RolePolicyAttachment resource.
func (RolePolicyAttachmentArgs) ElementType ¶
func (RolePolicyAttachmentArgs) ElementType() reflect.Type
type RolePolicyAttachmentArray ¶ added in v2.35.1
type RolePolicyAttachmentArray []RolePolicyAttachmentInput
func (RolePolicyAttachmentArray) ElementType ¶ added in v2.35.1
func (RolePolicyAttachmentArray) ElementType() reflect.Type
func (RolePolicyAttachmentArray) ToRolePolicyAttachmentArrayOutput ¶ added in v2.35.1
func (i RolePolicyAttachmentArray) ToRolePolicyAttachmentArrayOutput() RolePolicyAttachmentArrayOutput
func (RolePolicyAttachmentArray) ToRolePolicyAttachmentArrayOutputWithContext ¶ added in v2.35.1
func (i RolePolicyAttachmentArray) ToRolePolicyAttachmentArrayOutputWithContext(ctx context.Context) RolePolicyAttachmentArrayOutput
type RolePolicyAttachmentArrayInput ¶ added in v2.35.1
type RolePolicyAttachmentArrayInput interface { pulumi.Input ToRolePolicyAttachmentArrayOutput() RolePolicyAttachmentArrayOutput ToRolePolicyAttachmentArrayOutputWithContext(context.Context) RolePolicyAttachmentArrayOutput }
RolePolicyAttachmentArrayInput is an input type that accepts RolePolicyAttachmentArray and RolePolicyAttachmentArrayOutput values. You can construct a concrete instance of `RolePolicyAttachmentArrayInput` via:
RolePolicyAttachmentArray{ RolePolicyAttachmentArgs{...} }
type RolePolicyAttachmentArrayOutput ¶ added in v2.35.1
type RolePolicyAttachmentArrayOutput struct{ *pulumi.OutputState }
func (RolePolicyAttachmentArrayOutput) ElementType ¶ added in v2.35.1
func (RolePolicyAttachmentArrayOutput) ElementType() reflect.Type
func (RolePolicyAttachmentArrayOutput) Index ¶ added in v2.35.1
func (o RolePolicyAttachmentArrayOutput) Index(i pulumi.IntInput) RolePolicyAttachmentOutput
func (RolePolicyAttachmentArrayOutput) ToRolePolicyAttachmentArrayOutput ¶ added in v2.35.1
func (o RolePolicyAttachmentArrayOutput) ToRolePolicyAttachmentArrayOutput() RolePolicyAttachmentArrayOutput
func (RolePolicyAttachmentArrayOutput) ToRolePolicyAttachmentArrayOutputWithContext ¶ added in v2.35.1
func (o RolePolicyAttachmentArrayOutput) ToRolePolicyAttachmentArrayOutputWithContext(ctx context.Context) RolePolicyAttachmentArrayOutput
type RolePolicyAttachmentInput ¶ added in v2.25.1
type RolePolicyAttachmentInput interface { pulumi.Input ToRolePolicyAttachmentOutput() RolePolicyAttachmentOutput ToRolePolicyAttachmentOutputWithContext(ctx context.Context) RolePolicyAttachmentOutput }
type RolePolicyAttachmentMap ¶ added in v2.35.1
type RolePolicyAttachmentMap map[string]RolePolicyAttachmentInput
func (RolePolicyAttachmentMap) ElementType ¶ added in v2.35.1
func (RolePolicyAttachmentMap) ElementType() reflect.Type
func (RolePolicyAttachmentMap) ToRolePolicyAttachmentMapOutput ¶ added in v2.35.1
func (i RolePolicyAttachmentMap) ToRolePolicyAttachmentMapOutput() RolePolicyAttachmentMapOutput
func (RolePolicyAttachmentMap) ToRolePolicyAttachmentMapOutputWithContext ¶ added in v2.35.1
func (i RolePolicyAttachmentMap) ToRolePolicyAttachmentMapOutputWithContext(ctx context.Context) RolePolicyAttachmentMapOutput
type RolePolicyAttachmentMapInput ¶ added in v2.35.1
type RolePolicyAttachmentMapInput interface { pulumi.Input ToRolePolicyAttachmentMapOutput() RolePolicyAttachmentMapOutput ToRolePolicyAttachmentMapOutputWithContext(context.Context) RolePolicyAttachmentMapOutput }
RolePolicyAttachmentMapInput is an input type that accepts RolePolicyAttachmentMap and RolePolicyAttachmentMapOutput values. You can construct a concrete instance of `RolePolicyAttachmentMapInput` via:
RolePolicyAttachmentMap{ "key": RolePolicyAttachmentArgs{...} }
type RolePolicyAttachmentMapOutput ¶ added in v2.35.1
type RolePolicyAttachmentMapOutput struct{ *pulumi.OutputState }
func (RolePolicyAttachmentMapOutput) ElementType ¶ added in v2.35.1
func (RolePolicyAttachmentMapOutput) ElementType() reflect.Type
func (RolePolicyAttachmentMapOutput) MapIndex ¶ added in v2.35.1
func (o RolePolicyAttachmentMapOutput) MapIndex(k pulumi.StringInput) RolePolicyAttachmentOutput
func (RolePolicyAttachmentMapOutput) ToRolePolicyAttachmentMapOutput ¶ added in v2.35.1
func (o RolePolicyAttachmentMapOutput) ToRolePolicyAttachmentMapOutput() RolePolicyAttachmentMapOutput
func (RolePolicyAttachmentMapOutput) ToRolePolicyAttachmentMapOutputWithContext ¶ added in v2.35.1
func (o RolePolicyAttachmentMapOutput) ToRolePolicyAttachmentMapOutputWithContext(ctx context.Context) RolePolicyAttachmentMapOutput
type RolePolicyAttachmentOutput ¶ added in v2.25.1
type RolePolicyAttachmentOutput struct {
*pulumi.OutputState
}
func (RolePolicyAttachmentOutput) ElementType ¶ added in v2.25.1
func (RolePolicyAttachmentOutput) ElementType() reflect.Type
func (RolePolicyAttachmentOutput) ToRolePolicyAttachmentOutput ¶ added in v2.25.1
func (o RolePolicyAttachmentOutput) ToRolePolicyAttachmentOutput() RolePolicyAttachmentOutput
func (RolePolicyAttachmentOutput) ToRolePolicyAttachmentOutputWithContext ¶ added in v2.25.1
func (o RolePolicyAttachmentOutput) ToRolePolicyAttachmentOutputWithContext(ctx context.Context) RolePolicyAttachmentOutput
func (RolePolicyAttachmentOutput) ToRolePolicyAttachmentPtrOutput ¶ added in v2.35.1
func (o RolePolicyAttachmentOutput) ToRolePolicyAttachmentPtrOutput() RolePolicyAttachmentPtrOutput
func (RolePolicyAttachmentOutput) ToRolePolicyAttachmentPtrOutputWithContext ¶ added in v2.35.1
func (o RolePolicyAttachmentOutput) ToRolePolicyAttachmentPtrOutputWithContext(ctx context.Context) RolePolicyAttachmentPtrOutput
type RolePolicyAttachmentPtrInput ¶ added in v2.35.1
type RolePolicyAttachmentPtrInput interface { pulumi.Input ToRolePolicyAttachmentPtrOutput() RolePolicyAttachmentPtrOutput ToRolePolicyAttachmentPtrOutputWithContext(ctx context.Context) RolePolicyAttachmentPtrOutput }
type RolePolicyAttachmentPtrOutput ¶ added in v2.35.1
type RolePolicyAttachmentPtrOutput struct {
*pulumi.OutputState
}
func (RolePolicyAttachmentPtrOutput) ElementType ¶ added in v2.35.1
func (RolePolicyAttachmentPtrOutput) ElementType() reflect.Type
func (RolePolicyAttachmentPtrOutput) ToRolePolicyAttachmentPtrOutput ¶ added in v2.35.1
func (o RolePolicyAttachmentPtrOutput) ToRolePolicyAttachmentPtrOutput() RolePolicyAttachmentPtrOutput
func (RolePolicyAttachmentPtrOutput) ToRolePolicyAttachmentPtrOutputWithContext ¶ added in v2.35.1
func (o RolePolicyAttachmentPtrOutput) ToRolePolicyAttachmentPtrOutputWithContext(ctx context.Context) RolePolicyAttachmentPtrOutput
type RolePolicyAttachmentState ¶
type RolePolicyAttachmentState struct { // Name of the RAM policy. This name can have a string of 1 to 128 characters, must contain only alphanumeric characters or hyphen "-", and must not begin with a hyphen. PolicyName pulumi.StringPtrInput // Type of the RAM policy. It must be `Custom` or `System`. PolicyType pulumi.StringPtrInput // Name of the RAM Role. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-", "_", and must not begin with a hyphen. RoleName pulumi.StringPtrInput }
func (RolePolicyAttachmentState) ElementType ¶
func (RolePolicyAttachmentState) ElementType() reflect.Type
type RolePtrInput ¶ added in v2.35.1
type RolePtrInput interface { pulumi.Input ToRolePtrOutput() RolePtrOutput ToRolePtrOutputWithContext(ctx context.Context) RolePtrOutput }
type RolePtrOutput ¶ added in v2.35.1
type RolePtrOutput struct {
*pulumi.OutputState
}
func (RolePtrOutput) ElementType ¶ added in v2.35.1
func (RolePtrOutput) ElementType() reflect.Type
func (RolePtrOutput) ToRolePtrOutput ¶ added in v2.35.1
func (o RolePtrOutput) ToRolePtrOutput() RolePtrOutput
func (RolePtrOutput) ToRolePtrOutputWithContext ¶ added in v2.35.1
func (o RolePtrOutput) ToRolePtrOutputWithContext(ctx context.Context) RolePtrOutput
type RoleState ¶
type RoleState struct { // The role arn. Arn pulumi.StringPtrInput // Description of the RAM role. This name can have a string of 1 to 1024 characters. Description pulumi.StringPtrInput // Authorization strategy of the RAM role. It is required when the `services` and `ramUsers` are not specified. Document pulumi.StringPtrInput // This parameter is used for resource destroy. Default value is `false`. Force pulumi.BoolPtrInput // The maximum session duration of the RAM role. Valid values: 3600 to 43200. Unit: seconds. Default value: 3600. The default value is used if the parameter is not specified. MaxSessionDuration pulumi.IntPtrInput // Name of the RAM role. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-", "_", and must not begin with a hyphen. Name pulumi.StringPtrInput // (It has been deprecated from version 1.49.0, and use field 'document' to replace.) List of ram users who can assume the RAM role. The format of each item in this list is `acs:ram::${account_id}:root` or `acs:ram::${account_id}:user/${user_name}`, such as `acs:ram::1234567890000:root` and `acs:ram::1234567890001:user/Mary`. The `${user_name}` is the name of a RAM user which must exists in the Alicloud account indicated by the `${account_id}`. // // Deprecated: Field 'ram_users' has been deprecated from version 1.49.0, and use field 'document' to replace. RamUsers pulumi.StringArrayInput // The role ID. RoleId pulumi.StringPtrInput // (It has been deprecated from version 1.49.0, and use field 'document' to replace.) List of services which can assume the RAM role. The format of each item in this list is `${service}.aliyuncs.com` or `${account_id}@${service}.aliyuncs.com`, such as `ecs.aliyuncs.com` and `1234567890000@ots.aliyuncs.com`. The `${service}` can be `ecs`, `log`, `apigateway` and so on, the `${account_id}` refers to someone's Alicloud account id. // // Deprecated: Field 'services' has been deprecated from version 1.49.0, and use field 'document' to replace. Services pulumi.StringArrayInput // (It has been deprecated from version 1.49.0, and use field 'document' to replace.) Version of the RAM role policy document. Valid value is `1`. Default value is `1`. // // Deprecated: Field 'version' has been deprecated from version 1.49.0, and use field 'document' to replace. Version pulumi.StringPtrInput }
func (RoleState) ElementType ¶
type SamlProvider ¶ added in v2.34.0
type SamlProvider struct { pulumi.CustomResourceState // The Alibaba Cloud Resource Name (ARN) of the IdP. Arn pulumi.StringOutput `pulumi:"arn"` // The description of SAML Provider. Description pulumi.StringPtrOutput `pulumi:"description"` // The metadata file, which is Base64 encoded. The file is provided by an IdP that supports SAML 2.0. EncodedsamlMetadataDocument pulumi.StringPtrOutput `pulumi:"encodedsamlMetadataDocument"` // The name of SAML Provider. SamlProviderName pulumi.StringOutput `pulumi:"samlProviderName"` // The update time. UpdateDate pulumi.StringOutput `pulumi:"updateDate"` }
Provides a RAM SAML Provider resource.
For information about RAM SAML Provider and how to use it, see [What is SAML Provider](https://www.alibabacloud.com/help/doc-detail/186846.htm).
> **NOTE:** Available in v1.114.0+.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/ram" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := ram.NewSamlProvider(ctx, "example", &ram.SamlProviderArgs{ Description: pulumi.String("For Terraform Test"), EncodedsamlMetadataDocument: pulumi.String("your encodedsaml metadata document"), SamlProviderName: pulumi.String("tf-testAcc"), }) if err != nil { return err } return nil }) }
```
## Import
RAM SAML Provider can be imported using the id, e.g.
```sh
$ pulumi import alicloud:ram/samlProvider:SamlProvider example <saml_provider_name>
```
func GetSamlProvider ¶ added in v2.34.0
func GetSamlProvider(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SamlProviderState, opts ...pulumi.ResourceOption) (*SamlProvider, error)
GetSamlProvider gets an existing SamlProvider resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewSamlProvider ¶ added in v2.34.0
func NewSamlProvider(ctx *pulumi.Context, name string, args *SamlProviderArgs, opts ...pulumi.ResourceOption) (*SamlProvider, error)
NewSamlProvider registers a new resource with the given unique name, arguments, and options.
func (*SamlProvider) ElementType ¶ added in v2.34.0
func (*SamlProvider) ElementType() reflect.Type
func (*SamlProvider) ToSamlProviderOutput ¶ added in v2.34.0
func (i *SamlProvider) ToSamlProviderOutput() SamlProviderOutput
func (*SamlProvider) ToSamlProviderOutputWithContext ¶ added in v2.34.0
func (i *SamlProvider) ToSamlProviderOutputWithContext(ctx context.Context) SamlProviderOutput
func (*SamlProvider) ToSamlProviderPtrOutput ¶ added in v2.35.1
func (i *SamlProvider) ToSamlProviderPtrOutput() SamlProviderPtrOutput
func (*SamlProvider) ToSamlProviderPtrOutputWithContext ¶ added in v2.35.1
func (i *SamlProvider) ToSamlProviderPtrOutputWithContext(ctx context.Context) SamlProviderPtrOutput
type SamlProviderArgs ¶ added in v2.34.0
type SamlProviderArgs struct { // The description of SAML Provider. Description pulumi.StringPtrInput // The metadata file, which is Base64 encoded. The file is provided by an IdP that supports SAML 2.0. EncodedsamlMetadataDocument pulumi.StringPtrInput // The name of SAML Provider. SamlProviderName pulumi.StringInput }
The set of arguments for constructing a SamlProvider resource.
func (SamlProviderArgs) ElementType ¶ added in v2.34.0
func (SamlProviderArgs) ElementType() reflect.Type
type SamlProviderArray ¶ added in v2.35.1
type SamlProviderArray []SamlProviderInput
func (SamlProviderArray) ElementType ¶ added in v2.35.1
func (SamlProviderArray) ElementType() reflect.Type
func (SamlProviderArray) ToSamlProviderArrayOutput ¶ added in v2.35.1
func (i SamlProviderArray) ToSamlProviderArrayOutput() SamlProviderArrayOutput
func (SamlProviderArray) ToSamlProviderArrayOutputWithContext ¶ added in v2.35.1
func (i SamlProviderArray) ToSamlProviderArrayOutputWithContext(ctx context.Context) SamlProviderArrayOutput
type SamlProviderArrayInput ¶ added in v2.35.1
type SamlProviderArrayInput interface { pulumi.Input ToSamlProviderArrayOutput() SamlProviderArrayOutput ToSamlProviderArrayOutputWithContext(context.Context) SamlProviderArrayOutput }
SamlProviderArrayInput is an input type that accepts SamlProviderArray and SamlProviderArrayOutput values. You can construct a concrete instance of `SamlProviderArrayInput` via:
SamlProviderArray{ SamlProviderArgs{...} }
type SamlProviderArrayOutput ¶ added in v2.35.1
type SamlProviderArrayOutput struct{ *pulumi.OutputState }
func (SamlProviderArrayOutput) ElementType ¶ added in v2.35.1
func (SamlProviderArrayOutput) ElementType() reflect.Type
func (SamlProviderArrayOutput) Index ¶ added in v2.35.1
func (o SamlProviderArrayOutput) Index(i pulumi.IntInput) SamlProviderOutput
func (SamlProviderArrayOutput) ToSamlProviderArrayOutput ¶ added in v2.35.1
func (o SamlProviderArrayOutput) ToSamlProviderArrayOutput() SamlProviderArrayOutput
func (SamlProviderArrayOutput) ToSamlProviderArrayOutputWithContext ¶ added in v2.35.1
func (o SamlProviderArrayOutput) ToSamlProviderArrayOutputWithContext(ctx context.Context) SamlProviderArrayOutput
type SamlProviderInput ¶ added in v2.34.0
type SamlProviderInput interface { pulumi.Input ToSamlProviderOutput() SamlProviderOutput ToSamlProviderOutputWithContext(ctx context.Context) SamlProviderOutput }
type SamlProviderMap ¶ added in v2.35.1
type SamlProviderMap map[string]SamlProviderInput
func (SamlProviderMap) ElementType ¶ added in v2.35.1
func (SamlProviderMap) ElementType() reflect.Type
func (SamlProviderMap) ToSamlProviderMapOutput ¶ added in v2.35.1
func (i SamlProviderMap) ToSamlProviderMapOutput() SamlProviderMapOutput
func (SamlProviderMap) ToSamlProviderMapOutputWithContext ¶ added in v2.35.1
func (i SamlProviderMap) ToSamlProviderMapOutputWithContext(ctx context.Context) SamlProviderMapOutput
type SamlProviderMapInput ¶ added in v2.35.1
type SamlProviderMapInput interface { pulumi.Input ToSamlProviderMapOutput() SamlProviderMapOutput ToSamlProviderMapOutputWithContext(context.Context) SamlProviderMapOutput }
SamlProviderMapInput is an input type that accepts SamlProviderMap and SamlProviderMapOutput values. You can construct a concrete instance of `SamlProviderMapInput` via:
SamlProviderMap{ "key": SamlProviderArgs{...} }
type SamlProviderMapOutput ¶ added in v2.35.1
type SamlProviderMapOutput struct{ *pulumi.OutputState }
func (SamlProviderMapOutput) ElementType ¶ added in v2.35.1
func (SamlProviderMapOutput) ElementType() reflect.Type
func (SamlProviderMapOutput) MapIndex ¶ added in v2.35.1
func (o SamlProviderMapOutput) MapIndex(k pulumi.StringInput) SamlProviderOutput
func (SamlProviderMapOutput) ToSamlProviderMapOutput ¶ added in v2.35.1
func (o SamlProviderMapOutput) ToSamlProviderMapOutput() SamlProviderMapOutput
func (SamlProviderMapOutput) ToSamlProviderMapOutputWithContext ¶ added in v2.35.1
func (o SamlProviderMapOutput) ToSamlProviderMapOutputWithContext(ctx context.Context) SamlProviderMapOutput
type SamlProviderOutput ¶ added in v2.34.0
type SamlProviderOutput struct {
*pulumi.OutputState
}
func (SamlProviderOutput) ElementType ¶ added in v2.34.0
func (SamlProviderOutput) ElementType() reflect.Type
func (SamlProviderOutput) ToSamlProviderOutput ¶ added in v2.34.0
func (o SamlProviderOutput) ToSamlProviderOutput() SamlProviderOutput
func (SamlProviderOutput) ToSamlProviderOutputWithContext ¶ added in v2.34.0
func (o SamlProviderOutput) ToSamlProviderOutputWithContext(ctx context.Context) SamlProviderOutput
func (SamlProviderOutput) ToSamlProviderPtrOutput ¶ added in v2.35.1
func (o SamlProviderOutput) ToSamlProviderPtrOutput() SamlProviderPtrOutput
func (SamlProviderOutput) ToSamlProviderPtrOutputWithContext ¶ added in v2.35.1
func (o SamlProviderOutput) ToSamlProviderPtrOutputWithContext(ctx context.Context) SamlProviderPtrOutput
type SamlProviderPtrInput ¶ added in v2.35.1
type SamlProviderPtrInput interface { pulumi.Input ToSamlProviderPtrOutput() SamlProviderPtrOutput ToSamlProviderPtrOutputWithContext(ctx context.Context) SamlProviderPtrOutput }
type SamlProviderPtrOutput ¶ added in v2.35.1
type SamlProviderPtrOutput struct {
*pulumi.OutputState
}
func (SamlProviderPtrOutput) ElementType ¶ added in v2.35.1
func (SamlProviderPtrOutput) ElementType() reflect.Type
func (SamlProviderPtrOutput) ToSamlProviderPtrOutput ¶ added in v2.35.1
func (o SamlProviderPtrOutput) ToSamlProviderPtrOutput() SamlProviderPtrOutput
func (SamlProviderPtrOutput) ToSamlProviderPtrOutputWithContext ¶ added in v2.35.1
func (o SamlProviderPtrOutput) ToSamlProviderPtrOutputWithContext(ctx context.Context) SamlProviderPtrOutput
type SamlProviderState ¶ added in v2.34.0
type SamlProviderState struct { // The Alibaba Cloud Resource Name (ARN) of the IdP. Arn pulumi.StringPtrInput // The description of SAML Provider. Description pulumi.StringPtrInput // The metadata file, which is Base64 encoded. The file is provided by an IdP that supports SAML 2.0. EncodedsamlMetadataDocument pulumi.StringPtrInput // The name of SAML Provider. SamlProviderName pulumi.StringPtrInput // The update time. UpdateDate pulumi.StringPtrInput }
func (SamlProviderState) ElementType ¶ added in v2.34.0
func (SamlProviderState) ElementType() reflect.Type
type User ¶
type User struct { pulumi.CustomResourceState // Comment of the RAM user. This parameter can have a string of 1 to 128 characters. Comments pulumi.StringPtrOutput `pulumi:"comments"` // Name of the RAM user which for display. This name can have a string of 1 to 128 characters or Chinese characters, must contain only alphanumeric characters or Chinese characters or hyphens, such as "-",".", and must not end with a hyphen. DisplayName pulumi.StringPtrOutput `pulumi:"displayName"` // Email of the RAM user. Email pulumi.StringPtrOutput `pulumi:"email"` // This parameter is used for resource destroy. Default value is `false`. Force pulumi.BoolPtrOutput `pulumi:"force"` // Phone number of the RAM user. This number must contain an international area code prefix, just look like this: 86-18600008888. Mobile pulumi.StringPtrOutput `pulumi:"mobile"` // Name of the RAM user. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen. Name pulumi.StringOutput `pulumi:"name"` }
## Import
RAM user can be imported using the id, e.g.
```sh
$ pulumi import alicloud:ram/user:User example 123456789xxx
```
func GetUser ¶
func GetUser(ctx *pulumi.Context, name string, id pulumi.IDInput, state *UserState, opts ...pulumi.ResourceOption) (*User, error)
GetUser gets an existing User resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewUser ¶
func NewUser(ctx *pulumi.Context, name string, args *UserArgs, opts ...pulumi.ResourceOption) (*User, error)
NewUser registers a new resource with the given unique name, arguments, and options.
func (*User) ElementType ¶ added in v2.25.1
func (*User) ToUserOutput ¶ added in v2.25.1
func (i *User) ToUserOutput() UserOutput
func (*User) ToUserOutputWithContext ¶ added in v2.25.1
func (i *User) ToUserOutputWithContext(ctx context.Context) UserOutput
func (*User) ToUserPtrOutput ¶ added in v2.35.1
func (i *User) ToUserPtrOutput() UserPtrOutput
func (*User) ToUserPtrOutputWithContext ¶ added in v2.35.1
func (i *User) ToUserPtrOutputWithContext(ctx context.Context) UserPtrOutput
type UserArgs ¶
type UserArgs struct { // Comment of the RAM user. This parameter can have a string of 1 to 128 characters. Comments pulumi.StringPtrInput // Name of the RAM user which for display. This name can have a string of 1 to 128 characters or Chinese characters, must contain only alphanumeric characters or Chinese characters or hyphens, such as "-",".", and must not end with a hyphen. DisplayName pulumi.StringPtrInput // Email of the RAM user. Email pulumi.StringPtrInput // This parameter is used for resource destroy. Default value is `false`. Force pulumi.BoolPtrInput // Phone number of the RAM user. This number must contain an international area code prefix, just look like this: 86-18600008888. Mobile pulumi.StringPtrInput // Name of the RAM user. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen. Name pulumi.StringPtrInput }
The set of arguments for constructing a User resource.
func (UserArgs) ElementType ¶
type UserArray ¶ added in v2.35.1
type UserArray []UserInput
func (UserArray) ElementType ¶ added in v2.35.1
func (UserArray) ToUserArrayOutput ¶ added in v2.35.1
func (i UserArray) ToUserArrayOutput() UserArrayOutput
func (UserArray) ToUserArrayOutputWithContext ¶ added in v2.35.1
func (i UserArray) ToUserArrayOutputWithContext(ctx context.Context) UserArrayOutput
type UserArrayInput ¶ added in v2.35.1
type UserArrayInput interface { pulumi.Input ToUserArrayOutput() UserArrayOutput ToUserArrayOutputWithContext(context.Context) UserArrayOutput }
UserArrayInput is an input type that accepts UserArray and UserArrayOutput values. You can construct a concrete instance of `UserArrayInput` via:
UserArray{ UserArgs{...} }
type UserArrayOutput ¶ added in v2.35.1
type UserArrayOutput struct{ *pulumi.OutputState }
func (UserArrayOutput) ElementType ¶ added in v2.35.1
func (UserArrayOutput) ElementType() reflect.Type
func (UserArrayOutput) Index ¶ added in v2.35.1
func (o UserArrayOutput) Index(i pulumi.IntInput) UserOutput
func (UserArrayOutput) ToUserArrayOutput ¶ added in v2.35.1
func (o UserArrayOutput) ToUserArrayOutput() UserArrayOutput
func (UserArrayOutput) ToUserArrayOutputWithContext ¶ added in v2.35.1
func (o UserArrayOutput) ToUserArrayOutputWithContext(ctx context.Context) UserArrayOutput
type UserInput ¶ added in v2.25.1
type UserInput interface { pulumi.Input ToUserOutput() UserOutput ToUserOutputWithContext(ctx context.Context) UserOutput }
type UserMap ¶ added in v2.35.1
func (UserMap) ElementType ¶ added in v2.35.1
func (UserMap) ToUserMapOutput ¶ added in v2.35.1
func (i UserMap) ToUserMapOutput() UserMapOutput
func (UserMap) ToUserMapOutputWithContext ¶ added in v2.35.1
func (i UserMap) ToUserMapOutputWithContext(ctx context.Context) UserMapOutput
type UserMapInput ¶ added in v2.35.1
type UserMapInput interface { pulumi.Input ToUserMapOutput() UserMapOutput ToUserMapOutputWithContext(context.Context) UserMapOutput }
UserMapInput is an input type that accepts UserMap and UserMapOutput values. You can construct a concrete instance of `UserMapInput` via:
UserMap{ "key": UserArgs{...} }
type UserMapOutput ¶ added in v2.35.1
type UserMapOutput struct{ *pulumi.OutputState }
func (UserMapOutput) ElementType ¶ added in v2.35.1
func (UserMapOutput) ElementType() reflect.Type
func (UserMapOutput) MapIndex ¶ added in v2.35.1
func (o UserMapOutput) MapIndex(k pulumi.StringInput) UserOutput
func (UserMapOutput) ToUserMapOutput ¶ added in v2.35.1
func (o UserMapOutput) ToUserMapOutput() UserMapOutput
func (UserMapOutput) ToUserMapOutputWithContext ¶ added in v2.35.1
func (o UserMapOutput) ToUserMapOutputWithContext(ctx context.Context) UserMapOutput
type UserOutput ¶ added in v2.25.1
type UserOutput struct {
*pulumi.OutputState
}
func (UserOutput) ElementType ¶ added in v2.25.1
func (UserOutput) ElementType() reflect.Type
func (UserOutput) ToUserOutput ¶ added in v2.25.1
func (o UserOutput) ToUserOutput() UserOutput
func (UserOutput) ToUserOutputWithContext ¶ added in v2.25.1
func (o UserOutput) ToUserOutputWithContext(ctx context.Context) UserOutput
func (UserOutput) ToUserPtrOutput ¶ added in v2.35.1
func (o UserOutput) ToUserPtrOutput() UserPtrOutput
func (UserOutput) ToUserPtrOutputWithContext ¶ added in v2.35.1
func (o UserOutput) ToUserPtrOutputWithContext(ctx context.Context) UserPtrOutput
type UserPolicyAttachment ¶
type UserPolicyAttachment struct { pulumi.CustomResourceState // Name of the RAM policy. This name can have a string of 1 to 128 characters, must contain only alphanumeric characters or hyphen "-", and must not begin with a hyphen. PolicyName pulumi.StringOutput `pulumi:"policyName"` // Type of the RAM policy. It must be `Custom` or `System`. PolicyType pulumi.StringOutput `pulumi:"policyType"` // Name of the RAM user. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen. UserName pulumi.StringOutput `pulumi:"userName"` }
Provides a RAM User Policy attachment resource.
## Example Usage
```go package main
import (
"fmt" "github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/ram" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { user, err := ram.NewUser(ctx, "user", &ram.UserArgs{ DisplayName: pulumi.String("user_display_name"), Mobile: pulumi.String("86-18688888888"), Email: pulumi.String("hello.uuu@aaa.com"), Comments: pulumi.String("yoyoyo"), Force: pulumi.Bool(true), }) if err != nil { return err } policy, err := ram.NewPolicy(ctx, "policy", &ram.PolicyArgs{ Document: pulumi.String(fmt.Sprintf("%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v", " {\n", " \"Statement\": [\n", " {\n", " \"Action\": [\n", " \"oss:ListObjects\",\n", " \"oss:GetObject\"\n", " ],\n", " \"Effect\": \"Allow\",\n", " \"Resource\": [\n", " \"acs:oss:*:*:mybucket\",\n", " \"acs:oss:*:*:mybucket/*\"\n", " ]\n", " }\n", " ],\n", " \"Version\": \"1\"\n", " }\n")), Description: pulumi.String("this is a policy test"), Force: pulumi.Bool(true), }) if err != nil { return err } _, err = ram.NewUserPolicyAttachment(ctx, "attach", &ram.UserPolicyAttachmentArgs{ PolicyName: policy.Name, PolicyType: policy.Type, UserName: user.Name, }) if err != nil { return err } return nil }) }
```
## Import
RAM User Policy attachment can be imported using the id, e.g.
```sh
$ pulumi import alicloud:ram/userPolicyAttachment:UserPolicyAttachment example user:my-policy:Custom:my-user
```
func GetUserPolicyAttachment ¶
func GetUserPolicyAttachment(ctx *pulumi.Context, name string, id pulumi.IDInput, state *UserPolicyAttachmentState, opts ...pulumi.ResourceOption) (*UserPolicyAttachment, error)
GetUserPolicyAttachment gets an existing UserPolicyAttachment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewUserPolicyAttachment ¶
func NewUserPolicyAttachment(ctx *pulumi.Context, name string, args *UserPolicyAttachmentArgs, opts ...pulumi.ResourceOption) (*UserPolicyAttachment, error)
NewUserPolicyAttachment registers a new resource with the given unique name, arguments, and options.
func (*UserPolicyAttachment) ElementType ¶ added in v2.25.1
func (*UserPolicyAttachment) ElementType() reflect.Type
func (*UserPolicyAttachment) ToUserPolicyAttachmentOutput ¶ added in v2.25.1
func (i *UserPolicyAttachment) ToUserPolicyAttachmentOutput() UserPolicyAttachmentOutput
func (*UserPolicyAttachment) ToUserPolicyAttachmentOutputWithContext ¶ added in v2.25.1
func (i *UserPolicyAttachment) ToUserPolicyAttachmentOutputWithContext(ctx context.Context) UserPolicyAttachmentOutput
func (*UserPolicyAttachment) ToUserPolicyAttachmentPtrOutput ¶ added in v2.35.1
func (i *UserPolicyAttachment) ToUserPolicyAttachmentPtrOutput() UserPolicyAttachmentPtrOutput
func (*UserPolicyAttachment) ToUserPolicyAttachmentPtrOutputWithContext ¶ added in v2.35.1
func (i *UserPolicyAttachment) ToUserPolicyAttachmentPtrOutputWithContext(ctx context.Context) UserPolicyAttachmentPtrOutput
type UserPolicyAttachmentArgs ¶
type UserPolicyAttachmentArgs struct { // Name of the RAM policy. This name can have a string of 1 to 128 characters, must contain only alphanumeric characters or hyphen "-", and must not begin with a hyphen. PolicyName pulumi.StringInput // Type of the RAM policy. It must be `Custom` or `System`. PolicyType pulumi.StringInput // Name of the RAM user. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen. UserName pulumi.StringInput }
The set of arguments for constructing a UserPolicyAttachment resource.
func (UserPolicyAttachmentArgs) ElementType ¶
func (UserPolicyAttachmentArgs) ElementType() reflect.Type
type UserPolicyAttachmentArray ¶ added in v2.35.1
type UserPolicyAttachmentArray []UserPolicyAttachmentInput
func (UserPolicyAttachmentArray) ElementType ¶ added in v2.35.1
func (UserPolicyAttachmentArray) ElementType() reflect.Type
func (UserPolicyAttachmentArray) ToUserPolicyAttachmentArrayOutput ¶ added in v2.35.1
func (i UserPolicyAttachmentArray) ToUserPolicyAttachmentArrayOutput() UserPolicyAttachmentArrayOutput
func (UserPolicyAttachmentArray) ToUserPolicyAttachmentArrayOutputWithContext ¶ added in v2.35.1
func (i UserPolicyAttachmentArray) ToUserPolicyAttachmentArrayOutputWithContext(ctx context.Context) UserPolicyAttachmentArrayOutput
type UserPolicyAttachmentArrayInput ¶ added in v2.35.1
type UserPolicyAttachmentArrayInput interface { pulumi.Input ToUserPolicyAttachmentArrayOutput() UserPolicyAttachmentArrayOutput ToUserPolicyAttachmentArrayOutputWithContext(context.Context) UserPolicyAttachmentArrayOutput }
UserPolicyAttachmentArrayInput is an input type that accepts UserPolicyAttachmentArray and UserPolicyAttachmentArrayOutput values. You can construct a concrete instance of `UserPolicyAttachmentArrayInput` via:
UserPolicyAttachmentArray{ UserPolicyAttachmentArgs{...} }
type UserPolicyAttachmentArrayOutput ¶ added in v2.35.1
type UserPolicyAttachmentArrayOutput struct{ *pulumi.OutputState }
func (UserPolicyAttachmentArrayOutput) ElementType ¶ added in v2.35.1
func (UserPolicyAttachmentArrayOutput) ElementType() reflect.Type
func (UserPolicyAttachmentArrayOutput) Index ¶ added in v2.35.1
func (o UserPolicyAttachmentArrayOutput) Index(i pulumi.IntInput) UserPolicyAttachmentOutput
func (UserPolicyAttachmentArrayOutput) ToUserPolicyAttachmentArrayOutput ¶ added in v2.35.1
func (o UserPolicyAttachmentArrayOutput) ToUserPolicyAttachmentArrayOutput() UserPolicyAttachmentArrayOutput
func (UserPolicyAttachmentArrayOutput) ToUserPolicyAttachmentArrayOutputWithContext ¶ added in v2.35.1
func (o UserPolicyAttachmentArrayOutput) ToUserPolicyAttachmentArrayOutputWithContext(ctx context.Context) UserPolicyAttachmentArrayOutput
type UserPolicyAttachmentInput ¶ added in v2.25.1
type UserPolicyAttachmentInput interface { pulumi.Input ToUserPolicyAttachmentOutput() UserPolicyAttachmentOutput ToUserPolicyAttachmentOutputWithContext(ctx context.Context) UserPolicyAttachmentOutput }
type UserPolicyAttachmentMap ¶ added in v2.35.1
type UserPolicyAttachmentMap map[string]UserPolicyAttachmentInput
func (UserPolicyAttachmentMap) ElementType ¶ added in v2.35.1
func (UserPolicyAttachmentMap) ElementType() reflect.Type
func (UserPolicyAttachmentMap) ToUserPolicyAttachmentMapOutput ¶ added in v2.35.1
func (i UserPolicyAttachmentMap) ToUserPolicyAttachmentMapOutput() UserPolicyAttachmentMapOutput
func (UserPolicyAttachmentMap) ToUserPolicyAttachmentMapOutputWithContext ¶ added in v2.35.1
func (i UserPolicyAttachmentMap) ToUserPolicyAttachmentMapOutputWithContext(ctx context.Context) UserPolicyAttachmentMapOutput
type UserPolicyAttachmentMapInput ¶ added in v2.35.1
type UserPolicyAttachmentMapInput interface { pulumi.Input ToUserPolicyAttachmentMapOutput() UserPolicyAttachmentMapOutput ToUserPolicyAttachmentMapOutputWithContext(context.Context) UserPolicyAttachmentMapOutput }
UserPolicyAttachmentMapInput is an input type that accepts UserPolicyAttachmentMap and UserPolicyAttachmentMapOutput values. You can construct a concrete instance of `UserPolicyAttachmentMapInput` via:
UserPolicyAttachmentMap{ "key": UserPolicyAttachmentArgs{...} }
type UserPolicyAttachmentMapOutput ¶ added in v2.35.1
type UserPolicyAttachmentMapOutput struct{ *pulumi.OutputState }
func (UserPolicyAttachmentMapOutput) ElementType ¶ added in v2.35.1
func (UserPolicyAttachmentMapOutput) ElementType() reflect.Type
func (UserPolicyAttachmentMapOutput) MapIndex ¶ added in v2.35.1
func (o UserPolicyAttachmentMapOutput) MapIndex(k pulumi.StringInput) UserPolicyAttachmentOutput
func (UserPolicyAttachmentMapOutput) ToUserPolicyAttachmentMapOutput ¶ added in v2.35.1
func (o UserPolicyAttachmentMapOutput) ToUserPolicyAttachmentMapOutput() UserPolicyAttachmentMapOutput
func (UserPolicyAttachmentMapOutput) ToUserPolicyAttachmentMapOutputWithContext ¶ added in v2.35.1
func (o UserPolicyAttachmentMapOutput) ToUserPolicyAttachmentMapOutputWithContext(ctx context.Context) UserPolicyAttachmentMapOutput
type UserPolicyAttachmentOutput ¶ added in v2.25.1
type UserPolicyAttachmentOutput struct {
*pulumi.OutputState
}
func (UserPolicyAttachmentOutput) ElementType ¶ added in v2.25.1
func (UserPolicyAttachmentOutput) ElementType() reflect.Type
func (UserPolicyAttachmentOutput) ToUserPolicyAttachmentOutput ¶ added in v2.25.1
func (o UserPolicyAttachmentOutput) ToUserPolicyAttachmentOutput() UserPolicyAttachmentOutput
func (UserPolicyAttachmentOutput) ToUserPolicyAttachmentOutputWithContext ¶ added in v2.25.1
func (o UserPolicyAttachmentOutput) ToUserPolicyAttachmentOutputWithContext(ctx context.Context) UserPolicyAttachmentOutput
func (UserPolicyAttachmentOutput) ToUserPolicyAttachmentPtrOutput ¶ added in v2.35.1
func (o UserPolicyAttachmentOutput) ToUserPolicyAttachmentPtrOutput() UserPolicyAttachmentPtrOutput
func (UserPolicyAttachmentOutput) ToUserPolicyAttachmentPtrOutputWithContext ¶ added in v2.35.1
func (o UserPolicyAttachmentOutput) ToUserPolicyAttachmentPtrOutputWithContext(ctx context.Context) UserPolicyAttachmentPtrOutput
type UserPolicyAttachmentPtrInput ¶ added in v2.35.1
type UserPolicyAttachmentPtrInput interface { pulumi.Input ToUserPolicyAttachmentPtrOutput() UserPolicyAttachmentPtrOutput ToUserPolicyAttachmentPtrOutputWithContext(ctx context.Context) UserPolicyAttachmentPtrOutput }
type UserPolicyAttachmentPtrOutput ¶ added in v2.35.1
type UserPolicyAttachmentPtrOutput struct {
*pulumi.OutputState
}
func (UserPolicyAttachmentPtrOutput) ElementType ¶ added in v2.35.1
func (UserPolicyAttachmentPtrOutput) ElementType() reflect.Type
func (UserPolicyAttachmentPtrOutput) ToUserPolicyAttachmentPtrOutput ¶ added in v2.35.1
func (o UserPolicyAttachmentPtrOutput) ToUserPolicyAttachmentPtrOutput() UserPolicyAttachmentPtrOutput
func (UserPolicyAttachmentPtrOutput) ToUserPolicyAttachmentPtrOutputWithContext ¶ added in v2.35.1
func (o UserPolicyAttachmentPtrOutput) ToUserPolicyAttachmentPtrOutputWithContext(ctx context.Context) UserPolicyAttachmentPtrOutput
type UserPolicyAttachmentState ¶
type UserPolicyAttachmentState struct { // Name of the RAM policy. This name can have a string of 1 to 128 characters, must contain only alphanumeric characters or hyphen "-", and must not begin with a hyphen. PolicyName pulumi.StringPtrInput // Type of the RAM policy. It must be `Custom` or `System`. PolicyType pulumi.StringPtrInput // Name of the RAM user. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen. UserName pulumi.StringPtrInput }
func (UserPolicyAttachmentState) ElementType ¶
func (UserPolicyAttachmentState) ElementType() reflect.Type
type UserPtrInput ¶ added in v2.35.1
type UserPtrInput interface { pulumi.Input ToUserPtrOutput() UserPtrOutput ToUserPtrOutputWithContext(ctx context.Context) UserPtrOutput }
type UserPtrOutput ¶ added in v2.35.1
type UserPtrOutput struct {
*pulumi.OutputState
}
func (UserPtrOutput) ElementType ¶ added in v2.35.1
func (UserPtrOutput) ElementType() reflect.Type
func (UserPtrOutput) ToUserPtrOutput ¶ added in v2.35.1
func (o UserPtrOutput) ToUserPtrOutput() UserPtrOutput
func (UserPtrOutput) ToUserPtrOutputWithContext ¶ added in v2.35.1
func (o UserPtrOutput) ToUserPtrOutputWithContext(ctx context.Context) UserPtrOutput
type UserState ¶
type UserState struct { // Comment of the RAM user. This parameter can have a string of 1 to 128 characters. Comments pulumi.StringPtrInput // Name of the RAM user which for display. This name can have a string of 1 to 128 characters or Chinese characters, must contain only alphanumeric characters or Chinese characters or hyphens, such as "-",".", and must not end with a hyphen. DisplayName pulumi.StringPtrInput // Email of the RAM user. Email pulumi.StringPtrInput // This parameter is used for resource destroy. Default value is `false`. Force pulumi.BoolPtrInput // Phone number of the RAM user. This number must contain an international area code prefix, just look like this: 86-18600008888. Mobile pulumi.StringPtrInput // Name of the RAM user. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen. Name pulumi.StringPtrInput }
func (UserState) ElementType ¶
Source Files
¶
- accessKey.go
- accountAlias.go
- accountPasswordPolicy.go
- alias.go
- getAccountAlias.go
- getAccountAliases.go
- getGroups.go
- getPolicies.go
- getRoles.go
- getSamlProviders.go
- getUsers.go
- group.go
- groupMembership.go
- groupPolicyAttachment.go
- init.go
- loginProfile.go
- policy.go
- pulumiTypes.go
- role.go
- roleAttachment.go
- rolePolicyAttachment.go
- samlProvider.go
- user.go
- userPolicyAttachment.go