create_profile
async
¶
create_profile(
name: ResourceName,
role_arns: RoleArnList,
*,
config_overrides: Optional[AsyncRolesAnywhereClientConfig] = None,
require_instance_properties: Optional[bool] = None,
session_policy: Optional[str] = None,
managed_policy_arns: Optional[ManagedPolicyList] = None,
duration_seconds: Optional[int] = None,
enabled: Optional[bool] = None,
tags: Optional[TagList] = None,
accept_role_session_name: Optional[bool] = None,
alias_name: Optional[AliasName] = None,
tip_configuration: Optional[TipConfiguration] = None,
) -> ProfileDetailResponse
Creates a profile, a list of the roles that Roles Anywhere service is trusted to assume. You use profiles to intersect permissions with IAM managed policies.
Required permissions: rolesanywhere:CreateProfile.
Parameters:
-
name(ResourceName) –The name of the profile.
-
require_instance_properties(Optional[bool], default:None) –Unused, saved for future use. Will likely specify whether instance properties are required in temporary credential requests with this profile.
-
session_policy(Optional[str], default:None) –A session policy that applies to the trust boundary of the vended session credentials.
-
role_arns(RoleArnList) –A list of IAM roles that this profile can assume in a temporary credential request.
-
managed_policy_arns(Optional[ManagedPolicyList], default:None) –A list of managed policy ARNs that apply to the vended session credentials.
-
duration_seconds(Optional[int], default:None) –Used to determine how long sessions vended using this profile are valid for. See the
Expirationsection of the CreateSession API documentation page for more details. In requests, if this value is not provided, the default value will be 3600. -
enabled(Optional[bool], default:None) –Specifies whether the profile is enabled.
-
tags(Optional[TagList], default:None) –The tags to attach to the profile.
-
accept_role_session_name(Optional[bool], default:None) –Used to determine if a custom role session name will be accepted in a temporary credential request.
-
alias_name(Optional[AliasName], default:None) –An alias for the profile. When you set an alias, the response includes the alias ARN of the profile in
aliasArn.An alias name contains 1 to 256 characters. It must begin with a letter (A-Z or a-z). It can contain only letters (A-Z and a-z), numbers (0-9), underscores (_), hyphens (-), and forward slashes (/). A forward slash can appear only between two other characters, so an alias name can't end with a forward slash or contain two in a row. Alias names that begin with
aws/, in any combination of uppercase and lowercase letters, are reserved. Alias names are case sensitive.The alias name must be unique among resources of the same type in your account and Region. If another resource of the same type already has the alias, the request fails with a
ValidationException. An invalid or reserved alias name also causes aValidationException.If you omit this parameter or specify an empty string, the resource is created without an alias.
-
tip_configuration(Optional[TipConfiguration], default:None) –The trusted identity propagation (TIP) settings for the profile. When you enable TIP, sessions from the profile include the identity from the certificate in
aws:OriginIdentitycondition keys.If you omit this parameter, the profile doesn't use TIP.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ServiceUnavailableException–The request has failed due to a temporary failure of the service.
-
ValidationException–Validation exception error.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_rolesanywhere/_services/async_roles_anywhere.py
918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 | |