You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
r/aws_pinpoint_app: gate settings API calls in preparation for Pinpoint EOL
Amazon Pinpoint engagement features are being discontinued on October 30,
2026. The 'campaign_hook', 'limits', and 'quiet_time' blocks correspond
to those features and rely on GetApplicationSettings and
UpdateApplicationSettings, which will be removed at EOL.
Skip those API calls when the user's HCL config does not declare any of
the three blocks, so that 'aws_pinpoint_app' continues to work after EOL
for users who only manage the application itself.
- Add configHasSettings helper that reads GetRawConfig() and reports
whether any of the three blocks are present in the user's config.
- Add shouldFetchSettings helper that defers to configHasSettings during
normal CRUD/refresh, and detects the first Read after import (rawConfig
is null and rawState.arn is null) to preserve import behavior for
configs that declare these blocks.
- Gate UpdateApplicationSettings on configHasSettings.
- Gate GetApplicationSettings on shouldFetchSettings.
Tests:
- Add TestAccPinpointApp_noSettingsNoImport asserting the no-settings
path makes no settings API calls (verified via debug instrumentation
during development).
- Add TestAccPinpointApp_settingsAdded covering the transition from no
settings to settings configured.
- Update TestAccPinpointApp_basic and TestAccPinpointApp_tags state
expectations and add ImportStateVerifyIgnore for the three blocks,
since import populates them but post-create Read does not when config
has none.
0 commit comments