Specify the remote config provider as a parameter when constructing the `AWSCloudWatchLoggingPlugin` instance.

```swift
do {
    let endpointUrl: URL = URL(string: "<your-api-endpoint>")!
    let remoteConfigProvider = DefaultRemoteLoggingConstraintsProvider(endpoint: endpointUrl, region: "<region>")
    let loggingPlugin = AWSCloudWatchLoggingPlugin(remoteLoggingConstraintsProvider: remoteConfigProvider)
    try Amplify.add(plugin: loggingPlugin)
    try Amplify.configure()
} catch {
    assert(false, "Error initializing Amplify: \(error)")
}
```