updateSecurityRequirementPack method
Updates a security requirement pack. For customer managed packs, both metadata and status can be updated. For AWS managed packs, only status can be updated.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter packId :
The unique identifier of the security requirement pack to update.
Parameter description :
The updated description of the security requirement pack.
Parameter name :
The updated name of the security requirement pack.
Parameter status :
The updated status of the security requirement pack.
Implementation
Future<UpdateSecurityRequirementPackOutput> updateSecurityRequirementPack({
required String packId,
String? description,
String? name,
SecurityRequirementPackStatus? status,
}) async {
final $payload = <String, dynamic>{
'packId': packId,
if (description != null) 'description': description,
if (name != null) 'name': name,
if (status != null) 'status': status.value,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/UpdateSecurityRequirementPack',
exceptionFnMap: _exceptionFns,
);
return UpdateSecurityRequirementPackOutput.fromJson(response);
}