feat: add cloudwatch client docs for Swift and Kotlin - #8622
Open
thisisabhash wants to merge 2 commits into
Open
thisisabhash wants to merge 2 commits into
thisisabhash wants to merge 2 commits into
Conversation
ekjotmultani
approved these changes
Sep 14, 2026
harsh62
approved these changes
Sep 14, 2026
|
Tick the box to add this pull request to the merge queue (same as
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of changes:
Adds public API documentation for the new standalone CloudWatch client (
AmplifyCloudWatchClient) on Swift and Kotlin.New pages:
[platform]/frontend/logging/cloudwatch: installation, clientinitialization, configuration options, registering as an Amplify logging sink, emitting
messages directly, flushing, enable/disable, setting the user identifier, updating logging
constraints, observing events, escape hatch, error handling, and CloudWatch Logs service limits.
[platform]/build-a-backend/add-aws-services/logging/cloudwatch:CDK snippet to create a log group + IAM policy, and a raw IAM policy fallback.
Both pages are registered under the Logging category in
src/directory/directory.mjs.The client is experimental, so each page leads with a warning that these public APIs are
subject to change and are not meant for production code, along with the platform-specific
opt-in (
@_spi(AmplifyExperimental)import on Swift,@OptIn(ExperimentalAmplifyApi::class)on Android). API surface (types, signatures, options, and error types) was taken from the
merged code in amplify-swift (
AmplifyCloudWatchClient) and amplify-android (aws-cloudwatch).Related GitHub issue #, if available:
N/A
Instructions
Which product(s) are affected by this PR (if applicable)?
Which platform(s) are affected by this PR (if applicable)?
Checks
.mdxand.mjsnav config only).When this PR is ready to merge, please check the box below
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.