createCodeSigningConfig method
Future<CreateCodeSigningConfigResponse>
createCodeSigningConfig({
- required AllowedPublishers allowedPublishers,
- CodeSigningPolicies? codeSigningPolicies,
- String? description,
Creates a code signing configuration. A code signing configuration defines a list of allowed signing profiles and defines the code-signing validation policy (action to be taken if deployment validation checks fail).
May throw ServiceException. May throw InvalidParameterValueException.
Parameter allowedPublishers :
Signing profiles for this code signing configuration.
Parameter codeSigningPolicies :
The code signing policies define the actions to take if the validation
checks fail.
Parameter description :
Descriptive name for this code signing configuration.
Implementation
Future<CreateCodeSigningConfigResponse> createCodeSigningConfig({
required AllowedPublishers allowedPublishers,
CodeSigningPolicies? codeSigningPolicies,
String? description,
}) async {
ArgumentError.checkNotNull(allowedPublishers, 'allowedPublishers');
_s.validateStringLength(
'description',
description,
0,
256,
);
final $payload = <String, dynamic>{
'AllowedPublishers': allowedPublishers,
if (codeSigningPolicies != null)
'CodeSigningPolicies': codeSigningPolicies,
if (description != null) 'Description': description,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/2020-04-22/code-signing-configs/',
exceptionFnMap: _exceptionFns,
);
return CreateCodeSigningConfigResponse.fromJson(response);
}