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,
) -> 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.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
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
882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 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 | |