diff --git a/greengrass_ipc/include/aws/greengrass/GreengrassCoreIpcModel.h b/greengrass_ipc/include/aws/greengrass/GreengrassCoreIpcModel.h index 52e305ccf..652da3f4a 100644 --- a/greengrass_ipc/include/aws/greengrass/GreengrassCoreIpcModel.h +++ b/greengrass_ipc/include/aws/greengrass/GreengrassCoreIpcModel.h @@ -3458,6 +3458,14 @@ namespace Aws * operation defaults to the version with the AWSCURRENT label. */ Aws::Crt::Optional GetVersionStage() noexcept { return m_versionStage; } + /** + * (Optional) Whether to fetch the latest secret from cloud when the request is handled. Defaults to false. + */ + void SetRefresh(const bool &refresh) noexcept { m_refresh = refresh; } + /** + * (Optional) Whether to fetch the latest secret from cloud when the request is handled. Defaults to false. + */ + Aws::Crt::Optional GetRefresh() noexcept { return m_refresh; } void SerializeToJsonObject(Aws::Crt::JsonObject &payloadObject) const noexcept override; static void s_loadFromJsonView(GetSecretValueRequest &, const Aws::Crt::JsonView &) noexcept; static Aws::Crt::ScopedResource s_allocateFromPayload( @@ -3475,6 +3483,7 @@ namespace Aws Aws::Crt::Optional m_secretId; Aws::Crt::Optional m_versionId; Aws::Crt::Optional m_versionStage; + Aws::Crt::Optional m_refresh; }; class AWS_GREENGRASSCOREIPC_API GetLocalDeploymentStatusResponse : public AbstractShapeBase diff --git a/greengrass_ipc/source/GreengrassCoreIpcModel.cpp b/greengrass_ipc/source/GreengrassCoreIpcModel.cpp index 122410caf..a3f9331eb 100644 --- a/greengrass_ipc/source/GreengrassCoreIpcModel.cpp +++ b/greengrass_ipc/source/GreengrassCoreIpcModel.cpp @@ -5420,6 +5420,10 @@ namespace Aws { payloadObject.WithString("versionStage", m_versionStage.value()); } + if (m_refresh.has_value()) + { + payloadObject.WithBool("refresh", m_refresh.value()); + } } void GetSecretValueRequest::s_loadFromJsonView( @@ -5440,6 +5444,10 @@ namespace Aws getSecretValueRequest.m_versionStage = Aws::Crt::Optional(jsonView.GetString("versionStage")); } + if (jsonView.ValueExists("refresh")) + { + getSecretValueRequest.m_refresh = Aws::Crt::Optional(jsonView.GetBool("refresh")); + } } const char *GetSecretValueRequest::MODEL_NAME = "aws.greengrass#GetSecretValueRequest";