create_profile_entry
async
¶
create_profile_entry(
profile_identifier: Identifier,
extension_identifier: ExtensionId,
*,
config_overrides: Optional[AsyncCloudExtensionsClientConfig] = None,
client_token: Optional[ClientToken] = None,
name: Optional[Name] = None,
description: Optional[Description_256] = None,
interfaces: Optional[InterfaceOptionsMap] = None,
execution_role: Optional[RoleArn] = None,
version_policy: Optional[VersionPolicy] = None,
settings: Optional[Settings] = None,
approve: Optional[CapabilityPathList] = None,
tags: Optional[TagMap] = None,
) -> CreateProfileEntryOutput
Creates a profile entry that binds an extension to a profile. The extension must exist and the profile must not already have an entry for that extension.
Parameters:
-
profile_identifier(Identifier) –The identifier (id or name) of the profile to bind the extension to.
-
extension_identifier(ExtensionId) –The id of the extension to bind, such as aws:secretsmanager.
-
name(Optional[Name], default:None) –The entry's name, unique within the profile. Defaults to the name in the extension's id.
-
description(Optional[Description_256], default:None) –A description of the entry's purpose.
-
interfaces(Optional[InterfaceOptionsMap], default:None) –Per-interface options, keyed by the id of an interface the extension declares.
-
execution_role(Optional[RoleArn], default:None) –The IAM role an extension assumes when calling AWS services. The role must be assumable by the Cloud Extensions Runtime's principal.
-
version_policy(Optional[VersionPolicy], default:None) –Controls which extension version this entry tracks and how it adopts new releases.
-
settings(Optional[Settings], default:None) –The setting values to use for this extension, as free-form JSON. Keys are the extension's setting ids and the values are validated against the extension's settings definitions. A setting that is omitted or null takes its default, if it has one. A null inside an array is rejected.
-
approve(Optional[CapabilityPathList], default:None) –A list of capability paths to approve. Each path must correspond to a capability instance declared by the extension.
-
tags(Optional[TagMap], default:None) –Tags to assign to the profile entry.
Raises:
-
AccessDeniedException–The caller does not have permission to perform the operation.
-
InternalServerException–The service couldn't process the request because of an internal error. Retry with capped exponential backoff and jitter.
-
ThrottlingException–The request rate exceeded a limit. Retry with capped exponential backoff and jitter.
-
ConflictException–The request conflicts with the current state of the resource.
-
ResourceNotFoundException–The specified resource does not exist or the caller does not have permission to access it.
-
ServiceQuotaExceededException–The request would exceed a service quota for the account.
-
ValidationException–The request was malformed or contained invalid parameter values.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudextensions/_services/async_cloud_extensions.py
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 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 | |