Skip to content

Commit 2f5606f

Browse files
authored
Update Greengrass IPC (#732)
* Add refresh field to GetSecretValueRequest
1 parent b061e9c commit 2f5606f

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

greengrass_ipc/include/aws/greengrass/GreengrassCoreIpcModel.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3458,6 +3458,14 @@ namespace Aws
34583458
* operation defaults to the version with the AWSCURRENT label.
34593459
*/
34603460
Aws::Crt::Optional<Aws::Crt::String> GetVersionStage() noexcept { return m_versionStage; }
3461+
/**
3462+
* (Optional) Whether to fetch the latest secret from cloud when the request is handled. Defaults to false.
3463+
*/
3464+
void SetRefresh(const bool &refresh) noexcept { m_refresh = refresh; }
3465+
/**
3466+
* (Optional) Whether to fetch the latest secret from cloud when the request is handled. Defaults to false.
3467+
*/
3468+
Aws::Crt::Optional<bool> GetRefresh() noexcept { return m_refresh; }
34613469
void SerializeToJsonObject(Aws::Crt::JsonObject &payloadObject) const noexcept override;
34623470
static void s_loadFromJsonView(GetSecretValueRequest &, const Aws::Crt::JsonView &) noexcept;
34633471
static Aws::Crt::ScopedResource<AbstractShapeBase> s_allocateFromPayload(
@@ -3475,6 +3483,7 @@ namespace Aws
34753483
Aws::Crt::Optional<Aws::Crt::String> m_secretId;
34763484
Aws::Crt::Optional<Aws::Crt::String> m_versionId;
34773485
Aws::Crt::Optional<Aws::Crt::String> m_versionStage;
3486+
Aws::Crt::Optional<bool> m_refresh;
34783487
};
34793488

34803489
class AWS_GREENGRASSCOREIPC_API GetLocalDeploymentStatusResponse : public AbstractShapeBase

greengrass_ipc/source/GreengrassCoreIpcModel.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5420,6 +5420,10 @@ namespace Aws
54205420
{
54215421
payloadObject.WithString("versionStage", m_versionStage.value());
54225422
}
5423+
if (m_refresh.has_value())
5424+
{
5425+
payloadObject.WithBool("refresh", m_refresh.value());
5426+
}
54235427
}
54245428

54255429
void GetSecretValueRequest::s_loadFromJsonView(
@@ -5440,6 +5444,10 @@ namespace Aws
54405444
getSecretValueRequest.m_versionStage =
54415445
Aws::Crt::Optional<Aws::Crt::String>(jsonView.GetString("versionStage"));
54425446
}
5447+
if (jsonView.ValueExists("refresh"))
5448+
{
5449+
getSecretValueRequest.m_refresh = Aws::Crt::Optional<bool>(jsonView.GetBool("refresh"));
5450+
}
54435451
}
54445452

54455453
const char *GetSecretValueRequest::MODEL_NAME = "aws.greengrass#GetSecretValueRequest";

0 commit comments

Comments
 (0)