updateCodeSigningConfig method

Future<UpdateCodeSigningConfigResponse> updateCodeSigningConfig({
  1. required String codeSigningConfigArn,
  2. AllowedPublishers? allowedPublishers,
  3. CodeSigningPolicies? codeSigningPolicies,
  4. String? description,
})

Update the code signing configuration. Changes to the code signing configuration take effect the next time a user tries to deploy a code package to the function.

May throw ServiceException. May throw InvalidParameterValueException. May throw ResourceNotFoundException.

Parameter codeSigningConfigArn : The The Amazon Resource Name (ARN) of the code signing configuration.

Parameter allowedPublishers : Signing profiles for this code signing configuration.

Parameter codeSigningPolicies : The code signing policy.

Parameter description : Descriptive name for this code signing configuration.

Implementation

Future<UpdateCodeSigningConfigResponse> updateCodeSigningConfig({
  required String codeSigningConfigArn,
  AllowedPublishers? allowedPublishers,
  CodeSigningPolicies? codeSigningPolicies,
  String? description,
}) async {
  ArgumentError.checkNotNull(codeSigningConfigArn, 'codeSigningConfigArn');
  _s.validateStringLength(
    'codeSigningConfigArn',
    codeSigningConfigArn,
    0,
    200,
    isRequired: true,
  );
  _s.validateStringLength(
    'description',
    description,
    0,
    256,
  );
  final $payload = <String, dynamic>{
    if (allowedPublishers != null) 'AllowedPublishers': allowedPublishers,
    if (codeSigningPolicies != null)
      'CodeSigningPolicies': codeSigningPolicies,
    if (description != null) 'Description': description,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri:
        '/2020-04-22/code-signing-configs/${Uri.encodeComponent(codeSigningConfigArn)}',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateCodeSigningConfigResponse.fromJson(response);
}