/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Lightsail { namespace Model { /** *

Describes a request to activate or deactivate the role that you can use to * grant an Amazon Lightsail container service access to Amazon Elastic Container * Registry (Amazon ECR) private repositories.

When activated, Lightsail * creates an Identity and Access Management (IAM) role for the specified Lightsail * container service. You can use the ARN of the role to create a trust * relationship between your Lightsail container service and an Amazon ECR private * repository in your Amazon Web Services account. This allows your container * service to pull images from Amazon ECR private repositories. For more * information, see Configuring * access to an Amazon ECR private repository for an Amazon Lightsail container * service in the Amazon Lightsail Developer Guide.

See * Also:

AWS * API Reference

*/ class ContainerServiceECRImagePullerRoleRequest { public: AWS_LIGHTSAIL_API ContainerServiceECRImagePullerRoleRequest(); AWS_LIGHTSAIL_API ContainerServiceECRImagePullerRoleRequest(Aws::Utils::Json::JsonView jsonValue); AWS_LIGHTSAIL_API ContainerServiceECRImagePullerRoleRequest& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A Boolean value that indicates whether to activate the role.

*/ inline bool GetIsActive() const{ return m_isActive; } /** *

A Boolean value that indicates whether to activate the role.

*/ inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; } /** *

A Boolean value that indicates whether to activate the role.

*/ inline void SetIsActive(bool value) { m_isActiveHasBeenSet = true; m_isActive = value; } /** *

A Boolean value that indicates whether to activate the role.

*/ inline ContainerServiceECRImagePullerRoleRequest& WithIsActive(bool value) { SetIsActive(value); return *this;} private: bool m_isActive; bool m_isActiveHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws