{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DuplicateRecordFields #-} {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE NoImplicitPrelude #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} {-# OPTIONS_GHC -fno-warn-unused-matches #-} -- Derived from AWS service descriptions, licensed under Apache 2.0. -- | -- Module : Amazonka.EC2.Types.ImportImageLicenseConfigurationResponse -- Copyright : (c) 2013-2023 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) module Amazonka.EC2.Types.ImportImageLicenseConfigurationResponse where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import Amazonka.EC2.Internal import qualified Amazonka.Prelude as Prelude -- | The response information for license configurations. -- -- /See:/ 'newImportImageLicenseConfigurationResponse' smart constructor. data ImportImageLicenseConfigurationResponse = ImportImageLicenseConfigurationResponse' { -- | The ARN of a license configuration. licenseConfigurationArn :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'ImportImageLicenseConfigurationResponse' with all optional fields omitted. -- -- Use or to modify other optional fields. -- -- The following record fields are available, with the corresponding lenses provided -- for backwards compatibility: -- -- 'licenseConfigurationArn', 'importImageLicenseConfigurationResponse_licenseConfigurationArn' - The ARN of a license configuration. newImportImageLicenseConfigurationResponse :: ImportImageLicenseConfigurationResponse newImportImageLicenseConfigurationResponse = ImportImageLicenseConfigurationResponse' { licenseConfigurationArn = Prelude.Nothing } -- | The ARN of a license configuration. importImageLicenseConfigurationResponse_licenseConfigurationArn :: Lens.Lens' ImportImageLicenseConfigurationResponse (Prelude.Maybe Prelude.Text) importImageLicenseConfigurationResponse_licenseConfigurationArn = Lens.lens (\ImportImageLicenseConfigurationResponse' {licenseConfigurationArn} -> licenseConfigurationArn) (\s@ImportImageLicenseConfigurationResponse' {} a -> s {licenseConfigurationArn = a} :: ImportImageLicenseConfigurationResponse) instance Data.FromXML ImportImageLicenseConfigurationResponse where parseXML x = ImportImageLicenseConfigurationResponse' Prelude.<$> (x Data..@? "licenseConfigurationArn") instance Prelude.Hashable ImportImageLicenseConfigurationResponse where hashWithSalt _salt ImportImageLicenseConfigurationResponse' {..} = _salt `Prelude.hashWithSalt` licenseConfigurationArn instance Prelude.NFData ImportImageLicenseConfigurationResponse where rnf ImportImageLicenseConfigurationResponse' {..} = Prelude.rnf licenseConfigurationArn