Skip to content

Commit

Permalink
Merge branch 'main' into fix-fleet-provisioning-samples
Browse files Browse the repository at this point in the history
  • Loading branch information
sfodagain committed Jul 12, 2024
2 parents 3aee062 + 2f5606f commit 7c9cf09
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3458,6 +3458,14 @@ namespace Aws
* operation defaults to the version with the AWSCURRENT label.
*/
Aws::Crt::Optional<Aws::Crt::String> 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<bool> 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<AbstractShapeBase> s_allocateFromPayload(
Expand All @@ -3475,6 +3483,7 @@ namespace Aws
Aws::Crt::Optional<Aws::Crt::String> m_secretId;
Aws::Crt::Optional<Aws::Crt::String> m_versionId;
Aws::Crt::Optional<Aws::Crt::String> m_versionStage;
Aws::Crt::Optional<bool> m_refresh;
};

class AWS_GREENGRASSCOREIPC_API GetLocalDeploymentStatusResponse : public AbstractShapeBase
Expand Down
8 changes: 8 additions & 0 deletions greengrass_ipc/source/GreengrassCoreIpcModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -5440,6 +5444,10 @@ namespace Aws
getSecretValueRequest.m_versionStage =
Aws::Crt::Optional<Aws::Crt::String>(jsonView.GetString("versionStage"));
}
if (jsonView.ValueExists("refresh"))
{
getSecretValueRequest.m_refresh = Aws::Crt::Optional<bool>(jsonView.GetBool("refresh"));
}
}

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

0 comments on commit 7c9cf09

Please sign in to comment.