/******************************************************************************* * Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"). You may not use * this file except in compliance with the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. * ***************************************************************************** * * AWS Tools for Windows (TM) PowerShell (TM) * */ using System; using System.Collections.Generic; using System.Linq; using System.Management.Automation; using System.Text; using Amazon.PowerShell.Common; using Amazon.Runtime; using Amazon.PaymentCryptographyData; using Amazon.PaymentCryptographyData.Model; namespace Amazon.PowerShell.Cmdlets.PAYCD { /// /// Decrypts ciphertext data to plaintext using symmetric, asymmetric, or DUKPT data encryption /// key. For more information, see Decrypt /// data in the Amazon Web Services Payment Cryptography User Guide. /// /// /// /// You can use an encryption key generated within Amazon Web Services Payment Cryptography, /// or you can import your own encryption key by calling ImportKey. /// For this operation, the key must have KeyModesOfUse set to Decrypt. /// In asymmetric decryption, Amazon Web Services Payment Cryptography decrypts the ciphertext /// using the private component of the asymmetric encryption key pair. For data encryption /// outside of Amazon Web Services Payment Cryptography, you can export the public component /// of the asymmetric key pair by calling GetPublicCertificate. /// /// For symmetric and DUKPT decryption, Amazon Web Services Payment Cryptography supports /// TDES and AES algorithms. For asymmetric decryption, Amazon /// Web Services Payment Cryptography supports RSA. When you use DUKPT, for /// TDES algorithm, the ciphertext data length must be a multiple of 16 bytes. /// For AES algorithm, the ciphertext data length must be a multiple of 32 /// bytes. /// /// For information about valid keys for this operation, see Understanding /// key attributes and Key /// types for specific data operations in the Amazon Web Services Payment Cryptography /// User Guide. /// Cross-account use: This operation can't be used across different Amazon Web /// Services accounts. /// Related operations: /// [Cmdlet("Unprotect", "PAYCDData", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] [OutputType("Amazon.PaymentCryptographyData.Model.DecryptDataResponse")] [AWSCmdlet("Calls the Payment Cryptography Data DecryptData API operation.", Operation = new[] {"DecryptData"}, SelectReturnType = typeof(Amazon.PaymentCryptographyData.Model.DecryptDataResponse))] [AWSCmdletOutput("Amazon.PaymentCryptographyData.Model.DecryptDataResponse", "This cmdlet returns an Amazon.PaymentCryptographyData.Model.DecryptDataResponse object containing multiple properties. The object can also be referenced from properties attached to the cmdlet entry in the $AWSHistory stack." )] public partial class UnprotectPAYCDDataCmdlet : AmazonPaymentCryptographyDataClientCmdlet, IExecutor { protected override bool IsSensitiveRequest { get; set; } = true; protected override bool IsSensitiveResponse { get; set; } = true; #region Parameter CipherText /// /// /// The ciphertext to decrypt. /// /// #if !MODULAR [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] #else [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)] [System.Management.Automation.AllowEmptyString] [System.Management.Automation.AllowNull] #endif [Amazon.PowerShell.Common.AWSRequiredParameter] public System.String CipherText { get; set; } #endregion #region Parameter Dukpt_DukptKeyDerivationType /// /// /// The key type encrypted using DUKPT from a Base Derivation Key (BDK) and Key Serial /// Number (KSN). This must be less than or equal to the strength of the BDK. For example, /// you can't use AES_128 as a derivation type for a BDK of AES_128 /// or TDES_2KEY /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("DecryptionAttributes_Dukpt_DukptKeyDerivationType")] [AWSConstantClassSource("Amazon.PaymentCryptographyData.DukptDerivationType")] public Amazon.PaymentCryptographyData.DukptDerivationType Dukpt_DukptKeyDerivationType { get; set; } #endregion #region Parameter Dukpt_DukptKeyVariant /// /// /// The type of use of DUKPT, which can be incoming data decryption, outgoing data encryption, /// or both. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("DecryptionAttributes_Dukpt_DukptKeyVariant")] [AWSConstantClassSource("Amazon.PaymentCryptographyData.DukptKeyVariant")] public Amazon.PaymentCryptographyData.DukptKeyVariant Dukpt_DukptKeyVariant { get; set; } #endregion #region Parameter Dukpt_InitializationVector /// /// /// An input to cryptographic primitive used to provide the intial state. Typically the /// InitializationVector must have a random or psuedo-random value, but sometimes /// it only needs to be unpredictable or unique. If you don't provide a value, Amazon /// Web Services Payment Cryptography generates a random value. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("DecryptionAttributes_Dukpt_InitializationVector")] public System.String Dukpt_InitializationVector { get; set; } #endregion #region Parameter Symmetric_InitializationVector /// /// /// An input to cryptographic primitive used to provide the intial state. The InitializationVector /// is typically required have a random or psuedo-random value, but sometimes it only /// needs to be unpredictable or unique. If a value is not provided, Amazon Web Services /// Payment Cryptography generates a random value. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("DecryptionAttributes_Symmetric_InitializationVector")] public System.String Symmetric_InitializationVector { get; set; } #endregion #region Parameter KeyIdentifier /// /// /// The keyARN of the encryption key that Amazon Web Services Payment Cryptography /// uses for ciphertext decryption. /// /// #if !MODULAR [System.Management.Automation.Parameter(Position = 0, ValueFromPipelineByPropertyName = true, ValueFromPipeline = true)] #else [System.Management.Automation.Parameter(Position = 0, ValueFromPipelineByPropertyName = true, ValueFromPipeline = true, Mandatory = true)] [System.Management.Automation.AllowEmptyString] [System.Management.Automation.AllowNull] #endif [Amazon.PowerShell.Common.AWSRequiredParameter] public System.String KeyIdentifier { get; set; } #endregion #region Parameter Dukpt_KeySerialNumber /// /// /// The unique identifier known as Key Serial Number (KSN) that comes from an encrypting /// device using DUKPT encryption method. The KSN is derived from the encrypting device /// unique identifier and an internal transaction counter. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("DecryptionAttributes_Dukpt_KeySerialNumber")] public System.String Dukpt_KeySerialNumber { get; set; } #endregion #region Parameter Dukpt_Mode /// /// /// The block cipher mode of operation. Block ciphers are designed to encrypt a block /// of data of fixed size, for example, 128 bits. The size of the input block is usually /// same as the size of the encrypted output block, while the key length can be different. /// A mode of operation describes how to repeatedly apply a cipher's single-block operation /// to securely transform amounts of data larger than a block.The default is CBC. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("DecryptionAttributes_Dukpt_Mode")] [AWSConstantClassSource("Amazon.PaymentCryptographyData.DukptEncryptionMode")] public Amazon.PaymentCryptographyData.DukptEncryptionMode Dukpt_Mode { get; set; } #endregion #region Parameter Symmetric_Mode /// /// /// The block cipher mode of operation. Block ciphers are designed to encrypt a block /// of data of fixed size (for example, 128 bits). The size of the input block is usually /// same as the size of the encrypted output block, while the key length can be different. /// A mode of operation describes how to repeatedly apply a cipher's single-block operation /// to securely transform amounts of data larger than a block. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("DecryptionAttributes_Symmetric_Mode")] [AWSConstantClassSource("Amazon.PaymentCryptographyData.EncryptionMode")] public Amazon.PaymentCryptographyData.EncryptionMode Symmetric_Mode { get; set; } #endregion #region Parameter Asymmetric_PaddingType /// /// /// The padding to be included with the data. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("DecryptionAttributes_Asymmetric_PaddingType")] [AWSConstantClassSource("Amazon.PaymentCryptographyData.PaddingType")] public Amazon.PaymentCryptographyData.PaddingType Asymmetric_PaddingType { get; set; } #endregion #region Parameter Symmetric_PaddingType /// /// /// The padding to be included with the data. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("DecryptionAttributes_Symmetric_PaddingType")] [AWSConstantClassSource("Amazon.PaymentCryptographyData.PaddingType")] public Amazon.PaymentCryptographyData.PaddingType Symmetric_PaddingType { get; set; } #endregion #region Parameter Select /// /// Use the -Select parameter to control the cmdlet output. The default value is '*'. /// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.PaymentCryptographyData.Model.DecryptDataResponse). /// Specifying the name of a property of type Amazon.PaymentCryptographyData.Model.DecryptDataResponse will result in that property being returned. /// Specifying -Select '^ParameterName' will result in the cmdlet returning the selected cmdlet parameter value. /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public string Select { get; set; } = "*"; #endregion #region Parameter PassThru /// /// Changes the cmdlet behavior to return the value passed to the KeyIdentifier parameter. /// The -PassThru parameter is deprecated, use -Select '^KeyIdentifier' instead. This parameter will be removed in a future version. /// [System.Obsolete("The -PassThru parameter is deprecated, use -Select '^KeyIdentifier' instead. This parameter will be removed in a future version.")] [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public SwitchParameter PassThru { get; set; } #endregion #region Parameter Force /// /// This parameter overrides confirmation prompts to force /// the cmdlet to continue its operation. This parameter should always /// be used with caution. /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public SwitchParameter Force { get; set; } #endregion protected override void ProcessRecord() { this._AWSSignerType = "v4"; base.ProcessRecord(); var resourceIdentifiersText = FormatParameterValuesForConfirmationMsg(nameof(this.KeyIdentifier), MyInvocation.BoundParameters); if (!ConfirmShouldProceed(this.Force.IsPresent, resourceIdentifiersText, "Unprotect-PAYCDData (DecryptData)")) { return; } var context = new CmdletContext(); // allow for manipulation of parameters prior to loading into context PreExecutionContextLoad(context); #pragma warning disable CS0618, CS0612 //A class member was marked with the Obsolete attribute if (ParameterWasBound(nameof(this.Select))) { context.Select = CreateSelectDelegate(Select) ?? throw new System.ArgumentException("Invalid value for -Select parameter.", nameof(this.Select)); if (this.PassThru.IsPresent) { throw new System.ArgumentException("-PassThru cannot be used when -Select is specified.", nameof(this.Select)); } } else if (this.PassThru.IsPresent) { context.Select = (response, cmdlet) => this.KeyIdentifier; } #pragma warning restore CS0618, CS0612 //A class member was marked with the Obsolete attribute context.CipherText = this.CipherText; #if MODULAR if (this.CipherText == null && ParameterWasBound(nameof(this.CipherText))) { WriteWarning("You are passing $null as a value for parameter CipherText which is marked as required. In case you believe this parameter was incorrectly marked as required, report this by opening an issue at https://github.com/aws/aws-tools-for-powershell/issues."); } #endif context.Asymmetric_PaddingType = this.Asymmetric_PaddingType; context.Dukpt_DukptKeyDerivationType = this.Dukpt_DukptKeyDerivationType; context.Dukpt_DukptKeyVariant = this.Dukpt_DukptKeyVariant; context.Dukpt_InitializationVector = this.Dukpt_InitializationVector; context.Dukpt_KeySerialNumber = this.Dukpt_KeySerialNumber; context.Dukpt_Mode = this.Dukpt_Mode; context.Symmetric_InitializationVector = this.Symmetric_InitializationVector; context.Symmetric_Mode = this.Symmetric_Mode; context.Symmetric_PaddingType = this.Symmetric_PaddingType; context.KeyIdentifier = this.KeyIdentifier; #if MODULAR if (this.KeyIdentifier == null && ParameterWasBound(nameof(this.KeyIdentifier))) { WriteWarning("You are passing $null as a value for parameter KeyIdentifier which is marked as required. In case you believe this parameter was incorrectly marked as required, report this by opening an issue at https://github.com/aws/aws-tools-for-powershell/issues."); } #endif // allow further manipulation of loaded context prior to processing PostExecutionContextLoad(context); var output = Execute(context) as CmdletOutput; ProcessOutput(output); } #region IExecutor Members public object Execute(ExecutorContext context) { var cmdletContext = context as CmdletContext; // create request var request = new Amazon.PaymentCryptographyData.Model.DecryptDataRequest(); if (cmdletContext.CipherText != null) { request.CipherText = cmdletContext.CipherText; } // populate DecryptionAttributes var requestDecryptionAttributesIsNull = true; request.DecryptionAttributes = new Amazon.PaymentCryptographyData.Model.EncryptionDecryptionAttributes(); Amazon.PaymentCryptographyData.Model.AsymmetricEncryptionAttributes requestDecryptionAttributes_decryptionAttributes_Asymmetric = null; // populate Asymmetric var requestDecryptionAttributes_decryptionAttributes_AsymmetricIsNull = true; requestDecryptionAttributes_decryptionAttributes_Asymmetric = new Amazon.PaymentCryptographyData.Model.AsymmetricEncryptionAttributes(); Amazon.PaymentCryptographyData.PaddingType requestDecryptionAttributes_decryptionAttributes_Asymmetric_asymmetric_PaddingType = null; if (cmdletContext.Asymmetric_PaddingType != null) { requestDecryptionAttributes_decryptionAttributes_Asymmetric_asymmetric_PaddingType = cmdletContext.Asymmetric_PaddingType; } if (requestDecryptionAttributes_decryptionAttributes_Asymmetric_asymmetric_PaddingType != null) { requestDecryptionAttributes_decryptionAttributes_Asymmetric.PaddingType = requestDecryptionAttributes_decryptionAttributes_Asymmetric_asymmetric_PaddingType; requestDecryptionAttributes_decryptionAttributes_AsymmetricIsNull = false; } // determine if requestDecryptionAttributes_decryptionAttributes_Asymmetric should be set to null if (requestDecryptionAttributes_decryptionAttributes_AsymmetricIsNull) { requestDecryptionAttributes_decryptionAttributes_Asymmetric = null; } if (requestDecryptionAttributes_decryptionAttributes_Asymmetric != null) { request.DecryptionAttributes.Asymmetric = requestDecryptionAttributes_decryptionAttributes_Asymmetric; requestDecryptionAttributesIsNull = false; } Amazon.PaymentCryptographyData.Model.SymmetricEncryptionAttributes requestDecryptionAttributes_decryptionAttributes_Symmetric = null; // populate Symmetric var requestDecryptionAttributes_decryptionAttributes_SymmetricIsNull = true; requestDecryptionAttributes_decryptionAttributes_Symmetric = new Amazon.PaymentCryptographyData.Model.SymmetricEncryptionAttributes(); System.String requestDecryptionAttributes_decryptionAttributes_Symmetric_symmetric_InitializationVector = null; if (cmdletContext.Symmetric_InitializationVector != null) { requestDecryptionAttributes_decryptionAttributes_Symmetric_symmetric_InitializationVector = cmdletContext.Symmetric_InitializationVector; } if (requestDecryptionAttributes_decryptionAttributes_Symmetric_symmetric_InitializationVector != null) { requestDecryptionAttributes_decryptionAttributes_Symmetric.InitializationVector = requestDecryptionAttributes_decryptionAttributes_Symmetric_symmetric_InitializationVector; requestDecryptionAttributes_decryptionAttributes_SymmetricIsNull = false; } Amazon.PaymentCryptographyData.EncryptionMode requestDecryptionAttributes_decryptionAttributes_Symmetric_symmetric_Mode = null; if (cmdletContext.Symmetric_Mode != null) { requestDecryptionAttributes_decryptionAttributes_Symmetric_symmetric_Mode = cmdletContext.Symmetric_Mode; } if (requestDecryptionAttributes_decryptionAttributes_Symmetric_symmetric_Mode != null) { requestDecryptionAttributes_decryptionAttributes_Symmetric.Mode = requestDecryptionAttributes_decryptionAttributes_Symmetric_symmetric_Mode; requestDecryptionAttributes_decryptionAttributes_SymmetricIsNull = false; } Amazon.PaymentCryptographyData.PaddingType requestDecryptionAttributes_decryptionAttributes_Symmetric_symmetric_PaddingType = null; if (cmdletContext.Symmetric_PaddingType != null) { requestDecryptionAttributes_decryptionAttributes_Symmetric_symmetric_PaddingType = cmdletContext.Symmetric_PaddingType; } if (requestDecryptionAttributes_decryptionAttributes_Symmetric_symmetric_PaddingType != null) { requestDecryptionAttributes_decryptionAttributes_Symmetric.PaddingType = requestDecryptionAttributes_decryptionAttributes_Symmetric_symmetric_PaddingType; requestDecryptionAttributes_decryptionAttributes_SymmetricIsNull = false; } // determine if requestDecryptionAttributes_decryptionAttributes_Symmetric should be set to null if (requestDecryptionAttributes_decryptionAttributes_SymmetricIsNull) { requestDecryptionAttributes_decryptionAttributes_Symmetric = null; } if (requestDecryptionAttributes_decryptionAttributes_Symmetric != null) { request.DecryptionAttributes.Symmetric = requestDecryptionAttributes_decryptionAttributes_Symmetric; requestDecryptionAttributesIsNull = false; } Amazon.PaymentCryptographyData.Model.DukptEncryptionAttributes requestDecryptionAttributes_decryptionAttributes_Dukpt = null; // populate Dukpt var requestDecryptionAttributes_decryptionAttributes_DukptIsNull = true; requestDecryptionAttributes_decryptionAttributes_Dukpt = new Amazon.PaymentCryptographyData.Model.DukptEncryptionAttributes(); Amazon.PaymentCryptographyData.DukptDerivationType requestDecryptionAttributes_decryptionAttributes_Dukpt_dukpt_DukptKeyDerivationType = null; if (cmdletContext.Dukpt_DukptKeyDerivationType != null) { requestDecryptionAttributes_decryptionAttributes_Dukpt_dukpt_DukptKeyDerivationType = cmdletContext.Dukpt_DukptKeyDerivationType; } if (requestDecryptionAttributes_decryptionAttributes_Dukpt_dukpt_DukptKeyDerivationType != null) { requestDecryptionAttributes_decryptionAttributes_Dukpt.DukptKeyDerivationType = requestDecryptionAttributes_decryptionAttributes_Dukpt_dukpt_DukptKeyDerivationType; requestDecryptionAttributes_decryptionAttributes_DukptIsNull = false; } Amazon.PaymentCryptographyData.DukptKeyVariant requestDecryptionAttributes_decryptionAttributes_Dukpt_dukpt_DukptKeyVariant = null; if (cmdletContext.Dukpt_DukptKeyVariant != null) { requestDecryptionAttributes_decryptionAttributes_Dukpt_dukpt_DukptKeyVariant = cmdletContext.Dukpt_DukptKeyVariant; } if (requestDecryptionAttributes_decryptionAttributes_Dukpt_dukpt_DukptKeyVariant != null) { requestDecryptionAttributes_decryptionAttributes_Dukpt.DukptKeyVariant = requestDecryptionAttributes_decryptionAttributes_Dukpt_dukpt_DukptKeyVariant; requestDecryptionAttributes_decryptionAttributes_DukptIsNull = false; } System.String requestDecryptionAttributes_decryptionAttributes_Dukpt_dukpt_InitializationVector = null; if (cmdletContext.Dukpt_InitializationVector != null) { requestDecryptionAttributes_decryptionAttributes_Dukpt_dukpt_InitializationVector = cmdletContext.Dukpt_InitializationVector; } if (requestDecryptionAttributes_decryptionAttributes_Dukpt_dukpt_InitializationVector != null) { requestDecryptionAttributes_decryptionAttributes_Dukpt.InitializationVector = requestDecryptionAttributes_decryptionAttributes_Dukpt_dukpt_InitializationVector; requestDecryptionAttributes_decryptionAttributes_DukptIsNull = false; } System.String requestDecryptionAttributes_decryptionAttributes_Dukpt_dukpt_KeySerialNumber = null; if (cmdletContext.Dukpt_KeySerialNumber != null) { requestDecryptionAttributes_decryptionAttributes_Dukpt_dukpt_KeySerialNumber = cmdletContext.Dukpt_KeySerialNumber; } if (requestDecryptionAttributes_decryptionAttributes_Dukpt_dukpt_KeySerialNumber != null) { requestDecryptionAttributes_decryptionAttributes_Dukpt.KeySerialNumber = requestDecryptionAttributes_decryptionAttributes_Dukpt_dukpt_KeySerialNumber; requestDecryptionAttributes_decryptionAttributes_DukptIsNull = false; } Amazon.PaymentCryptographyData.DukptEncryptionMode requestDecryptionAttributes_decryptionAttributes_Dukpt_dukpt_Mode = null; if (cmdletContext.Dukpt_Mode != null) { requestDecryptionAttributes_decryptionAttributes_Dukpt_dukpt_Mode = cmdletContext.Dukpt_Mode; } if (requestDecryptionAttributes_decryptionAttributes_Dukpt_dukpt_Mode != null) { requestDecryptionAttributes_decryptionAttributes_Dukpt.Mode = requestDecryptionAttributes_decryptionAttributes_Dukpt_dukpt_Mode; requestDecryptionAttributes_decryptionAttributes_DukptIsNull = false; } // determine if requestDecryptionAttributes_decryptionAttributes_Dukpt should be set to null if (requestDecryptionAttributes_decryptionAttributes_DukptIsNull) { requestDecryptionAttributes_decryptionAttributes_Dukpt = null; } if (requestDecryptionAttributes_decryptionAttributes_Dukpt != null) { request.DecryptionAttributes.Dukpt = requestDecryptionAttributes_decryptionAttributes_Dukpt; requestDecryptionAttributesIsNull = false; } // determine if request.DecryptionAttributes should be set to null if (requestDecryptionAttributesIsNull) { request.DecryptionAttributes = null; } if (cmdletContext.KeyIdentifier != null) { request.KeyIdentifier = cmdletContext.KeyIdentifier; } CmdletOutput output; // issue call var client = Client ?? CreateClient(_CurrentCredentials, _RegionEndpoint); try { var response = CallAWSServiceOperation(client, request); object pipelineOutput = null; pipelineOutput = cmdletContext.Select(response, this); output = new CmdletOutput { PipelineOutput = pipelineOutput, ServiceResponse = response }; } catch (Exception e) { output = new CmdletOutput { ErrorResponse = e }; } return output; } public ExecutorContext CreateContext() { return new CmdletContext(); } #endregion #region AWS Service Operation Call private Amazon.PaymentCryptographyData.Model.DecryptDataResponse CallAWSServiceOperation(IAmazonPaymentCryptographyData client, Amazon.PaymentCryptographyData.Model.DecryptDataRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Payment Cryptography Data", "DecryptData"); try { #if DESKTOP return client.DecryptData(request); #elif CORECLR return client.DecryptDataAsync(request).GetAwaiter().GetResult(); #else #error "Unknown build edition" #endif } catch (AmazonServiceException exc) { var webException = exc.InnerException as System.Net.WebException; if (webException != null) { throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException); } throw; } } #endregion internal partial class CmdletContext : ExecutorContext { public System.String CipherText { get; set; } public Amazon.PaymentCryptographyData.PaddingType Asymmetric_PaddingType { get; set; } public Amazon.PaymentCryptographyData.DukptDerivationType Dukpt_DukptKeyDerivationType { get; set; } public Amazon.PaymentCryptographyData.DukptKeyVariant Dukpt_DukptKeyVariant { get; set; } public System.String Dukpt_InitializationVector { get; set; } public System.String Dukpt_KeySerialNumber { get; set; } public Amazon.PaymentCryptographyData.DukptEncryptionMode Dukpt_Mode { get; set; } public System.String Symmetric_InitializationVector { get; set; } public Amazon.PaymentCryptographyData.EncryptionMode Symmetric_Mode { get; set; } public Amazon.PaymentCryptographyData.PaddingType Symmetric_PaddingType { get; set; } public System.String KeyIdentifier { get; set; } public System.Func Select { get; set; } = (response, cmdlet) => response; } } }