putAccessPointConfigurationForObjectLambda method
Replaces configuration for an Object Lambda Access Point.
The following actions are related to
PutAccessPointConfigurationForObjectLambda:
Parameter accountId :
The account ID for the account that owns the specified Object Lambda
Access Point.
Parameter configuration :
Object Lambda Access Point configuration document.
Parameter name :
The name of the Object Lambda Access Point.
Implementation
Future<void> putAccessPointConfigurationForObjectLambda({
required String accountId,
required ObjectLambdaConfiguration configuration,
required String name,
}) async {
final headers = <String, String>{
'x-amz-account-id': accountId.toString(),
};
await _protocol.send(
method: 'PUT',
requestUri:
'/v20180820/accesspointforobjectlambda/${Uri.encodeComponent(name)}/configuration',
headers: headers,
payload: PutAccessPointConfigurationForObjectLambdaRequest(
accountId: accountId, configuration: configuration, name: name)
.toXml('PutAccessPointConfigurationForObjectLambdaRequest'),
endpoint: _resolveEndpoint(
requiresAccountId: true,
accountId: accountId,
),
hostPrefix: '{AccountId}.',
exceptionFnMap: _exceptionFns,
);
}