initializeService method
Future<void>
initializeService({
- Access? autonomousDatabaseOciAwsSecretsManagerIntegration,
- bool? ociIdentityDomain,
Initializes the ODB service for the first time in an account.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ThrottlingException.
May throw ValidationException.
Parameter autonomousDatabaseOciAwsSecretsManagerIntegration :
Specifies whether to enable or disable the OCI service-account role for
Amazon Web Services Secrets Manager integration with Autonomous Database.
Parameter ociIdentityDomain :
The Oracle Cloud Infrastructure (OCI) identity domain configuration for
service initialization.
Implementation
Future<void> initializeService({
Access? autonomousDatabaseOciAwsSecretsManagerIntegration,
bool? ociIdentityDomain,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'Odb.InitializeService'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (autonomousDatabaseOciAwsSecretsManagerIntegration != null)
'autonomousDatabaseOciAwsSecretsManagerIntegration':
autonomousDatabaseOciAwsSecretsManagerIntegration.value,
if (ociIdentityDomain != null) 'ociIdentityDomain': ociIdentityDomain,
},
);
}