associateDataProtectionSettings method
Associates a data protection settings resource with a web portal.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter dataProtectionSettingsArn :
The ARN of the data protection settings.
Parameter portalArn :
The ARN of the web portal.
Implementation
Future<AssociateDataProtectionSettingsResponse>
associateDataProtectionSettings({
required String dataProtectionSettingsArn,
required String portalArn,
}) async {
final $query = <String, List<String>>{
'dataProtectionSettingsArn': [dataProtectionSettingsArn],
};
final response = await _protocol.send(
payload: null,
method: 'PUT',
requestUri:
'/portals/${portalArn.split('/').map(Uri.encodeComponent).join('/')}/dataProtectionSettings',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return AssociateDataProtectionSettingsResponse.fromJson(response);
}