add_profile_permission
async
¶
add_profile_permission(
profile_name: ProfileName,
action: String,
principal: String,
statement_id: String,
*,
config_overrides: Optional[AsyncsignerClientConfig] = None,
profile_version: Optional[ProfileVersion] = None,
revision_id: Optional[String] = None,
) -> AddProfilePermissionResponse
Adds cross-account permissions to a signing profile.
Parameters:
-
profile_name(ProfileName) –The human-readable name of the signing profile.
-
profile_version(Optional[ProfileVersion], default:None) –The version of the signing profile.
-
action(String) –For cross-account signing. Grant a designated account permission to perform one or more of the following actions. Each action is associated with a specific API's operations. For more information about cross-account signing, see Using cross-account signing with signing profiles in the AWS Signer Developer Guide.
You can designate the following actions to an account.
-
signer:StartSigningJob. This action isn't supported for container image workflows. For details, see StartSigningJob. -
signer:SignPayload. This action isn't supported for AWS Lambda workflows. For details, see SignPayload -
signer:GetSigningProfile. For details, see GetSigningProfile. -
signer:RevokeSignature. For details, see RevokeSignature.
-
-
principal(String) –The AWS principal receiving cross-account permissions. This may be an IAM role or another AWS account ID.
-
revision_id(Optional[String], default:None) –A unique identifier for the current profile revision.
-
statement_id(String) –A unique identifier for the cross-account permission statement.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–The resource encountered a conflicting state.
-
InternalServiceErrorException–An internal error occurred.
-
ResourceNotFoundException–A specified resource could not be found.
-
ServiceLimitExceededException–The client is making a request that exceeds service limits.
-
TooManyRequestsException–The allowed number of job-signing requests has been exceeded.
This error supersedes the error
ThrottlingException. -
ValidationException–You signing certificate could not be validated.
-
UnknownServiceError–The service returned an error code this client does not model.