From d96fb33b2914ffdeeae92388f0170276ed8d6e19 Mon Sep 17 00:00:00 2001 From: aws-sdk-dotnet-automation Date: Thu, 7 Nov 2024 22:01:16 +0000 Subject: [PATCH] 4.1.693 --- Include/sdk/_sdk-versions.json | 1572 ++++++++--------- changelogs/CHANGELOG.2024.md | 59 +- changelogs/CHANGELOG.ALL.md | 59 +- .../Config/ServiceConfig/bedrock-agent.xml | 4 + .../Config/ServiceConfig/cleanroomsml.xml | 132 ++ .../Config/ServiceConfig/quicksight.xml | 22 +- .../ServiceConfig/resource-explorer-2.xml | 8 + modules/AWSPowerShell/AWSAliases.ps1 | 71 + .../AWSPowerShellCompleters.psm1 | 123 +- .../AWS.Tools.AutoScaling.Completers.psm1 | 11 + .../Basic/New-ASAutoScalingGroup-Cmdlet.cs | 35 + .../Basic/Update-ASAutoScalingGroup-Cmdlet.cs | 35 + .../AWS.Tools.BedrockAgent.Completers.psm1 | 3 +- .../BedrockAgent/AWS.Tools.BedrockAgent.psd1 | 1 + .../Basic/Confirm-AABFlowDefinition-Cmdlet.cs | 234 +++ .../Basic/Invoke-BDRRConverse-Cmdlet.cs | 79 +- .../Basic/Invoke-BDRRConverseStream-Cmdlet.cs | 81 +- .../Basic/Invoke-BDRRModel-Cmdlet.cs | 12 - ...voke-BDRRModelWithResponseStream-Cmdlet.cs | 12 - .../Basic/New-CRSCollaboration-Cmdlet.cs | 141 ++ .../Basic/New-CRSMembership-Cmdlet.cs | 99 ++ .../AWS.Tools.CleanRoomsML.Completers.psm1 | 82 +- .../CleanRoomsML/AWS.Tools.CleanRoomsML.psd1 | 35 +- ...figuredModelAlgorithmAssociation-Cmdlet.cs | 212 +++ ...redModelAlgorithmAssociationList-Cmdlet.cs | 236 +++ ...-CRMLCollaborationMLInputChannel-Cmdlet.cs | 211 +++ ...LCollaborationMLInputChannelList-Cmdlet.cs | 236 +++ ...et-CRMLCollaborationTrainedModel-Cmdlet.cs | 212 +++ ...orationTrainedModelExportJobList-Cmdlet.cs | 246 +++ ...tionTrainedModelInferenceJobList-Cmdlet.cs | 253 +++ ...RMLCollaborationTrainedModelList-Cmdlet.cs | 236 +++ ...Get-CRMLConfiguredModelAlgorithm-Cmdlet.cs | 202 +++ ...figuredModelAlgorithmAssociation-Cmdlet.cs | 211 +++ ...redModelAlgorithmAssociationList-Cmdlet.cs | 236 +++ ...CRMLConfiguredModelAlgorithmList-Cmdlet.cs | 186 ++ .../Basic/Get-CRMLMLConfiguration-Cmdlet.cs | 202 +++ .../Basic/Get-CRMLMLInputChannel-Cmdlet.cs | 213 +++ .../Get-CRMLMLInputChannelList-Cmdlet.cs | 236 +++ .../Basic/Get-CRMLTrainedModel-Cmdlet.cs | 211 +++ ...Get-CRMLTrainedModelInferenceJob-Cmdlet.cs | 212 +++ ...CRMLTrainedModelInferenceJobList-Cmdlet.cs | 252 +++ .../Basic/Get-CRMLTrainedModelList-Cmdlet.cs | 236 +++ ...New-CRMLConfiguredModelAlgorithm-Cmdlet.cs | 448 +++++ ...figuredModelAlgorithmAssociation-Cmdlet.cs | 618 +++++++ .../Basic/New-CRMLMLInputChannel-Cmdlet.cs | 603 +++++++ .../Basic/New-CRMLTrainedModel-Cmdlet.cs | 537 ++++++ ...ove-CRMLConfiguredModelAlgorithm-Cmdlet.cs | 218 +++ ...figuredModelAlgorithmAssociation-Cmdlet.cs | 227 +++ .../Remove-CRMLMLConfiguration-Cmdlet.cs | 217 +++ .../Remove-CRMLMLInputChannelData-Cmdlet.cs | 227 +++ .../Remove-CRMLTrainedModelOutput-Cmdlet.cs | 226 +++ .../Start-CRMLTrainedModelExportJob-Cmdlet.cs | 319 ++++ ...art-CRMLTrainedModelInferenceJob-Cmdlet.cs | 576 ++++++ .../Basic/Stop-CRMLTrainedModel-Cmdlet.cs | 226 +++ ...top-CRMLTrainedModelInferenceJob-Cmdlet.cs | 227 +++ .../Basic/Write-CRMLMLConfiguration-Cmdlet.cs | 315 ++++ .../AWS.Tools.QuickSight.Completers.psm1 | 14 + .../Basic/New-QSDataSource-Cmdlet.cs | 532 ++++-- .../Basic/Update-QSDataSource-Cmdlet.cs | 532 ++++-- ...WS.Tools.ResourceExplorer2.Completers.psm1 | 2 + .../AWS.Tools.ResourceExplorer2.psd1 | 2 + .../Basic/Get-AREXManagedView-Cmdlet.cs | 205 +++ .../Basic/Get-AREXManagedViewList-Cmdlet.cs | 236 +++ .../AWS.Tools.Synthetics.Completers.psm1 | 11 + .../Basic/New-CWSYNCanary-Cmdlet.cs | 22 + .../Basic/Remove-CWSYNCanary-Cmdlet.cs | 13 +- .../Basic/Update-CWSYNCanary-Cmdlet.cs | 20 + modules/AWSPowerShell/CmdletsList.dat | Bin 160133 -> 160509 bytes modules/ModularAWSPowerShell/CmdletsList.dat | Bin 159509 -> 159835 bytes 69 files changed, 12650 insertions(+), 1072 deletions(-) create mode 100644 modules/AWSPowerShell/Cmdlets/BedrockAgent/Basic/Confirm-AABFlowDefinition-Cmdlet.cs create mode 100644 modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLCollaborationConfiguredModelAlgorithmAssociation-Cmdlet.cs create mode 100644 modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLCollaborationConfiguredModelAlgorithmAssociationList-Cmdlet.cs create mode 100644 modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLCollaborationMLInputChannel-Cmdlet.cs create mode 100644 modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLCollaborationMLInputChannelList-Cmdlet.cs create mode 100644 modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLCollaborationTrainedModel-Cmdlet.cs create mode 100644 modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLCollaborationTrainedModelExportJobList-Cmdlet.cs create mode 100644 modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLCollaborationTrainedModelInferenceJobList-Cmdlet.cs create mode 100644 modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLCollaborationTrainedModelList-Cmdlet.cs create mode 100644 modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLConfiguredModelAlgorithm-Cmdlet.cs create mode 100644 modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLConfiguredModelAlgorithmAssociation-Cmdlet.cs create mode 100644 modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLConfiguredModelAlgorithmAssociationList-Cmdlet.cs create mode 100644 modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLConfiguredModelAlgorithmList-Cmdlet.cs create mode 100644 modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLMLConfiguration-Cmdlet.cs create mode 100644 modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLMLInputChannel-Cmdlet.cs create mode 100644 modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLMLInputChannelList-Cmdlet.cs create mode 100644 modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLTrainedModel-Cmdlet.cs create mode 100644 modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLTrainedModelInferenceJob-Cmdlet.cs create mode 100644 modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLTrainedModelInferenceJobList-Cmdlet.cs create mode 100644 modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLTrainedModelList-Cmdlet.cs create mode 100644 modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/New-CRMLConfiguredModelAlgorithm-Cmdlet.cs create mode 100644 modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/New-CRMLConfiguredModelAlgorithmAssociation-Cmdlet.cs create mode 100644 modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/New-CRMLMLInputChannel-Cmdlet.cs create mode 100644 modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/New-CRMLTrainedModel-Cmdlet.cs create mode 100644 modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Remove-CRMLConfiguredModelAlgorithm-Cmdlet.cs create mode 100644 modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Remove-CRMLConfiguredModelAlgorithmAssociation-Cmdlet.cs create mode 100644 modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Remove-CRMLMLConfiguration-Cmdlet.cs create mode 100644 modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Remove-CRMLMLInputChannelData-Cmdlet.cs create mode 100644 modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Remove-CRMLTrainedModelOutput-Cmdlet.cs create mode 100644 modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Start-CRMLTrainedModelExportJob-Cmdlet.cs create mode 100644 modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Start-CRMLTrainedModelInferenceJob-Cmdlet.cs create mode 100644 modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Stop-CRMLTrainedModel-Cmdlet.cs create mode 100644 modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Stop-CRMLTrainedModelInferenceJob-Cmdlet.cs create mode 100644 modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Write-CRMLMLConfiguration-Cmdlet.cs create mode 100644 modules/AWSPowerShell/Cmdlets/ResourceExplorer2/Basic/Get-AREXManagedView-Cmdlet.cs create mode 100644 modules/AWSPowerShell/Cmdlets/ResourceExplorer2/Basic/Get-AREXManagedViewList-Cmdlet.cs diff --git a/Include/sdk/_sdk-versions.json b/Include/sdk/_sdk-versions.json index c73b20658d..57e04951bd 100644 --- a/Include/sdk/_sdk-versions.json +++ b/Include/sdk/_sdk-versions.json @@ -1,3133 +1,3133 @@ { "NewServiceVersion" : "3.7.400.0", - "ProductVersion" : "3.7.920.0", - "CoreVersion" : "3.7.400.45", + "ProductVersion" : "3.7.921.0", + "CoreVersion" : "3.7.400.46", "OverrideCoreVersion" : "3.3", "DefaultToPreview" : false, "PreviewLabel" : null, "ServiceVersions" : { "CloudHSM" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "AutoScaling" : { - "Version" : "3.7.403.1", + "Version" : "3.7.404.0", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "AWSSupport" : { - "Version" : "3.7.400.46", + "Version" : "3.7.400.47", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CloudFormation" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CloudFront" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3.4.0", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CloudSearch" : { - "Version" : "3.7.400.46", + "Version" : "3.7.400.47", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CloudSearchDomain" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CloudTrail" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ConfigService" : { - "Version" : "3.7.401.41", + "Version" : "3.7.401.42", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CloudWatch" : { - "Version" : "3.7.401.43", + "Version" : "3.7.401.44", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CloudWatchLogs" : { - "Version" : "3.7.406.0", + "Version" : "3.7.406.1", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CodeDeploy" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CognitoIdentity" : { - "Version" : "3.7.401.27", + "Version" : "3.7.401.28", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45", - "SecurityToken" : "3.7.400.45" + "Core" : "3.7.400.46", + "SecurityToken" : "3.7.400.46" }, "InPreview" : false }, "CognitoSync" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45", - "CognitoIdentity" : "3.7.401.27" + "Core" : "3.7.400.46", + "CognitoIdentity" : "3.7.401.28" }, "InPreview" : false }, "DataPipeline" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "DeviceFarm" : { - "Version" : "3.7.401.33", + "Version" : "3.7.401.34", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "DirectConnect" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "DynamoDBv2" : { - "Version" : "3.7.402.9", + "Version" : "3.7.402.10", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "EC2" : { - "Version" : "3.7.414.2", + "Version" : "3.7.414.3", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ECS" : { - "Version" : "3.7.404.2", + "Version" : "3.7.404.3", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ElastiCache" : { - "Version" : "3.7.401.13", + "Version" : "3.7.401.14", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ElasticBeanstalk" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ElasticLoadBalancing" : { - "Version" : "3.7.401.43", + "Version" : "3.7.401.44", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ElasticMapReduce" : { - "Version" : "3.7.402.12", + "Version" : "3.7.402.13", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ElasticTranscoder" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Glacier" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45", - "SQS" : "3.7.400.45", - "SimpleNotificationService" : "3.7.400.45" + "Core" : "3.7.400.46", + "SQS" : "3.7.400.46", + "SimpleNotificationService" : "3.7.400.46" }, "InPreview" : false }, "IdentityManagement" : { - "Version" : "3.7.402.39", + "Version" : "3.7.402.40", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ImportExport" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Kinesis" : { - "Version" : "3.7.402.22", + "Version" : "3.7.402.23", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Lambda" : { - "Version" : "3.7.406.5", + "Version" : "3.7.406.6", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "KeyManagementService" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "MachineLearning" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "MobileAnalytics" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "OpsWorks" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "RDS" : { - "Version" : "3.7.406.4", + "Version" : "3.7.406.5", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Redshift" : { - "Version" : "3.7.403.2", + "Version" : "3.7.403.3", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Route53" : { - "Version" : "3.7.403.2", + "Version" : "3.7.403.3", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Route53Domains" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "S3" : { - "Version" : "3.7.405.9", + "Version" : "3.7.405.10", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "SecurityToken" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "SimpleDB" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "SimpleEmail" : { - "Version" : "3.7.401.35", + "Version" : "3.7.401.36", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "SimpleNotificationService" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "SimpleWorkflow" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "SQS" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "SimpleSystemsManagement" : { - "Version" : "3.7.402.24", + "Version" : "3.7.402.25", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "StorageGateway" : { - "Version" : "3.7.401.26", + "Version" : "3.7.401.27", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "WorkSpaces" : { - "Version" : "3.7.404.9", + "Version" : "3.7.404.10", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "DirectoryService" : { - "Version" : "3.7.401.24", + "Version" : "3.7.401.25", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ElasticFileSystem" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CodeCommit" : { - "Version" : "3.7.401.45", + "Version" : "3.7.401.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CodePipeline" : { - "Version" : "3.7.404.11", + "Version" : "3.7.404.12", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Elasticsearch" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "WAF" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "KinesisFirehose" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "AWSMarketplaceCommerceAnalytics" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Inspector" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "IoT" : { - "Version" : "3.7.402.16", + "Version" : "3.7.402.17", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "IotData" : { - "Version" : "3.7.401.15", + "Version" : "3.7.401.16", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "APIGateway" : { - "Version" : "3.7.400.46", + "Version" : "3.7.400.47", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ECR" : { - "Version" : "3.7.404.24", + "Version" : "3.7.404.25", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CloudWatchEvents" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CertificateManager" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "GameLift" : { - "Version" : "3.7.401.30", + "Version" : "3.7.401.31", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "DatabaseMigrationService" : { - "Version" : "3.7.402.9", + "Version" : "3.7.402.10", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "AWSMarketplaceMetering" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CognitoIdentityProvider" : { - "Version" : "3.7.403.26", + "Version" : "3.7.403.27", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ApplicationDiscoveryService" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ApplicationAutoScaling" : { - "Version" : "3.7.401.45", + "Version" : "3.7.401.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ServiceCatalog" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ElasticLoadBalancingV2" : { - "Version" : "3.7.406.1", + "Version" : "3.7.406.2", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "KinesisAnalytics" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Snowball" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Budgets" : { - "Version" : "3.7.401.22", + "Version" : "3.7.401.23", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ServerMigrationService" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Rekognition" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Lightsail" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Polly" : { - "Version" : "3.7.401.34", + "Version" : "3.7.401.35", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "StepFunctions" : { - "Version" : "3.7.402.33", + "Version" : "3.7.402.34", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "AppStream" : { - "Version" : "3.7.403.17", + "Version" : "3.7.403.18", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "OpsWorksCM" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CodeBuild" : { - "Version" : "3.7.406.0", + "Version" : "3.7.406.1", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Pinpoint" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Shield" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "AWSHealth" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "XRay" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "WAFRegional" : { - "Version" : "3.7.401.43", + "Version" : "3.7.401.44", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Batch" : { - "Version" : "3.7.402.1", + "Version" : "3.7.402.2", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CostAndUsageReport" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CloudDirectory" : { - "Version" : "3.7.400.46", + "Version" : "3.7.400.47", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Lex" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "MTurk" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Organizations" : { - "Version" : "3.7.402.20", + "Version" : "3.7.402.21", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "WorkDocs" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ResourceGroupsTaggingAPI" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "LexModelBuildingService" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "MarketplaceEntitlementService" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Athena" : { - "Version" : "3.7.402.9", + "Version" : "3.7.402.10", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Greengrass" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "DAX" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "MigrationHub" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Glue" : { - "Version" : "3.7.409.1", + "Version" : "3.7.409.2", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CloudHSMV2" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Pricing" : { - "Version" : "3.7.400.46", + "Version" : "3.7.400.47", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CostExplorer" : { - "Version" : "3.7.401.24", + "Version" : "3.7.401.25", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "MediaPackage" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "MediaLive" : { - "Version" : "3.7.405.24", + "Version" : "3.7.405.25", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "MediaStoreData" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "MediaStore" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "MediaConvert" : { - "Version" : "3.7.402.24", + "Version" : "3.7.402.25", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "MQ" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "GuardDuty" : { - "Version" : "3.7.404.0", + "Version" : "3.7.404.1", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "AppSync" : { - "Version" : "3.7.402.2", + "Version" : "3.7.402.3", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "SageMakerRuntime" : { - "Version" : "3.7.401.28", + "Version" : "3.7.401.29", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "IoTJobsDataPlane" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "SageMaker" : { - "Version" : "3.7.414.1", + "Version" : "3.7.414.2", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Translate" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Comprehend" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "KinesisVideo" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "KinesisVideoMedia" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "KinesisVideoArchivedMedia" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ResourceGroups" : { - "Version" : "3.7.401.19", + "Version" : "3.7.401.20", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ServerlessApplicationRepository" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Cloud9" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ServiceDiscovery" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "WorkMail" : { - "Version" : "3.7.401.2", + "Version" : "3.7.401.3", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "AutoScalingPlans" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "TranscribeService" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Connect" : { - "Version" : "3.7.408.2", + "Version" : "3.7.408.3", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "FMS" : { - "Version" : "3.7.401.9", + "Version" : "3.7.401.10", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "SecretsManager" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ACMPCA" : { - "Version" : "3.7.400.46", + "Version" : "3.7.400.47", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "IoTAnalytics" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "IoT1ClickDevicesService" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "IoT1ClickProjects" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "PI" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Neptune" : { - "Version" : "3.7.401.23", + "Version" : "3.7.401.24", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "MediaTailor" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "EKS" : { - "Version" : "3.7.403.9", + "Version" : "3.7.403.10", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "DLM" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Signer" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Chime" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "PinpointEmail" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "PinpointSMSVoice" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "S3Control" : { - "Version" : "3.7.402.0", + "Version" : "3.7.402.1", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "RAM" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Route53Resolver" : { - "Version" : "3.7.401.12", + "Version" : "3.7.401.13", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "RDSDataService" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "QuickSight" : { - "Version" : "3.7.407.9", + "Version" : "3.7.408.0", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Amplify" : { - "Version" : "3.7.402.10", + "Version" : "3.7.402.11", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "RoboMaker" : { - "Version" : "3.7.400.46", + "Version" : "3.7.400.47", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "DataSync" : { - "Version" : "3.7.401.2", + "Version" : "3.7.401.3", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Transfer" : { - "Version" : "3.7.401.11", + "Version" : "3.7.401.12", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "GlobalAccelerator" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ComprehendMedical" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "KinesisAnalyticsV2" : { - "Version" : "3.7.401.30", + "Version" : "3.7.401.31", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "MediaConnect" : { - "Version" : "3.7.401.32", + "Version" : "3.7.401.33", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "FSx" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "SecurityHub" : { - "Version" : "3.7.401.35", + "Version" : "3.7.401.36", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "LicenseManager" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "AppMesh" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Kafka" : { - "Version" : "3.7.401.28", + "Version" : "3.7.401.29", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ApiGatewayManagementApi" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ApiGatewayV2" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "DocDB" : { - "Version" : "3.7.401.39", + "Version" : "3.7.401.40", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Backup" : { - "Version" : "3.7.401.32", + "Version" : "3.7.401.33", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Textract" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ManagedBlockchain" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "MediaPackageVod" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "GroundStation" : { - "Version" : "3.7.400.46", + "Version" : "3.7.400.47", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "IoTThingsGraph" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "IoTEvents" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "IoTEventsData" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "PersonalizeRuntime" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Personalize" : { - "Version" : "3.7.401.33", + "Version" : "3.7.401.34", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "PersonalizeEvents" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ServiceQuotas" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ApplicationInsights" : { - "Version" : "3.7.401.9", + "Version" : "3.7.401.10", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "EC2InstanceConnect" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "EventBridge" : { - "Version" : "3.7.401.43", + "Version" : "3.7.401.44", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "LakeFormation" : { - "Version" : "3.7.401.0", + "Version" : "3.7.401.1", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ForecastService" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ForecastQueryService" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "QLDB" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "QLDBSession" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "WorkMailMessageFlow" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CodeStarNotifications" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "SavingsPlans" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "SSO" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "SSOOIDC" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "MarketplaceCatalog" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "SimpleEmailV2" : { - "Version" : "3.7.404.1", + "Version" : "3.7.404.2", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "DataExchange" : { - "Version" : "3.7.401.9", + "Version" : "3.7.401.10", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "MigrationHubConfig" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ConnectParticipant" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "WAFV2" : { - "Version" : "3.7.402.9", + "Version" : "3.7.402.10", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "AppConfig" : { - "Version" : "3.7.402.6", + "Version" : "3.7.402.7", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "IoTSecureTunneling" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ElasticInference" : { - "Version" : "3.7.400.46", + "Version" : "3.7.400.47", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Imagebuilder" : { - "Version" : "3.7.401.8", + "Version" : "3.7.401.9", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Schemas" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "AccessAnalyzer" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ComputeOptimizer" : { - "Version" : "3.7.400.46", + "Version" : "3.7.400.47", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "NetworkManager" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Kendra" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "FraudDetector" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CodeGuruReviewer" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CodeGuruProfiler" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Outposts" : { - "Version" : "3.7.402.12", + "Version" : "3.7.402.13", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "AugmentedAIRuntime" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "EBS" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "KinesisVideoSignalingChannels" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Detective" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CodeStarconnections" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Synthetics" : { - "Version" : "3.7.401.26", + "Version" : "3.7.402.0", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "IoTSiteWise" : { - "Version" : "3.7.401.34", + "Version" : "3.7.401.35", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Macie2" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CodeArtifact" : { - "Version" : "3.7.401.18", + "Version" : "3.7.401.19", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "IVS" : { - "Version" : "3.7.401.10", + "Version" : "3.7.401.11", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Braket" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "IdentityStore" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Appflow" : { - "Version" : "3.7.400.46", + "Version" : "3.7.400.47", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "RedshiftDataAPIService" : { - "Version" : "3.7.402.3", + "Version" : "3.7.402.4", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "SSOAdmin" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "TimestreamWrite" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "TimestreamQuery" : { - "Version" : "3.7.401.8", + "Version" : "3.7.401.9", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "S3Outposts" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "GlueDataBrew" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "AppRegistry" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "NetworkFirewall" : { - "Version" : "3.7.402.2", + "Version" : "3.7.402.3", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "MWAA" : { - "Version" : "3.7.401.7", + "Version" : "3.7.401.8", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "DevOpsGuru" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "SageMakerFeatureStoreRuntime" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "AppIntegrationsService" : { - "Version" : "3.7.401.42", + "Version" : "3.7.401.43", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ECRPublic" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "AmplifyBackend" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ConnectContactLens" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "LookoutforVision" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CustomerProfiles" : { - "Version" : "3.7.401.19", + "Version" : "3.7.401.20", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "EMRContainers" : { - "Version" : "3.7.401.34", + "Version" : "3.7.401.35", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "SagemakerEdgeManager" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "HealthLake" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "AuditManager" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "PrometheusService" : { - "Version" : "3.7.401.1", + "Version" : "3.7.401.2", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "GreengrassV2" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "IoTWireless" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "IoTFleetHub" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "IoTDeviceAdvisor" : { - "Version" : "3.7.401.17", + "Version" : "3.7.401.18", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "LocationService" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "WellArchitected" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "LexRuntimeV2" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "LexModelsV2" : { - "Version" : "3.7.402.26", + "Version" : "3.7.402.27", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "FIS" : { - "Version" : "3.7.402.31", + "Version" : "3.7.402.32", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "LookoutMetrics" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Mgn" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "LookoutEquipment" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "FinSpaceData" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Finspace" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "SSMIncidents" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "SSMContacts" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ApplicationCostProfiler" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "AppRunner" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Proton" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Route53RecoveryReadiness" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Route53RecoveryControlConfig" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Route53RecoveryCluster" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ChimeSDKMessaging" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ChimeSDKIdentity" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "SnowDeviceManagement" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "MemoryDB" : { - "Version" : "3.7.401.13", + "Version" : "3.7.401.14", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "OpenSearchService" : { - "Version" : "3.7.402.2", + "Version" : "3.7.402.3", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "KafkaConnect" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ConnectWisdomService" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "VoiceID" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Account" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CloudControlApi" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ManagedGrafana" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Panorama" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ChimeSDKMeetings" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ResilienceHub" : { - "Version" : "3.7.402.10", + "Version" : "3.7.402.11", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "MigrationHubStrategyRecommendations" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Drs" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "AppConfigData" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "MigrationHubRefactorSpaces" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Inspector2" : { - "Version" : "3.7.402.34", + "Version" : "3.7.402.35", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CloudWatchEvidently" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CloudWatchRUM" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "RecycleBin" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "IoTTwinMaker" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "WorkSpacesWeb" : { - "Version" : "3.7.401.24", + "Version" : "3.7.401.25", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "BackupGateway" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "AmplifyUIBuilder" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Keyspaces" : { - "Version" : "3.7.401.2", + "Version" : "3.7.401.3", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "BillingConductor" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "PinpointSMSVoiceV2" : { - "Version" : "3.7.402.9", + "Version" : "3.7.402.10", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Ivschat" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ChimeSDKMediaPipelines" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "EMRServerless" : { - "Version" : "3.7.401.23", + "Version" : "3.7.401.24", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "MainframeModernization" : { - "Version" : "3.7.401.8", + "Version" : "3.7.401.9", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ConnectCampaignService" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "RedshiftServerless" : { - "Version" : "3.7.401.2", + "Version" : "3.7.401.3", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "IAMRolesAnywhere" : { - "Version" : "3.7.401.43", + "Version" : "3.7.401.44", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "LicenseManagerUserSubscriptions" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Private5G" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "SupportApp" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ControlTower" : { - "Version" : "3.7.400.46", + "Version" : "3.7.400.47", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "IoTFleetWise" : { - "Version" : "3.7.402.3", + "Version" : "3.7.402.4", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "MigrationHubOrchestrator" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ConnectCases" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ResourceExplorer2" : { - "Version" : "3.7.401.23", + "Version" : "3.7.402.0", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Scheduler" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ChimeSDKVoice" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "SsmSap" : { - "Version" : "3.7.401.37", + "Version" : "3.7.401.38", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "OAM" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ARCZonalShift" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "SimSpaceWeaver" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "SecurityLake" : { - "Version" : "3.7.401.11", + "Version" : "3.7.401.12", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "OpenSearchServerless" : { - "Version" : "3.7.402.2", + "Version" : "3.7.402.3", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Omics" : { - "Version" : "3.7.401.34", + "Version" : "3.7.401.35", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "DocDBElastic" : { - "Version" : "3.7.401.0", + "Version" : "3.7.401.1", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "SageMakerGeospatial" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Pipes" : { - "Version" : "3.7.402.9", + "Version" : "3.7.402.10", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CodeCatalyst" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "SageMakerMetrics" : { - "Version" : "3.7.401.23", + "Version" : "3.7.401.24", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "KinesisVideoWebRTCStorage" : { - "Version" : "3.7.401.42", + "Version" : "3.7.401.43", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "LicenseManagerLinuxSubscriptions" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "KendraRanking" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CleanRooms" : { - "Version" : "3.7.401.3", + "Version" : "3.7.402.0", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CloudTrailData" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Tnb" : { - "Version" : "3.7.401.43", + "Version" : "3.7.401.44", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "InternetMonitor" : { - "Version" : "3.7.401.33", + "Version" : "3.7.401.34", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "IVSRealTime" : { - "Version" : "3.7.402.17", + "Version" : "3.7.402.18", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "VPCLattice" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "OSIS" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "MediaPackageV2" : { - "Version" : "3.7.402.4", + "Version" : "3.7.402.5", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "PaymentCryptographyData" : { - "Version" : "3.7.402.7", + "Version" : "3.7.402.8", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "PaymentCryptography" : { - "Version" : "3.7.401.7", + "Version" : "3.7.401.8", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CodeGuruSecurity" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "VerifiedPermissions" : { - "Version" : "3.7.401.0", + "Version" : "3.7.401.1", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "AppFabric" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "MedicalImaging" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "EntityResolution" : { - "Version" : "3.7.401.35", + "Version" : "3.7.401.36", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ManagedBlockchainQuery" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "PcaConnectorAd" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Neptunedata" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "BedrockRuntime" : { - "Version" : "3.7.407.3", + "Version" : "3.7.408.0", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Bedrock" : { - "Version" : "3.7.409.3", + "Version" : "3.7.409.4", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "DataZone" : { - "Version" : "3.7.406.9", + "Version" : "3.7.406.10", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "LaunchWizard" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "TrustedAdvisor" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CloudFrontKeyValueStore" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "InspectorScan" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CostOptimizationHub" : { - "Version" : "3.7.401.42", + "Version" : "3.7.401.43", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Repostspace" : { - "Version" : "3.7.401.8", + "Version" : "3.7.401.9", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "BCMDataExports" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "FreeTier" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "EKSAuth" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "WorkSpacesThinClient" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "B2bi" : { - "Version" : "3.7.401.17", + "Version" : "3.7.401.18", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "BedrockAgentRuntime" : { - "Version" : "3.7.406.9", + "Version" : "3.7.406.10", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "QBusiness" : { - "Version" : "3.7.403.6", + "Version" : "3.7.403.7", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "QConnect" : { - "Version" : "3.7.401.14", + "Version" : "3.7.401.15", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "BedrockAgent" : { - "Version" : "3.7.408.0", + "Version" : "3.7.409.0", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CleanRoomsML" : { - "Version" : "3.7.400.45", + "Version" : "3.7.401.0", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "MarketplaceDeployment" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "MarketplaceAgreement" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "NeptuneGraph" : { - "Version" : "3.7.402.12", + "Version" : "3.7.402.13", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "NetworkMonitor" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "SupplyChain" : { - "Version" : "3.7.403.5", + "Version" : "3.7.403.6", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Artifact" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Chatbot" : { - "Version" : "3.7.402.20", + "Version" : "3.7.402.21", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "TimestreamInfluxDB" : { - "Version" : "3.7.403.12", + "Version" : "3.7.403.13", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "CodeConnections" : { - "Version" : "3.7.401.24", + "Version" : "3.7.401.25", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Deadline" : { - "Version" : "3.7.402.14", + "Version" : "3.7.402.15", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ControlCatalog" : { - "Version" : "3.7.401.43", + "Version" : "3.7.401.44", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "Route53Profiles" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "MailManager" : { - "Version" : "3.7.402.11", + "Version" : "3.7.402.12", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "TaxSettings" : { - "Version" : "3.7.401.0", + "Version" : "3.7.401.1", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "ApplicationSignals" : { - "Version" : "3.7.402.30", + "Version" : "3.7.402.31", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "PcaConnectorScep" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "AppTest" : { - "Version" : "3.7.400.45", + "Version" : "3.7.400.46", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "QApps" : { - "Version" : "3.7.402.0", + "Version" : "3.7.402.1", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "SSMQuickSetup" : { - "Version" : "3.7.400.43", + "Version" : "3.7.400.44", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "PCS" : { - "Version" : "3.7.400.33", + "Version" : "3.7.400.34", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "DirectoryServiceData" : { - "Version" : "3.7.400.24", + "Version" : "3.7.400.25", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "MarketplaceReporting" : { - "Version" : "3.7.400.16", + "Version" : "3.7.400.17", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "SocialMessaging" : { - "Version" : "3.7.400.12", + "Version" : "3.7.400.13", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "GeoPlaces" : { - "Version" : "3.7.400.2", + "Version" : "3.7.400.3", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "GeoMaps" : { - "Version" : "3.7.400.2", + "Version" : "3.7.400.3", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false }, "GeoRoutes" : { - "Version" : "3.7.400.2", + "Version" : "3.7.400.3", "AssemblyVersionOverride" : "3.3", "Dependencies" : { - "Core" : "3.7.400.45" + "Core" : "3.7.400.46" }, "InPreview" : false } diff --git a/changelogs/CHANGELOG.2024.md b/changelogs/CHANGELOG.2024.md index 37cd7e9725..408501559a 100644 --- a/changelogs/CHANGELOG.2024.md +++ b/changelogs/CHANGELOG.2024.md @@ -1,4 +1,61 @@ -### 4.1.692 (2024-11-06 21:12Z) +### 4.1.693 (2024-11-07 21:51Z) + * AWS Tools for PowerShell now use AWS .NET SDK 3.7.921.0 and leverage its new features and improvements. Please find a description of the changes at https://github.com/aws/aws-sdk-net/blob/main/changelogs/SDK.CHANGELOG.ALL.md. + * Amazon Agents for Amazon Bedrock + * Added cmdlet Confirm-AABFlowDefinition leveraging the ValidateFlowDefinition service API. + * Amazon Auto Scaling + * Modified cmdlet New-ASAutoScalingGroup: added parameter AvailabilityZoneDistribution_CapacityDistributionStrategy. + * Modified cmdlet Update-ASAutoScalingGroup: added parameter AvailabilityZoneDistribution_CapacityDistributionStrategy. + * Amazon Bedrock Runtime + * Modified cmdlet Invoke-BDRRConverse: added parameter PromptVariable. + * Modified cmdlet Invoke-BDRRConverseStream: added parameter PromptVariable. + * Amazon Clean Rooms Service + * Modified cmdlet New-CRSCollaboration: added parameters CreatorMLMemberAbilities_CustomMLMemberAbility, ModelInference_IsResponsible and ModelTraining_IsResponsible. + * Modified cmdlet New-CRSMembership: added parameters ModelInference_IsResponsible and ModelTraining_IsResponsible. + * Amazon CleanRoomsML + * Added cmdlet Get-CRMLCollaborationConfiguredModelAlgorithmAssociation leveraging the GetCollaborationConfiguredModelAlgorithmAssociation service API. + * Added cmdlet Get-CRMLCollaborationConfiguredModelAlgorithmAssociationList leveraging the ListCollaborationConfiguredModelAlgorithmAssociations service API. + * Added cmdlet Get-CRMLCollaborationMLInputChannel leveraging the GetCollaborationMLInputChannel service API. + * Added cmdlet Get-CRMLCollaborationMLInputChannelList leveraging the ListCollaborationMLInputChannels service API. + * Added cmdlet Get-CRMLCollaborationTrainedModel leveraging the GetCollaborationTrainedModel service API. + * Added cmdlet Get-CRMLCollaborationTrainedModelExportJobList leveraging the ListCollaborationTrainedModelExportJobs service API. + * Added cmdlet Get-CRMLCollaborationTrainedModelInferenceJobList leveraging the ListCollaborationTrainedModelInferenceJobs service API. + * Added cmdlet Get-CRMLCollaborationTrainedModelList leveraging the ListCollaborationTrainedModels service API. + * Added cmdlet Get-CRMLConfiguredModelAlgorithm leveraging the GetConfiguredModelAlgorithm service API. + * Added cmdlet Get-CRMLConfiguredModelAlgorithmAssociation leveraging the GetConfiguredModelAlgorithmAssociation service API. + * Added cmdlet Get-CRMLConfiguredModelAlgorithmAssociationList leveraging the ListConfiguredModelAlgorithmAssociations service API. + * Added cmdlet Get-CRMLConfiguredModelAlgorithmList leveraging the ListConfiguredModelAlgorithms service API. + * Added cmdlet Get-CRMLMLConfiguration leveraging the GetMLConfiguration service API. + * Added cmdlet Get-CRMLMLInputChannel leveraging the GetMLInputChannel service API. + * Added cmdlet Get-CRMLMLInputChannelList leveraging the ListMLInputChannels service API. + * Added cmdlet Get-CRMLTrainedModel leveraging the GetTrainedModel service API. + * Added cmdlet Get-CRMLTrainedModelInferenceJob leveraging the GetTrainedModelInferenceJob service API. + * Added cmdlet Get-CRMLTrainedModelInferenceJobList leveraging the ListTrainedModelInferenceJobs service API. + * Added cmdlet Get-CRMLTrainedModelList leveraging the ListTrainedModels service API. + * Added cmdlet New-CRMLConfiguredModelAlgorithm leveraging the CreateConfiguredModelAlgorithm service API. + * Added cmdlet New-CRMLConfiguredModelAlgorithmAssociation leveraging the CreateConfiguredModelAlgorithmAssociation service API. + * Added cmdlet New-CRMLMLInputChannel leveraging the CreateMLInputChannel service API. + * Added cmdlet New-CRMLTrainedModel leveraging the CreateTrainedModel service API. + * Added cmdlet Remove-CRMLConfiguredModelAlgorithm leveraging the DeleteConfiguredModelAlgorithm service API. + * Added cmdlet Remove-CRMLConfiguredModelAlgorithmAssociation leveraging the DeleteConfiguredModelAlgorithmAssociation service API. + * Added cmdlet Remove-CRMLMLConfiguration leveraging the DeleteMLConfiguration service API. + * Added cmdlet Remove-CRMLMLInputChannelData leveraging the DeleteMLInputChannelData service API. + * Added cmdlet Remove-CRMLTrainedModelOutput leveraging the DeleteTrainedModelOutput service API. + * Added cmdlet Start-CRMLTrainedModelExportJob leveraging the StartTrainedModelExportJob service API. + * Added cmdlet Start-CRMLTrainedModelInferenceJob leveraging the StartTrainedModelInferenceJob service API. + * Added cmdlet Stop-CRMLTrainedModel leveraging the CancelTrainedModel service API. + * Added cmdlet Stop-CRMLTrainedModelInferenceJob leveraging the CancelTrainedModelInferenceJob service API. + * Added cmdlet Write-CRMLMLConfiguration leveraging the PutMLConfiguration service API. + * Amazon CloudWatch Synthetics + * Modified cmdlet New-CWSYNCanary: added parameter ProvisionedResourceCleanup. + * Modified cmdlet Update-CWSYNCanary: added parameter ProvisionedResourceCleanup. + * Amazon QuickSight + * Modified cmdlet New-QSDataSource: added parameters DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderResourceUri, DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn, DataSourceParameters_SnowflakeParameters_OAuthParameters_OAuthScope, DataSourceParameters_SnowflakeParameters_OAuthParameters_TokenProviderUrl, DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderResourceUri, DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn, DataSourceParameters_StarburstParameters_OAuthParameters_OAuthScope, DataSourceParameters_StarburstParameters_OAuthParameters_TokenProviderUrl, SnowflakeParameters_AuthenticationType, SnowflakeParameters_DatabaseAccessControlRole, StarburstParameters_AuthenticationType and StarburstParameters_DatabaseAccessControlRole. + * Modified cmdlet Update-QSDataSource: added parameters DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderResourceUri, DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn, DataSourceParameters_SnowflakeParameters_OAuthParameters_OAuthScope, DataSourceParameters_SnowflakeParameters_OAuthParameters_TokenProviderUrl, DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderResourceUri, DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn, DataSourceParameters_StarburstParameters_OAuthParameters_OAuthScope, DataSourceParameters_StarburstParameters_OAuthParameters_TokenProviderUrl, SnowflakeParameters_AuthenticationType, SnowflakeParameters_DatabaseAccessControlRole, StarburstParameters_AuthenticationType and StarburstParameters_DatabaseAccessControlRole. + * Amazon Resource Explorer + * Added cmdlet Get-AREXManagedView leveraging the GetManagedView service API. + * Added cmdlet Get-AREXManagedViewList leveraging the ListManagedViews service API. + +### 4.1.692 (2024-11-06 21:12Z) * AWS Tools for PowerShell now use AWS .NET SDK 3.7.920.0 and leverage its new features and improvements. Please find a description of the changes at https://github.com/aws/aws-sdk-net/blob/main/changelogs/SDK.CHANGELOG.ALL.md. * Amazon CodeBuild * Modified cmdlet New-CBFleet: added parameters ComputeConfiguration_Disk, ComputeConfiguration_MachineType, ComputeConfiguration_Memory and ComputeConfiguration_VCpu. diff --git a/changelogs/CHANGELOG.ALL.md b/changelogs/CHANGELOG.ALL.md index c8d0061bf6..599208b2e3 100644 --- a/changelogs/CHANGELOG.ALL.md +++ b/changelogs/CHANGELOG.ALL.md @@ -1,4 +1,61 @@ -### 4.1.692 (2024-11-06 21:12Z) +### 4.1.693 (2024-11-07 21:51Z) + * AWS Tools for PowerShell now use AWS .NET SDK 3.7.921.0 and leverage its new features and improvements. Please find a description of the changes at https://github.com/aws/aws-sdk-net/blob/main/changelogs/SDK.CHANGELOG.ALL.md. + * Amazon Agents for Amazon Bedrock + * Added cmdlet Confirm-AABFlowDefinition leveraging the ValidateFlowDefinition service API. + * Amazon Auto Scaling + * Modified cmdlet New-ASAutoScalingGroup: added parameter AvailabilityZoneDistribution_CapacityDistributionStrategy. + * Modified cmdlet Update-ASAutoScalingGroup: added parameter AvailabilityZoneDistribution_CapacityDistributionStrategy. + * Amazon Bedrock Runtime + * Modified cmdlet Invoke-BDRRConverse: added parameter PromptVariable. + * Modified cmdlet Invoke-BDRRConverseStream: added parameter PromptVariable. + * Amazon Clean Rooms Service + * Modified cmdlet New-CRSCollaboration: added parameters CreatorMLMemberAbilities_CustomMLMemberAbility, ModelInference_IsResponsible and ModelTraining_IsResponsible. + * Modified cmdlet New-CRSMembership: added parameters ModelInference_IsResponsible and ModelTraining_IsResponsible. + * Amazon CleanRoomsML + * Added cmdlet Get-CRMLCollaborationConfiguredModelAlgorithmAssociation leveraging the GetCollaborationConfiguredModelAlgorithmAssociation service API. + * Added cmdlet Get-CRMLCollaborationConfiguredModelAlgorithmAssociationList leveraging the ListCollaborationConfiguredModelAlgorithmAssociations service API. + * Added cmdlet Get-CRMLCollaborationMLInputChannel leveraging the GetCollaborationMLInputChannel service API. + * Added cmdlet Get-CRMLCollaborationMLInputChannelList leveraging the ListCollaborationMLInputChannels service API. + * Added cmdlet Get-CRMLCollaborationTrainedModel leveraging the GetCollaborationTrainedModel service API. + * Added cmdlet Get-CRMLCollaborationTrainedModelExportJobList leveraging the ListCollaborationTrainedModelExportJobs service API. + * Added cmdlet Get-CRMLCollaborationTrainedModelInferenceJobList leveraging the ListCollaborationTrainedModelInferenceJobs service API. + * Added cmdlet Get-CRMLCollaborationTrainedModelList leveraging the ListCollaborationTrainedModels service API. + * Added cmdlet Get-CRMLConfiguredModelAlgorithm leveraging the GetConfiguredModelAlgorithm service API. + * Added cmdlet Get-CRMLConfiguredModelAlgorithmAssociation leveraging the GetConfiguredModelAlgorithmAssociation service API. + * Added cmdlet Get-CRMLConfiguredModelAlgorithmAssociationList leveraging the ListConfiguredModelAlgorithmAssociations service API. + * Added cmdlet Get-CRMLConfiguredModelAlgorithmList leveraging the ListConfiguredModelAlgorithms service API. + * Added cmdlet Get-CRMLMLConfiguration leveraging the GetMLConfiguration service API. + * Added cmdlet Get-CRMLMLInputChannel leveraging the GetMLInputChannel service API. + * Added cmdlet Get-CRMLMLInputChannelList leveraging the ListMLInputChannels service API. + * Added cmdlet Get-CRMLTrainedModel leveraging the GetTrainedModel service API. + * Added cmdlet Get-CRMLTrainedModelInferenceJob leveraging the GetTrainedModelInferenceJob service API. + * Added cmdlet Get-CRMLTrainedModelInferenceJobList leveraging the ListTrainedModelInferenceJobs service API. + * Added cmdlet Get-CRMLTrainedModelList leveraging the ListTrainedModels service API. + * Added cmdlet New-CRMLConfiguredModelAlgorithm leveraging the CreateConfiguredModelAlgorithm service API. + * Added cmdlet New-CRMLConfiguredModelAlgorithmAssociation leveraging the CreateConfiguredModelAlgorithmAssociation service API. + * Added cmdlet New-CRMLMLInputChannel leveraging the CreateMLInputChannel service API. + * Added cmdlet New-CRMLTrainedModel leveraging the CreateTrainedModel service API. + * Added cmdlet Remove-CRMLConfiguredModelAlgorithm leveraging the DeleteConfiguredModelAlgorithm service API. + * Added cmdlet Remove-CRMLConfiguredModelAlgorithmAssociation leveraging the DeleteConfiguredModelAlgorithmAssociation service API. + * Added cmdlet Remove-CRMLMLConfiguration leveraging the DeleteMLConfiguration service API. + * Added cmdlet Remove-CRMLMLInputChannelData leveraging the DeleteMLInputChannelData service API. + * Added cmdlet Remove-CRMLTrainedModelOutput leveraging the DeleteTrainedModelOutput service API. + * Added cmdlet Start-CRMLTrainedModelExportJob leveraging the StartTrainedModelExportJob service API. + * Added cmdlet Start-CRMLTrainedModelInferenceJob leveraging the StartTrainedModelInferenceJob service API. + * Added cmdlet Stop-CRMLTrainedModel leveraging the CancelTrainedModel service API. + * Added cmdlet Stop-CRMLTrainedModelInferenceJob leveraging the CancelTrainedModelInferenceJob service API. + * Added cmdlet Write-CRMLMLConfiguration leveraging the PutMLConfiguration service API. + * Amazon CloudWatch Synthetics + * Modified cmdlet New-CWSYNCanary: added parameter ProvisionedResourceCleanup. + * Modified cmdlet Update-CWSYNCanary: added parameter ProvisionedResourceCleanup. + * Amazon QuickSight + * Modified cmdlet New-QSDataSource: added parameters DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderResourceUri, DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn, DataSourceParameters_SnowflakeParameters_OAuthParameters_OAuthScope, DataSourceParameters_SnowflakeParameters_OAuthParameters_TokenProviderUrl, DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderResourceUri, DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn, DataSourceParameters_StarburstParameters_OAuthParameters_OAuthScope, DataSourceParameters_StarburstParameters_OAuthParameters_TokenProviderUrl, SnowflakeParameters_AuthenticationType, SnowflakeParameters_DatabaseAccessControlRole, StarburstParameters_AuthenticationType and StarburstParameters_DatabaseAccessControlRole. + * Modified cmdlet Update-QSDataSource: added parameters DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderResourceUri, DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn, DataSourceParameters_SnowflakeParameters_OAuthParameters_OAuthScope, DataSourceParameters_SnowflakeParameters_OAuthParameters_TokenProviderUrl, DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderResourceUri, DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn, DataSourceParameters_StarburstParameters_OAuthParameters_OAuthScope, DataSourceParameters_StarburstParameters_OAuthParameters_TokenProviderUrl, SnowflakeParameters_AuthenticationType, SnowflakeParameters_DatabaseAccessControlRole, StarburstParameters_AuthenticationType and StarburstParameters_DatabaseAccessControlRole. + * Amazon Resource Explorer + * Added cmdlet Get-AREXManagedView leveraging the GetManagedView service API. + * Added cmdlet Get-AREXManagedViewList leveraging the ListManagedViews service API. + +### 4.1.692 (2024-11-06 21:12Z) * AWS Tools for PowerShell now use AWS .NET SDK 3.7.920.0 and leverage its new features and improvements. Please find a description of the changes at https://github.com/aws/aws-sdk-net/blob/main/changelogs/SDK.CHANGELOG.ALL.md. * Amazon CodeBuild * Modified cmdlet New-CBFleet: added parameters ComputeConfiguration_Disk, ComputeConfiguration_MachineType, ComputeConfiguration_Memory and ComputeConfiguration_VCpu. diff --git a/generator/AWSPSGeneratorLib/Config/ServiceConfig/bedrock-agent.xml b/generator/AWSPSGeneratorLib/Config/ServiceConfig/bedrock-agent.xml index 51456db284..decb12b80a 100644 --- a/generator/AWSPSGeneratorLib/Config/ServiceConfig/bedrock-agent.xml +++ b/generator/AWSPSGeneratorLib/Config/ServiceConfig/bedrock-agent.xml @@ -324,6 +324,10 @@ + + + + \ No newline at end of file diff --git a/generator/AWSPSGeneratorLib/Config/ServiceConfig/cleanroomsml.xml b/generator/AWSPSGeneratorLib/Config/ServiceConfig/cleanroomsml.xml index 32a44d23fe..9e90118d51 100644 --- a/generator/AWSPSGeneratorLib/Config/ServiceConfig/cleanroomsml.xml +++ b/generator/AWSPSGeneratorLib/Config/ServiceConfig/cleanroomsml.xml @@ -18,6 +18,14 @@ + + + + + + + + @@ -26,6 +34,22 @@ + + + + + + + + + + + + + + + + @@ -46,6 +70,26 @@ + + + + + + + + + + + + + + + + + + + + @@ -58,6 +102,18 @@ + + + + + + + + + + + + @@ -66,6 +122,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + @@ -82,14 +162,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -98,6 +218,10 @@ + + + + @@ -106,6 +230,14 @@ + + + + + + + + diff --git a/generator/AWSPSGeneratorLib/Config/ServiceConfig/quicksight.xml b/generator/AWSPSGeneratorLib/Config/ServiceConfig/quicksight.xml index 25792ec151..9508bb42b8 100644 --- a/generator/AWSPSGeneratorLib/Config/ServiceConfig/quicksight.xml +++ b/generator/AWSPSGeneratorLib/Config/ServiceConfig/quicksight.xml @@ -61,7 +61,16 @@ - + + + + + + + + + + @@ -669,7 +678,16 @@ - + + + + + + + + + + diff --git a/generator/AWSPSGeneratorLib/Config/ServiceConfig/resource-explorer-2.xml b/generator/AWSPSGeneratorLib/Config/ServiceConfig/resource-explorer-2.xml index 0f8e1b02c6..d23245b1f9 100644 --- a/generator/AWSPSGeneratorLib/Config/ServiceConfig/resource-explorer-2.xml +++ b/generator/AWSPSGeneratorLib/Config/ServiceConfig/resource-explorer-2.xml @@ -58,6 +58,10 @@ + + + + @@ -72,6 +76,10 @@ + + + + diff --git a/modules/AWSPowerShell/AWSAliases.ps1 b/modules/AWSPowerShell/AWSAliases.ps1 index f6f0405de7..cf5879db67 100644 --- a/modules/AWSPowerShell/AWSAliases.ps1 +++ b/modules/AWSPowerShell/AWSAliases.ps1 @@ -2525,6 +2525,8 @@ Set-Alias -Name AAB-UpdateFlowAlias -Value Update-AABFlowAlias Set-Alias -Name AAB-UpdateFlow -Value Update-AABFlow Set-Alias -Name AAB-UpdateKnowledgeBase -Value Update-AABKnowledgeBase Set-Alias -Name AAB-UpdatePrompt -Value Update-AABPrompt +Set-Alias -Name Validate-AABFlowDefinition -Value Confirm-AABFlowDefinition +Set-Alias -Name AAB-ValidateFlowDefinition -Value Confirm-AABFlowDefinition Set-Alias -Name Delete-BARAgentMemory -Value Remove-BARAgentMemory Set-Alias -Name BAR-DeleteAgentMemory -Value Remove-BARAgentMemory Set-Alias -Name BAR-GetAgentMemory -Value Get-BARAgentMemory @@ -3740,10 +3742,22 @@ Set-Alias -Name CRS-UpdateIdNamespaceAssociation -Value Update-CRSIdNamespaceAss Set-Alias -Name CRS-UpdateMembership -Value Update-CRSMembership Set-Alias -Name CRS-UpdatePrivacyBudgetTemplate -Value Update-CRSPrivacyBudgetTemplate Set-Alias -Name CRS-UpdateProtectedQuery -Value Update-CRSProtectedQuery +Set-Alias -Name Cancel-CRMLTrainedModel -Value Stop-CRMLTrainedModel +Set-Alias -Name CRML-CancelTrainedModel -Value Stop-CRMLTrainedModel +Set-Alias -Name Cancel-CRMLTrainedModelInferenceJob -Value Stop-CRMLTrainedModelInferenceJob +Set-Alias -Name CRML-CancelTrainedModelInferenceJob -Value Stop-CRMLTrainedModelInferenceJob Set-Alias -Name Create-CRMLAudienceModel -Value New-CRMLAudienceModel Set-Alias -Name CRML-CreateAudienceModel -Value New-CRMLAudienceModel Set-Alias -Name Create-CRMLConfiguredAudienceModel -Value New-CRMLConfiguredAudienceModel Set-Alias -Name CRML-CreateConfiguredAudienceModel -Value New-CRMLConfiguredAudienceModel +Set-Alias -Name Create-CRMLConfiguredModelAlgorithmAssociation -Value New-CRMLConfiguredModelAlgorithmAssociation +Set-Alias -Name CRML-CreateConfiguredModelAlgorithmAssociation -Value New-CRMLConfiguredModelAlgorithmAssociation +Set-Alias -Name Create-CRMLConfiguredModelAlgorithm -Value New-CRMLConfiguredModelAlgorithm +Set-Alias -Name CRML-CreateConfiguredModelAlgorithm -Value New-CRMLConfiguredModelAlgorithm +Set-Alias -Name Create-CRMLMLInputChannel -Value New-CRMLMLInputChannel +Set-Alias -Name CRML-CreateMLInputChannel -Value New-CRMLMLInputChannel +Set-Alias -Name Create-CRMLTrainedModel -Value New-CRMLTrainedModel +Set-Alias -Name CRML-CreateTrainedModel -Value New-CRMLTrainedModel Set-Alias -Name Create-CRMLTrainingDataset -Value New-CRMLTrainingDataset Set-Alias -Name CRML-CreateTrainingDataset -Value New-CRMLTrainingDataset Set-Alias -Name Delete-CRMLAudienceGenerationJob -Value Remove-CRMLAudienceGenerationJob @@ -3754,12 +3768,31 @@ Set-Alias -Name Delete-CRMLConfiguredAudienceModel -Value Remove-CRMLConfiguredA Set-Alias -Name CRML-DeleteConfiguredAudienceModel -Value Remove-CRMLConfiguredAudienceModel Set-Alias -Name Delete-CRMLConfiguredAudienceModelPolicy -Value Remove-CRMLConfiguredAudienceModelPolicy Set-Alias -Name CRML-DeleteConfiguredAudienceModelPolicy -Value Remove-CRMLConfiguredAudienceModelPolicy +Set-Alias -Name Delete-CRMLConfiguredModelAlgorithmAssociation -Value Remove-CRMLConfiguredModelAlgorithmAssociation +Set-Alias -Name CRML-DeleteConfiguredModelAlgorithmAssociation -Value Remove-CRMLConfiguredModelAlgorithmAssociation +Set-Alias -Name Delete-CRMLConfiguredModelAlgorithm -Value Remove-CRMLConfiguredModelAlgorithm +Set-Alias -Name CRML-DeleteConfiguredModelAlgorithm -Value Remove-CRMLConfiguredModelAlgorithm +Set-Alias -Name Delete-CRMLMLConfiguration -Value Remove-CRMLMLConfiguration +Set-Alias -Name CRML-DeleteMLConfiguration -Value Remove-CRMLMLConfiguration +Set-Alias -Name Delete-CRMLMLInputChannelData -Value Remove-CRMLMLInputChannelData +Set-Alias -Name CRML-DeleteMLInputChannelData -Value Remove-CRMLMLInputChannelData +Set-Alias -Name Delete-CRMLTrainedModelOutput -Value Remove-CRMLTrainedModelOutput +Set-Alias -Name CRML-DeleteTrainedModelOutput -Value Remove-CRMLTrainedModelOutput Set-Alias -Name Delete-CRMLTrainingDataset -Value Remove-CRMLTrainingDataset Set-Alias -Name CRML-DeleteTrainingDataset -Value Remove-CRMLTrainingDataset Set-Alias -Name CRML-GetAudienceGenerationJob -Value Get-CRMLAudienceGenerationJob Set-Alias -Name CRML-GetAudienceModel -Value Get-CRMLAudienceModel +Set-Alias -Name CRML-GetCollaborationConfiguredModelAlgorithmAssociation -Value Get-CRMLCollaborationConfiguredModelAlgorithmAssociation +Set-Alias -Name CRML-GetCollaborationMLInputChannel -Value Get-CRMLCollaborationMLInputChannel +Set-Alias -Name CRML-GetCollaborationTrainedModel -Value Get-CRMLCollaborationTrainedModel Set-Alias -Name CRML-GetConfiguredAudienceModel -Value Get-CRMLConfiguredAudienceModel Set-Alias -Name CRML-GetConfiguredAudienceModelPolicy -Value Get-CRMLConfiguredAudienceModelPolicy +Set-Alias -Name CRML-GetConfiguredModelAlgorithmAssociation -Value Get-CRMLConfiguredModelAlgorithmAssociation +Set-Alias -Name CRML-GetConfiguredModelAlgorithm -Value Get-CRMLConfiguredModelAlgorithm +Set-Alias -Name CRML-GetMLConfiguration -Value Get-CRMLMLConfiguration +Set-Alias -Name CRML-GetMLInputChannel -Value Get-CRMLMLInputChannel +Set-Alias -Name CRML-GetTrainedModel -Value Get-CRMLTrainedModel +Set-Alias -Name CRML-GetTrainedModelInferenceJob -Value Get-CRMLTrainedModelInferenceJob Set-Alias -Name CRML-GetTrainingDataset -Value Get-CRMLTrainingDataset Set-Alias -Name List-CRMLAudienceExportJobs -Value Get-CRMLAudienceExportJobList Set-Alias -Name List-CRMLAudienceExportJobList -Value Get-CRMLAudienceExportJobList @@ -3770,17 +3803,51 @@ Set-Alias -Name CRML-ListAudienceGenerationJobs -Value Get-CRMLAudienceGeneratio Set-Alias -Name List-CRMLAudienceModels -Value Get-CRMLAudienceModelList Set-Alias -Name List-CRMLAudienceModelList -Value Get-CRMLAudienceModelList Set-Alias -Name CRML-ListAudienceModels -Value Get-CRMLAudienceModelList +Set-Alias -Name List-CRMLCollaborationConfiguredModelAlgorithmAssociations -Value Get-CRMLCollaborationConfiguredModelAlgorithmAssociationList +Set-Alias -Name List-CRMLCollaborationConfiguredModelAlgorithmAssociationList -Value Get-CRMLCollaborationConfiguredModelAlgorithmAssociationList +Set-Alias -Name CRML-ListCollaborationConfiguredModelAlgorithmAssociations -Value Get-CRMLCollaborationConfiguredModelAlgorithmAssociationList +Set-Alias -Name List-CRMLCollaborationMLInputChannels -Value Get-CRMLCollaborationMLInputChannelList +Set-Alias -Name List-CRMLCollaborationMLInputChannelList -Value Get-CRMLCollaborationMLInputChannelList +Set-Alias -Name CRML-ListCollaborationMLInputChannels -Value Get-CRMLCollaborationMLInputChannelList +Set-Alias -Name List-CRMLCollaborationTrainedModelExportJobs -Value Get-CRMLCollaborationTrainedModelExportJobList +Set-Alias -Name List-CRMLCollaborationTrainedModelExportJobList -Value Get-CRMLCollaborationTrainedModelExportJobList +Set-Alias -Name CRML-ListCollaborationTrainedModelExportJobs -Value Get-CRMLCollaborationTrainedModelExportJobList +Set-Alias -Name List-CRMLCollaborationTrainedModelInferenceJobs -Value Get-CRMLCollaborationTrainedModelInferenceJobList +Set-Alias -Name List-CRMLCollaborationTrainedModelInferenceJobList -Value Get-CRMLCollaborationTrainedModelInferenceJobList +Set-Alias -Name CRML-ListCollaborationTrainedModelInferenceJobs -Value Get-CRMLCollaborationTrainedModelInferenceJobList +Set-Alias -Name List-CRMLCollaborationTrainedModels -Value Get-CRMLCollaborationTrainedModelList +Set-Alias -Name List-CRMLCollaborationTrainedModelList -Value Get-CRMLCollaborationTrainedModelList +Set-Alias -Name CRML-ListCollaborationTrainedModels -Value Get-CRMLCollaborationTrainedModelList Set-Alias -Name List-CRMLConfiguredAudienceModels -Value Get-CRMLConfiguredAudienceModelList Set-Alias -Name List-CRMLConfiguredAudienceModelList -Value Get-CRMLConfiguredAudienceModelList Set-Alias -Name CRML-ListConfiguredAudienceModels -Value Get-CRMLConfiguredAudienceModelList +Set-Alias -Name List-CRMLConfiguredModelAlgorithmAssociations -Value Get-CRMLConfiguredModelAlgorithmAssociationList +Set-Alias -Name List-CRMLConfiguredModelAlgorithmAssociationList -Value Get-CRMLConfiguredModelAlgorithmAssociationList +Set-Alias -Name CRML-ListConfiguredModelAlgorithmAssociations -Value Get-CRMLConfiguredModelAlgorithmAssociationList +Set-Alias -Name List-CRMLConfiguredModelAlgorithms -Value Get-CRMLConfiguredModelAlgorithmList +Set-Alias -Name List-CRMLConfiguredModelAlgorithmList -Value Get-CRMLConfiguredModelAlgorithmList +Set-Alias -Name CRML-ListConfiguredModelAlgorithms -Value Get-CRMLConfiguredModelAlgorithmList +Set-Alias -Name List-CRMLMLInputChannels -Value Get-CRMLMLInputChannelList +Set-Alias -Name List-CRMLMLInputChannelList -Value Get-CRMLMLInputChannelList +Set-Alias -Name CRML-ListMLInputChannels -Value Get-CRMLMLInputChannelList Set-Alias -Name CRML-ListTagsForResource -Value Get-CRMLResourceTag +Set-Alias -Name List-CRMLTrainedModelInferenceJobs -Value Get-CRMLTrainedModelInferenceJobList +Set-Alias -Name List-CRMLTrainedModelInferenceJobList -Value Get-CRMLTrainedModelInferenceJobList +Set-Alias -Name CRML-ListTrainedModelInferenceJobs -Value Get-CRMLTrainedModelInferenceJobList +Set-Alias -Name List-CRMLTrainedModels -Value Get-CRMLTrainedModelList +Set-Alias -Name List-CRMLTrainedModelList -Value Get-CRMLTrainedModelList +Set-Alias -Name CRML-ListTrainedModels -Value Get-CRMLTrainedModelList Set-Alias -Name List-CRMLTrainingDatasets -Value Get-CRMLTrainingDatasetList Set-Alias -Name List-CRMLTrainingDatasetList -Value Get-CRMLTrainingDatasetList Set-Alias -Name CRML-ListTrainingDatasets -Value Get-CRMLTrainingDatasetList Set-Alias -Name Put-CRMLConfiguredAudienceModelPolicy -Value Write-CRMLConfiguredAudienceModelPolicy Set-Alias -Name CRML-PutConfiguredAudienceModelPolicy -Value Write-CRMLConfiguredAudienceModelPolicy +Set-Alias -Name Put-CRMLMLConfiguration -Value Write-CRMLMLConfiguration +Set-Alias -Name CRML-PutMLConfiguration -Value Write-CRMLMLConfiguration Set-Alias -Name CRML-StartAudienceExportJob -Value Start-CRMLAudienceExportJob Set-Alias -Name CRML-StartAudienceGenerationJob -Value Start-CRMLAudienceGenerationJob +Set-Alias -Name CRML-StartTrainedModelExportJob -Value Start-CRMLTrainedModelExportJob +Set-Alias -Name CRML-StartTrainedModelInferenceJob -Value Start-CRMLTrainedModelInferenceJob Set-Alias -Name CRML-TagResource -Value Add-CRMLResourceTag Set-Alias -Name CRML-UntagResource -Value Remove-CRMLResourceTag Set-Alias -Name CRML-UpdateConfiguredAudienceModel -Value Update-CRMLConfiguredAudienceModel @@ -24324,6 +24391,7 @@ Set-Alias -Name AREX-DisassociateDefaultView -Value Unregister-AREXDefaultView Set-Alias -Name AREX-GetAccountLevelServiceConfiguration -Value Get-AREXAccountLevelServiceConfiguration Set-Alias -Name AREX-GetDefaultView -Value Get-AREXDefaultView Set-Alias -Name AREX-GetIndex -Value Get-AREXIndex +Set-Alias -Name AREX-GetManagedView -Value Get-AREXManagedView Set-Alias -Name AREX-GetView -Value Get-AREXView Set-Alias -Name List-AREXIndexes -Value Get-AREXIndexList Set-Alias -Name List-AREXIndexList -Value Get-AREXIndexList @@ -24331,6 +24399,9 @@ Set-Alias -Name AREX-ListIndexes -Value Get-AREXIndexList Set-Alias -Name List-AREXIndexesForMembers -Value Get-AREXIndexesForMemberList Set-Alias -Name List-AREXIndexesForMemberList -Value Get-AREXIndexesForMemberList Set-Alias -Name AREX-ListIndexesForMembers -Value Get-AREXIndexesForMemberList +Set-Alias -Name List-AREXManagedViews -Value Get-AREXManagedViewList +Set-Alias -Name List-AREXManagedViewList -Value Get-AREXManagedViewList +Set-Alias -Name AREX-ListManagedViews -Value Get-AREXManagedViewList Set-Alias -Name List-AREXResources -Value Get-AREXResourceList Set-Alias -Name List-AREXResourceList -Value Get-AREXResourceList Set-Alias -Name AREX-ListResources -Value Get-AREXResourceList diff --git a/modules/AWSPowerShell/AWSPowerShellCompleters.psm1 b/modules/AWSPowerShell/AWSPowerShellCompleters.psm1 index b528277a6d..11cce49d34 100644 --- a/modules/AWSPowerShell/AWSPowerShellCompleters.psm1 +++ b/modules/AWSPowerShell/AWSPowerShellCompleters.psm1 @@ -4993,6 +4993,16 @@ $AS_Completers = { switch ($("$commandName/$parameterName")) { + # Amazon.AutoScaling.CapacityDistributionStrategy + { + ($_ -eq "New-ASAutoScalingGroup/AvailabilityZoneDistribution_CapacityDistributionStrategy") -Or + ($_ -eq "Update-ASAutoScalingGroup/AvailabilityZoneDistribution_CapacityDistributionStrategy") + } + { + $v = "balanced-best-effort","balanced-only" + break + } + # Amazon.AutoScaling.InstanceMetadataEndpointState "New-ASLaunchConfiguration/MetadataOptions_HttpEndpoint" { @@ -5072,6 +5082,7 @@ $AS_Completers = { } $AS_map = @{ + "AvailabilityZoneDistribution_CapacityDistributionStrategy"=@("New-ASAutoScalingGroup","Update-ASAutoScalingGroup") "CustomizedMetricSpecification_Statistic"=@("Write-ASScalingPolicy") "MetadataOptions_HttpEndpoint"=@("New-ASLaunchConfiguration") "MetadataOptions_HttpToken"=@("New-ASLaunchConfiguration") @@ -6936,7 +6947,8 @@ $AAB_SelectMap = @{ "Update-AABFlow", "Update-AABFlowAlias", "Update-AABKnowledgeBase", - "Update-AABPrompt") + "Update-AABPrompt", + "Confirm-AABFlowDefinition") } _awsArgumentCompleterRegistration $AAB_SelectCompleters $AAB_SelectMap @@ -10184,6 +10196,27 @@ $CRML_Completers = { break } + # Amazon.CleanRoomsML.InferenceInstanceType + "Start-CRMLTrainedModelInferenceJob/ResourceConfig_InstanceType" + { + $v = "ml.c4.2xlarge","ml.c4.4xlarge","ml.c4.8xlarge","ml.c4.xlarge","ml.c5.18xlarge","ml.c5.2xlarge","ml.c5.4xlarge","ml.c5.9xlarge","ml.c5.xlarge","ml.c6i.12xlarge","ml.c6i.16xlarge","ml.c6i.24xlarge","ml.c6i.2xlarge","ml.c6i.32xlarge","ml.c6i.4xlarge","ml.c6i.8xlarge","ml.c6i.large","ml.c6i.xlarge","ml.c7i.12xlarge","ml.c7i.16xlarge","ml.c7i.24xlarge","ml.c7i.2xlarge","ml.c7i.48xlarge","ml.c7i.4xlarge","ml.c7i.8xlarge","ml.c7i.large","ml.c7i.xlarge","ml.g4dn.12xlarge","ml.g4dn.16xlarge","ml.g4dn.2xlarge","ml.g4dn.4xlarge","ml.g4dn.8xlarge","ml.g4dn.xlarge","ml.g5.12xlarge","ml.g5.16xlarge","ml.g5.24xlarge","ml.g5.2xlarge","ml.g5.48xlarge","ml.g5.4xlarge","ml.g5.8xlarge","ml.g5.xlarge","ml.m4.10xlarge","ml.m4.16xlarge","ml.m4.2xlarge","ml.m4.4xlarge","ml.m4.xlarge","ml.m5.12xlarge","ml.m5.24xlarge","ml.m5.2xlarge","ml.m5.4xlarge","ml.m5.large","ml.m5.xlarge","ml.m6i.12xlarge","ml.m6i.16xlarge","ml.m6i.24xlarge","ml.m6i.2xlarge","ml.m6i.32xlarge","ml.m6i.4xlarge","ml.m6i.8xlarge","ml.m6i.large","ml.m6i.xlarge","ml.m7i.12xlarge","ml.m7i.16xlarge","ml.m7i.24xlarge","ml.m7i.2xlarge","ml.m7i.48xlarge","ml.m7i.4xlarge","ml.m7i.8xlarge","ml.m7i.large","ml.m7i.xlarge","ml.p2.16xlarge","ml.p2.8xlarge","ml.p2.xlarge","ml.p3.16xlarge","ml.p3.2xlarge","ml.p3.8xlarge","ml.r6i.12xlarge","ml.r6i.16xlarge","ml.r6i.24xlarge","ml.r6i.2xlarge","ml.r6i.32xlarge","ml.r6i.4xlarge","ml.r6i.8xlarge","ml.r6i.large","ml.r6i.xlarge","ml.r7i.12xlarge","ml.r7i.16xlarge","ml.r7i.24xlarge","ml.r7i.2xlarge","ml.r7i.48xlarge","ml.r7i.4xlarge","ml.r7i.8xlarge","ml.r7i.large","ml.r7i.xlarge" + break + } + + # Amazon.CleanRoomsML.InstanceType + "New-CRMLTrainedModel/ResourceConfig_InstanceType" + { + $v = "ml.c4.2xlarge","ml.c4.4xlarge","ml.c4.8xlarge","ml.c4.xlarge","ml.c5.18xlarge","ml.c5.2xlarge","ml.c5.4xlarge","ml.c5.9xlarge","ml.c5.xlarge","ml.c5n.18xlarge","ml.c5n.2xlarge","ml.c5n.4xlarge","ml.c5n.9xlarge","ml.c5n.xlarge","ml.c6i.12xlarge","ml.c6i.16xlarge","ml.c6i.24xlarge","ml.c6i.2xlarge","ml.c6i.32xlarge","ml.c6i.4xlarge","ml.c6i.8xlarge","ml.c6i.xlarge","ml.g4dn.12xlarge","ml.g4dn.16xlarge","ml.g4dn.2xlarge","ml.g4dn.4xlarge","ml.g4dn.8xlarge","ml.g4dn.xlarge","ml.g5.12xlarge","ml.g5.16xlarge","ml.g5.24xlarge","ml.g5.2xlarge","ml.g5.48xlarge","ml.g5.4xlarge","ml.g5.8xlarge","ml.g5.xlarge","ml.m4.10xlarge","ml.m4.16xlarge","ml.m4.2xlarge","ml.m4.4xlarge","ml.m4.xlarge","ml.m5.12xlarge","ml.m5.24xlarge","ml.m5.2xlarge","ml.m5.4xlarge","ml.m5.large","ml.m5.xlarge","ml.m6i.12xlarge","ml.m6i.16xlarge","ml.m6i.24xlarge","ml.m6i.2xlarge","ml.m6i.32xlarge","ml.m6i.4xlarge","ml.m6i.8xlarge","ml.m6i.large","ml.m6i.xlarge","ml.p2.16xlarge","ml.p2.8xlarge","ml.p2.xlarge","ml.p3.16xlarge","ml.p3.2xlarge","ml.p3.8xlarge","ml.p3dn.24xlarge","ml.p4d.24xlarge","ml.p4de.24xlarge","ml.p5.48xlarge","ml.r5.12xlarge","ml.r5.16xlarge","ml.r5.24xlarge","ml.r5.2xlarge","ml.r5.4xlarge","ml.r5.8xlarge","ml.r5.large","ml.r5.xlarge","ml.r5d.12xlarge","ml.r5d.16xlarge","ml.r5d.24xlarge","ml.r5d.2xlarge","ml.r5d.4xlarge","ml.r5d.8xlarge","ml.r5d.large","ml.r5d.xlarge","ml.t3.2xlarge","ml.t3.large","ml.t3.medium","ml.t3.xlarge","ml.trn1.2xlarge","ml.trn1.32xlarge","ml.trn1n.32xlarge" + break + } + + # Amazon.CleanRoomsML.NoiseLevelType + "New-CRMLConfiguredModelAlgorithmAssociation/ContainerMetrics_NoiseLevel" + { + $v = "HIGH","LOW","MEDIUM","NONE" + break + } + # Amazon.CleanRoomsML.PolicyExistenceCondition "Write-CRMLConfiguredAudienceModelPolicy/PolicyExistenceCondition" { @@ -10198,6 +10231,27 @@ $CRML_Completers = { break } + # Amazon.CleanRoomsML.TrainedModelExportsMaxSizeUnitType + "New-CRMLConfiguredModelAlgorithmAssociation/MaxSize_Unit" + { + $v = "GB" + break + } + + # Amazon.CleanRoomsML.TrainedModelInferenceMaxOutputSizeUnitType + "New-CRMLConfiguredModelAlgorithmAssociation/MaxOutputSize_Unit" + { + $v = "GB" + break + } + + # Amazon.CleanRoomsML.WorkerComputeType + "New-CRMLMLInputChannel/Worker_Type" + { + $v = "CR.1X","CR.4X" + break + } + } @@ -10210,7 +10264,12 @@ $CRML_map = @{ "AudienceSize_Type"=@("Start-CRMLAudienceExportJob") "AudienceSizeConfig_AudienceSizeType"=@("New-CRMLConfiguredAudienceModel","Update-CRMLConfiguredAudienceModel") "ChildResourceTagOnCreatePolicy"=@("New-CRMLConfiguredAudienceModel") + "ContainerMetrics_NoiseLevel"=@("New-CRMLConfiguredModelAlgorithmAssociation") + "MaxOutputSize_Unit"=@("New-CRMLConfiguredModelAlgorithmAssociation") + "MaxSize_Unit"=@("New-CRMLConfiguredModelAlgorithmAssociation") "PolicyExistenceCondition"=@("Write-CRMLConfiguredAudienceModelPolicy") + "ResourceConfig_InstanceType"=@("New-CRMLTrainedModel","Start-CRMLTrainedModelInferenceJob") + "Worker_Type"=@("New-CRMLMLInputChannel") } _awsArgumentCompleterRegistration $CRML_Completers $CRML_map @@ -10263,28 +10322,61 @@ $CRML_SelectCompleters = { } $CRML_SelectMap = @{ - "Select"=@("New-CRMLAudienceModel", + "Select"=@("Stop-CRMLTrainedModel", + "Stop-CRMLTrainedModelInferenceJob", + "New-CRMLAudienceModel", "New-CRMLConfiguredAudienceModel", + "New-CRMLConfiguredModelAlgorithm", + "New-CRMLConfiguredModelAlgorithmAssociation", + "New-CRMLMLInputChannel", + "New-CRMLTrainedModel", "New-CRMLTrainingDataset", "Remove-CRMLAudienceGenerationJob", "Remove-CRMLAudienceModel", "Remove-CRMLConfiguredAudienceModel", "Remove-CRMLConfiguredAudienceModelPolicy", + "Remove-CRMLConfiguredModelAlgorithm", + "Remove-CRMLConfiguredModelAlgorithmAssociation", + "Remove-CRMLMLConfiguration", + "Remove-CRMLMLInputChannelData", + "Remove-CRMLTrainedModelOutput", "Remove-CRMLTrainingDataset", "Get-CRMLAudienceGenerationJob", "Get-CRMLAudienceModel", + "Get-CRMLCollaborationConfiguredModelAlgorithmAssociation", + "Get-CRMLCollaborationMLInputChannel", + "Get-CRMLCollaborationTrainedModel", "Get-CRMLConfiguredAudienceModel", "Get-CRMLConfiguredAudienceModelPolicy", + "Get-CRMLConfiguredModelAlgorithm", + "Get-CRMLConfiguredModelAlgorithmAssociation", + "Get-CRMLMLConfiguration", + "Get-CRMLMLInputChannel", + "Get-CRMLTrainedModel", + "Get-CRMLTrainedModelInferenceJob", "Get-CRMLTrainingDataset", "Get-CRMLAudienceExportJobList", "Get-CRMLAudienceGenerationJobList", "Get-CRMLAudienceModelList", + "Get-CRMLCollaborationConfiguredModelAlgorithmAssociationList", + "Get-CRMLCollaborationMLInputChannelList", + "Get-CRMLCollaborationTrainedModelExportJobList", + "Get-CRMLCollaborationTrainedModelInferenceJobList", + "Get-CRMLCollaborationTrainedModelList", "Get-CRMLConfiguredAudienceModelList", + "Get-CRMLConfiguredModelAlgorithmAssociationList", + "Get-CRMLConfiguredModelAlgorithmList", + "Get-CRMLMLInputChannelList", "Get-CRMLResourceTag", + "Get-CRMLTrainedModelInferenceJobList", + "Get-CRMLTrainedModelList", "Get-CRMLTrainingDatasetList", "Write-CRMLConfiguredAudienceModelPolicy", + "Write-CRMLMLConfiguration", "Start-CRMLAudienceExportJob", "Start-CRMLAudienceGenerationJob", + "Start-CRMLTrainedModelExportJob", + "Start-CRMLTrainedModelInferenceJob", "Add-CRMLResourceTag", "Remove-CRMLResourceTag", "Update-CRMLConfiguredAudienceModel") @@ -55990,6 +56082,18 @@ $QS_Completers = { break } + # Amazon.QuickSight.AuthenticationType + { + ($_ -eq "New-QSDataSource/SnowflakeParameters_AuthenticationType") -Or + ($_ -eq "Update-QSDataSource/SnowflakeParameters_AuthenticationType") -Or + ($_ -eq "New-QSDataSource/StarburstParameters_AuthenticationType") -Or + ($_ -eq "Update-QSDataSource/StarburstParameters_AuthenticationType") + } + { + $v = "PASSWORD","TOKEN","X509" + break + } + # Amazon.QuickSight.DashboardBehavior { ($_ -eq "New-QSDashboard/AdHocFilteringOption_AvailabilityStatus") -Or @@ -56405,6 +56509,8 @@ $QS_map = @{ "SharingModel"=@("New-QSFolder") "SheetControlsOption_VisibilityState"=@("New-QSDashboard","Update-QSDashboard") "SheetLayoutElementMaximizationOption_AvailabilityStatus"=@("New-QSDashboard","Update-QSDashboard") + "SnowflakeParameters_AuthenticationType"=@("New-QSDataSource","Update-QSDataSource") + "StarburstParameters_AuthenticationType"=@("New-QSDataSource","Update-QSDataSource") "StarburstParameters_ProductType"=@("New-QSDataSource","Update-QSDataSource") "Topic_UserExperienceVersion"=@("New-QSTopic","Update-QSTopic") "Type"=@("Get-QSThemeList","New-QSDataSource") @@ -58613,9 +58719,11 @@ $AREX_SelectMap = @{ "Get-AREXAccountLevelServiceConfiguration", "Get-AREXDefaultView", "Get-AREXIndex", + "Get-AREXManagedView", "Get-AREXView", "Get-AREXIndexList", "Get-AREXIndexesForMemberList", + "Get-AREXManagedViewList", "Get-AREXResourceList", "Get-AREXSupportedResourceTypeList", "Get-AREXResourceTag", @@ -69051,6 +69159,16 @@ $CWSYN_Completers = { break } + # Amazon.Synthetics.ProvisionedResourceCleanupSetting + { + ($_ -eq "New-CWSYNCanary/ProvisionedResourceCleanup") -Or + ($_ -eq "Update-CWSYNCanary/ProvisionedResourceCleanup") + } + { + $v = "AUTOMATIC","OFF" + break + } + } @@ -69060,6 +69178,7 @@ $CWSYN_Completers = { } $CWSYN_map = @{ + "ProvisionedResourceCleanup"=@("New-CWSYNCanary","Update-CWSYNCanary") "S3Encryption_EncryptionMode"=@("New-CWSYNCanary","Update-CWSYNCanary") } diff --git a/modules/AWSPowerShell/Cmdlets/AutoScaling/AWS.Tools.AutoScaling.Completers.psm1 b/modules/AWSPowerShell/Cmdlets/AutoScaling/AWS.Tools.AutoScaling.Completers.psm1 index 80f3ee5f32..b08156367e 100644 --- a/modules/AWSPowerShell/Cmdlets/AutoScaling/AWS.Tools.AutoScaling.Completers.psm1 +++ b/modules/AWSPowerShell/Cmdlets/AutoScaling/AWS.Tools.AutoScaling.Completers.psm1 @@ -80,6 +80,16 @@ $AS_Completers = { switch ($("$commandName/$parameterName")) { + # Amazon.AutoScaling.CapacityDistributionStrategy + { + ($_ -eq "New-ASAutoScalingGroup/AvailabilityZoneDistribution_CapacityDistributionStrategy") -Or + ($_ -eq "Update-ASAutoScalingGroup/AvailabilityZoneDistribution_CapacityDistributionStrategy") + } + { + $v = "balanced-best-effort","balanced-only" + break + } + # Amazon.AutoScaling.InstanceMetadataEndpointState "New-ASLaunchConfiguration/MetadataOptions_HttpEndpoint" { @@ -159,6 +169,7 @@ $AS_Completers = { } $AS_map = @{ + "AvailabilityZoneDistribution_CapacityDistributionStrategy"=@("New-ASAutoScalingGroup","Update-ASAutoScalingGroup") "CustomizedMetricSpecification_Statistic"=@("Write-ASScalingPolicy") "MetadataOptions_HttpEndpoint"=@("New-ASLaunchConfiguration") "MetadataOptions_HttpToken"=@("New-ASLaunchConfiguration") diff --git a/modules/AWSPowerShell/Cmdlets/AutoScaling/Basic/New-ASAutoScalingGroup-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/AutoScaling/Basic/New-ASAutoScalingGroup-Cmdlet.cs index cd63b9df9c..386e7d427f 100644 --- a/modules/AWSPowerShell/Cmdlets/AutoScaling/Basic/New-ASAutoScalingGroup-Cmdlet.cs +++ b/modules/AWSPowerShell/Cmdlets/AutoScaling/Basic/New-ASAutoScalingGroup-Cmdlet.cs @@ -91,6 +91,20 @@ public partial class NewASAutoScalingGroupCmdlet : AmazonAutoScalingClientCmdlet public System.String[] AvailabilityZone { get; set; } #endregion + #region Parameter AvailabilityZoneDistribution_CapacityDistributionStrategy + /// + /// + /// If launches fail in an Availability Zone, the following strategies are available. + /// The default is balanced-best-effort.
  • balanced-only - If launches fail in an Availability Zone, Auto Scaling will + /// continue to attempt to launch in the unhealthy zone to preserve a balanced distribution.
  • balanced-best-effort - If launches fail in an Availability Zone, Auto Scaling + /// will attempt to launch in another healthy Availability Zone instead.
+ ///
+ ///
+ [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [AWSConstantClassSource("Amazon.AutoScaling.CapacityDistributionStrategy")] + public Amazon.AutoScaling.CapacityDistributionStrategy AvailabilityZoneDistribution_CapacityDistributionStrategy { get; set; } + #endregion + #region Parameter CapacityRebalance /// /// @@ -576,6 +590,7 @@ protected override void ProcessRecord() WriteWarning("You are passing $null as a value for parameter AutoScalingGroupName 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.AvailabilityZoneDistribution_CapacityDistributionStrategy = this.AvailabilityZoneDistribution_CapacityDistributionStrategy; if (this.AvailabilityZone != null) { context.AvailabilityZone = new List(this.AvailabilityZone); @@ -659,6 +674,25 @@ public object Execute(ExecutorContext context) { request.AutoScalingGroupName = cmdletContext.AutoScalingGroupName; } + + // populate AvailabilityZoneDistribution + var requestAvailabilityZoneDistributionIsNull = true; + request.AvailabilityZoneDistribution = new Amazon.AutoScaling.Model.AvailabilityZoneDistribution(); + Amazon.AutoScaling.CapacityDistributionStrategy requestAvailabilityZoneDistribution_availabilityZoneDistribution_CapacityDistributionStrategy = null; + if (cmdletContext.AvailabilityZoneDistribution_CapacityDistributionStrategy != null) + { + requestAvailabilityZoneDistribution_availabilityZoneDistribution_CapacityDistributionStrategy = cmdletContext.AvailabilityZoneDistribution_CapacityDistributionStrategy; + } + if (requestAvailabilityZoneDistribution_availabilityZoneDistribution_CapacityDistributionStrategy != null) + { + request.AvailabilityZoneDistribution.CapacityDistributionStrategy = requestAvailabilityZoneDistribution_availabilityZoneDistribution_CapacityDistributionStrategy; + requestAvailabilityZoneDistributionIsNull = false; + } + // determine if request.AvailabilityZoneDistribution should be set to null + if (requestAvailabilityZoneDistributionIsNull) + { + request.AvailabilityZoneDistribution = null; + } if (cmdletContext.AvailabilityZone != null) { request.AvailabilityZones = cmdletContext.AvailabilityZone; @@ -889,6 +923,7 @@ private Amazon.AutoScaling.Model.CreateAutoScalingGroupResponse CallAWSServiceOp internal partial class CmdletContext : ExecutorContext { public System.String AutoScalingGroupName { get; set; } + public Amazon.AutoScaling.CapacityDistributionStrategy AvailabilityZoneDistribution_CapacityDistributionStrategy { get; set; } public List AvailabilityZone { get; set; } public System.Boolean? CapacityRebalance { get; set; } public System.String Context { get; set; } diff --git a/modules/AWSPowerShell/Cmdlets/AutoScaling/Basic/Update-ASAutoScalingGroup-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/AutoScaling/Basic/Update-ASAutoScalingGroup-Cmdlet.cs index 793cc9c038..b975af4209 100644 --- a/modules/AWSPowerShell/Cmdlets/AutoScaling/Basic/Update-ASAutoScalingGroup-Cmdlet.cs +++ b/modules/AWSPowerShell/Cmdlets/AutoScaling/Basic/Update-ASAutoScalingGroup-Cmdlet.cs @@ -109,6 +109,20 @@ public partial class UpdateASAutoScalingGroupCmdlet : AmazonAutoScalingClientCmd public System.String[] AvailabilityZone { get; set; } #endregion + #region Parameter AvailabilityZoneDistribution_CapacityDistributionStrategy + /// + /// + /// If launches fail in an Availability Zone, the following strategies are available. + /// The default is balanced-best-effort.
  • balanced-only - If launches fail in an Availability Zone, Auto Scaling will + /// continue to attempt to launch in the unhealthy zone to preserve a balanced distribution.
  • balanced-best-effort - If launches fail in an Availability Zone, Auto Scaling + /// will attempt to launch in another healthy Availability Zone instead.
+ ///
+ ///
+ [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [AWSConstantClassSource("Amazon.AutoScaling.CapacityDistributionStrategy")] + public Amazon.AutoScaling.CapacityDistributionStrategy AvailabilityZoneDistribution_CapacityDistributionStrategy { get; set; } + #endregion + #region Parameter CapacityRebalance /// /// @@ -490,6 +504,7 @@ protected override void ProcessRecord() WriteWarning("You are passing $null as a value for parameter AutoScalingGroupName 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.AvailabilityZoneDistribution_CapacityDistributionStrategy = this.AvailabilityZoneDistribution_CapacityDistributionStrategy; if (this.AvailabilityZone != null) { context.AvailabilityZone = new List(this.AvailabilityZone); @@ -540,6 +555,25 @@ public object Execute(ExecutorContext context) { request.AutoScalingGroupName = cmdletContext.AutoScalingGroupName; } + + // populate AvailabilityZoneDistribution + var requestAvailabilityZoneDistributionIsNull = true; + request.AvailabilityZoneDistribution = new Amazon.AutoScaling.Model.AvailabilityZoneDistribution(); + Amazon.AutoScaling.CapacityDistributionStrategy requestAvailabilityZoneDistribution_availabilityZoneDistribution_CapacityDistributionStrategy = null; + if (cmdletContext.AvailabilityZoneDistribution_CapacityDistributionStrategy != null) + { + requestAvailabilityZoneDistribution_availabilityZoneDistribution_CapacityDistributionStrategy = cmdletContext.AvailabilityZoneDistribution_CapacityDistributionStrategy; + } + if (requestAvailabilityZoneDistribution_availabilityZoneDistribution_CapacityDistributionStrategy != null) + { + request.AvailabilityZoneDistribution.CapacityDistributionStrategy = requestAvailabilityZoneDistribution_availabilityZoneDistribution_CapacityDistributionStrategy; + requestAvailabilityZoneDistributionIsNull = false; + } + // determine if request.AvailabilityZoneDistribution should be set to null + if (requestAvailabilityZoneDistributionIsNull) + { + request.AvailabilityZoneDistribution = null; + } if (cmdletContext.AvailabilityZone != null) { request.AvailabilityZones = cmdletContext.AvailabilityZone; @@ -746,6 +780,7 @@ private Amazon.AutoScaling.Model.UpdateAutoScalingGroupResponse CallAWSServiceOp internal partial class CmdletContext : ExecutorContext { public System.String AutoScalingGroupName { get; set; } + public Amazon.AutoScaling.CapacityDistributionStrategy AvailabilityZoneDistribution_CapacityDistributionStrategy { get; set; } public List AvailabilityZone { get; set; } public System.Boolean? CapacityRebalance { get; set; } public System.String Context { get; set; } diff --git a/modules/AWSPowerShell/Cmdlets/BedrockAgent/AWS.Tools.BedrockAgent.Completers.psm1 b/modules/AWSPowerShell/Cmdlets/BedrockAgent/AWS.Tools.BedrockAgent.Completers.psm1 index 6eb71f649a..484417e830 100644 --- a/modules/AWSPowerShell/Cmdlets/BedrockAgent/AWS.Tools.BedrockAgent.Completers.psm1 +++ b/modules/AWSPowerShell/Cmdlets/BedrockAgent/AWS.Tools.BedrockAgent.Completers.psm1 @@ -411,7 +411,8 @@ $AAB_SelectMap = @{ "Update-AABFlow", "Update-AABFlowAlias", "Update-AABKnowledgeBase", - "Update-AABPrompt") + "Update-AABPrompt", + "Confirm-AABFlowDefinition") } _awsArgumentCompleterRegistration $AAB_SelectCompleters $AAB_SelectMap diff --git a/modules/AWSPowerShell/Cmdlets/BedrockAgent/AWS.Tools.BedrockAgent.psd1 b/modules/AWSPowerShell/Cmdlets/BedrockAgent/AWS.Tools.BedrockAgent.psd1 index 71fd778253..1cdd66b2cc 100644 --- a/modules/AWSPowerShell/Cmdlets/BedrockAgent/AWS.Tools.BedrockAgent.psd1 +++ b/modules/AWSPowerShell/Cmdlets/BedrockAgent/AWS.Tools.BedrockAgent.psd1 @@ -87,6 +87,7 @@ This version of AWS Tools for PowerShell is compatible with Windows PowerShell 5 # Cmdlets to export from this module CmdletsToExport = @( 'Add-AABResourceTag', + 'Confirm-AABFlowDefinition', 'Get-AABAgent', 'Get-AABAgentActionGroup', 'Get-AABAgentActionGroupList', diff --git a/modules/AWSPowerShell/Cmdlets/BedrockAgent/Basic/Confirm-AABFlowDefinition-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/BedrockAgent/Basic/Confirm-AABFlowDefinition-Cmdlet.cs new file mode 100644 index 0000000000..baf75addc8 --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/BedrockAgent/Basic/Confirm-AABFlowDefinition-Cmdlet.cs @@ -0,0 +1,234 @@ +/******************************************************************************* + * 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.BedrockAgent; +using Amazon.BedrockAgent.Model; + +namespace Amazon.PowerShell.Cmdlets.AAB +{ + /// + /// Validates the definition of a flow. + /// + [Cmdlet("Confirm", "AABFlowDefinition", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType("Amazon.BedrockAgent.Model.FlowValidation")] + [AWSCmdlet("Calls the Agents for Amazon Bedrock ValidateFlowDefinition API operation.", Operation = new[] {"ValidateFlowDefinition"}, SelectReturnType = typeof(Amazon.BedrockAgent.Model.ValidateFlowDefinitionResponse))] + [AWSCmdletOutput("Amazon.BedrockAgent.Model.FlowValidation or Amazon.BedrockAgent.Model.ValidateFlowDefinitionResponse", + "This cmdlet returns a collection of Amazon.BedrockAgent.Model.FlowValidation objects.", + "The service call response (type Amazon.BedrockAgent.Model.ValidateFlowDefinitionResponse) can be returned by specifying '-Select *'." + )] + public partial class ConfirmAABFlowDefinitionCmdlet : AmazonBedrockAgentClientCmdlet, IExecutor + { + + protected override bool IsSensitiveRequest { get; set; } = true; + + protected override bool IsSensitiveResponse { get; set; } = true; + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter Definition_Connection + /// + /// + /// An array of connection definitions in the flow. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("Definition_Connections")] + public Amazon.BedrockAgent.Model.FlowConnection[] Definition_Connection { get; set; } + #endregion + + #region Parameter Definition_Node + /// + /// + /// An array of node definitions in the flow. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("Definition_Nodes")] + public Amazon.BedrockAgent.Model.FlowNode[] Definition_Node { get; set; } + #endregion + + #region Parameter Select + /// + /// Use the -Select parameter to control the cmdlet output. The default value is 'Validations'. + /// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.BedrockAgent.Model.ValidateFlowDefinitionResponse). + /// Specifying the name of a property of type Amazon.BedrockAgent.Model.ValidateFlowDefinitionResponse 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; } = "Validations"; + #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 = string.Empty; + if (!ConfirmShouldProceed(this.Force.IsPresent, resourceIdentifiersText, "Confirm-AABFlowDefinition (ValidateFlowDefinition)")) + { + return; + } + + var context = new CmdletContext(); + + // allow for manipulation of parameters prior to loading into context + PreExecutionContextLoad(context); + + if (ParameterWasBound(nameof(this.Select))) + { + context.Select = CreateSelectDelegate(Select) ?? + throw new System.ArgumentException("Invalid value for -Select parameter.", nameof(this.Select)); + } + if (this.Definition_Connection != null) + { + context.Definition_Connection = new List(this.Definition_Connection); + } + if (this.Definition_Node != null) + { + context.Definition_Node = new List(this.Definition_Node); + } + + // 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.BedrockAgent.Model.ValidateFlowDefinitionRequest(); + + + // populate Definition + var requestDefinitionIsNull = true; + request.Definition = new Amazon.BedrockAgent.Model.FlowDefinition(); + List requestDefinition_definition_Connection = null; + if (cmdletContext.Definition_Connection != null) + { + requestDefinition_definition_Connection = cmdletContext.Definition_Connection; + } + if (requestDefinition_definition_Connection != null) + { + request.Definition.Connections = requestDefinition_definition_Connection; + requestDefinitionIsNull = false; + } + List requestDefinition_definition_Node = null; + if (cmdletContext.Definition_Node != null) + { + requestDefinition_definition_Node = cmdletContext.Definition_Node; + } + if (requestDefinition_definition_Node != null) + { + request.Definition.Nodes = requestDefinition_definition_Node; + requestDefinitionIsNull = false; + } + // determine if request.Definition should be set to null + if (requestDefinitionIsNull) + { + request.Definition = null; + } + + 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.BedrockAgent.Model.ValidateFlowDefinitionResponse CallAWSServiceOperation(IAmazonBedrockAgent client, Amazon.BedrockAgent.Model.ValidateFlowDefinitionRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Agents for Amazon Bedrock", "ValidateFlowDefinition"); + try + { + #if DESKTOP + return client.ValidateFlowDefinition(request); + #elif CORECLR + return client.ValidateFlowDefinitionAsync(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 List Definition_Connection { get; set; } + public List Definition_Node { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => response.Validations; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/BedrockRuntime/Basic/Invoke-BDRRConverse-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/BedrockRuntime/Basic/Invoke-BDRRConverse-Cmdlet.cs index 91282d761f..b84e6e9670 100644 --- a/modules/AWSPowerShell/Cmdlets/BedrockRuntime/Basic/Invoke-BDRRConverse-Cmdlet.cs +++ b/modules/AWSPowerShell/Cmdlets/BedrockRuntime/Basic/Invoke-BDRRConverse-Cmdlet.cs @@ -38,6 +38,19 @@ namespace Amazon.PowerShell.Cmdlets.BDRR /// Amazon Bedrock doesn't store any text, images, or documents that you provide as content. /// The data is only used to generate the response. /// + /// You can submit a prompt by including it in the messages field, specifying the + /// modelId of a foundation model or inference profile to run inference on it, + /// and including any other fields that are relevant to your use case. + /// + /// You can also submit a prompt from Prompt management by specifying the ARN of the prompt + /// version and including a map of variables to values in the promptVariables field. + /// You can append more messages to the prompt by using the messages field. If + /// you use a prompt from Prompt management, you can't include the following fields in + /// the request: additionalModelRequestFields, inferenceConfig, system, + /// or toolConfig. Instead, these fields must be defined through Prompt management. + /// For more information, see Use + /// a prompt from Prompt management. + /// /// For information about the Converse API, see Use the Converse API in the Amazon /// Bedrock User Guide. To use a guardrail, see Use a guardrail with the Converse /// API in the Amazon Bedrock User Guide. To use a tool with a model, see Tool @@ -57,14 +70,16 @@ namespace Amazon.PowerShell.Cmdlets.BDRR public partial class InvokeBDRRConverseCmdlet : AmazonBedrockRuntimeClientCmdlet, IExecutor { + protected override bool IsSensitiveRequest { get; set; } = true; + protected override bool IsGeneratedCmdlet { get; set; } = true; #region Parameter AdditionalModelRequestField /// /// /// Additional inference parameters that the model supports, beyond the base set of inference - /// parameters that Converse supports in the inferenceConfig field. For - /// more information, see Model + /// parameters that Converse and ConverseStream support in the inferenceConfig + /// field. For more information, see Model /// parameters. /// /// @@ -77,11 +92,12 @@ public partial class InvokeBDRRConverseCmdlet : AmazonBedrockRuntimeClientCmdlet /// /// /// Additional model parameters field paths to return in the response. Converse - /// returns the requested fields as a JSON Pointer object in the additionalModelResponseFields - /// field. The following is example JSON for additionalModelResponseFieldPaths.[ "/stop_sequence" ]For information about the JSON Pointer syntax, see the Internet - /// Engineering Task Force (IETF) documentation.Converse rejects an empty JSON Pointer or incorrectly structured JSON Pointer - /// with a 400 error code. if the JSON Pointer is valid, but the requested field - /// is not in the model response, it is ignored by Converse. + /// and ConverseStream return the requested fields as a JSON Pointer object in + /// the additionalModelResponseFields field. The following is example JSON for + /// additionalModelResponseFieldPaths.[ "/stop_sequence" ]For information about the JSON Pointer syntax, see the Internet + /// Engineering Task Force (IETF) documentation.Converse and ConverseStream reject an empty JSON Pointer or incorrectly + /// structured JSON Pointer with a 400 error code. if the JSON Pointer is valid, + /// but the requested field is not in the model response, it is ignored by Converse. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] @@ -152,14 +168,7 @@ public partial class InvokeBDRRConverseCmdlet : AmazonBedrockRuntimeClientCmdlet /// The messages that you want to send to the model. /// /// - #if !MODULAR [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] - #else - [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)] - [System.Management.Automation.AllowEmptyCollection] - [System.Management.Automation.AllowNull] - #endif - [Amazon.PowerShell.Common.AWSRequiredParameter] [Alias("Messages")] public Amazon.BedrockRuntime.Model.Message[] Message { get; set; } #endregion @@ -167,8 +176,8 @@ public partial class InvokeBDRRConverseCmdlet : AmazonBedrockRuntimeClientCmdlet #region Parameter ModelId /// /// - /// The identifier for the model that you want to call.The modelId to provide depends on the type of model or throughput that you - /// use:The Converse API doesn't support imported /// models. /// /// @@ -202,6 +212,19 @@ public partial class InvokeBDRRConverseCmdlet : AmazonBedrockRuntimeClientCmdlet public System.String Tool_Name { get; set; } #endregion + #region Parameter PromptVariable + /// + /// + /// Contains a map of variables in a prompt from Prompt management to objects containing + /// the values to fill in for them when running model invocation. This field is ignored + /// if you don't specify a prompt resource in the modelId field. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("PromptVariables")] + public System.Collections.Hashtable PromptVariable { get; set; } + #endregion + #region Parameter InferenceConfig_StopSequence /// /// @@ -217,7 +240,8 @@ public partial class InvokeBDRRConverseCmdlet : AmazonBedrockRuntimeClientCmdlet #region Parameter System /// /// - /// A system prompt to pass to the model. + /// A prompt that provides instructions or context to the model about the task it should + /// perform, or the persona it should adopt during the conversation. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] @@ -356,12 +380,6 @@ protected override void ProcessRecord() { context.Message = new List(this.Message); } - #if MODULAR - if (this.Message == null && ParameterWasBound(nameof(this.Message))) - { - WriteWarning("You are passing $null as a value for parameter Message 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.ModelId = this.ModelId; #if MODULAR if (this.ModelId == null && ParameterWasBound(nameof(this.ModelId))) @@ -369,6 +387,14 @@ protected override void ProcessRecord() WriteWarning("You are passing $null as a value for parameter ModelId 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 + if (this.PromptVariable != null) + { + context.PromptVariable = new Dictionary(StringComparer.Ordinal); + foreach (var hashKey in this.PromptVariable.Keys) + { + context.PromptVariable.Add((String)hashKey, (Amazon.BedrockRuntime.Model.PromptVariableValues)(this.PromptVariable[hashKey])); + } + } if (this.System != null) { context.System = new List(this.System); @@ -500,6 +526,10 @@ public object Execute(ExecutorContext context) { request.ModelId = cmdletContext.ModelId; } + if (cmdletContext.PromptVariable != null) + { + request.PromptVariables = cmdletContext.PromptVariable; + } if (cmdletContext.System != null) { request.System = cmdletContext.System; @@ -655,6 +685,7 @@ internal partial class CmdletContext : ExecutorContext public System.Single? InferenceConfig_TopP { get; set; } public List Message { get; set; } public System.String ModelId { get; set; } + public Dictionary PromptVariable { get; set; } public List System { get; set; } public Amazon.BedrockRuntime.Model.AnyToolChoice ToolChoice_Any { get; set; } public Amazon.BedrockRuntime.Model.AutoToolChoice ToolChoice_Auto { get; set; } diff --git a/modules/AWSPowerShell/Cmdlets/BedrockRuntime/Basic/Invoke-BDRRConverseStream-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/BedrockRuntime/Basic/Invoke-BDRRConverseStream-Cmdlet.cs index c429d45f60..4aa627edd5 100644 --- a/modules/AWSPowerShell/Cmdlets/BedrockRuntime/Basic/Invoke-BDRRConverseStream-Cmdlet.cs +++ b/modules/AWSPowerShell/Cmdlets/BedrockRuntime/Basic/Invoke-BDRRConverseStream-Cmdlet.cs @@ -44,6 +44,19 @@ namespace Amazon.PowerShell.Cmdlets.BDRR /// Amazon Bedrock doesn't store any text, images, or documents that you provide as content. /// The data is only used to generate the response. /// + /// You can submit a prompt by including it in the messages field, specifying the + /// modelId of a foundation model or inference profile to run inference on it, + /// and including any other fields that are relevant to your use case. + /// + /// You can also submit a prompt from Prompt management by specifying the ARN of the prompt + /// version and including a map of variables to values in the promptVariables field. + /// You can append more messages to the prompt by using the messages field. If + /// you use a prompt from Prompt management, you can't include the following fields in + /// the request: additionalModelRequestFields, inferenceConfig, system, + /// or toolConfig. Instead, these fields must be defined through Prompt management. + /// For more information, see Use + /// a prompt from Prompt management. + /// /// For information about the Converse API, see Use the Converse API in the Amazon /// Bedrock User Guide. To use a guardrail, see Use a guardrail with the Converse /// API in the Amazon Bedrock User Guide. To use a tool with a model, see Tool @@ -65,13 +78,17 @@ namespace Amazon.PowerShell.Cmdlets.BDRR public partial class InvokeBDRRConverseStreamCmdlet : AmazonBedrockRuntimeClientCmdlet, IExecutor { + protected override bool IsSensitiveRequest { get; set; } = true; + protected override bool IsGeneratedCmdlet { get; set; } = true; #region Parameter AdditionalModelRequestField /// /// /// Additional inference parameters that the model supports, beyond the base set of inference - /// parameters that ConverseStream supports in the inferenceConfig field. + /// parameters that Converse and ConverseStream support in the inferenceConfig + /// field. For more information, see Model + /// parameters. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] @@ -82,12 +99,13 @@ public partial class InvokeBDRRConverseStreamCmdlet : AmazonBedrockRuntimeClient #region Parameter AdditionalModelResponseFieldPath /// /// - /// Additional model parameters field paths to return in the response. ConverseStream - /// returns the requested fields as a JSON Pointer object in the additionalModelResponseFields - /// field. The following is example JSON for additionalModelResponseFieldPaths.[ "/stop_sequence" ]For information about the JSON Pointer syntax, see the Internet - /// Engineering Task Force (IETF) documentation.ConverseStream rejects an empty JSON Pointer or incorrectly structured JSON - /// Pointer with a 400 error code. if the JSON Pointer is valid, but the requested - /// field is not in the model response, it is ignored by ConverseStream. + /// Additional model parameters field paths to return in the response. Converse + /// and ConverseStream return the requested fields as a JSON Pointer object in + /// the additionalModelResponseFields field. The following is example JSON for + /// additionalModelResponseFieldPaths.[ "/stop_sequence" ]For information about the JSON Pointer syntax, see the Internet + /// Engineering Task Force (IETF) documentation.Converse and ConverseStream reject an empty JSON Pointer or incorrectly + /// structured JSON Pointer with a 400 error code. if the JSON Pointer is valid, + /// but the requested field is not in the model response, it is ignored by Converse. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] @@ -158,14 +176,7 @@ public partial class InvokeBDRRConverseStreamCmdlet : AmazonBedrockRuntimeClient /// The messages that you want to send to the model. /// /// - #if !MODULAR [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] - #else - [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)] - [System.Management.Automation.AllowEmptyCollection] - [System.Management.Automation.AllowNull] - #endif - [Amazon.PowerShell.Common.AWSRequiredParameter] [Alias("Messages")] public Amazon.BedrockRuntime.Model.Message[] Message { get; set; } #endregion @@ -173,8 +184,8 @@ public partial class InvokeBDRRConverseStreamCmdlet : AmazonBedrockRuntimeClient #region Parameter ModelId /// /// - /// The ID for the model.The modelId to provide depends on the type of model or throughput that you - /// use:The Converse API doesn't support imported /// models. /// /// @@ -208,6 +220,19 @@ public partial class InvokeBDRRConverseStreamCmdlet : AmazonBedrockRuntimeClient public System.String Tool_Name { get; set; } #endregion + #region Parameter PromptVariable + /// + /// + /// Contains a map of variables in a prompt from Prompt management to objects containing + /// the values to fill in for them when running model invocation. This field is ignored + /// if you don't specify a prompt resource in the modelId field. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("PromptVariables")] + public System.Collections.Hashtable PromptVariable { get; set; } + #endregion + #region Parameter InferenceConfig_StopSequence /// /// @@ -235,7 +260,8 @@ public partial class InvokeBDRRConverseStreamCmdlet : AmazonBedrockRuntimeClient #region Parameter System /// /// - /// A system prompt to send to the model. + /// A prompt that provides instructions or context to the model about the task it should + /// perform, or the persona it should adopt during the conversation. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] @@ -375,12 +401,6 @@ protected override void ProcessRecord() { context.Message = new List(this.Message); } - #if MODULAR - if (this.Message == null && ParameterWasBound(nameof(this.Message))) - { - WriteWarning("You are passing $null as a value for parameter Message 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.ModelId = this.ModelId; #if MODULAR if (this.ModelId == null && ParameterWasBound(nameof(this.ModelId))) @@ -388,6 +408,14 @@ protected override void ProcessRecord() WriteWarning("You are passing $null as a value for parameter ModelId 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 + if (this.PromptVariable != null) + { + context.PromptVariable = new Dictionary(StringComparer.Ordinal); + foreach (var hashKey in this.PromptVariable.Keys) + { + context.PromptVariable.Add((String)hashKey, (Amazon.BedrockRuntime.Model.PromptVariableValues)(this.PromptVariable[hashKey])); + } + } if (this.System != null) { context.System = new List(this.System); @@ -529,6 +557,10 @@ public object Execute(ExecutorContext context) { request.ModelId = cmdletContext.ModelId; } + if (cmdletContext.PromptVariable != null) + { + request.PromptVariables = cmdletContext.PromptVariable; + } if (cmdletContext.System != null) { request.System = cmdletContext.System; @@ -685,6 +717,7 @@ internal partial class CmdletContext : ExecutorContext public System.Single? InferenceConfig_TopP { get; set; } public List Message { get; set; } public System.String ModelId { get; set; } + public Dictionary PromptVariable { get; set; } public List System { get; set; } public Amazon.BedrockRuntime.Model.AnyToolChoice ToolChoice_Any { get; set; } public Amazon.BedrockRuntime.Model.AutoToolChoice ToolChoice_Auto { get; set; } diff --git a/modules/AWSPowerShell/Cmdlets/BedrockRuntime/Basic/Invoke-BDRRModel-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/BedrockRuntime/Basic/Invoke-BDRRModel-Cmdlet.cs index 338d4e8a1b..4e73e2f040 100644 --- a/modules/AWSPowerShell/Cmdlets/BedrockRuntime/Basic/Invoke-BDRRModel-Cmdlet.cs +++ b/modules/AWSPowerShell/Cmdlets/BedrockRuntime/Basic/Invoke-BDRRModel-Cmdlet.cs @@ -77,13 +77,7 @@ public partial class InvokeBDRRModelCmdlet : AmazonBedrockRuntimeClientCmdlet, I /// /// The cmdlet will automatically convert the supplied parameter of type string, string[], System.IO.FileInfo or System.IO.Stream to byte[] before supplying it to the service. /// - #if !MODULAR [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] - #else - [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)] - [System.Management.Automation.AllowNull] - #endif - [Amazon.PowerShell.Common.AWSRequiredParameter] [Amazon.PowerShell.Common.MemoryStreamParameterConverter] public byte[] Body { get; set; } #endregion @@ -222,12 +216,6 @@ protected override void ProcessRecord() #pragma warning restore CS0618, CS0612 //A class member was marked with the Obsolete attribute context.Accept = this.Accept; context.Body = this.Body; - #if MODULAR - if (this.Body == null && ParameterWasBound(nameof(this.Body))) - { - WriteWarning("You are passing $null as a value for parameter Body 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.ContentType = this.ContentType; context.GuardrailIdentifier = this.GuardrailIdentifier; context.GuardrailVersion = this.GuardrailVersion; diff --git a/modules/AWSPowerShell/Cmdlets/BedrockRuntime/Basic/Invoke-BDRRModelWithResponseStream-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/BedrockRuntime/Basic/Invoke-BDRRModelWithResponseStream-Cmdlet.cs index eb058aa509..6e66aa6f4f 100644 --- a/modules/AWSPowerShell/Cmdlets/BedrockRuntime/Basic/Invoke-BDRRModelWithResponseStream-Cmdlet.cs +++ b/modules/AWSPowerShell/Cmdlets/BedrockRuntime/Basic/Invoke-BDRRModelWithResponseStream-Cmdlet.cs @@ -80,13 +80,7 @@ public partial class InvokeBDRRModelWithResponseStreamCmdlet : AmazonBedrockRunt ///
/// The cmdlet will automatically convert the supplied parameter of type string, string[], System.IO.FileInfo or System.IO.Stream to byte[] before supplying it to the service. ///
- #if !MODULAR [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] - #else - [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)] - [System.Management.Automation.AllowNull] - #endif - [Amazon.PowerShell.Common.AWSRequiredParameter] [Amazon.PowerShell.Common.MemoryStreamParameterConverter] public byte[] Body { get; set; } #endregion @@ -225,12 +219,6 @@ protected override void ProcessRecord() #pragma warning restore CS0618, CS0612 //A class member was marked with the Obsolete attribute context.Accept = this.Accept; context.Body = this.Body; - #if MODULAR - if (this.Body == null && ParameterWasBound(nameof(this.Body))) - { - WriteWarning("You are passing $null as a value for parameter Body 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.ContentType = this.ContentType; context.GuardrailIdentifier = this.GuardrailIdentifier; context.GuardrailVersion = this.GuardrailVersion; diff --git a/modules/AWSPowerShell/Cmdlets/CleanRooms/Basic/New-CRSCollaboration-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/CleanRooms/Basic/New-CRSCollaboration-Cmdlet.cs index 59d1399c95..e965f3fb2d 100644 --- a/modules/AWSPowerShell/Cmdlets/CleanRooms/Basic/New-CRSCollaboration-Cmdlet.cs +++ b/modules/AWSPowerShell/Cmdlets/CleanRooms/Basic/New-CRSCollaboration-Cmdlet.cs @@ -124,6 +124,20 @@ public partial class NewCRSCollaborationCmdlet : AmazonCleanRoomsClientCmdlet, I public System.String[] CreatorMemberAbility { get; set; } #endregion + #region Parameter CreatorMLMemberAbilities_CustomMLMemberAbility + /// + /// + /// The custom ML member abilities for a collaboration member. The inference feature is + /// not available in the custom ML modeling beta.Custom ML modeling is in beta release and is subject to change. For beta terms and + /// conditions, see Betas and Previews in the Amazon + /// Web Services Service Terms. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("CreatorMLMemberAbilities_CustomMLMemberAbilities")] + public System.String[] CreatorMLMemberAbilities_CustomMLMemberAbility { get; set; } + #endregion + #region Parameter Description /// /// @@ -141,6 +155,40 @@ public partial class NewCRSCollaborationCmdlet : AmazonCleanRoomsClientCmdlet, I public System.String Description { get; set; } #endregion + #region Parameter ModelInference_IsResponsible + /// + /// + /// Indicates whether the collaboration creator has configured the collaboration member + /// to pay for model inference costs (TRUE) or has not configured the collaboration + /// member to pay for model inference costs (FALSE).Exactly one member can be configured to pay for model inference costs. An error is + /// returned if the collaboration creator sets a TRUE value for more than one member + /// in the collaboration. If the collaboration creator hasn't specified anyone as the member paying for model + /// inference costs, then the member who can query is the default payer. An error is returned + /// if the collaboration creator sets a FALSE value for the member who can query. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("CreatorPaymentConfiguration_MachineLearning_ModelInference_IsResponsible")] + public System.Boolean? ModelInference_IsResponsible { get; set; } + #endregion + + #region Parameter ModelTraining_IsResponsible + /// + /// + /// Indicates whether the collaboration creator has configured the collaboration member + /// to pay for model training costs (TRUE) or has not configured the collaboration + /// member to pay for model training costs (FALSE).Exactly one member can be configured to pay for model training costs. An error is + /// returned if the collaboration creator sets a TRUE value for more than one member + /// in the collaboration. If the collaboration creator hasn't specified anyone as the member paying for model + /// training costs, then the member who can query is the default payer. An error is returned + /// if the collaboration creator sets a FALSE value for the member who can query. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("CreatorPaymentConfiguration_MachineLearning_ModelTraining_IsResponsible")] + public System.Boolean? ModelTraining_IsResponsible { get; set; } + #endregion + #region Parameter QueryCompute_IsResponsible /// /// @@ -295,6 +343,12 @@ protected override void ProcessRecord() WriteWarning("You are passing $null as a value for parameter CreatorMemberAbility 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 + if (this.CreatorMLMemberAbilities_CustomMLMemberAbility != null) + { + context.CreatorMLMemberAbilities_CustomMLMemberAbility = new List(this.CreatorMLMemberAbilities_CustomMLMemberAbility); + } + context.ModelInference_IsResponsible = this.ModelInference_IsResponsible; + context.ModelTraining_IsResponsible = this.ModelTraining_IsResponsible; context.QueryCompute_IsResponsible = this.QueryCompute_IsResponsible; context.DataEncryptionMetadata_AllowCleartext = this.DataEncryptionMetadata_AllowCleartext; context.DataEncryptionMetadata_AllowDuplicate = this.DataEncryptionMetadata_AllowDuplicate; @@ -368,6 +422,25 @@ public object Execute(ExecutorContext context) request.CreatorMemberAbilities = cmdletContext.CreatorMemberAbility; } + // populate CreatorMLMemberAbilities + var requestCreatorMLMemberAbilitiesIsNull = true; + request.CreatorMLMemberAbilities = new Amazon.CleanRooms.Model.MLMemberAbilities(); + List requestCreatorMLMemberAbilities_creatorMLMemberAbilities_CustomMLMemberAbility = null; + if (cmdletContext.CreatorMLMemberAbilities_CustomMLMemberAbility != null) + { + requestCreatorMLMemberAbilities_creatorMLMemberAbilities_CustomMLMemberAbility = cmdletContext.CreatorMLMemberAbilities_CustomMLMemberAbility; + } + if (requestCreatorMLMemberAbilities_creatorMLMemberAbilities_CustomMLMemberAbility != null) + { + request.CreatorMLMemberAbilities.CustomMLMemberAbilities = requestCreatorMLMemberAbilities_creatorMLMemberAbilities_CustomMLMemberAbility; + requestCreatorMLMemberAbilitiesIsNull = false; + } + // determine if request.CreatorMLMemberAbilities should be set to null + if (requestCreatorMLMemberAbilitiesIsNull) + { + request.CreatorMLMemberAbilities = null; + } + // populate CreatorPaymentConfiguration var requestCreatorPaymentConfigurationIsNull = true; request.CreatorPaymentConfiguration = new Amazon.CleanRooms.Model.PaymentConfiguration(); @@ -395,6 +468,71 @@ public object Execute(ExecutorContext context) { request.CreatorPaymentConfiguration.QueryCompute = requestCreatorPaymentConfiguration_creatorPaymentConfiguration_QueryCompute; requestCreatorPaymentConfigurationIsNull = false; + } + Amazon.CleanRooms.Model.MLPaymentConfig requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning = null; + + // populate MachineLearning + var requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearningIsNull = true; + requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning = new Amazon.CleanRooms.Model.MLPaymentConfig(); + Amazon.CleanRooms.Model.ModelInferencePaymentConfig requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning_creatorPaymentConfiguration_MachineLearning_ModelInference = null; + + // populate ModelInference + var requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning_creatorPaymentConfiguration_MachineLearning_ModelInferenceIsNull = true; + requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning_creatorPaymentConfiguration_MachineLearning_ModelInference = new Amazon.CleanRooms.Model.ModelInferencePaymentConfig(); + System.Boolean? requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning_creatorPaymentConfiguration_MachineLearning_ModelInference_modelInference_IsResponsible = null; + if (cmdletContext.ModelInference_IsResponsible != null) + { + requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning_creatorPaymentConfiguration_MachineLearning_ModelInference_modelInference_IsResponsible = cmdletContext.ModelInference_IsResponsible.Value; + } + if (requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning_creatorPaymentConfiguration_MachineLearning_ModelInference_modelInference_IsResponsible != null) + { + requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning_creatorPaymentConfiguration_MachineLearning_ModelInference.IsResponsible = requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning_creatorPaymentConfiguration_MachineLearning_ModelInference_modelInference_IsResponsible.Value; + requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning_creatorPaymentConfiguration_MachineLearning_ModelInferenceIsNull = false; + } + // determine if requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning_creatorPaymentConfiguration_MachineLearning_ModelInference should be set to null + if (requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning_creatorPaymentConfiguration_MachineLearning_ModelInferenceIsNull) + { + requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning_creatorPaymentConfiguration_MachineLearning_ModelInference = null; + } + if (requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning_creatorPaymentConfiguration_MachineLearning_ModelInference != null) + { + requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning.ModelInference = requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning_creatorPaymentConfiguration_MachineLearning_ModelInference; + requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearningIsNull = false; + } + Amazon.CleanRooms.Model.ModelTrainingPaymentConfig requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning_creatorPaymentConfiguration_MachineLearning_ModelTraining = null; + + // populate ModelTraining + var requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning_creatorPaymentConfiguration_MachineLearning_ModelTrainingIsNull = true; + requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning_creatorPaymentConfiguration_MachineLearning_ModelTraining = new Amazon.CleanRooms.Model.ModelTrainingPaymentConfig(); + System.Boolean? requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning_creatorPaymentConfiguration_MachineLearning_ModelTraining_modelTraining_IsResponsible = null; + if (cmdletContext.ModelTraining_IsResponsible != null) + { + requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning_creatorPaymentConfiguration_MachineLearning_ModelTraining_modelTraining_IsResponsible = cmdletContext.ModelTraining_IsResponsible.Value; + } + if (requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning_creatorPaymentConfiguration_MachineLearning_ModelTraining_modelTraining_IsResponsible != null) + { + requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning_creatorPaymentConfiguration_MachineLearning_ModelTraining.IsResponsible = requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning_creatorPaymentConfiguration_MachineLearning_ModelTraining_modelTraining_IsResponsible.Value; + requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning_creatorPaymentConfiguration_MachineLearning_ModelTrainingIsNull = false; + } + // determine if requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning_creatorPaymentConfiguration_MachineLearning_ModelTraining should be set to null + if (requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning_creatorPaymentConfiguration_MachineLearning_ModelTrainingIsNull) + { + requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning_creatorPaymentConfiguration_MachineLearning_ModelTraining = null; + } + if (requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning_creatorPaymentConfiguration_MachineLearning_ModelTraining != null) + { + requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning.ModelTraining = requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning_creatorPaymentConfiguration_MachineLearning_ModelTraining; + requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearningIsNull = false; + } + // determine if requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning should be set to null + if (requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearningIsNull) + { + requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning = null; + } + if (requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning != null) + { + request.CreatorPaymentConfiguration.MachineLearning = requestCreatorPaymentConfiguration_creatorPaymentConfiguration_MachineLearning; + requestCreatorPaymentConfigurationIsNull = false; } // determine if request.CreatorPaymentConfiguration should be set to null if (requestCreatorPaymentConfigurationIsNull) @@ -534,6 +672,9 @@ internal partial class CmdletContext : ExecutorContext public Amazon.CleanRooms.AnalyticsEngine AnalyticsEngine { get; set; } public System.String CreatorDisplayName { get; set; } public List CreatorMemberAbility { get; set; } + public List CreatorMLMemberAbilities_CustomMLMemberAbility { get; set; } + public System.Boolean? ModelInference_IsResponsible { get; set; } + public System.Boolean? ModelTraining_IsResponsible { get; set; } public System.Boolean? QueryCompute_IsResponsible { get; set; } public System.Boolean? DataEncryptionMetadata_AllowCleartext { get; set; } public System.Boolean? DataEncryptionMetadata_AllowDuplicate { get; set; } diff --git a/modules/AWSPowerShell/Cmdlets/CleanRooms/Basic/New-CRSMembership-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/CleanRooms/Basic/New-CRSMembership-Cmdlet.cs index 48146fd3ab..e6661c3839 100644 --- a/modules/AWSPowerShell/Cmdlets/CleanRooms/Basic/New-CRSMembership-Cmdlet.cs +++ b/modules/AWSPowerShell/Cmdlets/CleanRooms/Basic/New-CRSMembership-Cmdlet.cs @@ -70,6 +70,36 @@ public partial class NewCRSMembershipCmdlet : AmazonCleanRoomsClientCmdlet, IExe public System.String CollaborationIdentifier { get; set; } #endregion + #region Parameter ModelInference_IsResponsible + /// + /// + /// Indicates whether the collaboration member has accepted to pay for model inference + /// costs (TRUE) or has not accepted to pay for model inference costs (FALSE).If the collaboration creator has not specified anyone to pay for model inference costs, + /// then the member who can query is the default payer. An error message is returned for the following reasons:
  • If you set the value to FALSE but you are responsible to pay for model inference + /// costs.
  • If you set the value to TRUE but you are not responsible to pay for model inference + /// costs.
+ ///
+ ///
+ [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("PaymentConfiguration_MachineLearning_ModelInference_IsResponsible")] + public System.Boolean? ModelInference_IsResponsible { get; set; } + #endregion + + #region Parameter ModelTraining_IsResponsible + /// + /// + /// Indicates whether the collaboration member has accepted to pay for model training + /// costs (TRUE) or has not accepted to pay for model training costs (FALSE).If the collaboration creator has not specified anyone to pay for model training costs, + /// then the member who can query is the default payer. An error message is returned for the following reasons:
  • If you set the value to FALSE but you are responsible to pay for model training + /// costs.
  • If you set the value to TRUE but you are not responsible to pay for model training + /// costs.
+ ///
+ ///
+ [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("PaymentConfiguration_MachineLearning_ModelTraining_IsResponsible")] + public System.Boolean? ModelTraining_IsResponsible { get; set; } + #endregion + #region Parameter QueryCompute_IsResponsible /// /// @@ -236,6 +266,8 @@ protected override void ProcessRecord() context.S3_ResultFormat = this.S3_ResultFormat; context.S3_SingleFileOutput = this.S3_SingleFileOutput; context.DefaultResultConfiguration_RoleArn = this.DefaultResultConfiguration_RoleArn; + context.ModelInference_IsResponsible = this.ModelInference_IsResponsible; + context.ModelTraining_IsResponsible = this.ModelTraining_IsResponsible; context.QueryCompute_IsResponsible = this.QueryCompute_IsResponsible; context.QueryLogStatus = this.QueryLogStatus; #if MODULAR @@ -389,6 +421,71 @@ public object Execute(ExecutorContext context) { request.PaymentConfiguration.QueryCompute = requestPaymentConfiguration_paymentConfiguration_QueryCompute; requestPaymentConfigurationIsNull = false; + } + Amazon.CleanRooms.Model.MembershipMLPaymentConfig requestPaymentConfiguration_paymentConfiguration_MachineLearning = null; + + // populate MachineLearning + var requestPaymentConfiguration_paymentConfiguration_MachineLearningIsNull = true; + requestPaymentConfiguration_paymentConfiguration_MachineLearning = new Amazon.CleanRooms.Model.MembershipMLPaymentConfig(); + Amazon.CleanRooms.Model.MembershipModelInferencePaymentConfig requestPaymentConfiguration_paymentConfiguration_MachineLearning_paymentConfiguration_MachineLearning_ModelInference = null; + + // populate ModelInference + var requestPaymentConfiguration_paymentConfiguration_MachineLearning_paymentConfiguration_MachineLearning_ModelInferenceIsNull = true; + requestPaymentConfiguration_paymentConfiguration_MachineLearning_paymentConfiguration_MachineLearning_ModelInference = new Amazon.CleanRooms.Model.MembershipModelInferencePaymentConfig(); + System.Boolean? requestPaymentConfiguration_paymentConfiguration_MachineLearning_paymentConfiguration_MachineLearning_ModelInference_modelInference_IsResponsible = null; + if (cmdletContext.ModelInference_IsResponsible != null) + { + requestPaymentConfiguration_paymentConfiguration_MachineLearning_paymentConfiguration_MachineLearning_ModelInference_modelInference_IsResponsible = cmdletContext.ModelInference_IsResponsible.Value; + } + if (requestPaymentConfiguration_paymentConfiguration_MachineLearning_paymentConfiguration_MachineLearning_ModelInference_modelInference_IsResponsible != null) + { + requestPaymentConfiguration_paymentConfiguration_MachineLearning_paymentConfiguration_MachineLearning_ModelInference.IsResponsible = requestPaymentConfiguration_paymentConfiguration_MachineLearning_paymentConfiguration_MachineLearning_ModelInference_modelInference_IsResponsible.Value; + requestPaymentConfiguration_paymentConfiguration_MachineLearning_paymentConfiguration_MachineLearning_ModelInferenceIsNull = false; + } + // determine if requestPaymentConfiguration_paymentConfiguration_MachineLearning_paymentConfiguration_MachineLearning_ModelInference should be set to null + if (requestPaymentConfiguration_paymentConfiguration_MachineLearning_paymentConfiguration_MachineLearning_ModelInferenceIsNull) + { + requestPaymentConfiguration_paymentConfiguration_MachineLearning_paymentConfiguration_MachineLearning_ModelInference = null; + } + if (requestPaymentConfiguration_paymentConfiguration_MachineLearning_paymentConfiguration_MachineLearning_ModelInference != null) + { + requestPaymentConfiguration_paymentConfiguration_MachineLearning.ModelInference = requestPaymentConfiguration_paymentConfiguration_MachineLearning_paymentConfiguration_MachineLearning_ModelInference; + requestPaymentConfiguration_paymentConfiguration_MachineLearningIsNull = false; + } + Amazon.CleanRooms.Model.MembershipModelTrainingPaymentConfig requestPaymentConfiguration_paymentConfiguration_MachineLearning_paymentConfiguration_MachineLearning_ModelTraining = null; + + // populate ModelTraining + var requestPaymentConfiguration_paymentConfiguration_MachineLearning_paymentConfiguration_MachineLearning_ModelTrainingIsNull = true; + requestPaymentConfiguration_paymentConfiguration_MachineLearning_paymentConfiguration_MachineLearning_ModelTraining = new Amazon.CleanRooms.Model.MembershipModelTrainingPaymentConfig(); + System.Boolean? requestPaymentConfiguration_paymentConfiguration_MachineLearning_paymentConfiguration_MachineLearning_ModelTraining_modelTraining_IsResponsible = null; + if (cmdletContext.ModelTraining_IsResponsible != null) + { + requestPaymentConfiguration_paymentConfiguration_MachineLearning_paymentConfiguration_MachineLearning_ModelTraining_modelTraining_IsResponsible = cmdletContext.ModelTraining_IsResponsible.Value; + } + if (requestPaymentConfiguration_paymentConfiguration_MachineLearning_paymentConfiguration_MachineLearning_ModelTraining_modelTraining_IsResponsible != null) + { + requestPaymentConfiguration_paymentConfiguration_MachineLearning_paymentConfiguration_MachineLearning_ModelTraining.IsResponsible = requestPaymentConfiguration_paymentConfiguration_MachineLearning_paymentConfiguration_MachineLearning_ModelTraining_modelTraining_IsResponsible.Value; + requestPaymentConfiguration_paymentConfiguration_MachineLearning_paymentConfiguration_MachineLearning_ModelTrainingIsNull = false; + } + // determine if requestPaymentConfiguration_paymentConfiguration_MachineLearning_paymentConfiguration_MachineLearning_ModelTraining should be set to null + if (requestPaymentConfiguration_paymentConfiguration_MachineLearning_paymentConfiguration_MachineLearning_ModelTrainingIsNull) + { + requestPaymentConfiguration_paymentConfiguration_MachineLearning_paymentConfiguration_MachineLearning_ModelTraining = null; + } + if (requestPaymentConfiguration_paymentConfiguration_MachineLearning_paymentConfiguration_MachineLearning_ModelTraining != null) + { + requestPaymentConfiguration_paymentConfiguration_MachineLearning.ModelTraining = requestPaymentConfiguration_paymentConfiguration_MachineLearning_paymentConfiguration_MachineLearning_ModelTraining; + requestPaymentConfiguration_paymentConfiguration_MachineLearningIsNull = false; + } + // determine if requestPaymentConfiguration_paymentConfiguration_MachineLearning should be set to null + if (requestPaymentConfiguration_paymentConfiguration_MachineLearningIsNull) + { + requestPaymentConfiguration_paymentConfiguration_MachineLearning = null; + } + if (requestPaymentConfiguration_paymentConfiguration_MachineLearning != null) + { + request.PaymentConfiguration.MachineLearning = requestPaymentConfiguration_paymentConfiguration_MachineLearning; + requestPaymentConfigurationIsNull = false; } // determine if request.PaymentConfiguration should be set to null if (requestPaymentConfigurationIsNull) @@ -470,6 +567,8 @@ internal partial class CmdletContext : ExecutorContext public Amazon.CleanRooms.ResultFormat S3_ResultFormat { get; set; } public System.Boolean? S3_SingleFileOutput { get; set; } public System.String DefaultResultConfiguration_RoleArn { get; set; } + public System.Boolean? ModelInference_IsResponsible { get; set; } + public System.Boolean? ModelTraining_IsResponsible { get; set; } public System.Boolean? QueryCompute_IsResponsible { get; set; } public Amazon.CleanRooms.MembershipQueryLogStatus QueryLogStatus { get; set; } public Dictionary Tag { get; set; } diff --git a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/AWS.Tools.CleanRoomsML.Completers.psm1 b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/AWS.Tools.CleanRoomsML.Completers.psm1 index 8be213b5c8..ae9dd0b063 100644 --- a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/AWS.Tools.CleanRoomsML.Completers.psm1 +++ b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/AWS.Tools.CleanRoomsML.Completers.psm1 @@ -91,6 +91,27 @@ $CRML_Completers = { break } + # Amazon.CleanRoomsML.InferenceInstanceType + "Start-CRMLTrainedModelInferenceJob/ResourceConfig_InstanceType" + { + $v = "ml.c4.2xlarge","ml.c4.4xlarge","ml.c4.8xlarge","ml.c4.xlarge","ml.c5.18xlarge","ml.c5.2xlarge","ml.c5.4xlarge","ml.c5.9xlarge","ml.c5.xlarge","ml.c6i.12xlarge","ml.c6i.16xlarge","ml.c6i.24xlarge","ml.c6i.2xlarge","ml.c6i.32xlarge","ml.c6i.4xlarge","ml.c6i.8xlarge","ml.c6i.large","ml.c6i.xlarge","ml.c7i.12xlarge","ml.c7i.16xlarge","ml.c7i.24xlarge","ml.c7i.2xlarge","ml.c7i.48xlarge","ml.c7i.4xlarge","ml.c7i.8xlarge","ml.c7i.large","ml.c7i.xlarge","ml.g4dn.12xlarge","ml.g4dn.16xlarge","ml.g4dn.2xlarge","ml.g4dn.4xlarge","ml.g4dn.8xlarge","ml.g4dn.xlarge","ml.g5.12xlarge","ml.g5.16xlarge","ml.g5.24xlarge","ml.g5.2xlarge","ml.g5.48xlarge","ml.g5.4xlarge","ml.g5.8xlarge","ml.g5.xlarge","ml.m4.10xlarge","ml.m4.16xlarge","ml.m4.2xlarge","ml.m4.4xlarge","ml.m4.xlarge","ml.m5.12xlarge","ml.m5.24xlarge","ml.m5.2xlarge","ml.m5.4xlarge","ml.m5.large","ml.m5.xlarge","ml.m6i.12xlarge","ml.m6i.16xlarge","ml.m6i.24xlarge","ml.m6i.2xlarge","ml.m6i.32xlarge","ml.m6i.4xlarge","ml.m6i.8xlarge","ml.m6i.large","ml.m6i.xlarge","ml.m7i.12xlarge","ml.m7i.16xlarge","ml.m7i.24xlarge","ml.m7i.2xlarge","ml.m7i.48xlarge","ml.m7i.4xlarge","ml.m7i.8xlarge","ml.m7i.large","ml.m7i.xlarge","ml.p2.16xlarge","ml.p2.8xlarge","ml.p2.xlarge","ml.p3.16xlarge","ml.p3.2xlarge","ml.p3.8xlarge","ml.r6i.12xlarge","ml.r6i.16xlarge","ml.r6i.24xlarge","ml.r6i.2xlarge","ml.r6i.32xlarge","ml.r6i.4xlarge","ml.r6i.8xlarge","ml.r6i.large","ml.r6i.xlarge","ml.r7i.12xlarge","ml.r7i.16xlarge","ml.r7i.24xlarge","ml.r7i.2xlarge","ml.r7i.48xlarge","ml.r7i.4xlarge","ml.r7i.8xlarge","ml.r7i.large","ml.r7i.xlarge" + break + } + + # Amazon.CleanRoomsML.InstanceType + "New-CRMLTrainedModel/ResourceConfig_InstanceType" + { + $v = "ml.c4.2xlarge","ml.c4.4xlarge","ml.c4.8xlarge","ml.c4.xlarge","ml.c5.18xlarge","ml.c5.2xlarge","ml.c5.4xlarge","ml.c5.9xlarge","ml.c5.xlarge","ml.c5n.18xlarge","ml.c5n.2xlarge","ml.c5n.4xlarge","ml.c5n.9xlarge","ml.c5n.xlarge","ml.c6i.12xlarge","ml.c6i.16xlarge","ml.c6i.24xlarge","ml.c6i.2xlarge","ml.c6i.32xlarge","ml.c6i.4xlarge","ml.c6i.8xlarge","ml.c6i.xlarge","ml.g4dn.12xlarge","ml.g4dn.16xlarge","ml.g4dn.2xlarge","ml.g4dn.4xlarge","ml.g4dn.8xlarge","ml.g4dn.xlarge","ml.g5.12xlarge","ml.g5.16xlarge","ml.g5.24xlarge","ml.g5.2xlarge","ml.g5.48xlarge","ml.g5.4xlarge","ml.g5.8xlarge","ml.g5.xlarge","ml.m4.10xlarge","ml.m4.16xlarge","ml.m4.2xlarge","ml.m4.4xlarge","ml.m4.xlarge","ml.m5.12xlarge","ml.m5.24xlarge","ml.m5.2xlarge","ml.m5.4xlarge","ml.m5.large","ml.m5.xlarge","ml.m6i.12xlarge","ml.m6i.16xlarge","ml.m6i.24xlarge","ml.m6i.2xlarge","ml.m6i.32xlarge","ml.m6i.4xlarge","ml.m6i.8xlarge","ml.m6i.large","ml.m6i.xlarge","ml.p2.16xlarge","ml.p2.8xlarge","ml.p2.xlarge","ml.p3.16xlarge","ml.p3.2xlarge","ml.p3.8xlarge","ml.p3dn.24xlarge","ml.p4d.24xlarge","ml.p4de.24xlarge","ml.p5.48xlarge","ml.r5.12xlarge","ml.r5.16xlarge","ml.r5.24xlarge","ml.r5.2xlarge","ml.r5.4xlarge","ml.r5.8xlarge","ml.r5.large","ml.r5.xlarge","ml.r5d.12xlarge","ml.r5d.16xlarge","ml.r5d.24xlarge","ml.r5d.2xlarge","ml.r5d.4xlarge","ml.r5d.8xlarge","ml.r5d.large","ml.r5d.xlarge","ml.t3.2xlarge","ml.t3.large","ml.t3.medium","ml.t3.xlarge","ml.trn1.2xlarge","ml.trn1.32xlarge","ml.trn1n.32xlarge" + break + } + + # Amazon.CleanRoomsML.NoiseLevelType + "New-CRMLConfiguredModelAlgorithmAssociation/ContainerMetrics_NoiseLevel" + { + $v = "HIGH","LOW","MEDIUM","NONE" + break + } + # Amazon.CleanRoomsML.PolicyExistenceCondition "Write-CRMLConfiguredAudienceModelPolicy/PolicyExistenceCondition" { @@ -105,6 +126,27 @@ $CRML_Completers = { break } + # Amazon.CleanRoomsML.TrainedModelExportsMaxSizeUnitType + "New-CRMLConfiguredModelAlgorithmAssociation/MaxSize_Unit" + { + $v = "GB" + break + } + + # Amazon.CleanRoomsML.TrainedModelInferenceMaxOutputSizeUnitType + "New-CRMLConfiguredModelAlgorithmAssociation/MaxOutputSize_Unit" + { + $v = "GB" + break + } + + # Amazon.CleanRoomsML.WorkerComputeType + "New-CRMLMLInputChannel/Worker_Type" + { + $v = "CR.1X","CR.4X" + break + } + } @@ -117,7 +159,12 @@ $CRML_map = @{ "AudienceSize_Type"=@("Start-CRMLAudienceExportJob") "AudienceSizeConfig_AudienceSizeType"=@("New-CRMLConfiguredAudienceModel","Update-CRMLConfiguredAudienceModel") "ChildResourceTagOnCreatePolicy"=@("New-CRMLConfiguredAudienceModel") + "ContainerMetrics_NoiseLevel"=@("New-CRMLConfiguredModelAlgorithmAssociation") + "MaxOutputSize_Unit"=@("New-CRMLConfiguredModelAlgorithmAssociation") + "MaxSize_Unit"=@("New-CRMLConfiguredModelAlgorithmAssociation") "PolicyExistenceCondition"=@("Write-CRMLConfiguredAudienceModelPolicy") + "ResourceConfig_InstanceType"=@("New-CRMLTrainedModel","Start-CRMLTrainedModelInferenceJob") + "Worker_Type"=@("New-CRMLMLInputChannel") } _awsArgumentCompleterRegistration $CRML_Completers $CRML_map @@ -170,28 +217,61 @@ $CRML_SelectCompleters = { } $CRML_SelectMap = @{ - "Select"=@("New-CRMLAudienceModel", + "Select"=@("Stop-CRMLTrainedModel", + "Stop-CRMLTrainedModelInferenceJob", + "New-CRMLAudienceModel", "New-CRMLConfiguredAudienceModel", + "New-CRMLConfiguredModelAlgorithm", + "New-CRMLConfiguredModelAlgorithmAssociation", + "New-CRMLMLInputChannel", + "New-CRMLTrainedModel", "New-CRMLTrainingDataset", "Remove-CRMLAudienceGenerationJob", "Remove-CRMLAudienceModel", "Remove-CRMLConfiguredAudienceModel", "Remove-CRMLConfiguredAudienceModelPolicy", + "Remove-CRMLConfiguredModelAlgorithm", + "Remove-CRMLConfiguredModelAlgorithmAssociation", + "Remove-CRMLMLConfiguration", + "Remove-CRMLMLInputChannelData", + "Remove-CRMLTrainedModelOutput", "Remove-CRMLTrainingDataset", "Get-CRMLAudienceGenerationJob", "Get-CRMLAudienceModel", + "Get-CRMLCollaborationConfiguredModelAlgorithmAssociation", + "Get-CRMLCollaborationMLInputChannel", + "Get-CRMLCollaborationTrainedModel", "Get-CRMLConfiguredAudienceModel", "Get-CRMLConfiguredAudienceModelPolicy", + "Get-CRMLConfiguredModelAlgorithm", + "Get-CRMLConfiguredModelAlgorithmAssociation", + "Get-CRMLMLConfiguration", + "Get-CRMLMLInputChannel", + "Get-CRMLTrainedModel", + "Get-CRMLTrainedModelInferenceJob", "Get-CRMLTrainingDataset", "Get-CRMLAudienceExportJobList", "Get-CRMLAudienceGenerationJobList", "Get-CRMLAudienceModelList", + "Get-CRMLCollaborationConfiguredModelAlgorithmAssociationList", + "Get-CRMLCollaborationMLInputChannelList", + "Get-CRMLCollaborationTrainedModelExportJobList", + "Get-CRMLCollaborationTrainedModelInferenceJobList", + "Get-CRMLCollaborationTrainedModelList", "Get-CRMLConfiguredAudienceModelList", + "Get-CRMLConfiguredModelAlgorithmAssociationList", + "Get-CRMLConfiguredModelAlgorithmList", + "Get-CRMLMLInputChannelList", "Get-CRMLResourceTag", + "Get-CRMLTrainedModelInferenceJobList", + "Get-CRMLTrainedModelList", "Get-CRMLTrainingDatasetList", "Write-CRMLConfiguredAudienceModelPolicy", + "Write-CRMLMLConfiguration", "Start-CRMLAudienceExportJob", "Start-CRMLAudienceGenerationJob", + "Start-CRMLTrainedModelExportJob", + "Start-CRMLTrainedModelInferenceJob", "Add-CRMLResourceTag", "Remove-CRMLResourceTag", "Update-CRMLConfiguredAudienceModel") diff --git a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/AWS.Tools.CleanRoomsML.psd1 b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/AWS.Tools.CleanRoomsML.psd1 index fcca9a6f40..34440302fc 100644 --- a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/AWS.Tools.CleanRoomsML.psd1 +++ b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/AWS.Tools.CleanRoomsML.psd1 @@ -92,25 +92,58 @@ This version of AWS Tools for PowerShell is compatible with Windows PowerShell 5 'Get-CRMLAudienceGenerationJobList', 'Get-CRMLAudienceModel', 'Get-CRMLAudienceModelList', + 'Get-CRMLCollaborationConfiguredModelAlgorithmAssociation', + 'Get-CRMLCollaborationConfiguredModelAlgorithmAssociationList', + 'Get-CRMLCollaborationMLInputChannel', + 'Get-CRMLCollaborationMLInputChannelList', + 'Get-CRMLCollaborationTrainedModel', + 'Get-CRMLCollaborationTrainedModelExportJobList', + 'Get-CRMLCollaborationTrainedModelInferenceJobList', + 'Get-CRMLCollaborationTrainedModelList', 'Get-CRMLConfiguredAudienceModel', 'Get-CRMLConfiguredAudienceModelList', 'Get-CRMLConfiguredAudienceModelPolicy', + 'Get-CRMLConfiguredModelAlgorithm', + 'Get-CRMLConfiguredModelAlgorithmAssociation', + 'Get-CRMLConfiguredModelAlgorithmAssociationList', + 'Get-CRMLConfiguredModelAlgorithmList', + 'Get-CRMLMLConfiguration', + 'Get-CRMLMLInputChannel', + 'Get-CRMLMLInputChannelList', 'Get-CRMLResourceTag', + 'Get-CRMLTrainedModel', + 'Get-CRMLTrainedModelInferenceJob', + 'Get-CRMLTrainedModelInferenceJobList', + 'Get-CRMLTrainedModelList', 'Get-CRMLTrainingDataset', 'Get-CRMLTrainingDatasetList', 'New-CRMLAudienceModel', 'New-CRMLConfiguredAudienceModel', + 'New-CRMLConfiguredModelAlgorithm', + 'New-CRMLConfiguredModelAlgorithmAssociation', + 'New-CRMLMLInputChannel', + 'New-CRMLTrainedModel', 'New-CRMLTrainingDataset', 'Remove-CRMLAudienceGenerationJob', 'Remove-CRMLAudienceModel', 'Remove-CRMLConfiguredAudienceModel', 'Remove-CRMLConfiguredAudienceModelPolicy', + 'Remove-CRMLConfiguredModelAlgorithm', + 'Remove-CRMLConfiguredModelAlgorithmAssociation', + 'Remove-CRMLMLConfiguration', + 'Remove-CRMLMLInputChannelData', 'Remove-CRMLResourceTag', + 'Remove-CRMLTrainedModelOutput', 'Remove-CRMLTrainingDataset', 'Start-CRMLAudienceExportJob', 'Start-CRMLAudienceGenerationJob', + 'Start-CRMLTrainedModelExportJob', + 'Start-CRMLTrainedModelInferenceJob', + 'Stop-CRMLTrainedModel', + 'Stop-CRMLTrainedModelInferenceJob', 'Update-CRMLConfiguredAudienceModel', - 'Write-CRMLConfiguredAudienceModelPolicy') + 'Write-CRMLConfiguredAudienceModelPolicy', + 'Write-CRMLMLConfiguration') # Variables to export from this module VariablesToExport = '*' diff --git a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLCollaborationConfiguredModelAlgorithmAssociation-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLCollaborationConfiguredModelAlgorithmAssociation-Cmdlet.cs new file mode 100644 index 0000000000..cf9c0ec05b --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLCollaborationConfiguredModelAlgorithmAssociation-Cmdlet.cs @@ -0,0 +1,212 @@ +/******************************************************************************* + * 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.CleanRoomsML; +using Amazon.CleanRoomsML.Model; + +namespace Amazon.PowerShell.Cmdlets.CRML +{ + /// + /// Returns information about the configured model algorithm association in a collaboration. + /// + [Cmdlet("Get", "CRMLCollaborationConfiguredModelAlgorithmAssociation")] + [OutputType("Amazon.CleanRoomsML.Model.GetCollaborationConfiguredModelAlgorithmAssociationResponse")] + [AWSCmdlet("Calls the CleanRoomsML GetCollaborationConfiguredModelAlgorithmAssociation API operation.", Operation = new[] {"GetCollaborationConfiguredModelAlgorithmAssociation"}, SelectReturnType = typeof(Amazon.CleanRoomsML.Model.GetCollaborationConfiguredModelAlgorithmAssociationResponse))] + [AWSCmdletOutput("Amazon.CleanRoomsML.Model.GetCollaborationConfiguredModelAlgorithmAssociationResponse", + "This cmdlet returns an Amazon.CleanRoomsML.Model.GetCollaborationConfiguredModelAlgorithmAssociationResponse object containing multiple properties." + )] + public partial class GetCRMLCollaborationConfiguredModelAlgorithmAssociationCmdlet : AmazonCleanRoomsMLClientCmdlet, IExecutor + { + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter CollaborationIdentifier + /// + /// + /// The collaboration ID for the collaboration that contains the configured model algorithm + /// association that you want to return information about. + /// + /// + #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 CollaborationIdentifier { get; set; } + #endregion + + #region Parameter ConfiguredModelAlgorithmAssociationArn + /// + /// + /// The Amazon Resource Name (ARN) of the configured model algorithm association that + /// you want to return information about. + /// + /// + #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 ConfiguredModelAlgorithmAssociationArn { 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.CleanRoomsML.Model.GetCollaborationConfiguredModelAlgorithmAssociationResponse). + /// Specifying the name of a property of type Amazon.CleanRoomsML.Model.GetCollaborationConfiguredModelAlgorithmAssociationResponse 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 + + protected override void ProcessRecord() + { + this._AWSSignerType = "v4"; + base.ProcessRecord(); + + var context = new CmdletContext(); + + // allow for manipulation of parameters prior to loading into context + PreExecutionContextLoad(context); + + if (ParameterWasBound(nameof(this.Select))) + { + context.Select = CreateSelectDelegate(Select) ?? + throw new System.ArgumentException("Invalid value for -Select parameter.", nameof(this.Select)); + } + context.CollaborationIdentifier = this.CollaborationIdentifier; + #if MODULAR + if (this.CollaborationIdentifier == null && ParameterWasBound(nameof(this.CollaborationIdentifier))) + { + WriteWarning("You are passing $null as a value for parameter CollaborationIdentifier 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.ConfiguredModelAlgorithmAssociationArn = this.ConfiguredModelAlgorithmAssociationArn; + #if MODULAR + if (this.ConfiguredModelAlgorithmAssociationArn == null && ParameterWasBound(nameof(this.ConfiguredModelAlgorithmAssociationArn))) + { + WriteWarning("You are passing $null as a value for parameter ConfiguredModelAlgorithmAssociationArn 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.CleanRoomsML.Model.GetCollaborationConfiguredModelAlgorithmAssociationRequest(); + + if (cmdletContext.CollaborationIdentifier != null) + { + request.CollaborationIdentifier = cmdletContext.CollaborationIdentifier; + } + if (cmdletContext.ConfiguredModelAlgorithmAssociationArn != null) + { + request.ConfiguredModelAlgorithmAssociationArn = cmdletContext.ConfiguredModelAlgorithmAssociationArn; + } + + 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.CleanRoomsML.Model.GetCollaborationConfiguredModelAlgorithmAssociationResponse CallAWSServiceOperation(IAmazonCleanRoomsML client, Amazon.CleanRoomsML.Model.GetCollaborationConfiguredModelAlgorithmAssociationRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "CleanRoomsML", "GetCollaborationConfiguredModelAlgorithmAssociation"); + try + { + #if DESKTOP + return client.GetCollaborationConfiguredModelAlgorithmAssociation(request); + #elif CORECLR + return client.GetCollaborationConfiguredModelAlgorithmAssociationAsync(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 CollaborationIdentifier { get; set; } + public System.String ConfiguredModelAlgorithmAssociationArn { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => response; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLCollaborationConfiguredModelAlgorithmAssociationList-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLCollaborationConfiguredModelAlgorithmAssociationList-Cmdlet.cs new file mode 100644 index 0000000000..3791bab1f2 --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLCollaborationConfiguredModelAlgorithmAssociationList-Cmdlet.cs @@ -0,0 +1,236 @@ +/******************************************************************************* + * 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.CleanRoomsML; +using Amazon.CleanRoomsML.Model; + +namespace Amazon.PowerShell.Cmdlets.CRML +{ + /// + /// Returns a list of the configured model algorithm associations in a collaboration. + /// + [Cmdlet("Get", "CRMLCollaborationConfiguredModelAlgorithmAssociationList")] + [OutputType("Amazon.CleanRoomsML.Model.CollaborationConfiguredModelAlgorithmAssociationSummary")] + [AWSCmdlet("Calls the CleanRoomsML ListCollaborationConfiguredModelAlgorithmAssociations API operation.", Operation = new[] {"ListCollaborationConfiguredModelAlgorithmAssociations"}, SelectReturnType = typeof(Amazon.CleanRoomsML.Model.ListCollaborationConfiguredModelAlgorithmAssociationsResponse))] + [AWSCmdletOutput("Amazon.CleanRoomsML.Model.CollaborationConfiguredModelAlgorithmAssociationSummary or Amazon.CleanRoomsML.Model.ListCollaborationConfiguredModelAlgorithmAssociationsResponse", + "This cmdlet returns a collection of Amazon.CleanRoomsML.Model.CollaborationConfiguredModelAlgorithmAssociationSummary objects.", + "The service call response (type Amazon.CleanRoomsML.Model.ListCollaborationConfiguredModelAlgorithmAssociationsResponse) can be returned by specifying '-Select *'." + )] + public partial class GetCRMLCollaborationConfiguredModelAlgorithmAssociationListCmdlet : AmazonCleanRoomsMLClientCmdlet, IExecutor + { + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter CollaborationIdentifier + /// + /// + /// The collaboration ID of the collaboration that contains the configured model algorithm + /// associations that you are interested in. + /// + /// + #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 CollaborationIdentifier { get; set; } + #endregion + + #region Parameter MaxResult + /// + /// + /// The maximum size of the results that is returned per call. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("MaxResults")] + public System.Int32? MaxResult { get; set; } + #endregion + + #region Parameter NextToken + /// + /// + /// The token value retrieved from a previous call to access the next page of results. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String NextToken { get; set; } + #endregion + + #region Parameter Select + /// + /// Use the -Select parameter to control the cmdlet output. The default value is 'CollaborationConfiguredModelAlgorithmAssociations'. + /// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.CleanRoomsML.Model.ListCollaborationConfiguredModelAlgorithmAssociationsResponse). + /// Specifying the name of a property of type Amazon.CleanRoomsML.Model.ListCollaborationConfiguredModelAlgorithmAssociationsResponse 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; } = "CollaborationConfiguredModelAlgorithmAssociations"; + #endregion + + #region Parameter PassThru + /// + /// Changes the cmdlet behavior to return the value passed to the CollaborationIdentifier parameter. + /// The -PassThru parameter is deprecated, use -Select '^CollaborationIdentifier' instead. This parameter will be removed in a future version. + /// + [System.Obsolete("The -PassThru parameter is deprecated, use -Select '^CollaborationIdentifier' instead. This parameter will be removed in a future version.")] + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public SwitchParameter PassThru { get; set; } + #endregion + + protected override void ProcessRecord() + { + this._AWSSignerType = "v4"; + base.ProcessRecord(); + + 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.CollaborationIdentifier; + } + #pragma warning restore CS0618, CS0612 //A class member was marked with the Obsolete attribute + context.CollaborationIdentifier = this.CollaborationIdentifier; + #if MODULAR + if (this.CollaborationIdentifier == null && ParameterWasBound(nameof(this.CollaborationIdentifier))) + { + WriteWarning("You are passing $null as a value for parameter CollaborationIdentifier 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.MaxResult = this.MaxResult; + context.NextToken = this.NextToken; + + // 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.CleanRoomsML.Model.ListCollaborationConfiguredModelAlgorithmAssociationsRequest(); + + if (cmdletContext.CollaborationIdentifier != null) + { + request.CollaborationIdentifier = cmdletContext.CollaborationIdentifier; + } + if (cmdletContext.MaxResult != null) + { + request.MaxResults = cmdletContext.MaxResult.Value; + } + if (cmdletContext.NextToken != null) + { + request.NextToken = cmdletContext.NextToken; + } + + 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.CleanRoomsML.Model.ListCollaborationConfiguredModelAlgorithmAssociationsResponse CallAWSServiceOperation(IAmazonCleanRoomsML client, Amazon.CleanRoomsML.Model.ListCollaborationConfiguredModelAlgorithmAssociationsRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "CleanRoomsML", "ListCollaborationConfiguredModelAlgorithmAssociations"); + try + { + #if DESKTOP + return client.ListCollaborationConfiguredModelAlgorithmAssociations(request); + #elif CORECLR + return client.ListCollaborationConfiguredModelAlgorithmAssociationsAsync(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 CollaborationIdentifier { get; set; } + public System.Int32? MaxResult { get; set; } + public System.String NextToken { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => response.CollaborationConfiguredModelAlgorithmAssociations; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLCollaborationMLInputChannel-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLCollaborationMLInputChannel-Cmdlet.cs new file mode 100644 index 0000000000..5f87e3de27 --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLCollaborationMLInputChannel-Cmdlet.cs @@ -0,0 +1,211 @@ +/******************************************************************************* + * 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.CleanRoomsML; +using Amazon.CleanRoomsML.Model; + +namespace Amazon.PowerShell.Cmdlets.CRML +{ + /// + /// Returns information about a specific ML input channel in a collaboration. + /// + [Cmdlet("Get", "CRMLCollaborationMLInputChannel")] + [OutputType("Amazon.CleanRoomsML.Model.GetCollaborationMLInputChannelResponse")] + [AWSCmdlet("Calls the CleanRoomsML GetCollaborationMLInputChannel API operation.", Operation = new[] {"GetCollaborationMLInputChannel"}, SelectReturnType = typeof(Amazon.CleanRoomsML.Model.GetCollaborationMLInputChannelResponse))] + [AWSCmdletOutput("Amazon.CleanRoomsML.Model.GetCollaborationMLInputChannelResponse", + "This cmdlet returns an Amazon.CleanRoomsML.Model.GetCollaborationMLInputChannelResponse object containing multiple properties." + )] + public partial class GetCRMLCollaborationMLInputChannelCmdlet : AmazonCleanRoomsMLClientCmdlet, IExecutor + { + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter CollaborationIdentifier + /// + /// + /// The collaboration ID of the collaboration that contains the ML input channel that + /// you want to get. + /// + /// + #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 CollaborationIdentifier { get; set; } + #endregion + + #region Parameter MlInputChannelArn + /// + /// + /// The Amazon Resource Name (ARN) of the ML input channel that you want to get. + /// + /// + #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 MlInputChannelArn { 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.CleanRoomsML.Model.GetCollaborationMLInputChannelResponse). + /// Specifying the name of a property of type Amazon.CleanRoomsML.Model.GetCollaborationMLInputChannelResponse 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 + + protected override void ProcessRecord() + { + this._AWSSignerType = "v4"; + base.ProcessRecord(); + + var context = new CmdletContext(); + + // allow for manipulation of parameters prior to loading into context + PreExecutionContextLoad(context); + + if (ParameterWasBound(nameof(this.Select))) + { + context.Select = CreateSelectDelegate(Select) ?? + throw new System.ArgumentException("Invalid value for -Select parameter.", nameof(this.Select)); + } + context.CollaborationIdentifier = this.CollaborationIdentifier; + #if MODULAR + if (this.CollaborationIdentifier == null && ParameterWasBound(nameof(this.CollaborationIdentifier))) + { + WriteWarning("You are passing $null as a value for parameter CollaborationIdentifier 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.MlInputChannelArn = this.MlInputChannelArn; + #if MODULAR + if (this.MlInputChannelArn == null && ParameterWasBound(nameof(this.MlInputChannelArn))) + { + WriteWarning("You are passing $null as a value for parameter MlInputChannelArn 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.CleanRoomsML.Model.GetCollaborationMLInputChannelRequest(); + + if (cmdletContext.CollaborationIdentifier != null) + { + request.CollaborationIdentifier = cmdletContext.CollaborationIdentifier; + } + if (cmdletContext.MlInputChannelArn != null) + { + request.MlInputChannelArn = cmdletContext.MlInputChannelArn; + } + + 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.CleanRoomsML.Model.GetCollaborationMLInputChannelResponse CallAWSServiceOperation(IAmazonCleanRoomsML client, Amazon.CleanRoomsML.Model.GetCollaborationMLInputChannelRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "CleanRoomsML", "GetCollaborationMLInputChannel"); + try + { + #if DESKTOP + return client.GetCollaborationMLInputChannel(request); + #elif CORECLR + return client.GetCollaborationMLInputChannelAsync(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 CollaborationIdentifier { get; set; } + public System.String MlInputChannelArn { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => response; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLCollaborationMLInputChannelList-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLCollaborationMLInputChannelList-Cmdlet.cs new file mode 100644 index 0000000000..35b90d596c --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLCollaborationMLInputChannelList-Cmdlet.cs @@ -0,0 +1,236 @@ +/******************************************************************************* + * 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.CleanRoomsML; +using Amazon.CleanRoomsML.Model; + +namespace Amazon.PowerShell.Cmdlets.CRML +{ + /// + /// Returns a list of the ML input channels in a collaboration. + /// + [Cmdlet("Get", "CRMLCollaborationMLInputChannelList")] + [OutputType("Amazon.CleanRoomsML.Model.CollaborationMLInputChannelSummary")] + [AWSCmdlet("Calls the CleanRoomsML ListCollaborationMLInputChannels API operation.", Operation = new[] {"ListCollaborationMLInputChannels"}, SelectReturnType = typeof(Amazon.CleanRoomsML.Model.ListCollaborationMLInputChannelsResponse))] + [AWSCmdletOutput("Amazon.CleanRoomsML.Model.CollaborationMLInputChannelSummary or Amazon.CleanRoomsML.Model.ListCollaborationMLInputChannelsResponse", + "This cmdlet returns a collection of Amazon.CleanRoomsML.Model.CollaborationMLInputChannelSummary objects.", + "The service call response (type Amazon.CleanRoomsML.Model.ListCollaborationMLInputChannelsResponse) can be returned by specifying '-Select *'." + )] + public partial class GetCRMLCollaborationMLInputChannelListCmdlet : AmazonCleanRoomsMLClientCmdlet, IExecutor + { + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter CollaborationIdentifier + /// + /// + /// The collaboration ID of the collaboration that contains the ML input channels that + /// you want to list. + /// + /// + #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 CollaborationIdentifier { get; set; } + #endregion + + #region Parameter MaxResult + /// + /// + /// The maximum number of results to return. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("MaxResults")] + public System.Int32? MaxResult { get; set; } + #endregion + + #region Parameter NextToken + /// + /// + /// The token value retrieved from a previous call to access the next page of results. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String NextToken { get; set; } + #endregion + + #region Parameter Select + /// + /// Use the -Select parameter to control the cmdlet output. The default value is 'CollaborationMLInputChannelsList'. + /// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.CleanRoomsML.Model.ListCollaborationMLInputChannelsResponse). + /// Specifying the name of a property of type Amazon.CleanRoomsML.Model.ListCollaborationMLInputChannelsResponse 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; } = "CollaborationMLInputChannelsList"; + #endregion + + #region Parameter PassThru + /// + /// Changes the cmdlet behavior to return the value passed to the CollaborationIdentifier parameter. + /// The -PassThru parameter is deprecated, use -Select '^CollaborationIdentifier' instead. This parameter will be removed in a future version. + /// + [System.Obsolete("The -PassThru parameter is deprecated, use -Select '^CollaborationIdentifier' instead. This parameter will be removed in a future version.")] + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public SwitchParameter PassThru { get; set; } + #endregion + + protected override void ProcessRecord() + { + this._AWSSignerType = "v4"; + base.ProcessRecord(); + + 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.CollaborationIdentifier; + } + #pragma warning restore CS0618, CS0612 //A class member was marked with the Obsolete attribute + context.CollaborationIdentifier = this.CollaborationIdentifier; + #if MODULAR + if (this.CollaborationIdentifier == null && ParameterWasBound(nameof(this.CollaborationIdentifier))) + { + WriteWarning("You are passing $null as a value for parameter CollaborationIdentifier 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.MaxResult = this.MaxResult; + context.NextToken = this.NextToken; + + // 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.CleanRoomsML.Model.ListCollaborationMLInputChannelsRequest(); + + if (cmdletContext.CollaborationIdentifier != null) + { + request.CollaborationIdentifier = cmdletContext.CollaborationIdentifier; + } + if (cmdletContext.MaxResult != null) + { + request.MaxResults = cmdletContext.MaxResult.Value; + } + if (cmdletContext.NextToken != null) + { + request.NextToken = cmdletContext.NextToken; + } + + 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.CleanRoomsML.Model.ListCollaborationMLInputChannelsResponse CallAWSServiceOperation(IAmazonCleanRoomsML client, Amazon.CleanRoomsML.Model.ListCollaborationMLInputChannelsRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "CleanRoomsML", "ListCollaborationMLInputChannels"); + try + { + #if DESKTOP + return client.ListCollaborationMLInputChannels(request); + #elif CORECLR + return client.ListCollaborationMLInputChannelsAsync(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 CollaborationIdentifier { get; set; } + public System.Int32? MaxResult { get; set; } + public System.String NextToken { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => response.CollaborationMLInputChannelsList; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLCollaborationTrainedModel-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLCollaborationTrainedModel-Cmdlet.cs new file mode 100644 index 0000000000..c923be427e --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLCollaborationTrainedModel-Cmdlet.cs @@ -0,0 +1,212 @@ +/******************************************************************************* + * 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.CleanRoomsML; +using Amazon.CleanRoomsML.Model; + +namespace Amazon.PowerShell.Cmdlets.CRML +{ + /// + /// Returns information about a trained model in a collaboration. + /// + [Cmdlet("Get", "CRMLCollaborationTrainedModel")] + [OutputType("Amazon.CleanRoomsML.Model.GetCollaborationTrainedModelResponse")] + [AWSCmdlet("Calls the CleanRoomsML GetCollaborationTrainedModel API operation.", Operation = new[] {"GetCollaborationTrainedModel"}, SelectReturnType = typeof(Amazon.CleanRoomsML.Model.GetCollaborationTrainedModelResponse))] + [AWSCmdletOutput("Amazon.CleanRoomsML.Model.GetCollaborationTrainedModelResponse", + "This cmdlet returns an Amazon.CleanRoomsML.Model.GetCollaborationTrainedModelResponse object containing multiple properties." + )] + public partial class GetCRMLCollaborationTrainedModelCmdlet : AmazonCleanRoomsMLClientCmdlet, IExecutor + { + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter CollaborationIdentifier + /// + /// + /// The collaboration ID that contains the trained model that you want to return information + /// about. + /// + /// + #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 CollaborationIdentifier { get; set; } + #endregion + + #region Parameter TrainedModelArn + /// + /// + /// The Amazon Resource Name (ARN) of the trained model that you want to return information + /// about. + /// + /// + #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 TrainedModelArn { 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.CleanRoomsML.Model.GetCollaborationTrainedModelResponse). + /// Specifying the name of a property of type Amazon.CleanRoomsML.Model.GetCollaborationTrainedModelResponse 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 + + protected override void ProcessRecord() + { + this._AWSSignerType = "v4"; + base.ProcessRecord(); + + var context = new CmdletContext(); + + // allow for manipulation of parameters prior to loading into context + PreExecutionContextLoad(context); + + if (ParameterWasBound(nameof(this.Select))) + { + context.Select = CreateSelectDelegate(Select) ?? + throw new System.ArgumentException("Invalid value for -Select parameter.", nameof(this.Select)); + } + context.CollaborationIdentifier = this.CollaborationIdentifier; + #if MODULAR + if (this.CollaborationIdentifier == null && ParameterWasBound(nameof(this.CollaborationIdentifier))) + { + WriteWarning("You are passing $null as a value for parameter CollaborationIdentifier 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.TrainedModelArn = this.TrainedModelArn; + #if MODULAR + if (this.TrainedModelArn == null && ParameterWasBound(nameof(this.TrainedModelArn))) + { + WriteWarning("You are passing $null as a value for parameter TrainedModelArn 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.CleanRoomsML.Model.GetCollaborationTrainedModelRequest(); + + if (cmdletContext.CollaborationIdentifier != null) + { + request.CollaborationIdentifier = cmdletContext.CollaborationIdentifier; + } + if (cmdletContext.TrainedModelArn != null) + { + request.TrainedModelArn = cmdletContext.TrainedModelArn; + } + + 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.CleanRoomsML.Model.GetCollaborationTrainedModelResponse CallAWSServiceOperation(IAmazonCleanRoomsML client, Amazon.CleanRoomsML.Model.GetCollaborationTrainedModelRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "CleanRoomsML", "GetCollaborationTrainedModel"); + try + { + #if DESKTOP + return client.GetCollaborationTrainedModel(request); + #elif CORECLR + return client.GetCollaborationTrainedModelAsync(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 CollaborationIdentifier { get; set; } + public System.String TrainedModelArn { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => response; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLCollaborationTrainedModelExportJobList-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLCollaborationTrainedModelExportJobList-Cmdlet.cs new file mode 100644 index 0000000000..ba3158590d --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLCollaborationTrainedModelExportJobList-Cmdlet.cs @@ -0,0 +1,246 @@ +/******************************************************************************* + * 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.CleanRoomsML; +using Amazon.CleanRoomsML.Model; + +namespace Amazon.PowerShell.Cmdlets.CRML +{ + /// + /// Returns a list of the export jobs for a trained model in a collaboration. + /// + [Cmdlet("Get", "CRMLCollaborationTrainedModelExportJobList")] + [OutputType("Amazon.CleanRoomsML.Model.CollaborationTrainedModelExportJobSummary")] + [AWSCmdlet("Calls the CleanRoomsML ListCollaborationTrainedModelExportJobs API operation.", Operation = new[] {"ListCollaborationTrainedModelExportJobs"}, SelectReturnType = typeof(Amazon.CleanRoomsML.Model.ListCollaborationTrainedModelExportJobsResponse))] + [AWSCmdletOutput("Amazon.CleanRoomsML.Model.CollaborationTrainedModelExportJobSummary or Amazon.CleanRoomsML.Model.ListCollaborationTrainedModelExportJobsResponse", + "This cmdlet returns a collection of Amazon.CleanRoomsML.Model.CollaborationTrainedModelExportJobSummary objects.", + "The service call response (type Amazon.CleanRoomsML.Model.ListCollaborationTrainedModelExportJobsResponse) can be returned by specifying '-Select *'." + )] + public partial class GetCRMLCollaborationTrainedModelExportJobListCmdlet : AmazonCleanRoomsMLClientCmdlet, IExecutor + { + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter CollaborationIdentifier + /// + /// + /// The collaboration ID of the collaboration that contains the trained model export jobs + /// that you are interested in. + /// + /// + #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 CollaborationIdentifier { get; set; } + #endregion + + #region Parameter TrainedModelArn + /// + /// + /// The Amazon Resource Name (ARN) of the trained model that was used to create the export + /// jobs that you are interested in. + /// + /// + #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 TrainedModelArn { get; set; } + #endregion + + #region Parameter MaxResult + /// + /// + /// The maximum size of the results that is returned per call. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("MaxResults")] + public System.Int32? MaxResult { get; set; } + #endregion + + #region Parameter NextToken + /// + /// + /// The token value retrieved from a previous call to access the next page of results. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String NextToken { get; set; } + #endregion + + #region Parameter Select + /// + /// Use the -Select parameter to control the cmdlet output. The default value is 'CollaborationTrainedModelExportJobs'. + /// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.CleanRoomsML.Model.ListCollaborationTrainedModelExportJobsResponse). + /// Specifying the name of a property of type Amazon.CleanRoomsML.Model.ListCollaborationTrainedModelExportJobsResponse 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; } = "CollaborationTrainedModelExportJobs"; + #endregion + + protected override void ProcessRecord() + { + this._AWSSignerType = "v4"; + base.ProcessRecord(); + + var context = new CmdletContext(); + + // allow for manipulation of parameters prior to loading into context + PreExecutionContextLoad(context); + + if (ParameterWasBound(nameof(this.Select))) + { + context.Select = CreateSelectDelegate(Select) ?? + throw new System.ArgumentException("Invalid value for -Select parameter.", nameof(this.Select)); + } + context.CollaborationIdentifier = this.CollaborationIdentifier; + #if MODULAR + if (this.CollaborationIdentifier == null && ParameterWasBound(nameof(this.CollaborationIdentifier))) + { + WriteWarning("You are passing $null as a value for parameter CollaborationIdentifier 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.MaxResult = this.MaxResult; + context.NextToken = this.NextToken; + context.TrainedModelArn = this.TrainedModelArn; + #if MODULAR + if (this.TrainedModelArn == null && ParameterWasBound(nameof(this.TrainedModelArn))) + { + WriteWarning("You are passing $null as a value for parameter TrainedModelArn 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.CleanRoomsML.Model.ListCollaborationTrainedModelExportJobsRequest(); + + if (cmdletContext.CollaborationIdentifier != null) + { + request.CollaborationIdentifier = cmdletContext.CollaborationIdentifier; + } + if (cmdletContext.MaxResult != null) + { + request.MaxResults = cmdletContext.MaxResult.Value; + } + if (cmdletContext.NextToken != null) + { + request.NextToken = cmdletContext.NextToken; + } + if (cmdletContext.TrainedModelArn != null) + { + request.TrainedModelArn = cmdletContext.TrainedModelArn; + } + + 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.CleanRoomsML.Model.ListCollaborationTrainedModelExportJobsResponse CallAWSServiceOperation(IAmazonCleanRoomsML client, Amazon.CleanRoomsML.Model.ListCollaborationTrainedModelExportJobsRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "CleanRoomsML", "ListCollaborationTrainedModelExportJobs"); + try + { + #if DESKTOP + return client.ListCollaborationTrainedModelExportJobs(request); + #elif CORECLR + return client.ListCollaborationTrainedModelExportJobsAsync(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 CollaborationIdentifier { get; set; } + public System.Int32? MaxResult { get; set; } + public System.String NextToken { get; set; } + public System.String TrainedModelArn { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => response.CollaborationTrainedModelExportJobs; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLCollaborationTrainedModelInferenceJobList-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLCollaborationTrainedModelInferenceJobList-Cmdlet.cs new file mode 100644 index 0000000000..4caaaeae59 --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLCollaborationTrainedModelInferenceJobList-Cmdlet.cs @@ -0,0 +1,253 @@ +/******************************************************************************* + * 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.CleanRoomsML; +using Amazon.CleanRoomsML.Model; + +namespace Amazon.PowerShell.Cmdlets.CRML +{ + /// + /// Returns a list of trained model inference jobs in a specified collaboration. + /// + [Cmdlet("Get", "CRMLCollaborationTrainedModelInferenceJobList")] + [OutputType("Amazon.CleanRoomsML.Model.CollaborationTrainedModelInferenceJobSummary")] + [AWSCmdlet("Calls the CleanRoomsML ListCollaborationTrainedModelInferenceJobs API operation.", Operation = new[] {"ListCollaborationTrainedModelInferenceJobs"}, SelectReturnType = typeof(Amazon.CleanRoomsML.Model.ListCollaborationTrainedModelInferenceJobsResponse))] + [AWSCmdletOutput("Amazon.CleanRoomsML.Model.CollaborationTrainedModelInferenceJobSummary or Amazon.CleanRoomsML.Model.ListCollaborationTrainedModelInferenceJobsResponse", + "This cmdlet returns a collection of Amazon.CleanRoomsML.Model.CollaborationTrainedModelInferenceJobSummary objects.", + "The service call response (type Amazon.CleanRoomsML.Model.ListCollaborationTrainedModelInferenceJobsResponse) can be returned by specifying '-Select *'." + )] + public partial class GetCRMLCollaborationTrainedModelInferenceJobListCmdlet : AmazonCleanRoomsMLClientCmdlet, IExecutor + { + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter CollaborationIdentifier + /// + /// + /// The collaboration ID of the collaboration that contains the trained model inference + /// jobs that you are interested in. + /// + /// + #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 CollaborationIdentifier { get; set; } + #endregion + + #region Parameter TrainedModelArn + /// + /// + /// The Amazon Resource Name (ARN) of the trained model that was used to create the trained + /// model inference jobs that you are interested in. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String TrainedModelArn { get; set; } + #endregion + + #region Parameter MaxResult + /// + /// + /// The maximum size of the results that is returned per call. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("MaxResults")] + public System.Int32? MaxResult { get; set; } + #endregion + + #region Parameter NextToken + /// + /// + /// The token value retrieved from a previous call to access the next page of results. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String NextToken { get; set; } + #endregion + + #region Parameter Select + /// + /// Use the -Select parameter to control the cmdlet output. The default value is 'CollaborationTrainedModelInferenceJobs'. + /// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.CleanRoomsML.Model.ListCollaborationTrainedModelInferenceJobsResponse). + /// Specifying the name of a property of type Amazon.CleanRoomsML.Model.ListCollaborationTrainedModelInferenceJobsResponse 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; } = "CollaborationTrainedModelInferenceJobs"; + #endregion + + #region Parameter PassThru + /// + /// Changes the cmdlet behavior to return the value passed to the CollaborationIdentifier parameter. + /// The -PassThru parameter is deprecated, use -Select '^CollaborationIdentifier' instead. This parameter will be removed in a future version. + /// + [System.Obsolete("The -PassThru parameter is deprecated, use -Select '^CollaborationIdentifier' instead. This parameter will be removed in a future version.")] + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public SwitchParameter PassThru { get; set; } + #endregion + + protected override void ProcessRecord() + { + this._AWSSignerType = "v4"; + base.ProcessRecord(); + + 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.CollaborationIdentifier; + } + #pragma warning restore CS0618, CS0612 //A class member was marked with the Obsolete attribute + context.CollaborationIdentifier = this.CollaborationIdentifier; + #if MODULAR + if (this.CollaborationIdentifier == null && ParameterWasBound(nameof(this.CollaborationIdentifier))) + { + WriteWarning("You are passing $null as a value for parameter CollaborationIdentifier 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.MaxResult = this.MaxResult; + context.NextToken = this.NextToken; + context.TrainedModelArn = this.TrainedModelArn; + + // 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.CleanRoomsML.Model.ListCollaborationTrainedModelInferenceJobsRequest(); + + if (cmdletContext.CollaborationIdentifier != null) + { + request.CollaborationIdentifier = cmdletContext.CollaborationIdentifier; + } + if (cmdletContext.MaxResult != null) + { + request.MaxResults = cmdletContext.MaxResult.Value; + } + if (cmdletContext.NextToken != null) + { + request.NextToken = cmdletContext.NextToken; + } + if (cmdletContext.TrainedModelArn != null) + { + request.TrainedModelArn = cmdletContext.TrainedModelArn; + } + + 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.CleanRoomsML.Model.ListCollaborationTrainedModelInferenceJobsResponse CallAWSServiceOperation(IAmazonCleanRoomsML client, Amazon.CleanRoomsML.Model.ListCollaborationTrainedModelInferenceJobsRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "CleanRoomsML", "ListCollaborationTrainedModelInferenceJobs"); + try + { + #if DESKTOP + return client.ListCollaborationTrainedModelInferenceJobs(request); + #elif CORECLR + return client.ListCollaborationTrainedModelInferenceJobsAsync(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 CollaborationIdentifier { get; set; } + public System.Int32? MaxResult { get; set; } + public System.String NextToken { get; set; } + public System.String TrainedModelArn { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => response.CollaborationTrainedModelInferenceJobs; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLCollaborationTrainedModelList-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLCollaborationTrainedModelList-Cmdlet.cs new file mode 100644 index 0000000000..041fe8ae31 --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLCollaborationTrainedModelList-Cmdlet.cs @@ -0,0 +1,236 @@ +/******************************************************************************* + * 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.CleanRoomsML; +using Amazon.CleanRoomsML.Model; + +namespace Amazon.PowerShell.Cmdlets.CRML +{ + /// + /// Returns a list of the trained models in a collaboration. + /// + [Cmdlet("Get", "CRMLCollaborationTrainedModelList")] + [OutputType("Amazon.CleanRoomsML.Model.CollaborationTrainedModelSummary")] + [AWSCmdlet("Calls the CleanRoomsML ListCollaborationTrainedModels API operation.", Operation = new[] {"ListCollaborationTrainedModels"}, SelectReturnType = typeof(Amazon.CleanRoomsML.Model.ListCollaborationTrainedModelsResponse))] + [AWSCmdletOutput("Amazon.CleanRoomsML.Model.CollaborationTrainedModelSummary or Amazon.CleanRoomsML.Model.ListCollaborationTrainedModelsResponse", + "This cmdlet returns a collection of Amazon.CleanRoomsML.Model.CollaborationTrainedModelSummary objects.", + "The service call response (type Amazon.CleanRoomsML.Model.ListCollaborationTrainedModelsResponse) can be returned by specifying '-Select *'." + )] + public partial class GetCRMLCollaborationTrainedModelListCmdlet : AmazonCleanRoomsMLClientCmdlet, IExecutor + { + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter CollaborationIdentifier + /// + /// + /// The collaboration ID of the collaboration that contains the trained models you are + /// interested in. + /// + /// + #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 CollaborationIdentifier { get; set; } + #endregion + + #region Parameter MaxResult + /// + /// + /// The maximum size of the results that is returned per call. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("MaxResults")] + public System.Int32? MaxResult { get; set; } + #endregion + + #region Parameter NextToken + /// + /// + /// The token value retrieved from a previous call to access the next page of results. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String NextToken { get; set; } + #endregion + + #region Parameter Select + /// + /// Use the -Select parameter to control the cmdlet output. The default value is 'CollaborationTrainedModels'. + /// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.CleanRoomsML.Model.ListCollaborationTrainedModelsResponse). + /// Specifying the name of a property of type Amazon.CleanRoomsML.Model.ListCollaborationTrainedModelsResponse 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; } = "CollaborationTrainedModels"; + #endregion + + #region Parameter PassThru + /// + /// Changes the cmdlet behavior to return the value passed to the CollaborationIdentifier parameter. + /// The -PassThru parameter is deprecated, use -Select '^CollaborationIdentifier' instead. This parameter will be removed in a future version. + /// + [System.Obsolete("The -PassThru parameter is deprecated, use -Select '^CollaborationIdentifier' instead. This parameter will be removed in a future version.")] + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public SwitchParameter PassThru { get; set; } + #endregion + + protected override void ProcessRecord() + { + this._AWSSignerType = "v4"; + base.ProcessRecord(); + + 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.CollaborationIdentifier; + } + #pragma warning restore CS0618, CS0612 //A class member was marked with the Obsolete attribute + context.CollaborationIdentifier = this.CollaborationIdentifier; + #if MODULAR + if (this.CollaborationIdentifier == null && ParameterWasBound(nameof(this.CollaborationIdentifier))) + { + WriteWarning("You are passing $null as a value for parameter CollaborationIdentifier 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.MaxResult = this.MaxResult; + context.NextToken = this.NextToken; + + // 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.CleanRoomsML.Model.ListCollaborationTrainedModelsRequest(); + + if (cmdletContext.CollaborationIdentifier != null) + { + request.CollaborationIdentifier = cmdletContext.CollaborationIdentifier; + } + if (cmdletContext.MaxResult != null) + { + request.MaxResults = cmdletContext.MaxResult.Value; + } + if (cmdletContext.NextToken != null) + { + request.NextToken = cmdletContext.NextToken; + } + + 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.CleanRoomsML.Model.ListCollaborationTrainedModelsResponse CallAWSServiceOperation(IAmazonCleanRoomsML client, Amazon.CleanRoomsML.Model.ListCollaborationTrainedModelsRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "CleanRoomsML", "ListCollaborationTrainedModels"); + try + { + #if DESKTOP + return client.ListCollaborationTrainedModels(request); + #elif CORECLR + return client.ListCollaborationTrainedModelsAsync(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 CollaborationIdentifier { get; set; } + public System.Int32? MaxResult { get; set; } + public System.String NextToken { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => response.CollaborationTrainedModels; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLConfiguredModelAlgorithm-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLConfiguredModelAlgorithm-Cmdlet.cs new file mode 100644 index 0000000000..faf280aeb5 --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLConfiguredModelAlgorithm-Cmdlet.cs @@ -0,0 +1,202 @@ +/******************************************************************************* + * 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.CleanRoomsML; +using Amazon.CleanRoomsML.Model; + +namespace Amazon.PowerShell.Cmdlets.CRML +{ + /// + /// Returns information about a configured model algorithm. + /// + [Cmdlet("Get", "CRMLConfiguredModelAlgorithm")] + [OutputType("Amazon.CleanRoomsML.Model.GetConfiguredModelAlgorithmResponse")] + [AWSCmdlet("Calls the CleanRoomsML GetConfiguredModelAlgorithm API operation.", Operation = new[] {"GetConfiguredModelAlgorithm"}, SelectReturnType = typeof(Amazon.CleanRoomsML.Model.GetConfiguredModelAlgorithmResponse))] + [AWSCmdletOutput("Amazon.CleanRoomsML.Model.GetConfiguredModelAlgorithmResponse", + "This cmdlet returns an Amazon.CleanRoomsML.Model.GetConfiguredModelAlgorithmResponse object containing multiple properties." + )] + public partial class GetCRMLConfiguredModelAlgorithmCmdlet : AmazonCleanRoomsMLClientCmdlet, IExecutor + { + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter ConfiguredModelAlgorithmArn + /// + /// + /// The Amazon Resource Name (ARN) of the configured model algorithm that you want to + /// return information about. + /// + /// + #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 ConfiguredModelAlgorithmArn { 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.CleanRoomsML.Model.GetConfiguredModelAlgorithmResponse). + /// Specifying the name of a property of type Amazon.CleanRoomsML.Model.GetConfiguredModelAlgorithmResponse 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 ConfiguredModelAlgorithmArn parameter. + /// The -PassThru parameter is deprecated, use -Select '^ConfiguredModelAlgorithmArn' instead. This parameter will be removed in a future version. + /// + [System.Obsolete("The -PassThru parameter is deprecated, use -Select '^ConfiguredModelAlgorithmArn' instead. This parameter will be removed in a future version.")] + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public SwitchParameter PassThru { get; set; } + #endregion + + protected override void ProcessRecord() + { + this._AWSSignerType = "v4"; + base.ProcessRecord(); + + 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.ConfiguredModelAlgorithmArn; + } + #pragma warning restore CS0618, CS0612 //A class member was marked with the Obsolete attribute + context.ConfiguredModelAlgorithmArn = this.ConfiguredModelAlgorithmArn; + #if MODULAR + if (this.ConfiguredModelAlgorithmArn == null && ParameterWasBound(nameof(this.ConfiguredModelAlgorithmArn))) + { + WriteWarning("You are passing $null as a value for parameter ConfiguredModelAlgorithmArn 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.CleanRoomsML.Model.GetConfiguredModelAlgorithmRequest(); + + if (cmdletContext.ConfiguredModelAlgorithmArn != null) + { + request.ConfiguredModelAlgorithmArn = cmdletContext.ConfiguredModelAlgorithmArn; + } + + 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.CleanRoomsML.Model.GetConfiguredModelAlgorithmResponse CallAWSServiceOperation(IAmazonCleanRoomsML client, Amazon.CleanRoomsML.Model.GetConfiguredModelAlgorithmRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "CleanRoomsML", "GetConfiguredModelAlgorithm"); + try + { + #if DESKTOP + return client.GetConfiguredModelAlgorithm(request); + #elif CORECLR + return client.GetConfiguredModelAlgorithmAsync(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 ConfiguredModelAlgorithmArn { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => response; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLConfiguredModelAlgorithmAssociation-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLConfiguredModelAlgorithmAssociation-Cmdlet.cs new file mode 100644 index 0000000000..7ecf1e1bf7 --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLConfiguredModelAlgorithmAssociation-Cmdlet.cs @@ -0,0 +1,211 @@ +/******************************************************************************* + * 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.CleanRoomsML; +using Amazon.CleanRoomsML.Model; + +namespace Amazon.PowerShell.Cmdlets.CRML +{ + /// + /// Returns information about a configured model algorithm association. + /// + [Cmdlet("Get", "CRMLConfiguredModelAlgorithmAssociation")] + [OutputType("Amazon.CleanRoomsML.Model.GetConfiguredModelAlgorithmAssociationResponse")] + [AWSCmdlet("Calls the CleanRoomsML GetConfiguredModelAlgorithmAssociation API operation.", Operation = new[] {"GetConfiguredModelAlgorithmAssociation"}, SelectReturnType = typeof(Amazon.CleanRoomsML.Model.GetConfiguredModelAlgorithmAssociationResponse))] + [AWSCmdletOutput("Amazon.CleanRoomsML.Model.GetConfiguredModelAlgorithmAssociationResponse", + "This cmdlet returns an Amazon.CleanRoomsML.Model.GetConfiguredModelAlgorithmAssociationResponse object containing multiple properties." + )] + public partial class GetCRMLConfiguredModelAlgorithmAssociationCmdlet : AmazonCleanRoomsMLClientCmdlet, IExecutor + { + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter ConfiguredModelAlgorithmAssociationArn + /// + /// + /// The Amazon Resource Name (ARN) of the configured model algorithm association that + /// you want to return information about. + /// + /// + #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 ConfiguredModelAlgorithmAssociationArn { get; set; } + #endregion + + #region Parameter MembershipIdentifier + /// + /// + /// The membership ID of the member that created the configured model algorithm association. + /// + /// + #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 MembershipIdentifier { 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.CleanRoomsML.Model.GetConfiguredModelAlgorithmAssociationResponse). + /// Specifying the name of a property of type Amazon.CleanRoomsML.Model.GetConfiguredModelAlgorithmAssociationResponse 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 + + protected override void ProcessRecord() + { + this._AWSSignerType = "v4"; + base.ProcessRecord(); + + var context = new CmdletContext(); + + // allow for manipulation of parameters prior to loading into context + PreExecutionContextLoad(context); + + if (ParameterWasBound(nameof(this.Select))) + { + context.Select = CreateSelectDelegate(Select) ?? + throw new System.ArgumentException("Invalid value for -Select parameter.", nameof(this.Select)); + } + context.ConfiguredModelAlgorithmAssociationArn = this.ConfiguredModelAlgorithmAssociationArn; + #if MODULAR + if (this.ConfiguredModelAlgorithmAssociationArn == null && ParameterWasBound(nameof(this.ConfiguredModelAlgorithmAssociationArn))) + { + WriteWarning("You are passing $null as a value for parameter ConfiguredModelAlgorithmAssociationArn 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.MembershipIdentifier = this.MembershipIdentifier; + #if MODULAR + if (this.MembershipIdentifier == null && ParameterWasBound(nameof(this.MembershipIdentifier))) + { + WriteWarning("You are passing $null as a value for parameter MembershipIdentifier 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.CleanRoomsML.Model.GetConfiguredModelAlgorithmAssociationRequest(); + + if (cmdletContext.ConfiguredModelAlgorithmAssociationArn != null) + { + request.ConfiguredModelAlgorithmAssociationArn = cmdletContext.ConfiguredModelAlgorithmAssociationArn; + } + if (cmdletContext.MembershipIdentifier != null) + { + request.MembershipIdentifier = cmdletContext.MembershipIdentifier; + } + + 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.CleanRoomsML.Model.GetConfiguredModelAlgorithmAssociationResponse CallAWSServiceOperation(IAmazonCleanRoomsML client, Amazon.CleanRoomsML.Model.GetConfiguredModelAlgorithmAssociationRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "CleanRoomsML", "GetConfiguredModelAlgorithmAssociation"); + try + { + #if DESKTOP + return client.GetConfiguredModelAlgorithmAssociation(request); + #elif CORECLR + return client.GetConfiguredModelAlgorithmAssociationAsync(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 ConfiguredModelAlgorithmAssociationArn { get; set; } + public System.String MembershipIdentifier { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => response; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLConfiguredModelAlgorithmAssociationList-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLConfiguredModelAlgorithmAssociationList-Cmdlet.cs new file mode 100644 index 0000000000..fa89b7eb0e --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLConfiguredModelAlgorithmAssociationList-Cmdlet.cs @@ -0,0 +1,236 @@ +/******************************************************************************* + * 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.CleanRoomsML; +using Amazon.CleanRoomsML.Model; + +namespace Amazon.PowerShell.Cmdlets.CRML +{ + /// + /// Returns a list of configured model algorithm associations. + /// + [Cmdlet("Get", "CRMLConfiguredModelAlgorithmAssociationList")] + [OutputType("Amazon.CleanRoomsML.Model.ConfiguredModelAlgorithmAssociationSummary")] + [AWSCmdlet("Calls the CleanRoomsML ListConfiguredModelAlgorithmAssociations API operation.", Operation = new[] {"ListConfiguredModelAlgorithmAssociations"}, SelectReturnType = typeof(Amazon.CleanRoomsML.Model.ListConfiguredModelAlgorithmAssociationsResponse))] + [AWSCmdletOutput("Amazon.CleanRoomsML.Model.ConfiguredModelAlgorithmAssociationSummary or Amazon.CleanRoomsML.Model.ListConfiguredModelAlgorithmAssociationsResponse", + "This cmdlet returns a collection of Amazon.CleanRoomsML.Model.ConfiguredModelAlgorithmAssociationSummary objects.", + "The service call response (type Amazon.CleanRoomsML.Model.ListConfiguredModelAlgorithmAssociationsResponse) can be returned by specifying '-Select *'." + )] + public partial class GetCRMLConfiguredModelAlgorithmAssociationListCmdlet : AmazonCleanRoomsMLClientCmdlet, IExecutor + { + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter MembershipIdentifier + /// + /// + /// The membership ID of the member that created the configured model algorithm associations + /// you are interested in. + /// + /// + #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 MembershipIdentifier { get; set; } + #endregion + + #region Parameter MaxResult + /// + /// + /// The maximum size of the results that is returned per call. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("MaxResults")] + public System.Int32? MaxResult { get; set; } + #endregion + + #region Parameter NextToken + /// + /// + /// The token value retrieved from a previous call to access the next page of results. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String NextToken { get; set; } + #endregion + + #region Parameter Select + /// + /// Use the -Select parameter to control the cmdlet output. The default value is 'ConfiguredModelAlgorithmAssociations'. + /// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.CleanRoomsML.Model.ListConfiguredModelAlgorithmAssociationsResponse). + /// Specifying the name of a property of type Amazon.CleanRoomsML.Model.ListConfiguredModelAlgorithmAssociationsResponse 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; } = "ConfiguredModelAlgorithmAssociations"; + #endregion + + #region Parameter PassThru + /// + /// Changes the cmdlet behavior to return the value passed to the MembershipIdentifier parameter. + /// The -PassThru parameter is deprecated, use -Select '^MembershipIdentifier' instead. This parameter will be removed in a future version. + /// + [System.Obsolete("The -PassThru parameter is deprecated, use -Select '^MembershipIdentifier' instead. This parameter will be removed in a future version.")] + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public SwitchParameter PassThru { get; set; } + #endregion + + protected override void ProcessRecord() + { + this._AWSSignerType = "v4"; + base.ProcessRecord(); + + 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.MembershipIdentifier; + } + #pragma warning restore CS0618, CS0612 //A class member was marked with the Obsolete attribute + context.MaxResult = this.MaxResult; + context.MembershipIdentifier = this.MembershipIdentifier; + #if MODULAR + if (this.MembershipIdentifier == null && ParameterWasBound(nameof(this.MembershipIdentifier))) + { + WriteWarning("You are passing $null as a value for parameter MembershipIdentifier 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.NextToken = this.NextToken; + + // 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.CleanRoomsML.Model.ListConfiguredModelAlgorithmAssociationsRequest(); + + if (cmdletContext.MaxResult != null) + { + request.MaxResults = cmdletContext.MaxResult.Value; + } + if (cmdletContext.MembershipIdentifier != null) + { + request.MembershipIdentifier = cmdletContext.MembershipIdentifier; + } + if (cmdletContext.NextToken != null) + { + request.NextToken = cmdletContext.NextToken; + } + + 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.CleanRoomsML.Model.ListConfiguredModelAlgorithmAssociationsResponse CallAWSServiceOperation(IAmazonCleanRoomsML client, Amazon.CleanRoomsML.Model.ListConfiguredModelAlgorithmAssociationsRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "CleanRoomsML", "ListConfiguredModelAlgorithmAssociations"); + try + { + #if DESKTOP + return client.ListConfiguredModelAlgorithmAssociations(request); + #elif CORECLR + return client.ListConfiguredModelAlgorithmAssociationsAsync(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.Int32? MaxResult { get; set; } + public System.String MembershipIdentifier { get; set; } + public System.String NextToken { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => response.ConfiguredModelAlgorithmAssociations; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLConfiguredModelAlgorithmList-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLConfiguredModelAlgorithmList-Cmdlet.cs new file mode 100644 index 0000000000..8c0bee18e5 --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLConfiguredModelAlgorithmList-Cmdlet.cs @@ -0,0 +1,186 @@ +/******************************************************************************* + * 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.CleanRoomsML; +using Amazon.CleanRoomsML.Model; + +namespace Amazon.PowerShell.Cmdlets.CRML +{ + /// + /// Returns a list of configured model algorithms. + /// + [Cmdlet("Get", "CRMLConfiguredModelAlgorithmList")] + [OutputType("Amazon.CleanRoomsML.Model.ConfiguredModelAlgorithmSummary")] + [AWSCmdlet("Calls the CleanRoomsML ListConfiguredModelAlgorithms API operation.", Operation = new[] {"ListConfiguredModelAlgorithms"}, SelectReturnType = typeof(Amazon.CleanRoomsML.Model.ListConfiguredModelAlgorithmsResponse))] + [AWSCmdletOutput("Amazon.CleanRoomsML.Model.ConfiguredModelAlgorithmSummary or Amazon.CleanRoomsML.Model.ListConfiguredModelAlgorithmsResponse", + "This cmdlet returns a collection of Amazon.CleanRoomsML.Model.ConfiguredModelAlgorithmSummary objects.", + "The service call response (type Amazon.CleanRoomsML.Model.ListConfiguredModelAlgorithmsResponse) can be returned by specifying '-Select *'." + )] + public partial class GetCRMLConfiguredModelAlgorithmListCmdlet : AmazonCleanRoomsMLClientCmdlet, IExecutor + { + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter MaxResult + /// + /// + /// The maximum size of the results that is returned per call. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("MaxResults")] + public System.Int32? MaxResult { get; set; } + #endregion + + #region Parameter NextToken + /// + /// + /// The token value retrieved from a previous call to access the next page of results. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String NextToken { get; set; } + #endregion + + #region Parameter Select + /// + /// Use the -Select parameter to control the cmdlet output. The default value is 'ConfiguredModelAlgorithms'. + /// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.CleanRoomsML.Model.ListConfiguredModelAlgorithmsResponse). + /// Specifying the name of a property of type Amazon.CleanRoomsML.Model.ListConfiguredModelAlgorithmsResponse 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; } = "ConfiguredModelAlgorithms"; + #endregion + + protected override void ProcessRecord() + { + this._AWSSignerType = "v4"; + base.ProcessRecord(); + + var context = new CmdletContext(); + + // allow for manipulation of parameters prior to loading into context + PreExecutionContextLoad(context); + + if (ParameterWasBound(nameof(this.Select))) + { + context.Select = CreateSelectDelegate(Select) ?? + throw new System.ArgumentException("Invalid value for -Select parameter.", nameof(this.Select)); + } + context.MaxResult = this.MaxResult; + context.NextToken = this.NextToken; + + // 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.CleanRoomsML.Model.ListConfiguredModelAlgorithmsRequest(); + + if (cmdletContext.MaxResult != null) + { + request.MaxResults = cmdletContext.MaxResult.Value; + } + if (cmdletContext.NextToken != null) + { + request.NextToken = cmdletContext.NextToken; + } + + 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.CleanRoomsML.Model.ListConfiguredModelAlgorithmsResponse CallAWSServiceOperation(IAmazonCleanRoomsML client, Amazon.CleanRoomsML.Model.ListConfiguredModelAlgorithmsRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "CleanRoomsML", "ListConfiguredModelAlgorithms"); + try + { + #if DESKTOP + return client.ListConfiguredModelAlgorithms(request); + #elif CORECLR + return client.ListConfiguredModelAlgorithmsAsync(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.Int32? MaxResult { get; set; } + public System.String NextToken { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => response.ConfiguredModelAlgorithms; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLMLConfiguration-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLMLConfiguration-Cmdlet.cs new file mode 100644 index 0000000000..63d17e8111 --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLMLConfiguration-Cmdlet.cs @@ -0,0 +1,202 @@ +/******************************************************************************* + * 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.CleanRoomsML; +using Amazon.CleanRoomsML.Model; + +namespace Amazon.PowerShell.Cmdlets.CRML +{ + /// + /// Returns information about a specific ML configuration. + /// + [Cmdlet("Get", "CRMLMLConfiguration")] + [OutputType("Amazon.CleanRoomsML.Model.GetMLConfigurationResponse")] + [AWSCmdlet("Calls the CleanRoomsML GetMLConfiguration API operation.", Operation = new[] {"GetMLConfiguration"}, SelectReturnType = typeof(Amazon.CleanRoomsML.Model.GetMLConfigurationResponse))] + [AWSCmdletOutput("Amazon.CleanRoomsML.Model.GetMLConfigurationResponse", + "This cmdlet returns an Amazon.CleanRoomsML.Model.GetMLConfigurationResponse object containing multiple properties." + )] + public partial class GetCRMLMLConfigurationCmdlet : AmazonCleanRoomsMLClientCmdlet, IExecutor + { + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter MembershipIdentifier + /// + /// + /// The membership ID of the member that owns the ML configuration you want to return + /// information about. + /// + /// + #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 MembershipIdentifier { 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.CleanRoomsML.Model.GetMLConfigurationResponse). + /// Specifying the name of a property of type Amazon.CleanRoomsML.Model.GetMLConfigurationResponse 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 MembershipIdentifier parameter. + /// The -PassThru parameter is deprecated, use -Select '^MembershipIdentifier' instead. This parameter will be removed in a future version. + /// + [System.Obsolete("The -PassThru parameter is deprecated, use -Select '^MembershipIdentifier' instead. This parameter will be removed in a future version.")] + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public SwitchParameter PassThru { get; set; } + #endregion + + protected override void ProcessRecord() + { + this._AWSSignerType = "v4"; + base.ProcessRecord(); + + 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.MembershipIdentifier; + } + #pragma warning restore CS0618, CS0612 //A class member was marked with the Obsolete attribute + context.MembershipIdentifier = this.MembershipIdentifier; + #if MODULAR + if (this.MembershipIdentifier == null && ParameterWasBound(nameof(this.MembershipIdentifier))) + { + WriteWarning("You are passing $null as a value for parameter MembershipIdentifier 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.CleanRoomsML.Model.GetMLConfigurationRequest(); + + if (cmdletContext.MembershipIdentifier != null) + { + request.MembershipIdentifier = cmdletContext.MembershipIdentifier; + } + + 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.CleanRoomsML.Model.GetMLConfigurationResponse CallAWSServiceOperation(IAmazonCleanRoomsML client, Amazon.CleanRoomsML.Model.GetMLConfigurationRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "CleanRoomsML", "GetMLConfiguration"); + try + { + #if DESKTOP + return client.GetMLConfiguration(request); + #elif CORECLR + return client.GetMLConfigurationAsync(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 MembershipIdentifier { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => response; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLMLInputChannel-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLMLInputChannel-Cmdlet.cs new file mode 100644 index 0000000000..755db3590e --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLMLInputChannel-Cmdlet.cs @@ -0,0 +1,213 @@ +/******************************************************************************* + * 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.CleanRoomsML; +using Amazon.CleanRoomsML.Model; + +namespace Amazon.PowerShell.Cmdlets.CRML +{ + /// + /// Returns information about an ML input channel. + /// + [Cmdlet("Get", "CRMLMLInputChannel")] + [OutputType("Amazon.CleanRoomsML.Model.GetMLInputChannelResponse")] + [AWSCmdlet("Calls the CleanRoomsML GetMLInputChannel API operation.", Operation = new[] {"GetMLInputChannel"}, SelectReturnType = typeof(Amazon.CleanRoomsML.Model.GetMLInputChannelResponse))] + [AWSCmdletOutput("Amazon.CleanRoomsML.Model.GetMLInputChannelResponse", + "This cmdlet returns an Amazon.CleanRoomsML.Model.GetMLInputChannelResponse object containing multiple properties." + )] + public partial class GetCRMLMLInputChannelCmdlet : AmazonCleanRoomsMLClientCmdlet, IExecutor + { + + protected override bool IsSensitiveResponse { get; set; } = true; + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter MembershipIdentifier + /// + /// + /// The membership ID of the membership that contains the ML input channel that you want + /// to get. + /// + /// + #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 MembershipIdentifier { get; set; } + #endregion + + #region Parameter MlInputChannelArn + /// + /// + /// The Amazon Resource Name (ARN) of the ML input channel that you want to get. + /// + /// + #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 MlInputChannelArn { 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.CleanRoomsML.Model.GetMLInputChannelResponse). + /// Specifying the name of a property of type Amazon.CleanRoomsML.Model.GetMLInputChannelResponse 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 + + protected override void ProcessRecord() + { + this._AWSSignerType = "v4"; + base.ProcessRecord(); + + var context = new CmdletContext(); + + // allow for manipulation of parameters prior to loading into context + PreExecutionContextLoad(context); + + if (ParameterWasBound(nameof(this.Select))) + { + context.Select = CreateSelectDelegate(Select) ?? + throw new System.ArgumentException("Invalid value for -Select parameter.", nameof(this.Select)); + } + context.MembershipIdentifier = this.MembershipIdentifier; + #if MODULAR + if (this.MembershipIdentifier == null && ParameterWasBound(nameof(this.MembershipIdentifier))) + { + WriteWarning("You are passing $null as a value for parameter MembershipIdentifier 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.MlInputChannelArn = this.MlInputChannelArn; + #if MODULAR + if (this.MlInputChannelArn == null && ParameterWasBound(nameof(this.MlInputChannelArn))) + { + WriteWarning("You are passing $null as a value for parameter MlInputChannelArn 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.CleanRoomsML.Model.GetMLInputChannelRequest(); + + if (cmdletContext.MembershipIdentifier != null) + { + request.MembershipIdentifier = cmdletContext.MembershipIdentifier; + } + if (cmdletContext.MlInputChannelArn != null) + { + request.MlInputChannelArn = cmdletContext.MlInputChannelArn; + } + + 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.CleanRoomsML.Model.GetMLInputChannelResponse CallAWSServiceOperation(IAmazonCleanRoomsML client, Amazon.CleanRoomsML.Model.GetMLInputChannelRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "CleanRoomsML", "GetMLInputChannel"); + try + { + #if DESKTOP + return client.GetMLInputChannel(request); + #elif CORECLR + return client.GetMLInputChannelAsync(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 MembershipIdentifier { get; set; } + public System.String MlInputChannelArn { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => response; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLMLInputChannelList-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLMLInputChannelList-Cmdlet.cs new file mode 100644 index 0000000000..ebe8d898f3 --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLMLInputChannelList-Cmdlet.cs @@ -0,0 +1,236 @@ +/******************************************************************************* + * 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.CleanRoomsML; +using Amazon.CleanRoomsML.Model; + +namespace Amazon.PowerShell.Cmdlets.CRML +{ + /// + /// Returns a list of ML input channels. + /// + [Cmdlet("Get", "CRMLMLInputChannelList")] + [OutputType("Amazon.CleanRoomsML.Model.MLInputChannelSummary")] + [AWSCmdlet("Calls the CleanRoomsML ListMLInputChannels API operation.", Operation = new[] {"ListMLInputChannels"}, SelectReturnType = typeof(Amazon.CleanRoomsML.Model.ListMLInputChannelsResponse))] + [AWSCmdletOutput("Amazon.CleanRoomsML.Model.MLInputChannelSummary or Amazon.CleanRoomsML.Model.ListMLInputChannelsResponse", + "This cmdlet returns a collection of Amazon.CleanRoomsML.Model.MLInputChannelSummary objects.", + "The service call response (type Amazon.CleanRoomsML.Model.ListMLInputChannelsResponse) can be returned by specifying '-Select *'." + )] + public partial class GetCRMLMLInputChannelListCmdlet : AmazonCleanRoomsMLClientCmdlet, IExecutor + { + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter MembershipIdentifier + /// + /// + /// The membership ID of the membership that contains the ML input channels that you want + /// to list. + /// + /// + #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 MembershipIdentifier { get; set; } + #endregion + + #region Parameter MaxResult + /// + /// + /// The maximum number of ML input channels to return. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("MaxResults")] + public System.Int32? MaxResult { get; set; } + #endregion + + #region Parameter NextToken + /// + /// + /// The token value retrieved from a previous call to access the next page of results. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String NextToken { get; set; } + #endregion + + #region Parameter Select + /// + /// Use the -Select parameter to control the cmdlet output. The default value is 'MlInputChannelsList'. + /// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.CleanRoomsML.Model.ListMLInputChannelsResponse). + /// Specifying the name of a property of type Amazon.CleanRoomsML.Model.ListMLInputChannelsResponse 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; } = "MlInputChannelsList"; + #endregion + + #region Parameter PassThru + /// + /// Changes the cmdlet behavior to return the value passed to the MembershipIdentifier parameter. + /// The -PassThru parameter is deprecated, use -Select '^MembershipIdentifier' instead. This parameter will be removed in a future version. + /// + [System.Obsolete("The -PassThru parameter is deprecated, use -Select '^MembershipIdentifier' instead. This parameter will be removed in a future version.")] + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public SwitchParameter PassThru { get; set; } + #endregion + + protected override void ProcessRecord() + { + this._AWSSignerType = "v4"; + base.ProcessRecord(); + + 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.MembershipIdentifier; + } + #pragma warning restore CS0618, CS0612 //A class member was marked with the Obsolete attribute + context.MaxResult = this.MaxResult; + context.MembershipIdentifier = this.MembershipIdentifier; + #if MODULAR + if (this.MembershipIdentifier == null && ParameterWasBound(nameof(this.MembershipIdentifier))) + { + WriteWarning("You are passing $null as a value for parameter MembershipIdentifier 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.NextToken = this.NextToken; + + // 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.CleanRoomsML.Model.ListMLInputChannelsRequest(); + + if (cmdletContext.MaxResult != null) + { + request.MaxResults = cmdletContext.MaxResult.Value; + } + if (cmdletContext.MembershipIdentifier != null) + { + request.MembershipIdentifier = cmdletContext.MembershipIdentifier; + } + if (cmdletContext.NextToken != null) + { + request.NextToken = cmdletContext.NextToken; + } + + 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.CleanRoomsML.Model.ListMLInputChannelsResponse CallAWSServiceOperation(IAmazonCleanRoomsML client, Amazon.CleanRoomsML.Model.ListMLInputChannelsRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "CleanRoomsML", "ListMLInputChannels"); + try + { + #if DESKTOP + return client.ListMLInputChannels(request); + #elif CORECLR + return client.ListMLInputChannelsAsync(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.Int32? MaxResult { get; set; } + public System.String MembershipIdentifier { get; set; } + public System.String NextToken { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => response.MlInputChannelsList; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLTrainedModel-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLTrainedModel-Cmdlet.cs new file mode 100644 index 0000000000..5492bf2c1d --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLTrainedModel-Cmdlet.cs @@ -0,0 +1,211 @@ +/******************************************************************************* + * 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.CleanRoomsML; +using Amazon.CleanRoomsML.Model; + +namespace Amazon.PowerShell.Cmdlets.CRML +{ + /// + /// Returns information about a trained model. + /// + [Cmdlet("Get", "CRMLTrainedModel")] + [OutputType("Amazon.CleanRoomsML.Model.GetTrainedModelResponse")] + [AWSCmdlet("Calls the CleanRoomsML GetTrainedModel API operation.", Operation = new[] {"GetTrainedModel"}, SelectReturnType = typeof(Amazon.CleanRoomsML.Model.GetTrainedModelResponse))] + [AWSCmdletOutput("Amazon.CleanRoomsML.Model.GetTrainedModelResponse", + "This cmdlet returns an Amazon.CleanRoomsML.Model.GetTrainedModelResponse object containing multiple properties." + )] + public partial class GetCRMLTrainedModelCmdlet : AmazonCleanRoomsMLClientCmdlet, IExecutor + { + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter MembershipIdentifier + /// + /// + /// The membership ID of the member that created the trained model that you are interested + /// in. + /// + /// + #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 MembershipIdentifier { get; set; } + #endregion + + #region Parameter TrainedModelArn + /// + /// + /// The Amazon Resource Name (ARN) of the trained model that you are interested in. + /// + /// + #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 TrainedModelArn { 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.CleanRoomsML.Model.GetTrainedModelResponse). + /// Specifying the name of a property of type Amazon.CleanRoomsML.Model.GetTrainedModelResponse 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 + + protected override void ProcessRecord() + { + this._AWSSignerType = "v4"; + base.ProcessRecord(); + + var context = new CmdletContext(); + + // allow for manipulation of parameters prior to loading into context + PreExecutionContextLoad(context); + + if (ParameterWasBound(nameof(this.Select))) + { + context.Select = CreateSelectDelegate(Select) ?? + throw new System.ArgumentException("Invalid value for -Select parameter.", nameof(this.Select)); + } + context.MembershipIdentifier = this.MembershipIdentifier; + #if MODULAR + if (this.MembershipIdentifier == null && ParameterWasBound(nameof(this.MembershipIdentifier))) + { + WriteWarning("You are passing $null as a value for parameter MembershipIdentifier 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.TrainedModelArn = this.TrainedModelArn; + #if MODULAR + if (this.TrainedModelArn == null && ParameterWasBound(nameof(this.TrainedModelArn))) + { + WriteWarning("You are passing $null as a value for parameter TrainedModelArn 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.CleanRoomsML.Model.GetTrainedModelRequest(); + + if (cmdletContext.MembershipIdentifier != null) + { + request.MembershipIdentifier = cmdletContext.MembershipIdentifier; + } + if (cmdletContext.TrainedModelArn != null) + { + request.TrainedModelArn = cmdletContext.TrainedModelArn; + } + + 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.CleanRoomsML.Model.GetTrainedModelResponse CallAWSServiceOperation(IAmazonCleanRoomsML client, Amazon.CleanRoomsML.Model.GetTrainedModelRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "CleanRoomsML", "GetTrainedModel"); + try + { + #if DESKTOP + return client.GetTrainedModel(request); + #elif CORECLR + return client.GetTrainedModelAsync(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 MembershipIdentifier { get; set; } + public System.String TrainedModelArn { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => response; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLTrainedModelInferenceJob-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLTrainedModelInferenceJob-Cmdlet.cs new file mode 100644 index 0000000000..415fdac208 --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLTrainedModelInferenceJob-Cmdlet.cs @@ -0,0 +1,212 @@ +/******************************************************************************* + * 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.CleanRoomsML; +using Amazon.CleanRoomsML.Model; + +namespace Amazon.PowerShell.Cmdlets.CRML +{ + /// + /// Returns information about a trained model inference job. + /// + [Cmdlet("Get", "CRMLTrainedModelInferenceJob")] + [OutputType("Amazon.CleanRoomsML.Model.GetTrainedModelInferenceJobResponse")] + [AWSCmdlet("Calls the CleanRoomsML GetTrainedModelInferenceJob API operation.", Operation = new[] {"GetTrainedModelInferenceJob"}, SelectReturnType = typeof(Amazon.CleanRoomsML.Model.GetTrainedModelInferenceJobResponse))] + [AWSCmdletOutput("Amazon.CleanRoomsML.Model.GetTrainedModelInferenceJobResponse", + "This cmdlet returns an Amazon.CleanRoomsML.Model.GetTrainedModelInferenceJobResponse object containing multiple properties." + )] + public partial class GetCRMLTrainedModelInferenceJobCmdlet : AmazonCleanRoomsMLClientCmdlet, IExecutor + { + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter MembershipIdentifier + /// + /// + /// Provides the membership ID of the membership that contains the trained model inference + /// job that you are interested in. + /// + /// + #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 MembershipIdentifier { get; set; } + #endregion + + #region Parameter TrainedModelInferenceJobArn + /// + /// + /// Provides the Amazon Resource Name (ARN) of the trained model inference job that you + /// are interested in. + /// + /// + #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 TrainedModelInferenceJobArn { 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.CleanRoomsML.Model.GetTrainedModelInferenceJobResponse). + /// Specifying the name of a property of type Amazon.CleanRoomsML.Model.GetTrainedModelInferenceJobResponse 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 + + protected override void ProcessRecord() + { + this._AWSSignerType = "v4"; + base.ProcessRecord(); + + var context = new CmdletContext(); + + // allow for manipulation of parameters prior to loading into context + PreExecutionContextLoad(context); + + if (ParameterWasBound(nameof(this.Select))) + { + context.Select = CreateSelectDelegate(Select) ?? + throw new System.ArgumentException("Invalid value for -Select parameter.", nameof(this.Select)); + } + context.MembershipIdentifier = this.MembershipIdentifier; + #if MODULAR + if (this.MembershipIdentifier == null && ParameterWasBound(nameof(this.MembershipIdentifier))) + { + WriteWarning("You are passing $null as a value for parameter MembershipIdentifier 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.TrainedModelInferenceJobArn = this.TrainedModelInferenceJobArn; + #if MODULAR + if (this.TrainedModelInferenceJobArn == null && ParameterWasBound(nameof(this.TrainedModelInferenceJobArn))) + { + WriteWarning("You are passing $null as a value for parameter TrainedModelInferenceJobArn 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.CleanRoomsML.Model.GetTrainedModelInferenceJobRequest(); + + if (cmdletContext.MembershipIdentifier != null) + { + request.MembershipIdentifier = cmdletContext.MembershipIdentifier; + } + if (cmdletContext.TrainedModelInferenceJobArn != null) + { + request.TrainedModelInferenceJobArn = cmdletContext.TrainedModelInferenceJobArn; + } + + 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.CleanRoomsML.Model.GetTrainedModelInferenceJobResponse CallAWSServiceOperation(IAmazonCleanRoomsML client, Amazon.CleanRoomsML.Model.GetTrainedModelInferenceJobRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "CleanRoomsML", "GetTrainedModelInferenceJob"); + try + { + #if DESKTOP + return client.GetTrainedModelInferenceJob(request); + #elif CORECLR + return client.GetTrainedModelInferenceJobAsync(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 MembershipIdentifier { get; set; } + public System.String TrainedModelInferenceJobArn { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => response; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLTrainedModelInferenceJobList-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLTrainedModelInferenceJobList-Cmdlet.cs new file mode 100644 index 0000000000..97223d5c8a --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLTrainedModelInferenceJobList-Cmdlet.cs @@ -0,0 +1,252 @@ +/******************************************************************************* + * 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.CleanRoomsML; +using Amazon.CleanRoomsML.Model; + +namespace Amazon.PowerShell.Cmdlets.CRML +{ + /// + /// Returns a list of trained model inference jobs that match the request parameters. + /// + [Cmdlet("Get", "CRMLTrainedModelInferenceJobList")] + [OutputType("Amazon.CleanRoomsML.Model.TrainedModelInferenceJobSummary")] + [AWSCmdlet("Calls the CleanRoomsML ListTrainedModelInferenceJobs API operation.", Operation = new[] {"ListTrainedModelInferenceJobs"}, SelectReturnType = typeof(Amazon.CleanRoomsML.Model.ListTrainedModelInferenceJobsResponse))] + [AWSCmdletOutput("Amazon.CleanRoomsML.Model.TrainedModelInferenceJobSummary or Amazon.CleanRoomsML.Model.ListTrainedModelInferenceJobsResponse", + "This cmdlet returns a collection of Amazon.CleanRoomsML.Model.TrainedModelInferenceJobSummary objects.", + "The service call response (type Amazon.CleanRoomsML.Model.ListTrainedModelInferenceJobsResponse) can be returned by specifying '-Select *'." + )] + public partial class GetCRMLTrainedModelInferenceJobListCmdlet : AmazonCleanRoomsMLClientCmdlet, IExecutor + { + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter MembershipIdentifier + /// + /// + /// The membership + /// + /// + #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 MembershipIdentifier { get; set; } + #endregion + + #region Parameter TrainedModelArn + /// + /// + /// The Amazon Resource Name (ARN) of a trained model that was used to create the trained + /// model inference jobs that you are interested in. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String TrainedModelArn { get; set; } + #endregion + + #region Parameter MaxResult + /// + /// + /// The maximum size of the results that is returned per call. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("MaxResults")] + public System.Int32? MaxResult { get; set; } + #endregion + + #region Parameter NextToken + /// + /// + /// The token value retrieved from a previous call to access the next page of results. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String NextToken { get; set; } + #endregion + + #region Parameter Select + /// + /// Use the -Select parameter to control the cmdlet output. The default value is 'TrainedModelInferenceJobs'. + /// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.CleanRoomsML.Model.ListTrainedModelInferenceJobsResponse). + /// Specifying the name of a property of type Amazon.CleanRoomsML.Model.ListTrainedModelInferenceJobsResponse 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; } = "TrainedModelInferenceJobs"; + #endregion + + #region Parameter PassThru + /// + /// Changes the cmdlet behavior to return the value passed to the MembershipIdentifier parameter. + /// The -PassThru parameter is deprecated, use -Select '^MembershipIdentifier' instead. This parameter will be removed in a future version. + /// + [System.Obsolete("The -PassThru parameter is deprecated, use -Select '^MembershipIdentifier' instead. This parameter will be removed in a future version.")] + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public SwitchParameter PassThru { get; set; } + #endregion + + protected override void ProcessRecord() + { + this._AWSSignerType = "v4"; + base.ProcessRecord(); + + 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.MembershipIdentifier; + } + #pragma warning restore CS0618, CS0612 //A class member was marked with the Obsolete attribute + context.MaxResult = this.MaxResult; + context.MembershipIdentifier = this.MembershipIdentifier; + #if MODULAR + if (this.MembershipIdentifier == null && ParameterWasBound(nameof(this.MembershipIdentifier))) + { + WriteWarning("You are passing $null as a value for parameter MembershipIdentifier 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.NextToken = this.NextToken; + context.TrainedModelArn = this.TrainedModelArn; + + // 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.CleanRoomsML.Model.ListTrainedModelInferenceJobsRequest(); + + if (cmdletContext.MaxResult != null) + { + request.MaxResults = cmdletContext.MaxResult.Value; + } + if (cmdletContext.MembershipIdentifier != null) + { + request.MembershipIdentifier = cmdletContext.MembershipIdentifier; + } + if (cmdletContext.NextToken != null) + { + request.NextToken = cmdletContext.NextToken; + } + if (cmdletContext.TrainedModelArn != null) + { + request.TrainedModelArn = cmdletContext.TrainedModelArn; + } + + 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.CleanRoomsML.Model.ListTrainedModelInferenceJobsResponse CallAWSServiceOperation(IAmazonCleanRoomsML client, Amazon.CleanRoomsML.Model.ListTrainedModelInferenceJobsRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "CleanRoomsML", "ListTrainedModelInferenceJobs"); + try + { + #if DESKTOP + return client.ListTrainedModelInferenceJobs(request); + #elif CORECLR + return client.ListTrainedModelInferenceJobsAsync(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.Int32? MaxResult { get; set; } + public System.String MembershipIdentifier { get; set; } + public System.String NextToken { get; set; } + public System.String TrainedModelArn { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => response.TrainedModelInferenceJobs; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLTrainedModelList-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLTrainedModelList-Cmdlet.cs new file mode 100644 index 0000000000..e3b56c8741 --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Get-CRMLTrainedModelList-Cmdlet.cs @@ -0,0 +1,236 @@ +/******************************************************************************* + * 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.CleanRoomsML; +using Amazon.CleanRoomsML.Model; + +namespace Amazon.PowerShell.Cmdlets.CRML +{ + /// + /// Returns a list of trained models. + /// + [Cmdlet("Get", "CRMLTrainedModelList")] + [OutputType("Amazon.CleanRoomsML.Model.TrainedModelSummary")] + [AWSCmdlet("Calls the CleanRoomsML ListTrainedModels API operation.", Operation = new[] {"ListTrainedModels"}, SelectReturnType = typeof(Amazon.CleanRoomsML.Model.ListTrainedModelsResponse))] + [AWSCmdletOutput("Amazon.CleanRoomsML.Model.TrainedModelSummary or Amazon.CleanRoomsML.Model.ListTrainedModelsResponse", + "This cmdlet returns a collection of Amazon.CleanRoomsML.Model.TrainedModelSummary objects.", + "The service call response (type Amazon.CleanRoomsML.Model.ListTrainedModelsResponse) can be returned by specifying '-Select *'." + )] + public partial class GetCRMLTrainedModelListCmdlet : AmazonCleanRoomsMLClientCmdlet, IExecutor + { + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter MembershipIdentifier + /// + /// + /// The membership ID of the member that created the trained models you are interested + /// in. + /// + /// + #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 MembershipIdentifier { get; set; } + #endregion + + #region Parameter MaxResult + /// + /// + /// The maximum size of the results that is returned per call. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("MaxResults")] + public System.Int32? MaxResult { get; set; } + #endregion + + #region Parameter NextToken + /// + /// + /// The token value retrieved from a previous call to access the next page of results. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String NextToken { get; set; } + #endregion + + #region Parameter Select + /// + /// Use the -Select parameter to control the cmdlet output. The default value is 'TrainedModels'. + /// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.CleanRoomsML.Model.ListTrainedModelsResponse). + /// Specifying the name of a property of type Amazon.CleanRoomsML.Model.ListTrainedModelsResponse 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; } = "TrainedModels"; + #endregion + + #region Parameter PassThru + /// + /// Changes the cmdlet behavior to return the value passed to the MembershipIdentifier parameter. + /// The -PassThru parameter is deprecated, use -Select '^MembershipIdentifier' instead. This parameter will be removed in a future version. + /// + [System.Obsolete("The -PassThru parameter is deprecated, use -Select '^MembershipIdentifier' instead. This parameter will be removed in a future version.")] + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public SwitchParameter PassThru { get; set; } + #endregion + + protected override void ProcessRecord() + { + this._AWSSignerType = "v4"; + base.ProcessRecord(); + + 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.MembershipIdentifier; + } + #pragma warning restore CS0618, CS0612 //A class member was marked with the Obsolete attribute + context.MaxResult = this.MaxResult; + context.MembershipIdentifier = this.MembershipIdentifier; + #if MODULAR + if (this.MembershipIdentifier == null && ParameterWasBound(nameof(this.MembershipIdentifier))) + { + WriteWarning("You are passing $null as a value for parameter MembershipIdentifier 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.NextToken = this.NextToken; + + // 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.CleanRoomsML.Model.ListTrainedModelsRequest(); + + if (cmdletContext.MaxResult != null) + { + request.MaxResults = cmdletContext.MaxResult.Value; + } + if (cmdletContext.MembershipIdentifier != null) + { + request.MembershipIdentifier = cmdletContext.MembershipIdentifier; + } + if (cmdletContext.NextToken != null) + { + request.NextToken = cmdletContext.NextToken; + } + + 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.CleanRoomsML.Model.ListTrainedModelsResponse CallAWSServiceOperation(IAmazonCleanRoomsML client, Amazon.CleanRoomsML.Model.ListTrainedModelsRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "CleanRoomsML", "ListTrainedModels"); + try + { + #if DESKTOP + return client.ListTrainedModels(request); + #elif CORECLR + return client.ListTrainedModelsAsync(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.Int32? MaxResult { get; set; } + public System.String MembershipIdentifier { get; set; } + public System.String NextToken { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => response.TrainedModels; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/New-CRMLConfiguredModelAlgorithm-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/New-CRMLConfiguredModelAlgorithm-Cmdlet.cs new file mode 100644 index 0000000000..67914f3fcb --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/New-CRMLConfiguredModelAlgorithm-Cmdlet.cs @@ -0,0 +1,448 @@ +/******************************************************************************* + * 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.CleanRoomsML; +using Amazon.CleanRoomsML.Model; + +namespace Amazon.PowerShell.Cmdlets.CRML +{ + /// + /// Creates a configured model algorithm using a container image stored in an ECR repository. + /// + [Cmdlet("New", "CRMLConfiguredModelAlgorithm", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType("System.String")] + [AWSCmdlet("Calls the CleanRoomsML CreateConfiguredModelAlgorithm API operation.", Operation = new[] {"CreateConfiguredModelAlgorithm"}, SelectReturnType = typeof(Amazon.CleanRoomsML.Model.CreateConfiguredModelAlgorithmResponse))] + [AWSCmdletOutput("System.String or Amazon.CleanRoomsML.Model.CreateConfiguredModelAlgorithmResponse", + "This cmdlet returns a System.String object.", + "The service call response (type Amazon.CleanRoomsML.Model.CreateConfiguredModelAlgorithmResponse) can be returned by specifying '-Select *'." + )] + public partial class NewCRMLConfiguredModelAlgorithmCmdlet : AmazonCleanRoomsMLClientCmdlet, IExecutor + { + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter TrainingContainerConfig_Argument + /// + /// + /// The arguments for a container used to run a training job. See How Amazon SageMaker + /// Runs Your Training Image for additional information. For more information, see How + /// Sagemaker runs your training image. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("TrainingContainerConfig_Arguments")] + public System.String[] TrainingContainerConfig_Argument { get; set; } + #endregion + + #region Parameter Description + /// + /// + /// The description of the configured model algorithm. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String Description { get; set; } + #endregion + + #region Parameter TrainingContainerConfig_Entrypoint + /// + /// + /// The entrypoint script for a Docker container used to run a training job. This script + /// takes precedence over the default train processing instructions. See How Amazon SageMaker + /// Runs Your Training Image for additional information. For more information, see How + /// Sagemaker runs your training image. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String[] TrainingContainerConfig_Entrypoint { get; set; } + #endregion + + #region Parameter InferenceContainerConfig_ImageUri + /// + /// + /// The registry path of the docker image that contains the inference algorithm. Clean + /// Rooms ML supports both registry/repository[:tag] and registry/repositry[@digest] + /// image path formats. For more information about using images in Clean Rooms ML, see + /// the Sagemaker + /// API reference. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String InferenceContainerConfig_ImageUri { get; set; } + #endregion + + #region Parameter TrainingContainerConfig_ImageUri + /// + /// + /// The registry path of the docker image that contains the algorithm. Clean Rooms ML + /// supports both registry/repository[:tag] and registry/repositry[@digest] + /// image path formats. For more information about using images in Clean Rooms ML, see + /// the Sagemaker + /// API reference. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String TrainingContainerConfig_ImageUri { get; set; } + #endregion + + #region Parameter KmsKeyArn + /// + /// + /// The Amazon Resource Name (ARN) of the KMS key. This key is used to encrypt and decrypt + /// customer-owned data in the configured ML model algorithm and associated data. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String KmsKeyArn { get; set; } + #endregion + + #region Parameter TrainingContainerConfig_MetricDefinition + /// + /// + /// A list of metric definition objects. Each object specifies the metric name and regular + /// expressions used to parse algorithm logs. Amazon Web Services Clean Rooms ML publishes + /// each metric to all members' Amazon CloudWatch using IAM role configured in PutMLConfiguration. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("TrainingContainerConfig_MetricDefinitions")] + public Amazon.CleanRoomsML.Model.MetricDefinition[] TrainingContainerConfig_MetricDefinition { get; set; } + #endregion + + #region Parameter Name + /// + /// + /// The name of the configured model algorithm. + /// + /// + #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 Name { get; set; } + #endregion + + #region Parameter RoleArn + /// + /// + /// The Amazon Resource Name (ARN) of the role that is used to access the repository. + /// + /// + #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 RoleArn { get; set; } + #endregion + + #region Parameter Tag + /// + /// + /// The optional metadata that you apply to the resource to help you categorize and organize + /// them. Each tag consists of a key and an optional value, both of which you define.The following basic restrictions apply to tags:
  • Maximum number of tags per resource - 50.
  • For each resource, each tag key must be unique, and each tag key can have only one + /// value.
  • Maximum key length - 128 Unicode characters in UTF-8.
  • Maximum value length - 256 Unicode characters in UTF-8.
  • If your tagging schema is used across multiple services and resources, remember that + /// other services may have restrictions on allowed characters. Generally allowed characters + /// are: letters, numbers, and spaces representable in UTF-8, and the following characters: + /// + - = . _ : / @.
  • Tag keys and values are case sensitive.
  • Do not use aws:, AWS:, or any upper or lowercase combination of such as a prefix for + /// keys as it is reserved for AWS use. You cannot edit or delete tag keys with this prefix. + /// Values can have this prefix. If a tag value has aws as its prefix but the key does + /// not, then Clean Rooms ML considers it to be a user tag and will count against the + /// limit of 50 tags. Tags with only the key prefix of aws do not count against your tags + /// per resource limit.
+ ///
+ ///
+ [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("Tags")] + public System.Collections.Hashtable Tag { get; set; } + #endregion + + #region Parameter Select + /// + /// Use the -Select parameter to control the cmdlet output. The default value is 'ConfiguredModelAlgorithmArn'. + /// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.CleanRoomsML.Model.CreateConfiguredModelAlgorithmResponse). + /// Specifying the name of a property of type Amazon.CleanRoomsML.Model.CreateConfiguredModelAlgorithmResponse 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; } = "ConfiguredModelAlgorithmArn"; + #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 = string.Empty; + if (!ConfirmShouldProceed(this.Force.IsPresent, resourceIdentifiersText, "New-CRMLConfiguredModelAlgorithm (CreateConfiguredModelAlgorithm)")) + { + return; + } + + var context = new CmdletContext(); + + // allow for manipulation of parameters prior to loading into context + PreExecutionContextLoad(context); + + if (ParameterWasBound(nameof(this.Select))) + { + context.Select = CreateSelectDelegate(Select) ?? + throw new System.ArgumentException("Invalid value for -Select parameter.", nameof(this.Select)); + } + context.Description = this.Description; + context.InferenceContainerConfig_ImageUri = this.InferenceContainerConfig_ImageUri; + context.KmsKeyArn = this.KmsKeyArn; + context.Name = this.Name; + #if MODULAR + if (this.Name == null && ParameterWasBound(nameof(this.Name))) + { + WriteWarning("You are passing $null as a value for parameter Name 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.RoleArn = this.RoleArn; + #if MODULAR + if (this.RoleArn == null && ParameterWasBound(nameof(this.RoleArn))) + { + WriteWarning("You are passing $null as a value for parameter RoleArn 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 + if (this.Tag != null) + { + context.Tag = new Dictionary(StringComparer.Ordinal); + foreach (var hashKey in this.Tag.Keys) + { + context.Tag.Add((String)hashKey, (System.String)(this.Tag[hashKey])); + } + } + if (this.TrainingContainerConfig_Argument != null) + { + context.TrainingContainerConfig_Argument = new List(this.TrainingContainerConfig_Argument); + } + if (this.TrainingContainerConfig_Entrypoint != null) + { + context.TrainingContainerConfig_Entrypoint = new List(this.TrainingContainerConfig_Entrypoint); + } + context.TrainingContainerConfig_ImageUri = this.TrainingContainerConfig_ImageUri; + if (this.TrainingContainerConfig_MetricDefinition != null) + { + context.TrainingContainerConfig_MetricDefinition = new List(this.TrainingContainerConfig_MetricDefinition); + } + + // 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.CleanRoomsML.Model.CreateConfiguredModelAlgorithmRequest(); + + if (cmdletContext.Description != null) + { + request.Description = cmdletContext.Description; + } + + // populate InferenceContainerConfig + var requestInferenceContainerConfigIsNull = true; + request.InferenceContainerConfig = new Amazon.CleanRoomsML.Model.InferenceContainerConfig(); + System.String requestInferenceContainerConfig_inferenceContainerConfig_ImageUri = null; + if (cmdletContext.InferenceContainerConfig_ImageUri != null) + { + requestInferenceContainerConfig_inferenceContainerConfig_ImageUri = cmdletContext.InferenceContainerConfig_ImageUri; + } + if (requestInferenceContainerConfig_inferenceContainerConfig_ImageUri != null) + { + request.InferenceContainerConfig.ImageUri = requestInferenceContainerConfig_inferenceContainerConfig_ImageUri; + requestInferenceContainerConfigIsNull = false; + } + // determine if request.InferenceContainerConfig should be set to null + if (requestInferenceContainerConfigIsNull) + { + request.InferenceContainerConfig = null; + } + if (cmdletContext.KmsKeyArn != null) + { + request.KmsKeyArn = cmdletContext.KmsKeyArn; + } + if (cmdletContext.Name != null) + { + request.Name = cmdletContext.Name; + } + if (cmdletContext.RoleArn != null) + { + request.RoleArn = cmdletContext.RoleArn; + } + if (cmdletContext.Tag != null) + { + request.Tags = cmdletContext.Tag; + } + + // populate TrainingContainerConfig + var requestTrainingContainerConfigIsNull = true; + request.TrainingContainerConfig = new Amazon.CleanRoomsML.Model.ContainerConfig(); + List requestTrainingContainerConfig_trainingContainerConfig_Argument = null; + if (cmdletContext.TrainingContainerConfig_Argument != null) + { + requestTrainingContainerConfig_trainingContainerConfig_Argument = cmdletContext.TrainingContainerConfig_Argument; + } + if (requestTrainingContainerConfig_trainingContainerConfig_Argument != null) + { + request.TrainingContainerConfig.Arguments = requestTrainingContainerConfig_trainingContainerConfig_Argument; + requestTrainingContainerConfigIsNull = false; + } + List requestTrainingContainerConfig_trainingContainerConfig_Entrypoint = null; + if (cmdletContext.TrainingContainerConfig_Entrypoint != null) + { + requestTrainingContainerConfig_trainingContainerConfig_Entrypoint = cmdletContext.TrainingContainerConfig_Entrypoint; + } + if (requestTrainingContainerConfig_trainingContainerConfig_Entrypoint != null) + { + request.TrainingContainerConfig.Entrypoint = requestTrainingContainerConfig_trainingContainerConfig_Entrypoint; + requestTrainingContainerConfigIsNull = false; + } + System.String requestTrainingContainerConfig_trainingContainerConfig_ImageUri = null; + if (cmdletContext.TrainingContainerConfig_ImageUri != null) + { + requestTrainingContainerConfig_trainingContainerConfig_ImageUri = cmdletContext.TrainingContainerConfig_ImageUri; + } + if (requestTrainingContainerConfig_trainingContainerConfig_ImageUri != null) + { + request.TrainingContainerConfig.ImageUri = requestTrainingContainerConfig_trainingContainerConfig_ImageUri; + requestTrainingContainerConfigIsNull = false; + } + List requestTrainingContainerConfig_trainingContainerConfig_MetricDefinition = null; + if (cmdletContext.TrainingContainerConfig_MetricDefinition != null) + { + requestTrainingContainerConfig_trainingContainerConfig_MetricDefinition = cmdletContext.TrainingContainerConfig_MetricDefinition; + } + if (requestTrainingContainerConfig_trainingContainerConfig_MetricDefinition != null) + { + request.TrainingContainerConfig.MetricDefinitions = requestTrainingContainerConfig_trainingContainerConfig_MetricDefinition; + requestTrainingContainerConfigIsNull = false; + } + // determine if request.TrainingContainerConfig should be set to null + if (requestTrainingContainerConfigIsNull) + { + request.TrainingContainerConfig = null; + } + + 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.CleanRoomsML.Model.CreateConfiguredModelAlgorithmResponse CallAWSServiceOperation(IAmazonCleanRoomsML client, Amazon.CleanRoomsML.Model.CreateConfiguredModelAlgorithmRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "CleanRoomsML", "CreateConfiguredModelAlgorithm"); + try + { + #if DESKTOP + return client.CreateConfiguredModelAlgorithm(request); + #elif CORECLR + return client.CreateConfiguredModelAlgorithmAsync(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 Description { get; set; } + public System.String InferenceContainerConfig_ImageUri { get; set; } + public System.String KmsKeyArn { get; set; } + public System.String Name { get; set; } + public System.String RoleArn { get; set; } + public Dictionary Tag { get; set; } + public List TrainingContainerConfig_Argument { get; set; } + public List TrainingContainerConfig_Entrypoint { get; set; } + public System.String TrainingContainerConfig_ImageUri { get; set; } + public List TrainingContainerConfig_MetricDefinition { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => response.ConfiguredModelAlgorithmArn; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/New-CRMLConfiguredModelAlgorithmAssociation-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/New-CRMLConfiguredModelAlgorithmAssociation-Cmdlet.cs new file mode 100644 index 0000000000..eb1e68cacd --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/New-CRMLConfiguredModelAlgorithmAssociation-Cmdlet.cs @@ -0,0 +1,618 @@ +/******************************************************************************* + * 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.CleanRoomsML; +using Amazon.CleanRoomsML.Model; + +namespace Amazon.PowerShell.Cmdlets.CRML +{ + /// + /// Associates a configured model algorithm to a collaboration for use by any member of + /// the collaboration. + /// + [Cmdlet("New", "CRMLConfiguredModelAlgorithmAssociation", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType("System.String")] + [AWSCmdlet("Calls the CleanRoomsML CreateConfiguredModelAlgorithmAssociation API operation.", Operation = new[] {"CreateConfiguredModelAlgorithmAssociation"}, SelectReturnType = typeof(Amazon.CleanRoomsML.Model.CreateConfiguredModelAlgorithmAssociationResponse))] + [AWSCmdletOutput("System.String or Amazon.CleanRoomsML.Model.CreateConfiguredModelAlgorithmAssociationResponse", + "This cmdlet returns a System.String object.", + "The service call response (type Amazon.CleanRoomsML.Model.CreateConfiguredModelAlgorithmAssociationResponse) can be returned by specifying '-Select *'." + )] + public partial class NewCRMLConfiguredModelAlgorithmAssociationCmdlet : AmazonCleanRoomsMLClientCmdlet, IExecutor + { + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter ConfiguredModelAlgorithmArn + /// + /// + /// The Amazon Resource Name (ARN) of the configured model algorithm that you want to + /// associate. + /// + /// + #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 ConfiguredModelAlgorithmArn { get; set; } + #endregion + + #region Parameter TrainedModelInferenceJobs_ContainerLog + /// + /// + /// The logs container for the trained model inference job. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("PrivacyConfiguration_Policies_TrainedModelInferenceJobs_ContainerLogs")] + public Amazon.CleanRoomsML.Model.LogsConfigurationPolicy[] TrainedModelInferenceJobs_ContainerLog { get; set; } + #endregion + + #region Parameter TrainedModels_ContainerLog + /// + /// + /// The container for the logs of the trained model. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("PrivacyConfiguration_Policies_TrainedModels_ContainerLogs")] + public Amazon.CleanRoomsML.Model.LogsConfigurationPolicy[] TrainedModels_ContainerLog { get; set; } + #endregion + + #region Parameter Description + /// + /// + /// The description of the configured model algorithm association. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String Description { get; set; } + #endregion + + #region Parameter TrainedModelExports_FilesToExport + /// + /// + /// The files that are exported during the trained model export job. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("PrivacyConfiguration_Policies_TrainedModelExports_FilesToExport")] + public System.String[] TrainedModelExports_FilesToExport { get; set; } + #endregion + + #region Parameter MembershipIdentifier + /// + /// + /// The membership ID of the member who is associating this configured model algorithm. + /// + /// + #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 MembershipIdentifier { get; set; } + #endregion + + #region Parameter Name + /// + /// + /// The name of the configured model algorithm association. + /// + /// + #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 Name { get; set; } + #endregion + + #region Parameter ContainerMetrics_NoiseLevel + /// + /// + /// The noise level for the generated metrics. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("PrivacyConfiguration_Policies_TrainedModels_ContainerMetrics_NoiseLevel")] + [AWSConstantClassSource("Amazon.CleanRoomsML.NoiseLevelType")] + public Amazon.CleanRoomsML.NoiseLevelType ContainerMetrics_NoiseLevel { get; set; } + #endregion + + #region Parameter Tag + /// + /// + /// The optional metadata that you apply to the resource to help you categorize and organize + /// them. Each tag consists of a key and an optional value, both of which you define.The following basic restrictions apply to tags:
  • Maximum number of tags per resource - 50.
  • For each resource, each tag key must be unique, and each tag key can have only one + /// value.
  • Maximum key length - 128 Unicode characters in UTF-8.
  • Maximum value length - 256 Unicode characters in UTF-8.
  • If your tagging schema is used across multiple services and resources, remember that + /// other services may have restrictions on allowed characters. Generally allowed characters + /// are: letters, numbers, and spaces representable in UTF-8, and the following characters: + /// + - = . _ : / @.
  • Tag keys and values are case sensitive.
  • Do not use aws:, AWS:, or any upper or lowercase combination of such as a prefix for + /// keys as it is reserved for AWS use. You cannot edit or delete tag keys with this prefix. + /// Values can have this prefix. If a tag value has aws as its prefix but the key does + /// not, then Clean Rooms ML considers it to be a user tag and will count against the + /// limit of 50 tags. Tags with only the key prefix of aws do not count against your tags + /// per resource limit.
+ ///
+ ///
+ [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("Tags")] + public System.Collections.Hashtable Tag { get; set; } + #endregion + + #region Parameter MaxSize_Unit + /// + /// + /// The unit of measurement for the data size. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("PrivacyConfiguration_Policies_TrainedModelExports_MaxSize_Unit")] + [AWSConstantClassSource("Amazon.CleanRoomsML.TrainedModelExportsMaxSizeUnitType")] + public Amazon.CleanRoomsML.TrainedModelExportsMaxSizeUnitType MaxSize_Unit { get; set; } + #endregion + + #region Parameter MaxOutputSize_Unit + /// + /// + /// The measurement unit to use. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("PrivacyConfiguration_Policies_TrainedModelInferenceJobs_MaxOutputSize_Unit")] + [AWSConstantClassSource("Amazon.CleanRoomsML.TrainedModelInferenceMaxOutputSizeUnitType")] + public Amazon.CleanRoomsML.TrainedModelInferenceMaxOutputSizeUnitType MaxOutputSize_Unit { get; set; } + #endregion + + #region Parameter MaxSize_Value + /// + /// + /// The maximum size of the dataset to export. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("PrivacyConfiguration_Policies_TrainedModelExports_MaxSize_Value")] + public System.Double? MaxSize_Value { get; set; } + #endregion + + #region Parameter MaxOutputSize_Value + /// + /// + /// The maximum output size value. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("PrivacyConfiguration_Policies_TrainedModelInferenceJobs_MaxOutputSize_Value")] + public System.Double? MaxOutputSize_Value { get; set; } + #endregion + + #region Parameter Select + /// + /// Use the -Select parameter to control the cmdlet output. The default value is 'ConfiguredModelAlgorithmAssociationArn'. + /// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.CleanRoomsML.Model.CreateConfiguredModelAlgorithmAssociationResponse). + /// Specifying the name of a property of type Amazon.CleanRoomsML.Model.CreateConfiguredModelAlgorithmAssociationResponse 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; } = "ConfiguredModelAlgorithmAssociationArn"; + #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 = string.Empty; + if (!ConfirmShouldProceed(this.Force.IsPresent, resourceIdentifiersText, "New-CRMLConfiguredModelAlgorithmAssociation (CreateConfiguredModelAlgorithmAssociation)")) + { + return; + } + + var context = new CmdletContext(); + + // allow for manipulation of parameters prior to loading into context + PreExecutionContextLoad(context); + + if (ParameterWasBound(nameof(this.Select))) + { + context.Select = CreateSelectDelegate(Select) ?? + throw new System.ArgumentException("Invalid value for -Select parameter.", nameof(this.Select)); + } + context.ConfiguredModelAlgorithmArn = this.ConfiguredModelAlgorithmArn; + #if MODULAR + if (this.ConfiguredModelAlgorithmArn == null && ParameterWasBound(nameof(this.ConfiguredModelAlgorithmArn))) + { + WriteWarning("You are passing $null as a value for parameter ConfiguredModelAlgorithmArn 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.Description = this.Description; + context.MembershipIdentifier = this.MembershipIdentifier; + #if MODULAR + if (this.MembershipIdentifier == null && ParameterWasBound(nameof(this.MembershipIdentifier))) + { + WriteWarning("You are passing $null as a value for parameter MembershipIdentifier 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.Name = this.Name; + #if MODULAR + if (this.Name == null && ParameterWasBound(nameof(this.Name))) + { + WriteWarning("You are passing $null as a value for parameter Name 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 + if (this.TrainedModelExports_FilesToExport != null) + { + context.TrainedModelExports_FilesToExport = new List(this.TrainedModelExports_FilesToExport); + } + context.MaxSize_Unit = this.MaxSize_Unit; + context.MaxSize_Value = this.MaxSize_Value; + if (this.TrainedModelInferenceJobs_ContainerLog != null) + { + context.TrainedModelInferenceJobs_ContainerLog = new List(this.TrainedModelInferenceJobs_ContainerLog); + } + context.MaxOutputSize_Unit = this.MaxOutputSize_Unit; + context.MaxOutputSize_Value = this.MaxOutputSize_Value; + if (this.TrainedModels_ContainerLog != null) + { + context.TrainedModels_ContainerLog = new List(this.TrainedModels_ContainerLog); + } + context.ContainerMetrics_NoiseLevel = this.ContainerMetrics_NoiseLevel; + if (this.Tag != null) + { + context.Tag = new Dictionary(StringComparer.Ordinal); + foreach (var hashKey in this.Tag.Keys) + { + context.Tag.Add((String)hashKey, (System.String)(this.Tag[hashKey])); + } + } + + // 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.CleanRoomsML.Model.CreateConfiguredModelAlgorithmAssociationRequest(); + + if (cmdletContext.ConfiguredModelAlgorithmArn != null) + { + request.ConfiguredModelAlgorithmArn = cmdletContext.ConfiguredModelAlgorithmArn; + } + if (cmdletContext.Description != null) + { + request.Description = cmdletContext.Description; + } + if (cmdletContext.MembershipIdentifier != null) + { + request.MembershipIdentifier = cmdletContext.MembershipIdentifier; + } + if (cmdletContext.Name != null) + { + request.Name = cmdletContext.Name; + } + + // populate PrivacyConfiguration + var requestPrivacyConfigurationIsNull = true; + request.PrivacyConfiguration = new Amazon.CleanRoomsML.Model.PrivacyConfiguration(); + Amazon.CleanRoomsML.Model.PrivacyConfigurationPolicies requestPrivacyConfiguration_privacyConfiguration_Policies = null; + + // populate Policies + var requestPrivacyConfiguration_privacyConfiguration_PoliciesIsNull = true; + requestPrivacyConfiguration_privacyConfiguration_Policies = new Amazon.CleanRoomsML.Model.PrivacyConfigurationPolicies(); + Amazon.CleanRoomsML.Model.TrainedModelExportsConfigurationPolicy requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExports = null; + + // populate TrainedModelExports + var requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExportsIsNull = true; + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExports = new Amazon.CleanRoomsML.Model.TrainedModelExportsConfigurationPolicy(); + List requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExports_trainedModelExports_FilesToExport = null; + if (cmdletContext.TrainedModelExports_FilesToExport != null) + { + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExports_trainedModelExports_FilesToExport = cmdletContext.TrainedModelExports_FilesToExport; + } + if (requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExports_trainedModelExports_FilesToExport != null) + { + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExports.FilesToExport = requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExports_trainedModelExports_FilesToExport; + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExportsIsNull = false; + } + Amazon.CleanRoomsML.Model.TrainedModelExportsMaxSize requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExports_privacyConfiguration_Policies_TrainedModelExports_MaxSize = null; + + // populate MaxSize + var requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExports_privacyConfiguration_Policies_TrainedModelExports_MaxSizeIsNull = true; + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExports_privacyConfiguration_Policies_TrainedModelExports_MaxSize = new Amazon.CleanRoomsML.Model.TrainedModelExportsMaxSize(); + Amazon.CleanRoomsML.TrainedModelExportsMaxSizeUnitType requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExports_privacyConfiguration_Policies_TrainedModelExports_MaxSize_maxSize_Unit = null; + if (cmdletContext.MaxSize_Unit != null) + { + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExports_privacyConfiguration_Policies_TrainedModelExports_MaxSize_maxSize_Unit = cmdletContext.MaxSize_Unit; + } + if (requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExports_privacyConfiguration_Policies_TrainedModelExports_MaxSize_maxSize_Unit != null) + { + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExports_privacyConfiguration_Policies_TrainedModelExports_MaxSize.Unit = requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExports_privacyConfiguration_Policies_TrainedModelExports_MaxSize_maxSize_Unit; + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExports_privacyConfiguration_Policies_TrainedModelExports_MaxSizeIsNull = false; + } + System.Double? requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExports_privacyConfiguration_Policies_TrainedModelExports_MaxSize_maxSize_Value = null; + if (cmdletContext.MaxSize_Value != null) + { + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExports_privacyConfiguration_Policies_TrainedModelExports_MaxSize_maxSize_Value = cmdletContext.MaxSize_Value.Value; + } + if (requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExports_privacyConfiguration_Policies_TrainedModelExports_MaxSize_maxSize_Value != null) + { + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExports_privacyConfiguration_Policies_TrainedModelExports_MaxSize.Value = requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExports_privacyConfiguration_Policies_TrainedModelExports_MaxSize_maxSize_Value.Value; + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExports_privacyConfiguration_Policies_TrainedModelExports_MaxSizeIsNull = false; + } + // determine if requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExports_privacyConfiguration_Policies_TrainedModelExports_MaxSize should be set to null + if (requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExports_privacyConfiguration_Policies_TrainedModelExports_MaxSizeIsNull) + { + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExports_privacyConfiguration_Policies_TrainedModelExports_MaxSize = null; + } + if (requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExports_privacyConfiguration_Policies_TrainedModelExports_MaxSize != null) + { + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExports.MaxSize = requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExports_privacyConfiguration_Policies_TrainedModelExports_MaxSize; + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExportsIsNull = false; + } + // determine if requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExports should be set to null + if (requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExportsIsNull) + { + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExports = null; + } + if (requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExports != null) + { + requestPrivacyConfiguration_privacyConfiguration_Policies.TrainedModelExports = requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelExports; + requestPrivacyConfiguration_privacyConfiguration_PoliciesIsNull = false; + } + Amazon.CleanRoomsML.Model.TrainedModelInferenceJobsConfigurationPolicy requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobs = null; + + // populate TrainedModelInferenceJobs + var requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobsIsNull = true; + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobs = new Amazon.CleanRoomsML.Model.TrainedModelInferenceJobsConfigurationPolicy(); + List requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobs_trainedModelInferenceJobs_ContainerLog = null; + if (cmdletContext.TrainedModelInferenceJobs_ContainerLog != null) + { + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobs_trainedModelInferenceJobs_ContainerLog = cmdletContext.TrainedModelInferenceJobs_ContainerLog; + } + if (requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobs_trainedModelInferenceJobs_ContainerLog != null) + { + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobs.ContainerLogs = requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobs_trainedModelInferenceJobs_ContainerLog; + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobsIsNull = false; + } + Amazon.CleanRoomsML.Model.TrainedModelInferenceMaxOutputSize requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobs_privacyConfiguration_Policies_TrainedModelInferenceJobs_MaxOutputSize = null; + + // populate MaxOutputSize + var requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobs_privacyConfiguration_Policies_TrainedModelInferenceJobs_MaxOutputSizeIsNull = true; + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobs_privacyConfiguration_Policies_TrainedModelInferenceJobs_MaxOutputSize = new Amazon.CleanRoomsML.Model.TrainedModelInferenceMaxOutputSize(); + Amazon.CleanRoomsML.TrainedModelInferenceMaxOutputSizeUnitType requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobs_privacyConfiguration_Policies_TrainedModelInferenceJobs_MaxOutputSize_maxOutputSize_Unit = null; + if (cmdletContext.MaxOutputSize_Unit != null) + { + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobs_privacyConfiguration_Policies_TrainedModelInferenceJobs_MaxOutputSize_maxOutputSize_Unit = cmdletContext.MaxOutputSize_Unit; + } + if (requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobs_privacyConfiguration_Policies_TrainedModelInferenceJobs_MaxOutputSize_maxOutputSize_Unit != null) + { + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobs_privacyConfiguration_Policies_TrainedModelInferenceJobs_MaxOutputSize.Unit = requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobs_privacyConfiguration_Policies_TrainedModelInferenceJobs_MaxOutputSize_maxOutputSize_Unit; + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobs_privacyConfiguration_Policies_TrainedModelInferenceJobs_MaxOutputSizeIsNull = false; + } + System.Double? requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobs_privacyConfiguration_Policies_TrainedModelInferenceJobs_MaxOutputSize_maxOutputSize_Value = null; + if (cmdletContext.MaxOutputSize_Value != null) + { + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobs_privacyConfiguration_Policies_TrainedModelInferenceJobs_MaxOutputSize_maxOutputSize_Value = cmdletContext.MaxOutputSize_Value.Value; + } + if (requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobs_privacyConfiguration_Policies_TrainedModelInferenceJobs_MaxOutputSize_maxOutputSize_Value != null) + { + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobs_privacyConfiguration_Policies_TrainedModelInferenceJobs_MaxOutputSize.Value = requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobs_privacyConfiguration_Policies_TrainedModelInferenceJobs_MaxOutputSize_maxOutputSize_Value.Value; + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobs_privacyConfiguration_Policies_TrainedModelInferenceJobs_MaxOutputSizeIsNull = false; + } + // determine if requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobs_privacyConfiguration_Policies_TrainedModelInferenceJobs_MaxOutputSize should be set to null + if (requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobs_privacyConfiguration_Policies_TrainedModelInferenceJobs_MaxOutputSizeIsNull) + { + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobs_privacyConfiguration_Policies_TrainedModelInferenceJobs_MaxOutputSize = null; + } + if (requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobs_privacyConfiguration_Policies_TrainedModelInferenceJobs_MaxOutputSize != null) + { + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobs.MaxOutputSize = requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobs_privacyConfiguration_Policies_TrainedModelInferenceJobs_MaxOutputSize; + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobsIsNull = false; + } + // determine if requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobs should be set to null + if (requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobsIsNull) + { + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobs = null; + } + if (requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobs != null) + { + requestPrivacyConfiguration_privacyConfiguration_Policies.TrainedModelInferenceJobs = requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelInferenceJobs; + requestPrivacyConfiguration_privacyConfiguration_PoliciesIsNull = false; + } + Amazon.CleanRoomsML.Model.TrainedModelsConfigurationPolicy requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModels = null; + + // populate TrainedModels + var requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelsIsNull = true; + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModels = new Amazon.CleanRoomsML.Model.TrainedModelsConfigurationPolicy(); + List requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModels_trainedModels_ContainerLog = null; + if (cmdletContext.TrainedModels_ContainerLog != null) + { + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModels_trainedModels_ContainerLog = cmdletContext.TrainedModels_ContainerLog; + } + if (requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModels_trainedModels_ContainerLog != null) + { + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModels.ContainerLogs = requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModels_trainedModels_ContainerLog; + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelsIsNull = false; + } + Amazon.CleanRoomsML.Model.MetricsConfigurationPolicy requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModels_privacyConfiguration_Policies_TrainedModels_ContainerMetrics = null; + + // populate ContainerMetrics + var requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModels_privacyConfiguration_Policies_TrainedModels_ContainerMetricsIsNull = true; + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModels_privacyConfiguration_Policies_TrainedModels_ContainerMetrics = new Amazon.CleanRoomsML.Model.MetricsConfigurationPolicy(); + Amazon.CleanRoomsML.NoiseLevelType requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModels_privacyConfiguration_Policies_TrainedModels_ContainerMetrics_containerMetrics_NoiseLevel = null; + if (cmdletContext.ContainerMetrics_NoiseLevel != null) + { + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModels_privacyConfiguration_Policies_TrainedModels_ContainerMetrics_containerMetrics_NoiseLevel = cmdletContext.ContainerMetrics_NoiseLevel; + } + if (requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModels_privacyConfiguration_Policies_TrainedModels_ContainerMetrics_containerMetrics_NoiseLevel != null) + { + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModels_privacyConfiguration_Policies_TrainedModels_ContainerMetrics.NoiseLevel = requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModels_privacyConfiguration_Policies_TrainedModels_ContainerMetrics_containerMetrics_NoiseLevel; + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModels_privacyConfiguration_Policies_TrainedModels_ContainerMetricsIsNull = false; + } + // determine if requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModels_privacyConfiguration_Policies_TrainedModels_ContainerMetrics should be set to null + if (requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModels_privacyConfiguration_Policies_TrainedModels_ContainerMetricsIsNull) + { + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModels_privacyConfiguration_Policies_TrainedModels_ContainerMetrics = null; + } + if (requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModels_privacyConfiguration_Policies_TrainedModels_ContainerMetrics != null) + { + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModels.ContainerMetrics = requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModels_privacyConfiguration_Policies_TrainedModels_ContainerMetrics; + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelsIsNull = false; + } + // determine if requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModels should be set to null + if (requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModelsIsNull) + { + requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModels = null; + } + if (requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModels != null) + { + requestPrivacyConfiguration_privacyConfiguration_Policies.TrainedModels = requestPrivacyConfiguration_privacyConfiguration_Policies_privacyConfiguration_Policies_TrainedModels; + requestPrivacyConfiguration_privacyConfiguration_PoliciesIsNull = false; + } + // determine if requestPrivacyConfiguration_privacyConfiguration_Policies should be set to null + if (requestPrivacyConfiguration_privacyConfiguration_PoliciesIsNull) + { + requestPrivacyConfiguration_privacyConfiguration_Policies = null; + } + if (requestPrivacyConfiguration_privacyConfiguration_Policies != null) + { + request.PrivacyConfiguration.Policies = requestPrivacyConfiguration_privacyConfiguration_Policies; + requestPrivacyConfigurationIsNull = false; + } + // determine if request.PrivacyConfiguration should be set to null + if (requestPrivacyConfigurationIsNull) + { + request.PrivacyConfiguration = null; + } + if (cmdletContext.Tag != null) + { + request.Tags = cmdletContext.Tag; + } + + 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.CleanRoomsML.Model.CreateConfiguredModelAlgorithmAssociationResponse CallAWSServiceOperation(IAmazonCleanRoomsML client, Amazon.CleanRoomsML.Model.CreateConfiguredModelAlgorithmAssociationRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "CleanRoomsML", "CreateConfiguredModelAlgorithmAssociation"); + try + { + #if DESKTOP + return client.CreateConfiguredModelAlgorithmAssociation(request); + #elif CORECLR + return client.CreateConfiguredModelAlgorithmAssociationAsync(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 ConfiguredModelAlgorithmArn { get; set; } + public System.String Description { get; set; } + public System.String MembershipIdentifier { get; set; } + public System.String Name { get; set; } + public List TrainedModelExports_FilesToExport { get; set; } + public Amazon.CleanRoomsML.TrainedModelExportsMaxSizeUnitType MaxSize_Unit { get; set; } + public System.Double? MaxSize_Value { get; set; } + public List TrainedModelInferenceJobs_ContainerLog { get; set; } + public Amazon.CleanRoomsML.TrainedModelInferenceMaxOutputSizeUnitType MaxOutputSize_Unit { get; set; } + public System.Double? MaxOutputSize_Value { get; set; } + public List TrainedModels_ContainerLog { get; set; } + public Amazon.CleanRoomsML.NoiseLevelType ContainerMetrics_NoiseLevel { get; set; } + public Dictionary Tag { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => response.ConfiguredModelAlgorithmAssociationArn; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/New-CRMLMLInputChannel-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/New-CRMLMLInputChannel-Cmdlet.cs new file mode 100644 index 0000000000..289a30c245 --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/New-CRMLMLInputChannel-Cmdlet.cs @@ -0,0 +1,603 @@ +/******************************************************************************* + * 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.CleanRoomsML; +using Amazon.CleanRoomsML.Model; + +namespace Amazon.PowerShell.Cmdlets.CRML +{ + /// + /// Provides the information to create an ML input channel. An ML input channel is the + /// result of a query that can be used for ML modeling. + /// + [Cmdlet("New", "CRMLMLInputChannel", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType("System.String")] + [AWSCmdlet("Calls the CleanRoomsML CreateMLInputChannel API operation.", Operation = new[] {"CreateMLInputChannel"}, SelectReturnType = typeof(Amazon.CleanRoomsML.Model.CreateMLInputChannelResponse))] + [AWSCmdletOutput("System.String or Amazon.CleanRoomsML.Model.CreateMLInputChannelResponse", + "This cmdlet returns a System.String object.", + "The service call response (type Amazon.CleanRoomsML.Model.CreateMLInputChannelResponse) can be returned by specifying '-Select *'." + )] + public partial class NewCRMLMLInputChannelCmdlet : AmazonCleanRoomsMLClientCmdlet, IExecutor + { + + protected override bool IsSensitiveRequest { get; set; } = true; + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter SqlParameters_AnalysisTemplateArn + /// + /// + /// The Amazon Resource Name (ARN) associated with the analysis template within a collaboration. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("InputChannel_DataSource_ProtectedQueryInputParameters_SqlParameters_AnalysisTemplateArn")] + public System.String SqlParameters_AnalysisTemplateArn { get; set; } + #endregion + + #region Parameter ConfiguredModelAlgorithmAssociation + /// + /// + /// The associated configured model algorithms that are necessary to create this ML input + /// channel. + /// + /// + #if !MODULAR + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + #else + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)] + [System.Management.Automation.AllowEmptyCollection] + [System.Management.Automation.AllowNull] + #endif + [Amazon.PowerShell.Common.AWSRequiredParameter] + [Alias("ConfiguredModelAlgorithmAssociations")] + public System.String[] ConfiguredModelAlgorithmAssociation { get; set; } + #endregion + + #region Parameter Description + /// + /// + /// The description of the ML input channel. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String Description { get; set; } + #endregion + + #region Parameter KmsKeyArn + /// + /// + /// The Amazon Resource Name (ARN) of the KMS key that is used to access the input channel. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String KmsKeyArn { get; set; } + #endregion + + #region Parameter MembershipIdentifier + /// + /// + /// The membership ID of the member that is creating the ML input channel. + /// + /// + #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 MembershipIdentifier { get; set; } + #endregion + + #region Parameter Name + /// + /// + /// The name of the ML input channel. + /// + /// + #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 Name { get; set; } + #endregion + + #region Parameter Worker_Number + /// + /// + /// The number of compute workers that are used. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("InputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_Worker_Number")] + public System.Int32? Worker_Number { get; set; } + #endregion + + #region Parameter SqlParameters_Parameter + /// + /// + /// The protected query SQL parameters. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("InputChannel_DataSource_ProtectedQueryInputParameters_SqlParameters_Parameters")] + public System.Collections.Hashtable SqlParameters_Parameter { get; set; } + #endregion + + #region Parameter SqlParameters_QueryString + /// + /// + /// The query string to be submitted. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("InputChannel_DataSource_ProtectedQueryInputParameters_SqlParameters_QueryString")] + public System.String SqlParameters_QueryString { get; set; } + #endregion + + #region Parameter RetentionInDay + /// + /// + /// The number of days that the data in the ML input channel is retained. + /// + /// + #if !MODULAR + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + #else + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)] + [System.Management.Automation.AllowNull] + #endif + [Amazon.PowerShell.Common.AWSRequiredParameter] + [Alias("RetentionInDays")] + public System.Int32? RetentionInDay { get; set; } + #endregion + + #region Parameter InputChannel_RoleArn + /// + /// + /// The ARN of the IAM role that Clean Rooms ML can assume to read the data referred to + /// in the dataSource field the input channel.Passing a role across AWS accounts is not allowed. If you pass a role that isn't in + /// your account, you get an AccessDeniedException error. + /// + /// + #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 InputChannel_RoleArn { get; set; } + #endregion + + #region Parameter Tag + /// + /// + /// The optional metadata that you apply to the resource to help you categorize and organize + /// them. Each tag consists of a key and an optional value, both of which you define.The following basic restrictions apply to tags:
  • Maximum number of tags per resource - 50.
  • For each resource, each tag key must be unique, and each tag key can have only one + /// value.
  • Maximum key length - 128 Unicode characters in UTF-8.
  • Maximum value length - 256 Unicode characters in UTF-8.
  • If your tagging schema is used across multiple services and resources, remember that + /// other services may have restrictions on allowed characters. Generally allowed characters + /// are: letters, numbers, and spaces representable in UTF-8, and the following characters: + /// + - = . _ : / @.
  • Tag keys and values are case sensitive.
  • Do not use aws:, AWS:, or any upper or lowercase combination of such as a prefix for + /// keys as it is reserved for AWS use. You cannot edit or delete tag keys with this prefix. + /// Values can have this prefix. If a tag value has aws as its prefix but the key does + /// not, then Clean Rooms ML considers it to be a user tag and will count against the + /// limit of 50 tags. Tags with only the key prefix of aws do not count against your tags + /// per resource limit.
+ ///
+ ///
+ [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("Tags")] + public System.Collections.Hashtable Tag { get; set; } + #endregion + + #region Parameter Worker_Type + /// + /// + /// The instance type of the compute workers that are used. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("InputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_Worker_Type")] + [AWSConstantClassSource("Amazon.CleanRoomsML.WorkerComputeType")] + public Amazon.CleanRoomsML.WorkerComputeType Worker_Type { get; set; } + #endregion + + #region Parameter Select + /// + /// Use the -Select parameter to control the cmdlet output. The default value is 'MlInputChannelArn'. + /// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.CleanRoomsML.Model.CreateMLInputChannelResponse). + /// Specifying the name of a property of type Amazon.CleanRoomsML.Model.CreateMLInputChannelResponse 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; } = "MlInputChannelArn"; + #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 = string.Empty; + if (!ConfirmShouldProceed(this.Force.IsPresent, resourceIdentifiersText, "New-CRMLMLInputChannel (CreateMLInputChannel)")) + { + return; + } + + var context = new CmdletContext(); + + // allow for manipulation of parameters prior to loading into context + PreExecutionContextLoad(context); + + if (ParameterWasBound(nameof(this.Select))) + { + context.Select = CreateSelectDelegate(Select) ?? + throw new System.ArgumentException("Invalid value for -Select parameter.", nameof(this.Select)); + } + if (this.ConfiguredModelAlgorithmAssociation != null) + { + context.ConfiguredModelAlgorithmAssociation = new List(this.ConfiguredModelAlgorithmAssociation); + } + #if MODULAR + if (this.ConfiguredModelAlgorithmAssociation == null && ParameterWasBound(nameof(this.ConfiguredModelAlgorithmAssociation))) + { + WriteWarning("You are passing $null as a value for parameter ConfiguredModelAlgorithmAssociation 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.Description = this.Description; + context.Worker_Number = this.Worker_Number; + context.Worker_Type = this.Worker_Type; + context.SqlParameters_AnalysisTemplateArn = this.SqlParameters_AnalysisTemplateArn; + if (this.SqlParameters_Parameter != null) + { + context.SqlParameters_Parameter = new Dictionary(StringComparer.Ordinal); + foreach (var hashKey in this.SqlParameters_Parameter.Keys) + { + context.SqlParameters_Parameter.Add((String)hashKey, (System.String)(this.SqlParameters_Parameter[hashKey])); + } + } + context.SqlParameters_QueryString = this.SqlParameters_QueryString; + context.InputChannel_RoleArn = this.InputChannel_RoleArn; + #if MODULAR + if (this.InputChannel_RoleArn == null && ParameterWasBound(nameof(this.InputChannel_RoleArn))) + { + WriteWarning("You are passing $null as a value for parameter InputChannel_RoleArn 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.KmsKeyArn = this.KmsKeyArn; + context.MembershipIdentifier = this.MembershipIdentifier; + #if MODULAR + if (this.MembershipIdentifier == null && ParameterWasBound(nameof(this.MembershipIdentifier))) + { + WriteWarning("You are passing $null as a value for parameter MembershipIdentifier 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.Name = this.Name; + #if MODULAR + if (this.Name == null && ParameterWasBound(nameof(this.Name))) + { + WriteWarning("You are passing $null as a value for parameter Name 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.RetentionInDay = this.RetentionInDay; + #if MODULAR + if (this.RetentionInDay == null && ParameterWasBound(nameof(this.RetentionInDay))) + { + WriteWarning("You are passing $null as a value for parameter RetentionInDay 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 + if (this.Tag != null) + { + context.Tag = new Dictionary(StringComparer.Ordinal); + foreach (var hashKey in this.Tag.Keys) + { + context.Tag.Add((String)hashKey, (System.String)(this.Tag[hashKey])); + } + } + + // 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.CleanRoomsML.Model.CreateMLInputChannelRequest(); + + if (cmdletContext.ConfiguredModelAlgorithmAssociation != null) + { + request.ConfiguredModelAlgorithmAssociations = cmdletContext.ConfiguredModelAlgorithmAssociation; + } + if (cmdletContext.Description != null) + { + request.Description = cmdletContext.Description; + } + + // populate InputChannel + var requestInputChannelIsNull = true; + request.InputChannel = new Amazon.CleanRoomsML.Model.InputChannel(); + System.String requestInputChannel_inputChannel_RoleArn = null; + if (cmdletContext.InputChannel_RoleArn != null) + { + requestInputChannel_inputChannel_RoleArn = cmdletContext.InputChannel_RoleArn; + } + if (requestInputChannel_inputChannel_RoleArn != null) + { + request.InputChannel.RoleArn = requestInputChannel_inputChannel_RoleArn; + requestInputChannelIsNull = false; + } + Amazon.CleanRoomsML.Model.InputChannelDataSource requestInputChannel_inputChannel_DataSource = null; + + // populate DataSource + var requestInputChannel_inputChannel_DataSourceIsNull = true; + requestInputChannel_inputChannel_DataSource = new Amazon.CleanRoomsML.Model.InputChannelDataSource(); + Amazon.CleanRoomsML.Model.ProtectedQueryInputParameters requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters = null; + + // populate ProtectedQueryInputParameters + var requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParametersIsNull = true; + requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters = new Amazon.CleanRoomsML.Model.ProtectedQueryInputParameters(); + Amazon.CleanRoomsML.Model.ComputeConfiguration requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration = null; + + // populate ComputeConfiguration + var requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfigurationIsNull = true; + requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration = new Amazon.CleanRoomsML.Model.ComputeConfiguration(); + Amazon.CleanRoomsML.Model.WorkerComputeConfiguration requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_Worker = null; + + // populate Worker + var requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_WorkerIsNull = true; + requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_Worker = new Amazon.CleanRoomsML.Model.WorkerComputeConfiguration(); + System.Int32? requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_Worker_worker_Number = null; + if (cmdletContext.Worker_Number != null) + { + requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_Worker_worker_Number = cmdletContext.Worker_Number.Value; + } + if (requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_Worker_worker_Number != null) + { + requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_Worker.Number = requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_Worker_worker_Number.Value; + requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_WorkerIsNull = false; + } + Amazon.CleanRoomsML.WorkerComputeType requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_Worker_worker_Type = null; + if (cmdletContext.Worker_Type != null) + { + requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_Worker_worker_Type = cmdletContext.Worker_Type; + } + if (requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_Worker_worker_Type != null) + { + requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_Worker.Type = requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_Worker_worker_Type; + requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_WorkerIsNull = false; + } + // determine if requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_Worker should be set to null + if (requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_WorkerIsNull) + { + requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_Worker = null; + } + if (requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_Worker != null) + { + requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration.Worker = requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration_Worker; + requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfigurationIsNull = false; + } + // determine if requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration should be set to null + if (requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfigurationIsNull) + { + requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration = null; + } + if (requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration != null) + { + requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters.ComputeConfiguration = requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_ComputeConfiguration; + requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParametersIsNull = false; + } + Amazon.CleanRoomsML.Model.ProtectedQuerySQLParameters requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_SqlParameters = null; + + // populate SqlParameters + var requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_SqlParametersIsNull = true; + requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_SqlParameters = new Amazon.CleanRoomsML.Model.ProtectedQuerySQLParameters(); + System.String requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_SqlParameters_sqlParameters_AnalysisTemplateArn = null; + if (cmdletContext.SqlParameters_AnalysisTemplateArn != null) + { + requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_SqlParameters_sqlParameters_AnalysisTemplateArn = cmdletContext.SqlParameters_AnalysisTemplateArn; + } + if (requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_SqlParameters_sqlParameters_AnalysisTemplateArn != null) + { + requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_SqlParameters.AnalysisTemplateArn = requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_SqlParameters_sqlParameters_AnalysisTemplateArn; + requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_SqlParametersIsNull = false; + } + Dictionary requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_SqlParameters_sqlParameters_Parameter = null; + if (cmdletContext.SqlParameters_Parameter != null) + { + requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_SqlParameters_sqlParameters_Parameter = cmdletContext.SqlParameters_Parameter; + } + if (requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_SqlParameters_sqlParameters_Parameter != null) + { + requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_SqlParameters.Parameters = requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_SqlParameters_sqlParameters_Parameter; + requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_SqlParametersIsNull = false; + } + System.String requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_SqlParameters_sqlParameters_QueryString = null; + if (cmdletContext.SqlParameters_QueryString != null) + { + requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_SqlParameters_sqlParameters_QueryString = cmdletContext.SqlParameters_QueryString; + } + if (requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_SqlParameters_sqlParameters_QueryString != null) + { + requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_SqlParameters.QueryString = requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_SqlParameters_sqlParameters_QueryString; + requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_SqlParametersIsNull = false; + } + // determine if requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_SqlParameters should be set to null + if (requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_SqlParametersIsNull) + { + requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_SqlParameters = null; + } + if (requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_SqlParameters != null) + { + requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters.SqlParameters = requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters_inputChannel_DataSource_ProtectedQueryInputParameters_SqlParameters; + requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParametersIsNull = false; + } + // determine if requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters should be set to null + if (requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParametersIsNull) + { + requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters = null; + } + if (requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters != null) + { + requestInputChannel_inputChannel_DataSource.ProtectedQueryInputParameters = requestInputChannel_inputChannel_DataSource_inputChannel_DataSource_ProtectedQueryInputParameters; + requestInputChannel_inputChannel_DataSourceIsNull = false; + } + // determine if requestInputChannel_inputChannel_DataSource should be set to null + if (requestInputChannel_inputChannel_DataSourceIsNull) + { + requestInputChannel_inputChannel_DataSource = null; + } + if (requestInputChannel_inputChannel_DataSource != null) + { + request.InputChannel.DataSource = requestInputChannel_inputChannel_DataSource; + requestInputChannelIsNull = false; + } + // determine if request.InputChannel should be set to null + if (requestInputChannelIsNull) + { + request.InputChannel = null; + } + if (cmdletContext.KmsKeyArn != null) + { + request.KmsKeyArn = cmdletContext.KmsKeyArn; + } + if (cmdletContext.MembershipIdentifier != null) + { + request.MembershipIdentifier = cmdletContext.MembershipIdentifier; + } + if (cmdletContext.Name != null) + { + request.Name = cmdletContext.Name; + } + if (cmdletContext.RetentionInDay != null) + { + request.RetentionInDays = cmdletContext.RetentionInDay.Value; + } + if (cmdletContext.Tag != null) + { + request.Tags = cmdletContext.Tag; + } + + 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.CleanRoomsML.Model.CreateMLInputChannelResponse CallAWSServiceOperation(IAmazonCleanRoomsML client, Amazon.CleanRoomsML.Model.CreateMLInputChannelRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "CleanRoomsML", "CreateMLInputChannel"); + try + { + #if DESKTOP + return client.CreateMLInputChannel(request); + #elif CORECLR + return client.CreateMLInputChannelAsync(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 List ConfiguredModelAlgorithmAssociation { get; set; } + public System.String Description { get; set; } + public System.Int32? Worker_Number { get; set; } + public Amazon.CleanRoomsML.WorkerComputeType Worker_Type { get; set; } + public System.String SqlParameters_AnalysisTemplateArn { get; set; } + public Dictionary SqlParameters_Parameter { get; set; } + public System.String SqlParameters_QueryString { get; set; } + public System.String InputChannel_RoleArn { get; set; } + public System.String KmsKeyArn { get; set; } + public System.String MembershipIdentifier { get; set; } + public System.String Name { get; set; } + public System.Int32? RetentionInDay { get; set; } + public Dictionary Tag { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => response.MlInputChannelArn; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/New-CRMLTrainedModel-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/New-CRMLTrainedModel-Cmdlet.cs new file mode 100644 index 0000000000..ab74bfe33c --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/New-CRMLTrainedModel-Cmdlet.cs @@ -0,0 +1,537 @@ +/******************************************************************************* + * 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.CleanRoomsML; +using Amazon.CleanRoomsML.Model; + +namespace Amazon.PowerShell.Cmdlets.CRML +{ + /// + /// Creates a trained model from an associated configured model algorithm using data from + /// any member of the collaboration. + /// + [Cmdlet("New", "CRMLTrainedModel", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType("System.String")] + [AWSCmdlet("Calls the CleanRoomsML CreateTrainedModel API operation.", Operation = new[] {"CreateTrainedModel"}, SelectReturnType = typeof(Amazon.CleanRoomsML.Model.CreateTrainedModelResponse))] + [AWSCmdletOutput("System.String or Amazon.CleanRoomsML.Model.CreateTrainedModelResponse", + "This cmdlet returns a System.String object.", + "The service call response (type Amazon.CleanRoomsML.Model.CreateTrainedModelResponse) can be returned by specifying '-Select *'." + )] + public partial class NewCRMLTrainedModelCmdlet : AmazonCleanRoomsMLClientCmdlet, IExecutor + { + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter ConfiguredModelAlgorithmAssociationArn + /// + /// + /// The associated configured model algorithm used to train this model. + /// + /// + #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 ConfiguredModelAlgorithmAssociationArn { get; set; } + #endregion + + #region Parameter DataChannel + /// + /// + /// Defines the data channels that are used as input for the trained model request. + /// + /// + #if !MODULAR + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + #else + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)] + [System.Management.Automation.AllowEmptyCollection] + [System.Management.Automation.AllowNull] + #endif + [Amazon.PowerShell.Common.AWSRequiredParameter] + [Alias("DataChannels")] + public Amazon.CleanRoomsML.Model.ModelTrainingDataChannel[] DataChannel { get; set; } + #endregion + + #region Parameter Description + /// + /// + /// The description of the trained model. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String Description { get; set; } + #endregion + + #region Parameter Environment + /// + /// + /// The environment variables to set in the Docker container. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.Collections.Hashtable Environment { get; set; } + #endregion + + #region Parameter Hyperparameter + /// + /// + /// Algorithm-specific parameters that influence the quality of the model. You set hyperparameters + /// before you start the learning process. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("Hyperparameters")] + public System.Collections.Hashtable Hyperparameter { get; set; } + #endregion + + #region Parameter ResourceConfig_InstanceCount + /// + /// + /// The number of resources that are used to train the model. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.Int32? ResourceConfig_InstanceCount { get; set; } + #endregion + + #region Parameter ResourceConfig_InstanceType + /// + /// + /// The instance type that is used to train the model. + /// + /// + #if !MODULAR + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + #else + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)] + [System.Management.Automation.AllowNull] + #endif + [Amazon.PowerShell.Common.AWSRequiredParameter] + [AWSConstantClassSource("Amazon.CleanRoomsML.InstanceType")] + public Amazon.CleanRoomsML.InstanceType ResourceConfig_InstanceType { get; set; } + #endregion + + #region Parameter KmsKeyArn + /// + /// + /// The Amazon Resource Name (ARN) of the KMS key. This key is used to encrypt and decrypt + /// customer-owned data in the trained ML model and the associated data. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String KmsKeyArn { get; set; } + #endregion + + #region Parameter StoppingCondition_MaxRuntimeInSecond + /// + /// + /// The maximum amount of time, in seconds, that model training can run before it is terminated. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("StoppingCondition_MaxRuntimeInSeconds")] + public System.Int32? StoppingCondition_MaxRuntimeInSecond { get; set; } + #endregion + + #region Parameter MembershipIdentifier + /// + /// + /// The membership ID of the member that is creating the trained model. + /// + /// + #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 MembershipIdentifier { get; set; } + #endregion + + #region Parameter Name + /// + /// + /// The name of the trained model. + /// + /// + #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 Name { get; set; } + #endregion + + #region Parameter Tag + /// + /// + /// The optional metadata that you apply to the resource to help you categorize and organize + /// them. Each tag consists of a key and an optional value, both of which you define.The following basic restrictions apply to tags:
  • Maximum number of tags per resource - 50.
  • For each resource, each tag key must be unique, and each tag key can have only one + /// value.
  • Maximum key length - 128 Unicode characters in UTF-8.
  • Maximum value length - 256 Unicode characters in UTF-8.
  • If your tagging schema is used across multiple services and resources, remember that + /// other services may have restrictions on allowed characters. Generally allowed characters + /// are: letters, numbers, and spaces representable in UTF-8, and the following characters: + /// + - = . _ : / @.
  • Tag keys and values are case sensitive.
  • Do not use aws:, AWS:, or any upper or lowercase combination of such as a prefix for + /// keys as it is reserved for AWS use. You cannot edit or delete tag keys with this prefix. + /// Values can have this prefix. If a tag value has aws as its prefix but the key does + /// not, then Clean Rooms ML considers it to be a user tag and will count against the + /// limit of 50 tags. Tags with only the key prefix of aws do not count against your tags + /// per resource limit.
+ ///
+ ///
+ [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("Tags")] + public System.Collections.Hashtable Tag { get; set; } + #endregion + + #region Parameter ResourceConfig_VolumeSizeInGB + /// + /// + /// The maximum size of the instance that is used to train the model. + /// + /// + #if !MODULAR + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + #else + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)] + [System.Management.Automation.AllowNull] + #endif + [Amazon.PowerShell.Common.AWSRequiredParameter] + public System.Int32? ResourceConfig_VolumeSizeInGB { get; set; } + #endregion + + #region Parameter Select + /// + /// Use the -Select parameter to control the cmdlet output. The default value is 'TrainedModelArn'. + /// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.CleanRoomsML.Model.CreateTrainedModelResponse). + /// Specifying the name of a property of type Amazon.CleanRoomsML.Model.CreateTrainedModelResponse 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; } = "TrainedModelArn"; + #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 = string.Empty; + if (!ConfirmShouldProceed(this.Force.IsPresent, resourceIdentifiersText, "New-CRMLTrainedModel (CreateTrainedModel)")) + { + return; + } + + var context = new CmdletContext(); + + // allow for manipulation of parameters prior to loading into context + PreExecutionContextLoad(context); + + if (ParameterWasBound(nameof(this.Select))) + { + context.Select = CreateSelectDelegate(Select) ?? + throw new System.ArgumentException("Invalid value for -Select parameter.", nameof(this.Select)); + } + context.ConfiguredModelAlgorithmAssociationArn = this.ConfiguredModelAlgorithmAssociationArn; + #if MODULAR + if (this.ConfiguredModelAlgorithmAssociationArn == null && ParameterWasBound(nameof(this.ConfiguredModelAlgorithmAssociationArn))) + { + WriteWarning("You are passing $null as a value for parameter ConfiguredModelAlgorithmAssociationArn 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 + if (this.DataChannel != null) + { + context.DataChannel = new List(this.DataChannel); + } + #if MODULAR + if (this.DataChannel == null && ParameterWasBound(nameof(this.DataChannel))) + { + WriteWarning("You are passing $null as a value for parameter DataChannel 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.Description = this.Description; + if (this.Environment != null) + { + context.Environment = new Dictionary(StringComparer.Ordinal); + foreach (var hashKey in this.Environment.Keys) + { + context.Environment.Add((String)hashKey, (System.String)(this.Environment[hashKey])); + } + } + if (this.Hyperparameter != null) + { + context.Hyperparameter = new Dictionary(StringComparer.Ordinal); + foreach (var hashKey in this.Hyperparameter.Keys) + { + context.Hyperparameter.Add((String)hashKey, (System.String)(this.Hyperparameter[hashKey])); + } + } + context.KmsKeyArn = this.KmsKeyArn; + context.MembershipIdentifier = this.MembershipIdentifier; + #if MODULAR + if (this.MembershipIdentifier == null && ParameterWasBound(nameof(this.MembershipIdentifier))) + { + WriteWarning("You are passing $null as a value for parameter MembershipIdentifier 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.Name = this.Name; + #if MODULAR + if (this.Name == null && ParameterWasBound(nameof(this.Name))) + { + WriteWarning("You are passing $null as a value for parameter Name 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.ResourceConfig_InstanceCount = this.ResourceConfig_InstanceCount; + context.ResourceConfig_InstanceType = this.ResourceConfig_InstanceType; + #if MODULAR + if (this.ResourceConfig_InstanceType == null && ParameterWasBound(nameof(this.ResourceConfig_InstanceType))) + { + WriteWarning("You are passing $null as a value for parameter ResourceConfig_InstanceType 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.ResourceConfig_VolumeSizeInGB = this.ResourceConfig_VolumeSizeInGB; + #if MODULAR + if (this.ResourceConfig_VolumeSizeInGB == null && ParameterWasBound(nameof(this.ResourceConfig_VolumeSizeInGB))) + { + WriteWarning("You are passing $null as a value for parameter ResourceConfig_VolumeSizeInGB 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.StoppingCondition_MaxRuntimeInSecond = this.StoppingCondition_MaxRuntimeInSecond; + if (this.Tag != null) + { + context.Tag = new Dictionary(StringComparer.Ordinal); + foreach (var hashKey in this.Tag.Keys) + { + context.Tag.Add((String)hashKey, (System.String)(this.Tag[hashKey])); + } + } + + // 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.CleanRoomsML.Model.CreateTrainedModelRequest(); + + if (cmdletContext.ConfiguredModelAlgorithmAssociationArn != null) + { + request.ConfiguredModelAlgorithmAssociationArn = cmdletContext.ConfiguredModelAlgorithmAssociationArn; + } + if (cmdletContext.DataChannel != null) + { + request.DataChannels = cmdletContext.DataChannel; + } + if (cmdletContext.Description != null) + { + request.Description = cmdletContext.Description; + } + if (cmdletContext.Environment != null) + { + request.Environment = cmdletContext.Environment; + } + if (cmdletContext.Hyperparameter != null) + { + request.Hyperparameters = cmdletContext.Hyperparameter; + } + if (cmdletContext.KmsKeyArn != null) + { + request.KmsKeyArn = cmdletContext.KmsKeyArn; + } + if (cmdletContext.MembershipIdentifier != null) + { + request.MembershipIdentifier = cmdletContext.MembershipIdentifier; + } + if (cmdletContext.Name != null) + { + request.Name = cmdletContext.Name; + } + + // populate ResourceConfig + var requestResourceConfigIsNull = true; + request.ResourceConfig = new Amazon.CleanRoomsML.Model.ResourceConfig(); + System.Int32? requestResourceConfig_resourceConfig_InstanceCount = null; + if (cmdletContext.ResourceConfig_InstanceCount != null) + { + requestResourceConfig_resourceConfig_InstanceCount = cmdletContext.ResourceConfig_InstanceCount.Value; + } + if (requestResourceConfig_resourceConfig_InstanceCount != null) + { + request.ResourceConfig.InstanceCount = requestResourceConfig_resourceConfig_InstanceCount.Value; + requestResourceConfigIsNull = false; + } + Amazon.CleanRoomsML.InstanceType requestResourceConfig_resourceConfig_InstanceType = null; + if (cmdletContext.ResourceConfig_InstanceType != null) + { + requestResourceConfig_resourceConfig_InstanceType = cmdletContext.ResourceConfig_InstanceType; + } + if (requestResourceConfig_resourceConfig_InstanceType != null) + { + request.ResourceConfig.InstanceType = requestResourceConfig_resourceConfig_InstanceType; + requestResourceConfigIsNull = false; + } + System.Int32? requestResourceConfig_resourceConfig_VolumeSizeInGB = null; + if (cmdletContext.ResourceConfig_VolumeSizeInGB != null) + { + requestResourceConfig_resourceConfig_VolumeSizeInGB = cmdletContext.ResourceConfig_VolumeSizeInGB.Value; + } + if (requestResourceConfig_resourceConfig_VolumeSizeInGB != null) + { + request.ResourceConfig.VolumeSizeInGB = requestResourceConfig_resourceConfig_VolumeSizeInGB.Value; + requestResourceConfigIsNull = false; + } + // determine if request.ResourceConfig should be set to null + if (requestResourceConfigIsNull) + { + request.ResourceConfig = null; + } + + // populate StoppingCondition + var requestStoppingConditionIsNull = true; + request.StoppingCondition = new Amazon.CleanRoomsML.Model.StoppingCondition(); + System.Int32? requestStoppingCondition_stoppingCondition_MaxRuntimeInSecond = null; + if (cmdletContext.StoppingCondition_MaxRuntimeInSecond != null) + { + requestStoppingCondition_stoppingCondition_MaxRuntimeInSecond = cmdletContext.StoppingCondition_MaxRuntimeInSecond.Value; + } + if (requestStoppingCondition_stoppingCondition_MaxRuntimeInSecond != null) + { + request.StoppingCondition.MaxRuntimeInSeconds = requestStoppingCondition_stoppingCondition_MaxRuntimeInSecond.Value; + requestStoppingConditionIsNull = false; + } + // determine if request.StoppingCondition should be set to null + if (requestStoppingConditionIsNull) + { + request.StoppingCondition = null; + } + if (cmdletContext.Tag != null) + { + request.Tags = cmdletContext.Tag; + } + + 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.CleanRoomsML.Model.CreateTrainedModelResponse CallAWSServiceOperation(IAmazonCleanRoomsML client, Amazon.CleanRoomsML.Model.CreateTrainedModelRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "CleanRoomsML", "CreateTrainedModel"); + try + { + #if DESKTOP + return client.CreateTrainedModel(request); + #elif CORECLR + return client.CreateTrainedModelAsync(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 ConfiguredModelAlgorithmAssociationArn { get; set; } + public List DataChannel { get; set; } + public System.String Description { get; set; } + public Dictionary Environment { get; set; } + public Dictionary Hyperparameter { get; set; } + public System.String KmsKeyArn { get; set; } + public System.String MembershipIdentifier { get; set; } + public System.String Name { get; set; } + public System.Int32? ResourceConfig_InstanceCount { get; set; } + public Amazon.CleanRoomsML.InstanceType ResourceConfig_InstanceType { get; set; } + public System.Int32? ResourceConfig_VolumeSizeInGB { get; set; } + public System.Int32? StoppingCondition_MaxRuntimeInSecond { get; set; } + public Dictionary Tag { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => response.TrainedModelArn; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Remove-CRMLConfiguredModelAlgorithm-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Remove-CRMLConfiguredModelAlgorithm-Cmdlet.cs new file mode 100644 index 0000000000..86d330855f --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Remove-CRMLConfiguredModelAlgorithm-Cmdlet.cs @@ -0,0 +1,218 @@ +/******************************************************************************* + * 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.CleanRoomsML; +using Amazon.CleanRoomsML.Model; + +namespace Amazon.PowerShell.Cmdlets.CRML +{ + /// + /// Deletes a configured model algorithm. + /// + [Cmdlet("Remove", "CRMLConfiguredModelAlgorithm", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType("None")] + [AWSCmdlet("Calls the CleanRoomsML DeleteConfiguredModelAlgorithm API operation.", Operation = new[] {"DeleteConfiguredModelAlgorithm"}, SelectReturnType = typeof(Amazon.CleanRoomsML.Model.DeleteConfiguredModelAlgorithmResponse))] + [AWSCmdletOutput("None or Amazon.CleanRoomsML.Model.DeleteConfiguredModelAlgorithmResponse", + "This cmdlet does not generate any output." + + "The service response (type Amazon.CleanRoomsML.Model.DeleteConfiguredModelAlgorithmResponse) be returned by specifying '-Select *'." + )] + public partial class RemoveCRMLConfiguredModelAlgorithmCmdlet : AmazonCleanRoomsMLClientCmdlet, IExecutor + { + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter ConfiguredModelAlgorithmArn + /// + /// + /// The Amazon Resource Name (ARN) of the configured model algorithm that you want to + /// delete. + /// + /// + #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 ConfiguredModelAlgorithmArn { get; set; } + #endregion + + #region Parameter Select + /// + /// Use the -Select parameter to control the cmdlet output. The cmdlet doesn't have a return value by default. + /// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.CleanRoomsML.Model.DeleteConfiguredModelAlgorithmResponse). + /// 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 ConfiguredModelAlgorithmArn parameter. + /// The -PassThru parameter is deprecated, use -Select '^ConfiguredModelAlgorithmArn' instead. This parameter will be removed in a future version. + /// + [System.Obsolete("The -PassThru parameter is deprecated, use -Select '^ConfiguredModelAlgorithmArn' 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.ConfiguredModelAlgorithmArn), MyInvocation.BoundParameters); + if (!ConfirmShouldProceed(this.Force.IsPresent, resourceIdentifiersText, "Remove-CRMLConfiguredModelAlgorithm (DeleteConfiguredModelAlgorithm)")) + { + 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.ConfiguredModelAlgorithmArn; + } + #pragma warning restore CS0618, CS0612 //A class member was marked with the Obsolete attribute + context.ConfiguredModelAlgorithmArn = this.ConfiguredModelAlgorithmArn; + #if MODULAR + if (this.ConfiguredModelAlgorithmArn == null && ParameterWasBound(nameof(this.ConfiguredModelAlgorithmArn))) + { + WriteWarning("You are passing $null as a value for parameter ConfiguredModelAlgorithmArn 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.CleanRoomsML.Model.DeleteConfiguredModelAlgorithmRequest(); + + if (cmdletContext.ConfiguredModelAlgorithmArn != null) + { + request.ConfiguredModelAlgorithmArn = cmdletContext.ConfiguredModelAlgorithmArn; + } + + 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.CleanRoomsML.Model.DeleteConfiguredModelAlgorithmResponse CallAWSServiceOperation(IAmazonCleanRoomsML client, Amazon.CleanRoomsML.Model.DeleteConfiguredModelAlgorithmRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "CleanRoomsML", "DeleteConfiguredModelAlgorithm"); + try + { + #if DESKTOP + return client.DeleteConfiguredModelAlgorithm(request); + #elif CORECLR + return client.DeleteConfiguredModelAlgorithmAsync(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 ConfiguredModelAlgorithmArn { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => null; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Remove-CRMLConfiguredModelAlgorithmAssociation-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Remove-CRMLConfiguredModelAlgorithmAssociation-Cmdlet.cs new file mode 100644 index 0000000000..5eaae30b75 --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Remove-CRMLConfiguredModelAlgorithmAssociation-Cmdlet.cs @@ -0,0 +1,227 @@ +/******************************************************************************* + * 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.CleanRoomsML; +using Amazon.CleanRoomsML.Model; + +namespace Amazon.PowerShell.Cmdlets.CRML +{ + /// + /// Deletes a configured model algorithm association. + /// + [Cmdlet("Remove", "CRMLConfiguredModelAlgorithmAssociation", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType("None")] + [AWSCmdlet("Calls the CleanRoomsML DeleteConfiguredModelAlgorithmAssociation API operation.", Operation = new[] {"DeleteConfiguredModelAlgorithmAssociation"}, SelectReturnType = typeof(Amazon.CleanRoomsML.Model.DeleteConfiguredModelAlgorithmAssociationResponse))] + [AWSCmdletOutput("None or Amazon.CleanRoomsML.Model.DeleteConfiguredModelAlgorithmAssociationResponse", + "This cmdlet does not generate any output." + + "The service response (type Amazon.CleanRoomsML.Model.DeleteConfiguredModelAlgorithmAssociationResponse) be returned by specifying '-Select *'." + )] + public partial class RemoveCRMLConfiguredModelAlgorithmAssociationCmdlet : AmazonCleanRoomsMLClientCmdlet, IExecutor + { + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter ConfiguredModelAlgorithmAssociationArn + /// + /// + /// The Amazon Resource Name (ARN) of the configured model algorithm association that + /// you want to delete. + /// + /// + #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 ConfiguredModelAlgorithmAssociationArn { get; set; } + #endregion + + #region Parameter MembershipIdentifier + /// + /// + /// The membership ID of the member that is deleting the configured model algorithm association. + /// + /// + #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 MembershipIdentifier { get; set; } + #endregion + + #region Parameter Select + /// + /// Use the -Select parameter to control the cmdlet output. The cmdlet doesn't have a return value by default. + /// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.CleanRoomsML.Model.DeleteConfiguredModelAlgorithmAssociationResponse). + /// 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 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 = string.Empty; + if (!ConfirmShouldProceed(this.Force.IsPresent, resourceIdentifiersText, "Remove-CRMLConfiguredModelAlgorithmAssociation (DeleteConfiguredModelAlgorithmAssociation)")) + { + return; + } + + var context = new CmdletContext(); + + // allow for manipulation of parameters prior to loading into context + PreExecutionContextLoad(context); + + if (ParameterWasBound(nameof(this.Select))) + { + context.Select = CreateSelectDelegate(Select) ?? + throw new System.ArgumentException("Invalid value for -Select parameter.", nameof(this.Select)); + } + context.ConfiguredModelAlgorithmAssociationArn = this.ConfiguredModelAlgorithmAssociationArn; + #if MODULAR + if (this.ConfiguredModelAlgorithmAssociationArn == null && ParameterWasBound(nameof(this.ConfiguredModelAlgorithmAssociationArn))) + { + WriteWarning("You are passing $null as a value for parameter ConfiguredModelAlgorithmAssociationArn 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.MembershipIdentifier = this.MembershipIdentifier; + #if MODULAR + if (this.MembershipIdentifier == null && ParameterWasBound(nameof(this.MembershipIdentifier))) + { + WriteWarning("You are passing $null as a value for parameter MembershipIdentifier 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.CleanRoomsML.Model.DeleteConfiguredModelAlgorithmAssociationRequest(); + + if (cmdletContext.ConfiguredModelAlgorithmAssociationArn != null) + { + request.ConfiguredModelAlgorithmAssociationArn = cmdletContext.ConfiguredModelAlgorithmAssociationArn; + } + if (cmdletContext.MembershipIdentifier != null) + { + request.MembershipIdentifier = cmdletContext.MembershipIdentifier; + } + + 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.CleanRoomsML.Model.DeleteConfiguredModelAlgorithmAssociationResponse CallAWSServiceOperation(IAmazonCleanRoomsML client, Amazon.CleanRoomsML.Model.DeleteConfiguredModelAlgorithmAssociationRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "CleanRoomsML", "DeleteConfiguredModelAlgorithmAssociation"); + try + { + #if DESKTOP + return client.DeleteConfiguredModelAlgorithmAssociation(request); + #elif CORECLR + return client.DeleteConfiguredModelAlgorithmAssociationAsync(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 ConfiguredModelAlgorithmAssociationArn { get; set; } + public System.String MembershipIdentifier { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => null; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Remove-CRMLMLConfiguration-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Remove-CRMLMLConfiguration-Cmdlet.cs new file mode 100644 index 0000000000..59715029f7 --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Remove-CRMLMLConfiguration-Cmdlet.cs @@ -0,0 +1,217 @@ +/******************************************************************************* + * 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.CleanRoomsML; +using Amazon.CleanRoomsML.Model; + +namespace Amazon.PowerShell.Cmdlets.CRML +{ + /// + /// Deletes a ML modeling configuration. + /// + [Cmdlet("Remove", "CRMLMLConfiguration", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType("None")] + [AWSCmdlet("Calls the CleanRoomsML DeleteMLConfiguration API operation.", Operation = new[] {"DeleteMLConfiguration"}, SelectReturnType = typeof(Amazon.CleanRoomsML.Model.DeleteMLConfigurationResponse))] + [AWSCmdletOutput("None or Amazon.CleanRoomsML.Model.DeleteMLConfigurationResponse", + "This cmdlet does not generate any output." + + "The service response (type Amazon.CleanRoomsML.Model.DeleteMLConfigurationResponse) be returned by specifying '-Select *'." + )] + public partial class RemoveCRMLMLConfigurationCmdlet : AmazonCleanRoomsMLClientCmdlet, IExecutor + { + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter MembershipIdentifier + /// + /// + /// The membership ID of the of the member that is deleting the ML modeling configuration. + /// + /// + #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 MembershipIdentifier { get; set; } + #endregion + + #region Parameter Select + /// + /// Use the -Select parameter to control the cmdlet output. The cmdlet doesn't have a return value by default. + /// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.CleanRoomsML.Model.DeleteMLConfigurationResponse). + /// 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 MembershipIdentifier parameter. + /// The -PassThru parameter is deprecated, use -Select '^MembershipIdentifier' instead. This parameter will be removed in a future version. + /// + [System.Obsolete("The -PassThru parameter is deprecated, use -Select '^MembershipIdentifier' 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.MembershipIdentifier), MyInvocation.BoundParameters); + if (!ConfirmShouldProceed(this.Force.IsPresent, resourceIdentifiersText, "Remove-CRMLMLConfiguration (DeleteMLConfiguration)")) + { + 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.MembershipIdentifier; + } + #pragma warning restore CS0618, CS0612 //A class member was marked with the Obsolete attribute + context.MembershipIdentifier = this.MembershipIdentifier; + #if MODULAR + if (this.MembershipIdentifier == null && ParameterWasBound(nameof(this.MembershipIdentifier))) + { + WriteWarning("You are passing $null as a value for parameter MembershipIdentifier 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.CleanRoomsML.Model.DeleteMLConfigurationRequest(); + + if (cmdletContext.MembershipIdentifier != null) + { + request.MembershipIdentifier = cmdletContext.MembershipIdentifier; + } + + 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.CleanRoomsML.Model.DeleteMLConfigurationResponse CallAWSServiceOperation(IAmazonCleanRoomsML client, Amazon.CleanRoomsML.Model.DeleteMLConfigurationRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "CleanRoomsML", "DeleteMLConfiguration"); + try + { + #if DESKTOP + return client.DeleteMLConfiguration(request); + #elif CORECLR + return client.DeleteMLConfigurationAsync(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 MembershipIdentifier { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => null; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Remove-CRMLMLInputChannelData-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Remove-CRMLMLInputChannelData-Cmdlet.cs new file mode 100644 index 0000000000..f9a390aaf4 --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Remove-CRMLMLInputChannelData-Cmdlet.cs @@ -0,0 +1,227 @@ +/******************************************************************************* + * 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.CleanRoomsML; +using Amazon.CleanRoomsML.Model; + +namespace Amazon.PowerShell.Cmdlets.CRML +{ + /// + /// Provides the information necessary to delete an ML input channel. + /// + [Cmdlet("Remove", "CRMLMLInputChannelData", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType("None")] + [AWSCmdlet("Calls the CleanRoomsML DeleteMLInputChannelData API operation.", Operation = new[] {"DeleteMLInputChannelData"}, SelectReturnType = typeof(Amazon.CleanRoomsML.Model.DeleteMLInputChannelDataResponse))] + [AWSCmdletOutput("None or Amazon.CleanRoomsML.Model.DeleteMLInputChannelDataResponse", + "This cmdlet does not generate any output." + + "The service response (type Amazon.CleanRoomsML.Model.DeleteMLInputChannelDataResponse) be returned by specifying '-Select *'." + )] + public partial class RemoveCRMLMLInputChannelDataCmdlet : AmazonCleanRoomsMLClientCmdlet, IExecutor + { + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter MembershipIdentifier + /// + /// + /// The membership ID of the membership that contains the ML input channel you want to + /// delete. + /// + /// + #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 MembershipIdentifier { get; set; } + #endregion + + #region Parameter MlInputChannelArn + /// + /// + /// The Amazon Resource Name (ARN) of the ML input channel that you want to delete. + /// + /// + #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 MlInputChannelArn { get; set; } + #endregion + + #region Parameter Select + /// + /// Use the -Select parameter to control the cmdlet output. The cmdlet doesn't have a return value by default. + /// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.CleanRoomsML.Model.DeleteMLInputChannelDataResponse). + /// 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 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 = string.Empty; + if (!ConfirmShouldProceed(this.Force.IsPresent, resourceIdentifiersText, "Remove-CRMLMLInputChannelData (DeleteMLInputChannelData)")) + { + return; + } + + var context = new CmdletContext(); + + // allow for manipulation of parameters prior to loading into context + PreExecutionContextLoad(context); + + if (ParameterWasBound(nameof(this.Select))) + { + context.Select = CreateSelectDelegate(Select) ?? + throw new System.ArgumentException("Invalid value for -Select parameter.", nameof(this.Select)); + } + context.MembershipIdentifier = this.MembershipIdentifier; + #if MODULAR + if (this.MembershipIdentifier == null && ParameterWasBound(nameof(this.MembershipIdentifier))) + { + WriteWarning("You are passing $null as a value for parameter MembershipIdentifier 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.MlInputChannelArn = this.MlInputChannelArn; + #if MODULAR + if (this.MlInputChannelArn == null && ParameterWasBound(nameof(this.MlInputChannelArn))) + { + WriteWarning("You are passing $null as a value for parameter MlInputChannelArn 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.CleanRoomsML.Model.DeleteMLInputChannelDataRequest(); + + if (cmdletContext.MembershipIdentifier != null) + { + request.MembershipIdentifier = cmdletContext.MembershipIdentifier; + } + if (cmdletContext.MlInputChannelArn != null) + { + request.MlInputChannelArn = cmdletContext.MlInputChannelArn; + } + + 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.CleanRoomsML.Model.DeleteMLInputChannelDataResponse CallAWSServiceOperation(IAmazonCleanRoomsML client, Amazon.CleanRoomsML.Model.DeleteMLInputChannelDataRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "CleanRoomsML", "DeleteMLInputChannelData"); + try + { + #if DESKTOP + return client.DeleteMLInputChannelData(request); + #elif CORECLR + return client.DeleteMLInputChannelDataAsync(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 MembershipIdentifier { get; set; } + public System.String MlInputChannelArn { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => null; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Remove-CRMLTrainedModelOutput-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Remove-CRMLTrainedModelOutput-Cmdlet.cs new file mode 100644 index 0000000000..0c3056013b --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Remove-CRMLTrainedModelOutput-Cmdlet.cs @@ -0,0 +1,226 @@ +/******************************************************************************* + * 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.CleanRoomsML; +using Amazon.CleanRoomsML.Model; + +namespace Amazon.PowerShell.Cmdlets.CRML +{ + /// + /// Deletes the output of a trained model. + /// + [Cmdlet("Remove", "CRMLTrainedModelOutput", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType("None")] + [AWSCmdlet("Calls the CleanRoomsML DeleteTrainedModelOutput API operation.", Operation = new[] {"DeleteTrainedModelOutput"}, SelectReturnType = typeof(Amazon.CleanRoomsML.Model.DeleteTrainedModelOutputResponse))] + [AWSCmdletOutput("None or Amazon.CleanRoomsML.Model.DeleteTrainedModelOutputResponse", + "This cmdlet does not generate any output." + + "The service response (type Amazon.CleanRoomsML.Model.DeleteTrainedModelOutputResponse) be returned by specifying '-Select *'." + )] + public partial class RemoveCRMLTrainedModelOutputCmdlet : AmazonCleanRoomsMLClientCmdlet, IExecutor + { + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter MembershipIdentifier + /// + /// + /// The membership ID of the member that is deleting the trained model output. + /// + /// + #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 MembershipIdentifier { get; set; } + #endregion + + #region Parameter TrainedModelArn + /// + /// + /// The Amazon Resource Name (ARN) of the trained model whose output you want to delete. + /// + /// + #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 TrainedModelArn { get; set; } + #endregion + + #region Parameter Select + /// + /// Use the -Select parameter to control the cmdlet output. The cmdlet doesn't have a return value by default. + /// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.CleanRoomsML.Model.DeleteTrainedModelOutputResponse). + /// 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 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 = string.Empty; + if (!ConfirmShouldProceed(this.Force.IsPresent, resourceIdentifiersText, "Remove-CRMLTrainedModelOutput (DeleteTrainedModelOutput)")) + { + return; + } + + var context = new CmdletContext(); + + // allow for manipulation of parameters prior to loading into context + PreExecutionContextLoad(context); + + if (ParameterWasBound(nameof(this.Select))) + { + context.Select = CreateSelectDelegate(Select) ?? + throw new System.ArgumentException("Invalid value for -Select parameter.", nameof(this.Select)); + } + context.MembershipIdentifier = this.MembershipIdentifier; + #if MODULAR + if (this.MembershipIdentifier == null && ParameterWasBound(nameof(this.MembershipIdentifier))) + { + WriteWarning("You are passing $null as a value for parameter MembershipIdentifier 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.TrainedModelArn = this.TrainedModelArn; + #if MODULAR + if (this.TrainedModelArn == null && ParameterWasBound(nameof(this.TrainedModelArn))) + { + WriteWarning("You are passing $null as a value for parameter TrainedModelArn 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.CleanRoomsML.Model.DeleteTrainedModelOutputRequest(); + + if (cmdletContext.MembershipIdentifier != null) + { + request.MembershipIdentifier = cmdletContext.MembershipIdentifier; + } + if (cmdletContext.TrainedModelArn != null) + { + request.TrainedModelArn = cmdletContext.TrainedModelArn; + } + + 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.CleanRoomsML.Model.DeleteTrainedModelOutputResponse CallAWSServiceOperation(IAmazonCleanRoomsML client, Amazon.CleanRoomsML.Model.DeleteTrainedModelOutputRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "CleanRoomsML", "DeleteTrainedModelOutput"); + try + { + #if DESKTOP + return client.DeleteTrainedModelOutput(request); + #elif CORECLR + return client.DeleteTrainedModelOutputAsync(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 MembershipIdentifier { get; set; } + public System.String TrainedModelArn { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => null; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Start-CRMLTrainedModelExportJob-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Start-CRMLTrainedModelExportJob-Cmdlet.cs new file mode 100644 index 0000000000..616a4a5a63 --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Start-CRMLTrainedModelExportJob-Cmdlet.cs @@ -0,0 +1,319 @@ +/******************************************************************************* + * 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.CleanRoomsML; +using Amazon.CleanRoomsML.Model; + +namespace Amazon.PowerShell.Cmdlets.CRML +{ + /// + /// Provides the information necessary to start a trained model export job. + /// + [Cmdlet("Start", "CRMLTrainedModelExportJob", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType("None")] + [AWSCmdlet("Calls the CleanRoomsML StartTrainedModelExportJob API operation.", Operation = new[] {"StartTrainedModelExportJob"}, SelectReturnType = typeof(Amazon.CleanRoomsML.Model.StartTrainedModelExportJobResponse))] + [AWSCmdletOutput("None or Amazon.CleanRoomsML.Model.StartTrainedModelExportJobResponse", + "This cmdlet does not generate any output." + + "The service response (type Amazon.CleanRoomsML.Model.StartTrainedModelExportJobResponse) be returned by specifying '-Select *'." + )] + public partial class StartCRMLTrainedModelExportJobCmdlet : AmazonCleanRoomsMLClientCmdlet, IExecutor + { + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter Description + /// + /// + /// The description of the trained model export job. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String Description { get; set; } + #endregion + + #region Parameter OutputConfiguration_Member + /// + /// + /// The members that will received the exported trained model output. + /// + /// + #if !MODULAR + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + #else + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)] + [System.Management.Automation.AllowEmptyCollection] + [System.Management.Automation.AllowNull] + #endif + [Amazon.PowerShell.Common.AWSRequiredParameter] + [Alias("OutputConfiguration_Members")] + public Amazon.CleanRoomsML.Model.TrainedModelExportReceiverMember[] OutputConfiguration_Member { get; set; } + #endregion + + #region Parameter MembershipIdentifier + /// + /// + /// The membership ID of the member that is receiving the exported trained model artifacts. + /// + /// + #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 MembershipIdentifier { get; set; } + #endregion + + #region Parameter Name + /// + /// + /// The name of the trained model export job. + /// + /// + #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 Name { get; set; } + #endregion + + #region Parameter TrainedModelArn + /// + /// + /// The Amazon Resource Name (ARN) of the trained model that you want to export. + /// + /// + #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 TrainedModelArn { get; set; } + #endregion + + #region Parameter Select + /// + /// Use the -Select parameter to control the cmdlet output. The cmdlet doesn't have a return value by default. + /// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.CleanRoomsML.Model.StartTrainedModelExportJobResponse). + /// 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 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 = string.Empty; + if (!ConfirmShouldProceed(this.Force.IsPresent, resourceIdentifiersText, "Start-CRMLTrainedModelExportJob (StartTrainedModelExportJob)")) + { + return; + } + + var context = new CmdletContext(); + + // allow for manipulation of parameters prior to loading into context + PreExecutionContextLoad(context); + + if (ParameterWasBound(nameof(this.Select))) + { + context.Select = CreateSelectDelegate(Select) ?? + throw new System.ArgumentException("Invalid value for -Select parameter.", nameof(this.Select)); + } + context.Description = this.Description; + context.MembershipIdentifier = this.MembershipIdentifier; + #if MODULAR + if (this.MembershipIdentifier == null && ParameterWasBound(nameof(this.MembershipIdentifier))) + { + WriteWarning("You are passing $null as a value for parameter MembershipIdentifier 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.Name = this.Name; + #if MODULAR + if (this.Name == null && ParameterWasBound(nameof(this.Name))) + { + WriteWarning("You are passing $null as a value for parameter Name 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 + if (this.OutputConfiguration_Member != null) + { + context.OutputConfiguration_Member = new List(this.OutputConfiguration_Member); + } + #if MODULAR + if (this.OutputConfiguration_Member == null && ParameterWasBound(nameof(this.OutputConfiguration_Member))) + { + WriteWarning("You are passing $null as a value for parameter OutputConfiguration_Member 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.TrainedModelArn = this.TrainedModelArn; + #if MODULAR + if (this.TrainedModelArn == null && ParameterWasBound(nameof(this.TrainedModelArn))) + { + WriteWarning("You are passing $null as a value for parameter TrainedModelArn 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.CleanRoomsML.Model.StartTrainedModelExportJobRequest(); + + if (cmdletContext.Description != null) + { + request.Description = cmdletContext.Description; + } + if (cmdletContext.MembershipIdentifier != null) + { + request.MembershipIdentifier = cmdletContext.MembershipIdentifier; + } + if (cmdletContext.Name != null) + { + request.Name = cmdletContext.Name; + } + + // populate OutputConfiguration + var requestOutputConfigurationIsNull = true; + request.OutputConfiguration = new Amazon.CleanRoomsML.Model.TrainedModelExportOutputConfiguration(); + List requestOutputConfiguration_outputConfiguration_Member = null; + if (cmdletContext.OutputConfiguration_Member != null) + { + requestOutputConfiguration_outputConfiguration_Member = cmdletContext.OutputConfiguration_Member; + } + if (requestOutputConfiguration_outputConfiguration_Member != null) + { + request.OutputConfiguration.Members = requestOutputConfiguration_outputConfiguration_Member; + requestOutputConfigurationIsNull = false; + } + // determine if request.OutputConfiguration should be set to null + if (requestOutputConfigurationIsNull) + { + request.OutputConfiguration = null; + } + if (cmdletContext.TrainedModelArn != null) + { + request.TrainedModelArn = cmdletContext.TrainedModelArn; + } + + 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.CleanRoomsML.Model.StartTrainedModelExportJobResponse CallAWSServiceOperation(IAmazonCleanRoomsML client, Amazon.CleanRoomsML.Model.StartTrainedModelExportJobRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "CleanRoomsML", "StartTrainedModelExportJob"); + try + { + #if DESKTOP + return client.StartTrainedModelExportJob(request); + #elif CORECLR + return client.StartTrainedModelExportJobAsync(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 Description { get; set; } + public System.String MembershipIdentifier { get; set; } + public System.String Name { get; set; } + public List OutputConfiguration_Member { get; set; } + public System.String TrainedModelArn { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => null; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Start-CRMLTrainedModelInferenceJob-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Start-CRMLTrainedModelInferenceJob-Cmdlet.cs new file mode 100644 index 0000000000..350adf29ab --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Start-CRMLTrainedModelInferenceJob-Cmdlet.cs @@ -0,0 +1,576 @@ +/******************************************************************************* + * 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.CleanRoomsML; +using Amazon.CleanRoomsML.Model; + +namespace Amazon.PowerShell.Cmdlets.CRML +{ + /// + /// Defines the information necessary to begin a trained model inference job. + /// + [Cmdlet("Start", "CRMLTrainedModelInferenceJob", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType("System.String")] + [AWSCmdlet("Calls the CleanRoomsML StartTrainedModelInferenceJob API operation.", Operation = new[] {"StartTrainedModelInferenceJob"}, SelectReturnType = typeof(Amazon.CleanRoomsML.Model.StartTrainedModelInferenceJobResponse))] + [AWSCmdletOutput("System.String or Amazon.CleanRoomsML.Model.StartTrainedModelInferenceJobResponse", + "This cmdlet returns a System.String object.", + "The service call response (type Amazon.CleanRoomsML.Model.StartTrainedModelInferenceJobResponse) can be returned by specifying '-Select *'." + )] + public partial class StartCRMLTrainedModelInferenceJobCmdlet : AmazonCleanRoomsMLClientCmdlet, IExecutor + { + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter OutputConfiguration_Accept + /// + /// + /// The MIME type used to specify the output data. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String OutputConfiguration_Accept { get; set; } + #endregion + + #region Parameter ConfiguredModelAlgorithmAssociationArn + /// + /// + /// The Amazon Resource Name (ARN) of the configured model algorithm association that + /// is used for this trained model inference job. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String ConfiguredModelAlgorithmAssociationArn { get; set; } + #endregion + + #region Parameter Description + /// + /// + /// The description of the trained model inference job. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String Description { get; set; } + #endregion + + #region Parameter Environment + /// + /// + /// The environment variables to set in the Docker container. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.Collections.Hashtable Environment { get; set; } + #endregion + + #region Parameter ResourceConfig_InstanceCount + /// + /// + /// The number of instances to use. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.Int32? ResourceConfig_InstanceCount { get; set; } + #endregion + + #region Parameter ResourceConfig_InstanceType + /// + /// + /// The type of instance that is used to perform model inference. + /// + /// + #if !MODULAR + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + #else + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)] + [System.Management.Automation.AllowNull] + #endif + [Amazon.PowerShell.Common.AWSRequiredParameter] + [AWSConstantClassSource("Amazon.CleanRoomsML.InferenceInstanceType")] + public Amazon.CleanRoomsML.InferenceInstanceType ResourceConfig_InstanceType { get; set; } + #endregion + + #region Parameter KmsKeyArn + /// + /// + /// The Amazon Resource Name (ARN) of the KMS key. This key is used to encrypt and decrypt + /// customer-owned data in the ML inference job and associated data. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String KmsKeyArn { get; set; } + #endregion + + #region Parameter ContainerExecutionParameters_MaxPayloadInMB + /// + /// + /// The maximum size of the inference container payload, specified in MB. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.Int32? ContainerExecutionParameters_MaxPayloadInMB { get; set; } + #endregion + + #region Parameter OutputConfiguration_Member + /// + /// + /// Defines the members that can receive inference output. + /// + /// + #if !MODULAR + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + #else + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)] + [System.Management.Automation.AllowEmptyCollection] + [System.Management.Automation.AllowNull] + #endif + [Amazon.PowerShell.Common.AWSRequiredParameter] + [Alias("OutputConfiguration_Members")] + public Amazon.CleanRoomsML.Model.InferenceReceiverMember[] OutputConfiguration_Member { get; set; } + #endregion + + #region Parameter MembershipIdentifier + /// + /// + /// The membership ID of the membership that contains the trained model inference job. + /// + /// + #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 MembershipIdentifier { get; set; } + #endregion + + #region Parameter DataSource_MlInputChannelArn + /// + /// + /// The Amazon Resource Name (ARN) of the ML input channel for this model inference data + /// source. + /// + /// + #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 DataSource_MlInputChannelArn { get; set; } + #endregion + + #region Parameter Name + /// + /// + /// The name of the trained model inference job. + /// + /// + #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 Name { get; set; } + #endregion + + #region Parameter Tag + /// + /// + /// The optional metadata that you apply to the resource to help you categorize and organize + /// them. Each tag consists of a key and an optional value, both of which you define.The following basic restrictions apply to tags:
  • Maximum number of tags per resource - 50.
  • For each resource, each tag key must be unique, and each tag key can have only one + /// value.
  • Maximum key length - 128 Unicode characters in UTF-8.
  • Maximum value length - 256 Unicode characters in UTF-8.
  • If your tagging schema is used across multiple services and resources, remember that + /// other services may have restrictions on allowed characters. Generally allowed characters + /// are: letters, numbers, and spaces representable in UTF-8, and the following characters: + /// + - = . _ : / @.
  • Tag keys and values are case sensitive.
  • Do not use aws:, AWS:, or any upper or lowercase combination of such as a prefix for + /// keys as it is reserved for AWS use. You cannot edit or delete tag keys with this prefix. + /// Values can have this prefix. If a tag value has aws as its prefix but the key does + /// not, then Clean Rooms ML considers it to be a user tag and will count against the + /// limit of 50 tags. Tags with only the key prefix of aws do not count against your tags + /// per resource limit.
+ ///
+ ///
+ [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("Tags")] + public System.Collections.Hashtable Tag { get; set; } + #endregion + + #region Parameter TrainedModelArn + /// + /// + /// The Amazon Resource Name (ARN) of the trained model that is used for this trained + /// model inference job. + /// + /// + #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 TrainedModelArn { get; set; } + #endregion + + #region Parameter Select + /// + /// Use the -Select parameter to control the cmdlet output. The default value is 'TrainedModelInferenceJobArn'. + /// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.CleanRoomsML.Model.StartTrainedModelInferenceJobResponse). + /// Specifying the name of a property of type Amazon.CleanRoomsML.Model.StartTrainedModelInferenceJobResponse 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; } = "TrainedModelInferenceJobArn"; + #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 = string.Empty; + if (!ConfirmShouldProceed(this.Force.IsPresent, resourceIdentifiersText, "Start-CRMLTrainedModelInferenceJob (StartTrainedModelInferenceJob)")) + { + return; + } + + var context = new CmdletContext(); + + // allow for manipulation of parameters prior to loading into context + PreExecutionContextLoad(context); + + if (ParameterWasBound(nameof(this.Select))) + { + context.Select = CreateSelectDelegate(Select) ?? + throw new System.ArgumentException("Invalid value for -Select parameter.", nameof(this.Select)); + } + context.ConfiguredModelAlgorithmAssociationArn = this.ConfiguredModelAlgorithmAssociationArn; + context.ContainerExecutionParameters_MaxPayloadInMB = this.ContainerExecutionParameters_MaxPayloadInMB; + context.DataSource_MlInputChannelArn = this.DataSource_MlInputChannelArn; + #if MODULAR + if (this.DataSource_MlInputChannelArn == null && ParameterWasBound(nameof(this.DataSource_MlInputChannelArn))) + { + WriteWarning("You are passing $null as a value for parameter DataSource_MlInputChannelArn 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.Description = this.Description; + if (this.Environment != null) + { + context.Environment = new Dictionary(StringComparer.Ordinal); + foreach (var hashKey in this.Environment.Keys) + { + context.Environment.Add((String)hashKey, (System.String)(this.Environment[hashKey])); + } + } + context.KmsKeyArn = this.KmsKeyArn; + context.MembershipIdentifier = this.MembershipIdentifier; + #if MODULAR + if (this.MembershipIdentifier == null && ParameterWasBound(nameof(this.MembershipIdentifier))) + { + WriteWarning("You are passing $null as a value for parameter MembershipIdentifier 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.Name = this.Name; + #if MODULAR + if (this.Name == null && ParameterWasBound(nameof(this.Name))) + { + WriteWarning("You are passing $null as a value for parameter Name 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.OutputConfiguration_Accept = this.OutputConfiguration_Accept; + if (this.OutputConfiguration_Member != null) + { + context.OutputConfiguration_Member = new List(this.OutputConfiguration_Member); + } + #if MODULAR + if (this.OutputConfiguration_Member == null && ParameterWasBound(nameof(this.OutputConfiguration_Member))) + { + WriteWarning("You are passing $null as a value for parameter OutputConfiguration_Member 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.ResourceConfig_InstanceCount = this.ResourceConfig_InstanceCount; + context.ResourceConfig_InstanceType = this.ResourceConfig_InstanceType; + #if MODULAR + if (this.ResourceConfig_InstanceType == null && ParameterWasBound(nameof(this.ResourceConfig_InstanceType))) + { + WriteWarning("You are passing $null as a value for parameter ResourceConfig_InstanceType 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 + if (this.Tag != null) + { + context.Tag = new Dictionary(StringComparer.Ordinal); + foreach (var hashKey in this.Tag.Keys) + { + context.Tag.Add((String)hashKey, (System.String)(this.Tag[hashKey])); + } + } + context.TrainedModelArn = this.TrainedModelArn; + #if MODULAR + if (this.TrainedModelArn == null && ParameterWasBound(nameof(this.TrainedModelArn))) + { + WriteWarning("You are passing $null as a value for parameter TrainedModelArn 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.CleanRoomsML.Model.StartTrainedModelInferenceJobRequest(); + + if (cmdletContext.ConfiguredModelAlgorithmAssociationArn != null) + { + request.ConfiguredModelAlgorithmAssociationArn = cmdletContext.ConfiguredModelAlgorithmAssociationArn; + } + + // populate ContainerExecutionParameters + var requestContainerExecutionParametersIsNull = true; + request.ContainerExecutionParameters = new Amazon.CleanRoomsML.Model.InferenceContainerExecutionParameters(); + System.Int32? requestContainerExecutionParameters_containerExecutionParameters_MaxPayloadInMB = null; + if (cmdletContext.ContainerExecutionParameters_MaxPayloadInMB != null) + { + requestContainerExecutionParameters_containerExecutionParameters_MaxPayloadInMB = cmdletContext.ContainerExecutionParameters_MaxPayloadInMB.Value; + } + if (requestContainerExecutionParameters_containerExecutionParameters_MaxPayloadInMB != null) + { + request.ContainerExecutionParameters.MaxPayloadInMB = requestContainerExecutionParameters_containerExecutionParameters_MaxPayloadInMB.Value; + requestContainerExecutionParametersIsNull = false; + } + // determine if request.ContainerExecutionParameters should be set to null + if (requestContainerExecutionParametersIsNull) + { + request.ContainerExecutionParameters = null; + } + + // populate DataSource + var requestDataSourceIsNull = true; + request.DataSource = new Amazon.CleanRoomsML.Model.ModelInferenceDataSource(); + System.String requestDataSource_dataSource_MlInputChannelArn = null; + if (cmdletContext.DataSource_MlInputChannelArn != null) + { + requestDataSource_dataSource_MlInputChannelArn = cmdletContext.DataSource_MlInputChannelArn; + } + if (requestDataSource_dataSource_MlInputChannelArn != null) + { + request.DataSource.MlInputChannelArn = requestDataSource_dataSource_MlInputChannelArn; + requestDataSourceIsNull = false; + } + // determine if request.DataSource should be set to null + if (requestDataSourceIsNull) + { + request.DataSource = null; + } + if (cmdletContext.Description != null) + { + request.Description = cmdletContext.Description; + } + if (cmdletContext.Environment != null) + { + request.Environment = cmdletContext.Environment; + } + if (cmdletContext.KmsKeyArn != null) + { + request.KmsKeyArn = cmdletContext.KmsKeyArn; + } + if (cmdletContext.MembershipIdentifier != null) + { + request.MembershipIdentifier = cmdletContext.MembershipIdentifier; + } + if (cmdletContext.Name != null) + { + request.Name = cmdletContext.Name; + } + + // populate OutputConfiguration + var requestOutputConfigurationIsNull = true; + request.OutputConfiguration = new Amazon.CleanRoomsML.Model.InferenceOutputConfiguration(); + System.String requestOutputConfiguration_outputConfiguration_Accept = null; + if (cmdletContext.OutputConfiguration_Accept != null) + { + requestOutputConfiguration_outputConfiguration_Accept = cmdletContext.OutputConfiguration_Accept; + } + if (requestOutputConfiguration_outputConfiguration_Accept != null) + { + request.OutputConfiguration.Accept = requestOutputConfiguration_outputConfiguration_Accept; + requestOutputConfigurationIsNull = false; + } + List requestOutputConfiguration_outputConfiguration_Member = null; + if (cmdletContext.OutputConfiguration_Member != null) + { + requestOutputConfiguration_outputConfiguration_Member = cmdletContext.OutputConfiguration_Member; + } + if (requestOutputConfiguration_outputConfiguration_Member != null) + { + request.OutputConfiguration.Members = requestOutputConfiguration_outputConfiguration_Member; + requestOutputConfigurationIsNull = false; + } + // determine if request.OutputConfiguration should be set to null + if (requestOutputConfigurationIsNull) + { + request.OutputConfiguration = null; + } + + // populate ResourceConfig + var requestResourceConfigIsNull = true; + request.ResourceConfig = new Amazon.CleanRoomsML.Model.InferenceResourceConfig(); + System.Int32? requestResourceConfig_resourceConfig_InstanceCount = null; + if (cmdletContext.ResourceConfig_InstanceCount != null) + { + requestResourceConfig_resourceConfig_InstanceCount = cmdletContext.ResourceConfig_InstanceCount.Value; + } + if (requestResourceConfig_resourceConfig_InstanceCount != null) + { + request.ResourceConfig.InstanceCount = requestResourceConfig_resourceConfig_InstanceCount.Value; + requestResourceConfigIsNull = false; + } + Amazon.CleanRoomsML.InferenceInstanceType requestResourceConfig_resourceConfig_InstanceType = null; + if (cmdletContext.ResourceConfig_InstanceType != null) + { + requestResourceConfig_resourceConfig_InstanceType = cmdletContext.ResourceConfig_InstanceType; + } + if (requestResourceConfig_resourceConfig_InstanceType != null) + { + request.ResourceConfig.InstanceType = requestResourceConfig_resourceConfig_InstanceType; + requestResourceConfigIsNull = false; + } + // determine if request.ResourceConfig should be set to null + if (requestResourceConfigIsNull) + { + request.ResourceConfig = null; + } + if (cmdletContext.Tag != null) + { + request.Tags = cmdletContext.Tag; + } + if (cmdletContext.TrainedModelArn != null) + { + request.TrainedModelArn = cmdletContext.TrainedModelArn; + } + + 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.CleanRoomsML.Model.StartTrainedModelInferenceJobResponse CallAWSServiceOperation(IAmazonCleanRoomsML client, Amazon.CleanRoomsML.Model.StartTrainedModelInferenceJobRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "CleanRoomsML", "StartTrainedModelInferenceJob"); + try + { + #if DESKTOP + return client.StartTrainedModelInferenceJob(request); + #elif CORECLR + return client.StartTrainedModelInferenceJobAsync(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 ConfiguredModelAlgorithmAssociationArn { get; set; } + public System.Int32? ContainerExecutionParameters_MaxPayloadInMB { get; set; } + public System.String DataSource_MlInputChannelArn { get; set; } + public System.String Description { get; set; } + public Dictionary Environment { get; set; } + public System.String KmsKeyArn { get; set; } + public System.String MembershipIdentifier { get; set; } + public System.String Name { get; set; } + public System.String OutputConfiguration_Accept { get; set; } + public List OutputConfiguration_Member { get; set; } + public System.Int32? ResourceConfig_InstanceCount { get; set; } + public Amazon.CleanRoomsML.InferenceInstanceType ResourceConfig_InstanceType { get; set; } + public Dictionary Tag { get; set; } + public System.String TrainedModelArn { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => response.TrainedModelInferenceJobArn; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Stop-CRMLTrainedModel-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Stop-CRMLTrainedModel-Cmdlet.cs new file mode 100644 index 0000000000..cedec60c5d --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Stop-CRMLTrainedModel-Cmdlet.cs @@ -0,0 +1,226 @@ +/******************************************************************************* + * 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.CleanRoomsML; +using Amazon.CleanRoomsML.Model; + +namespace Amazon.PowerShell.Cmdlets.CRML +{ + /// + /// Submits a request to cancel the trained model job. + /// + [Cmdlet("Stop", "CRMLTrainedModel", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType("None")] + [AWSCmdlet("Calls the CleanRoomsML CancelTrainedModel API operation.", Operation = new[] {"CancelTrainedModel"}, SelectReturnType = typeof(Amazon.CleanRoomsML.Model.CancelTrainedModelResponse))] + [AWSCmdletOutput("None or Amazon.CleanRoomsML.Model.CancelTrainedModelResponse", + "This cmdlet does not generate any output." + + "The service response (type Amazon.CleanRoomsML.Model.CancelTrainedModelResponse) be returned by specifying '-Select *'." + )] + public partial class StopCRMLTrainedModelCmdlet : AmazonCleanRoomsMLClientCmdlet, IExecutor + { + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter MembershipIdentifier + /// + /// + /// The membership ID of the trained model job that you want to cancel. + /// + /// + #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 MembershipIdentifier { get; set; } + #endregion + + #region Parameter TrainedModelArn + /// + /// + /// The Amazon Resource Name (ARN) of the trained model job that you want to cancel. + /// + /// + #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 TrainedModelArn { get; set; } + #endregion + + #region Parameter Select + /// + /// Use the -Select parameter to control the cmdlet output. The cmdlet doesn't have a return value by default. + /// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.CleanRoomsML.Model.CancelTrainedModelResponse). + /// 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 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 = string.Empty; + if (!ConfirmShouldProceed(this.Force.IsPresent, resourceIdentifiersText, "Stop-CRMLTrainedModel (CancelTrainedModel)")) + { + return; + } + + var context = new CmdletContext(); + + // allow for manipulation of parameters prior to loading into context + PreExecutionContextLoad(context); + + if (ParameterWasBound(nameof(this.Select))) + { + context.Select = CreateSelectDelegate(Select) ?? + throw new System.ArgumentException("Invalid value for -Select parameter.", nameof(this.Select)); + } + context.MembershipIdentifier = this.MembershipIdentifier; + #if MODULAR + if (this.MembershipIdentifier == null && ParameterWasBound(nameof(this.MembershipIdentifier))) + { + WriteWarning("You are passing $null as a value for parameter MembershipIdentifier 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.TrainedModelArn = this.TrainedModelArn; + #if MODULAR + if (this.TrainedModelArn == null && ParameterWasBound(nameof(this.TrainedModelArn))) + { + WriteWarning("You are passing $null as a value for parameter TrainedModelArn 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.CleanRoomsML.Model.CancelTrainedModelRequest(); + + if (cmdletContext.MembershipIdentifier != null) + { + request.MembershipIdentifier = cmdletContext.MembershipIdentifier; + } + if (cmdletContext.TrainedModelArn != null) + { + request.TrainedModelArn = cmdletContext.TrainedModelArn; + } + + 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.CleanRoomsML.Model.CancelTrainedModelResponse CallAWSServiceOperation(IAmazonCleanRoomsML client, Amazon.CleanRoomsML.Model.CancelTrainedModelRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "CleanRoomsML", "CancelTrainedModel"); + try + { + #if DESKTOP + return client.CancelTrainedModel(request); + #elif CORECLR + return client.CancelTrainedModelAsync(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 MembershipIdentifier { get; set; } + public System.String TrainedModelArn { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => null; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Stop-CRMLTrainedModelInferenceJob-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Stop-CRMLTrainedModelInferenceJob-Cmdlet.cs new file mode 100644 index 0000000000..220096398c --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Stop-CRMLTrainedModelInferenceJob-Cmdlet.cs @@ -0,0 +1,227 @@ +/******************************************************************************* + * 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.CleanRoomsML; +using Amazon.CleanRoomsML.Model; + +namespace Amazon.PowerShell.Cmdlets.CRML +{ + /// + /// Submits a request to cancel a trained model inference job. + /// + [Cmdlet("Stop", "CRMLTrainedModelInferenceJob", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType("None")] + [AWSCmdlet("Calls the CleanRoomsML CancelTrainedModelInferenceJob API operation.", Operation = new[] {"CancelTrainedModelInferenceJob"}, SelectReturnType = typeof(Amazon.CleanRoomsML.Model.CancelTrainedModelInferenceJobResponse))] + [AWSCmdletOutput("None or Amazon.CleanRoomsML.Model.CancelTrainedModelInferenceJobResponse", + "This cmdlet does not generate any output." + + "The service response (type Amazon.CleanRoomsML.Model.CancelTrainedModelInferenceJobResponse) be returned by specifying '-Select *'." + )] + public partial class StopCRMLTrainedModelInferenceJobCmdlet : AmazonCleanRoomsMLClientCmdlet, IExecutor + { + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter MembershipIdentifier + /// + /// + /// The membership ID of the trained model inference job that you want to cancel. + /// + /// + #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 MembershipIdentifier { get; set; } + #endregion + + #region Parameter TrainedModelInferenceJobArn + /// + /// + /// The Amazon Resource Name (ARN) of the trained model inference job that you want to + /// cancel. + /// + /// + #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 TrainedModelInferenceJobArn { get; set; } + #endregion + + #region Parameter Select + /// + /// Use the -Select parameter to control the cmdlet output. The cmdlet doesn't have a return value by default. + /// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.CleanRoomsML.Model.CancelTrainedModelInferenceJobResponse). + /// 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 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 = string.Empty; + if (!ConfirmShouldProceed(this.Force.IsPresent, resourceIdentifiersText, "Stop-CRMLTrainedModelInferenceJob (CancelTrainedModelInferenceJob)")) + { + return; + } + + var context = new CmdletContext(); + + // allow for manipulation of parameters prior to loading into context + PreExecutionContextLoad(context); + + if (ParameterWasBound(nameof(this.Select))) + { + context.Select = CreateSelectDelegate(Select) ?? + throw new System.ArgumentException("Invalid value for -Select parameter.", nameof(this.Select)); + } + context.MembershipIdentifier = this.MembershipIdentifier; + #if MODULAR + if (this.MembershipIdentifier == null && ParameterWasBound(nameof(this.MembershipIdentifier))) + { + WriteWarning("You are passing $null as a value for parameter MembershipIdentifier 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.TrainedModelInferenceJobArn = this.TrainedModelInferenceJobArn; + #if MODULAR + if (this.TrainedModelInferenceJobArn == null && ParameterWasBound(nameof(this.TrainedModelInferenceJobArn))) + { + WriteWarning("You are passing $null as a value for parameter TrainedModelInferenceJobArn 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.CleanRoomsML.Model.CancelTrainedModelInferenceJobRequest(); + + if (cmdletContext.MembershipIdentifier != null) + { + request.MembershipIdentifier = cmdletContext.MembershipIdentifier; + } + if (cmdletContext.TrainedModelInferenceJobArn != null) + { + request.TrainedModelInferenceJobArn = cmdletContext.TrainedModelInferenceJobArn; + } + + 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.CleanRoomsML.Model.CancelTrainedModelInferenceJobResponse CallAWSServiceOperation(IAmazonCleanRoomsML client, Amazon.CleanRoomsML.Model.CancelTrainedModelInferenceJobRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "CleanRoomsML", "CancelTrainedModelInferenceJob"); + try + { + #if DESKTOP + return client.CancelTrainedModelInferenceJob(request); + #elif CORECLR + return client.CancelTrainedModelInferenceJobAsync(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 MembershipIdentifier { get; set; } + public System.String TrainedModelInferenceJobArn { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => null; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Write-CRMLMLConfiguration-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Write-CRMLMLConfiguration-Cmdlet.cs new file mode 100644 index 0000000000..861616e15d --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/CleanRoomsML/Basic/Write-CRMLMLConfiguration-Cmdlet.cs @@ -0,0 +1,315 @@ +/******************************************************************************* + * 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.CleanRoomsML; +using Amazon.CleanRoomsML.Model; + +namespace Amazon.PowerShell.Cmdlets.CRML +{ + /// + /// Assigns information about an ML configuration. + /// + [Cmdlet("Write", "CRMLMLConfiguration", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType("None")] + [AWSCmdlet("Calls the CleanRoomsML PutMLConfiguration API operation.", Operation = new[] {"PutMLConfiguration"}, SelectReturnType = typeof(Amazon.CleanRoomsML.Model.PutMLConfigurationResponse))] + [AWSCmdletOutput("None or Amazon.CleanRoomsML.Model.PutMLConfigurationResponse", + "This cmdlet does not generate any output." + + "The service response (type Amazon.CleanRoomsML.Model.PutMLConfigurationResponse) be returned by specifying '-Select *'." + )] + public partial class WriteCRMLMLConfigurationCmdlet : AmazonCleanRoomsMLClientCmdlet, IExecutor + { + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter MembershipIdentifier + /// + /// + /// The membership ID of the member that is being configured. + /// + /// + #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 MembershipIdentifier { get; set; } + #endregion + + #region Parameter DefaultOutputLocation_RoleArn + /// + /// + /// The Amazon Resource Name (ARN) of the service access role that is used to store the + /// model artifacts. + /// + /// + #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 DefaultOutputLocation_RoleArn { get; set; } + #endregion + + #region Parameter S3Destination_S3Uri + /// + /// + /// The Amazon S3 location URI. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("DefaultOutputLocation_Destination_S3Destination_S3Uri")] + public System.String S3Destination_S3Uri { get; set; } + #endregion + + #region Parameter Select + /// + /// Use the -Select parameter to control the cmdlet output. The cmdlet doesn't have a return value by default. + /// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.CleanRoomsML.Model.PutMLConfigurationResponse). + /// 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 MembershipIdentifier parameter. + /// The -PassThru parameter is deprecated, use -Select '^MembershipIdentifier' instead. This parameter will be removed in a future version. + /// + [System.Obsolete("The -PassThru parameter is deprecated, use -Select '^MembershipIdentifier' 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.MembershipIdentifier), MyInvocation.BoundParameters); + if (!ConfirmShouldProceed(this.Force.IsPresent, resourceIdentifiersText, "Write-CRMLMLConfiguration (PutMLConfiguration)")) + { + 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.MembershipIdentifier; + } + #pragma warning restore CS0618, CS0612 //A class member was marked with the Obsolete attribute + context.S3Destination_S3Uri = this.S3Destination_S3Uri; + context.DefaultOutputLocation_RoleArn = this.DefaultOutputLocation_RoleArn; + #if MODULAR + if (this.DefaultOutputLocation_RoleArn == null && ParameterWasBound(nameof(this.DefaultOutputLocation_RoleArn))) + { + WriteWarning("You are passing $null as a value for parameter DefaultOutputLocation_RoleArn 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.MembershipIdentifier = this.MembershipIdentifier; + #if MODULAR + if (this.MembershipIdentifier == null && ParameterWasBound(nameof(this.MembershipIdentifier))) + { + WriteWarning("You are passing $null as a value for parameter MembershipIdentifier 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.CleanRoomsML.Model.PutMLConfigurationRequest(); + + + // populate DefaultOutputLocation + var requestDefaultOutputLocationIsNull = true; + request.DefaultOutputLocation = new Amazon.CleanRoomsML.Model.MLOutputConfiguration(); + System.String requestDefaultOutputLocation_defaultOutputLocation_RoleArn = null; + if (cmdletContext.DefaultOutputLocation_RoleArn != null) + { + requestDefaultOutputLocation_defaultOutputLocation_RoleArn = cmdletContext.DefaultOutputLocation_RoleArn; + } + if (requestDefaultOutputLocation_defaultOutputLocation_RoleArn != null) + { + request.DefaultOutputLocation.RoleArn = requestDefaultOutputLocation_defaultOutputLocation_RoleArn; + requestDefaultOutputLocationIsNull = false; + } + Amazon.CleanRoomsML.Model.Destination requestDefaultOutputLocation_defaultOutputLocation_Destination = null; + + // populate Destination + var requestDefaultOutputLocation_defaultOutputLocation_DestinationIsNull = true; + requestDefaultOutputLocation_defaultOutputLocation_Destination = new Amazon.CleanRoomsML.Model.Destination(); + Amazon.CleanRoomsML.Model.S3ConfigMap requestDefaultOutputLocation_defaultOutputLocation_Destination_defaultOutputLocation_Destination_S3Destination = null; + + // populate S3Destination + var requestDefaultOutputLocation_defaultOutputLocation_Destination_defaultOutputLocation_Destination_S3DestinationIsNull = true; + requestDefaultOutputLocation_defaultOutputLocation_Destination_defaultOutputLocation_Destination_S3Destination = new Amazon.CleanRoomsML.Model.S3ConfigMap(); + System.String requestDefaultOutputLocation_defaultOutputLocation_Destination_defaultOutputLocation_Destination_S3Destination_s3Destination_S3Uri = null; + if (cmdletContext.S3Destination_S3Uri != null) + { + requestDefaultOutputLocation_defaultOutputLocation_Destination_defaultOutputLocation_Destination_S3Destination_s3Destination_S3Uri = cmdletContext.S3Destination_S3Uri; + } + if (requestDefaultOutputLocation_defaultOutputLocation_Destination_defaultOutputLocation_Destination_S3Destination_s3Destination_S3Uri != null) + { + requestDefaultOutputLocation_defaultOutputLocation_Destination_defaultOutputLocation_Destination_S3Destination.S3Uri = requestDefaultOutputLocation_defaultOutputLocation_Destination_defaultOutputLocation_Destination_S3Destination_s3Destination_S3Uri; + requestDefaultOutputLocation_defaultOutputLocation_Destination_defaultOutputLocation_Destination_S3DestinationIsNull = false; + } + // determine if requestDefaultOutputLocation_defaultOutputLocation_Destination_defaultOutputLocation_Destination_S3Destination should be set to null + if (requestDefaultOutputLocation_defaultOutputLocation_Destination_defaultOutputLocation_Destination_S3DestinationIsNull) + { + requestDefaultOutputLocation_defaultOutputLocation_Destination_defaultOutputLocation_Destination_S3Destination = null; + } + if (requestDefaultOutputLocation_defaultOutputLocation_Destination_defaultOutputLocation_Destination_S3Destination != null) + { + requestDefaultOutputLocation_defaultOutputLocation_Destination.S3Destination = requestDefaultOutputLocation_defaultOutputLocation_Destination_defaultOutputLocation_Destination_S3Destination; + requestDefaultOutputLocation_defaultOutputLocation_DestinationIsNull = false; + } + // determine if requestDefaultOutputLocation_defaultOutputLocation_Destination should be set to null + if (requestDefaultOutputLocation_defaultOutputLocation_DestinationIsNull) + { + requestDefaultOutputLocation_defaultOutputLocation_Destination = null; + } + if (requestDefaultOutputLocation_defaultOutputLocation_Destination != null) + { + request.DefaultOutputLocation.Destination = requestDefaultOutputLocation_defaultOutputLocation_Destination; + requestDefaultOutputLocationIsNull = false; + } + // determine if request.DefaultOutputLocation should be set to null + if (requestDefaultOutputLocationIsNull) + { + request.DefaultOutputLocation = null; + } + if (cmdletContext.MembershipIdentifier != null) + { + request.MembershipIdentifier = cmdletContext.MembershipIdentifier; + } + + 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.CleanRoomsML.Model.PutMLConfigurationResponse CallAWSServiceOperation(IAmazonCleanRoomsML client, Amazon.CleanRoomsML.Model.PutMLConfigurationRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "CleanRoomsML", "PutMLConfiguration"); + try + { + #if DESKTOP + return client.PutMLConfiguration(request); + #elif CORECLR + return client.PutMLConfigurationAsync(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 S3Destination_S3Uri { get; set; } + public System.String DefaultOutputLocation_RoleArn { get; set; } + public System.String MembershipIdentifier { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => null; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/QuickSight/AWS.Tools.QuickSight.Completers.psm1 b/modules/AWSPowerShell/Cmdlets/QuickSight/AWS.Tools.QuickSight.Completers.psm1 index ffbee5809d..6b0f8e5220 100644 --- a/modules/AWSPowerShell/Cmdlets/QuickSight/AWS.Tools.QuickSight.Completers.psm1 +++ b/modules/AWSPowerShell/Cmdlets/QuickSight/AWS.Tools.QuickSight.Completers.psm1 @@ -112,6 +112,18 @@ $QS_Completers = { break } + # Amazon.QuickSight.AuthenticationType + { + ($_ -eq "New-QSDataSource/SnowflakeParameters_AuthenticationType") -Or + ($_ -eq "Update-QSDataSource/SnowflakeParameters_AuthenticationType") -Or + ($_ -eq "New-QSDataSource/StarburstParameters_AuthenticationType") -Or + ($_ -eq "Update-QSDataSource/StarburstParameters_AuthenticationType") + } + { + $v = "PASSWORD","TOKEN","X509" + break + } + # Amazon.QuickSight.DashboardBehavior { ($_ -eq "New-QSDashboard/AdHocFilteringOption_AvailabilityStatus") -Or @@ -527,6 +539,8 @@ $QS_map = @{ "SharingModel"=@("New-QSFolder") "SheetControlsOption_VisibilityState"=@("New-QSDashboard","Update-QSDashboard") "SheetLayoutElementMaximizationOption_AvailabilityStatus"=@("New-QSDashboard","Update-QSDashboard") + "SnowflakeParameters_AuthenticationType"=@("New-QSDataSource","Update-QSDataSource") + "StarburstParameters_AuthenticationType"=@("New-QSDataSource","Update-QSDataSource") "StarburstParameters_ProductType"=@("New-QSDataSource","Update-QSDataSource") "Topic_UserExperienceVersion"=@("New-QSTopic","Update-QSTopic") "Type"=@("Get-QSThemeList","New-QSDataSource") diff --git a/modules/AWSPowerShell/Cmdlets/QuickSight/Basic/New-QSDataSource-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/QuickSight/Basic/New-QSDataSource-Cmdlet.cs index 7135eea394..c098e54545 100644 --- a/modules/AWSPowerShell/Cmdlets/QuickSight/Basic/New-QSDataSource-Cmdlet.cs +++ b/modules/AWSPowerShell/Cmdlets/QuickSight/Basic/New-QSDataSource-Cmdlet.cs @@ -61,6 +61,32 @@ public partial class NewQSDataSourceCmdlet : AmazonQuickSightClientCmdlet, IExec public Amazon.QuickSight.Model.DataSourceParameters[] CredentialPair_AlternateDataSourceParameter { get; set; } #endregion + #region Parameter SnowflakeParameters_AuthenticationType + /// + /// + /// The authentication type that you want to use for your connection. This parameter accepts + /// OAuth and non-OAuth authentication types. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("DataSourceParameters_SnowflakeParameters_AuthenticationType")] + [AWSConstantClassSource("Amazon.QuickSight.AuthenticationType")] + public Amazon.QuickSight.AuthenticationType SnowflakeParameters_AuthenticationType { get; set; } + #endregion + + #region Parameter StarburstParameters_AuthenticationType + /// + /// + /// The authentication type that you want to use for your connection. This parameter accepts + /// OAuth and non-OAuth authentication types. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("DataSourceParameters_StarburstParameters_AuthenticationType")] + [AWSConstantClassSource("Amazon.QuickSight.AuthenticationType")] + public Amazon.QuickSight.AuthenticationType StarburstParameters_AuthenticationType { get; set; } + #endregion + #region Parameter IAMParameters_AutoCreateDatabaseUser /// /// @@ -282,6 +308,28 @@ public partial class NewQSDataSourceCmdlet : AmazonQuickSightClientCmdlet, IExec public System.String TeradataParameters_Database { get; set; } #endregion + #region Parameter SnowflakeParameters_DatabaseAccessControlRole + /// + /// + /// The database access control role. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("DataSourceParameters_SnowflakeParameters_DatabaseAccessControlRole")] + public System.String SnowflakeParameters_DatabaseAccessControlRole { get; set; } + #endregion + + #region Parameter StarburstParameters_DatabaseAccessControlRole + /// + /// + /// The database access control role. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("DataSourceParameters_StarburstParameters_DatabaseAccessControlRole")] + public System.String StarburstParameters_DatabaseAccessControlRole { get; set; } + #endregion + #region Parameter IAMParameters_DatabaseGroup /// /// @@ -581,6 +629,26 @@ public partial class NewQSDataSourceCmdlet : AmazonQuickSightClientCmdlet, IExec public System.String TrinoParameters_Host { get; set; } #endregion + #region Parameter DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderResourceUri + /// + /// + /// The resource uri of the identity provider. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderResourceUri { get; set; } + #endregion + + #region Parameter DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderResourceUri + /// + /// + /// The resource uri of the identity provider. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderResourceUri { get; set; } + #endregion + #region Parameter RdsParameters_InstanceId /// /// @@ -631,6 +699,26 @@ public partial class NewQSDataSourceCmdlet : AmazonQuickSightClientCmdlet, IExec public System.String Name { get; set; } #endregion + #region Parameter DataSourceParameters_SnowflakeParameters_OAuthParameters_OAuthScope + /// + /// + /// The OAuth scope. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String DataSourceParameters_SnowflakeParameters_OAuthParameters_OAuthScope { get; set; } + #endregion + + #region Parameter DataSourceParameters_StarburstParameters_OAuthParameters_OAuthScope + /// + /// + /// The OAuth scope. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String DataSourceParameters_StarburstParameters_OAuthParameters_OAuthScope { get; set; } + #endregion + #region Parameter CredentialPair_Password /// /// @@ -953,6 +1041,26 @@ public partial class NewQSDataSourceCmdlet : AmazonQuickSightClientCmdlet, IExec public Amazon.QuickSight.Model.Tag[] Tag { get; set; } #endregion + #region Parameter DataSourceParameters_SnowflakeParameters_OAuthParameters_TokenProviderUrl + /// + /// + /// The token endpoint URL of the identity provider. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String DataSourceParameters_SnowflakeParameters_OAuthParameters_TokenProviderUrl { get; set; } + #endregion + + #region Parameter DataSourceParameters_StarburstParameters_OAuthParameters_TokenProviderUrl + /// + /// + /// The token endpoint URL of the identity provider. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String DataSourceParameters_StarburstParameters_OAuthParameters_TokenProviderUrl { get; set; } + #endregion + #region Parameter Type /// /// @@ -981,6 +1089,26 @@ public partial class NewQSDataSourceCmdlet : AmazonQuickSightClientCmdlet, IExec public System.String CredentialPair_Username { get; set; } #endregion + #region Parameter DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn + /// + /// + /// The Amazon Resource Name (ARN) for the VPC connection. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn { get; set; } + #endregion + + #region Parameter DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn + /// + /// + /// The Amazon Resource Name (ARN) for the VPC connection. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn { get; set; } + #endregion + #region Parameter VpcConnectionProperties_VpcConnectionArn /// /// @@ -1149,16 +1277,28 @@ protected override void ProcessRecord() context.ManifestFileLocation_Key = this.ManifestFileLocation_Key; context.S3Parameters_RoleArn = this.S3Parameters_RoleArn; context.ServiceNowParameters_SiteBaseUrl = this.ServiceNowParameters_SiteBaseUrl; + context.SnowflakeParameters_AuthenticationType = this.SnowflakeParameters_AuthenticationType; context.SnowflakeParameters_Database = this.SnowflakeParameters_Database; + context.SnowflakeParameters_DatabaseAccessControlRole = this.SnowflakeParameters_DatabaseAccessControlRole; context.SnowflakeParameters_Host = this.SnowflakeParameters_Host; + context.DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderResourceUri = this.DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderResourceUri; + context.DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn = this.DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn; + context.DataSourceParameters_SnowflakeParameters_OAuthParameters_OAuthScope = this.DataSourceParameters_SnowflakeParameters_OAuthParameters_OAuthScope; + context.DataSourceParameters_SnowflakeParameters_OAuthParameters_TokenProviderUrl = this.DataSourceParameters_SnowflakeParameters_OAuthParameters_TokenProviderUrl; context.SnowflakeParameters_Warehouse = this.SnowflakeParameters_Warehouse; context.SparkParameters_Host = this.SparkParameters_Host; context.SparkParameters_Port = this.SparkParameters_Port; context.SqlServerParameters_Database = this.SqlServerParameters_Database; context.SqlServerParameters_Host = this.SqlServerParameters_Host; context.SqlServerParameters_Port = this.SqlServerParameters_Port; + context.StarburstParameters_AuthenticationType = this.StarburstParameters_AuthenticationType; context.StarburstParameters_Catalog = this.StarburstParameters_Catalog; + context.StarburstParameters_DatabaseAccessControlRole = this.StarburstParameters_DatabaseAccessControlRole; context.StarburstParameters_Host = this.StarburstParameters_Host; + context.DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderResourceUri = this.DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderResourceUri; + context.DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn = this.DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn; + context.DataSourceParameters_StarburstParameters_OAuthParameters_OAuthScope = this.DataSourceParameters_StarburstParameters_OAuthParameters_OAuthScope; + context.DataSourceParameters_StarburstParameters_OAuthParameters_TokenProviderUrl = this.DataSourceParameters_StarburstParameters_OAuthParameters_TokenProviderUrl; context.StarburstParameters_Port = this.StarburstParameters_Port; context.StarburstParameters_ProductType = this.StarburstParameters_ProductType; context.TeradataParameters_Database = this.TeradataParameters_Database; @@ -2054,51 +2194,6 @@ public object Execute(ExecutorContext context) request.DataSourceParameters.PrestoParameters = requestDataSourceParameters_dataSourceParameters_PrestoParameters; requestDataSourceParametersIsNull = false; } - Amazon.QuickSight.Model.SnowflakeParameters requestDataSourceParameters_dataSourceParameters_SnowflakeParameters = null; - - // populate SnowflakeParameters - var requestDataSourceParameters_dataSourceParameters_SnowflakeParametersIsNull = true; - requestDataSourceParameters_dataSourceParameters_SnowflakeParameters = new Amazon.QuickSight.Model.SnowflakeParameters(); - System.String requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Database = null; - if (cmdletContext.SnowflakeParameters_Database != null) - { - requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Database = cmdletContext.SnowflakeParameters_Database; - } - if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Database != null) - { - requestDataSourceParameters_dataSourceParameters_SnowflakeParameters.Database = requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Database; - requestDataSourceParameters_dataSourceParameters_SnowflakeParametersIsNull = false; - } - System.String requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Host = null; - if (cmdletContext.SnowflakeParameters_Host != null) - { - requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Host = cmdletContext.SnowflakeParameters_Host; - } - if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Host != null) - { - requestDataSourceParameters_dataSourceParameters_SnowflakeParameters.Host = requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Host; - requestDataSourceParameters_dataSourceParameters_SnowflakeParametersIsNull = false; - } - System.String requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Warehouse = null; - if (cmdletContext.SnowflakeParameters_Warehouse != null) - { - requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Warehouse = cmdletContext.SnowflakeParameters_Warehouse; - } - if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Warehouse != null) - { - requestDataSourceParameters_dataSourceParameters_SnowflakeParameters.Warehouse = requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Warehouse; - requestDataSourceParameters_dataSourceParameters_SnowflakeParametersIsNull = false; - } - // determine if requestDataSourceParameters_dataSourceParameters_SnowflakeParameters should be set to null - if (requestDataSourceParameters_dataSourceParameters_SnowflakeParametersIsNull) - { - requestDataSourceParameters_dataSourceParameters_SnowflakeParameters = null; - } - if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters != null) - { - request.DataSourceParameters.SnowflakeParameters = requestDataSourceParameters_dataSourceParameters_SnowflakeParameters; - requestDataSourceParametersIsNull = false; - } Amazon.QuickSight.Model.SqlServerParameters requestDataSourceParameters_dataSourceParameters_SqlServerParameters = null; // populate SqlServerParameters @@ -2234,61 +2329,6 @@ public object Execute(ExecutorContext context) request.DataSourceParameters.TrinoParameters = requestDataSourceParameters_dataSourceParameters_TrinoParameters; requestDataSourceParametersIsNull = false; } - Amazon.QuickSight.Model.StarburstParameters requestDataSourceParameters_dataSourceParameters_StarburstParameters = null; - - // populate StarburstParameters - var requestDataSourceParameters_dataSourceParameters_StarburstParametersIsNull = true; - requestDataSourceParameters_dataSourceParameters_StarburstParameters = new Amazon.QuickSight.Model.StarburstParameters(); - System.String requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Catalog = null; - if (cmdletContext.StarburstParameters_Catalog != null) - { - requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Catalog = cmdletContext.StarburstParameters_Catalog; - } - if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Catalog != null) - { - requestDataSourceParameters_dataSourceParameters_StarburstParameters.Catalog = requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Catalog; - requestDataSourceParameters_dataSourceParameters_StarburstParametersIsNull = false; - } - System.String requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Host = null; - if (cmdletContext.StarburstParameters_Host != null) - { - requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Host = cmdletContext.StarburstParameters_Host; - } - if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Host != null) - { - requestDataSourceParameters_dataSourceParameters_StarburstParameters.Host = requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Host; - requestDataSourceParameters_dataSourceParameters_StarburstParametersIsNull = false; - } - System.Int32? requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Port = null; - if (cmdletContext.StarburstParameters_Port != null) - { - requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Port = cmdletContext.StarburstParameters_Port.Value; - } - if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Port != null) - { - requestDataSourceParameters_dataSourceParameters_StarburstParameters.Port = requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Port.Value; - requestDataSourceParameters_dataSourceParameters_StarburstParametersIsNull = false; - } - Amazon.QuickSight.StarburstProductType requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_ProductType = null; - if (cmdletContext.StarburstParameters_ProductType != null) - { - requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_ProductType = cmdletContext.StarburstParameters_ProductType; - } - if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_ProductType != null) - { - requestDataSourceParameters_dataSourceParameters_StarburstParameters.ProductType = requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_ProductType; - requestDataSourceParameters_dataSourceParameters_StarburstParametersIsNull = false; - } - // determine if requestDataSourceParameters_dataSourceParameters_StarburstParameters should be set to null - if (requestDataSourceParameters_dataSourceParameters_StarburstParametersIsNull) - { - requestDataSourceParameters_dataSourceParameters_StarburstParameters = null; - } - if (requestDataSourceParameters_dataSourceParameters_StarburstParameters != null) - { - request.DataSourceParameters.StarburstParameters = requestDataSourceParameters_dataSourceParameters_StarburstParameters; - requestDataSourceParametersIsNull = false; - } Amazon.QuickSight.Model.RedshiftParameters requestDataSourceParameters_dataSourceParameters_RedshiftParameters = null; // populate RedshiftParameters @@ -2423,6 +2463,286 @@ public object Execute(ExecutorContext context) { request.DataSourceParameters.RedshiftParameters = requestDataSourceParameters_dataSourceParameters_RedshiftParameters; requestDataSourceParametersIsNull = false; + } + Amazon.QuickSight.Model.SnowflakeParameters requestDataSourceParameters_dataSourceParameters_SnowflakeParameters = null; + + // populate SnowflakeParameters + var requestDataSourceParameters_dataSourceParameters_SnowflakeParametersIsNull = true; + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters = new Amazon.QuickSight.Model.SnowflakeParameters(); + Amazon.QuickSight.AuthenticationType requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_AuthenticationType = null; + if (cmdletContext.SnowflakeParameters_AuthenticationType != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_AuthenticationType = cmdletContext.SnowflakeParameters_AuthenticationType; + } + if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_AuthenticationType != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters.AuthenticationType = requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_AuthenticationType; + requestDataSourceParameters_dataSourceParameters_SnowflakeParametersIsNull = false; + } + System.String requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Database = null; + if (cmdletContext.SnowflakeParameters_Database != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Database = cmdletContext.SnowflakeParameters_Database; + } + if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Database != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters.Database = requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Database; + requestDataSourceParameters_dataSourceParameters_SnowflakeParametersIsNull = false; + } + System.String requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_DatabaseAccessControlRole = null; + if (cmdletContext.SnowflakeParameters_DatabaseAccessControlRole != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_DatabaseAccessControlRole = cmdletContext.SnowflakeParameters_DatabaseAccessControlRole; + } + if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_DatabaseAccessControlRole != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters.DatabaseAccessControlRole = requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_DatabaseAccessControlRole; + requestDataSourceParameters_dataSourceParameters_SnowflakeParametersIsNull = false; + } + System.String requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Host = null; + if (cmdletContext.SnowflakeParameters_Host != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Host = cmdletContext.SnowflakeParameters_Host; + } + if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Host != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters.Host = requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Host; + requestDataSourceParameters_dataSourceParameters_SnowflakeParametersIsNull = false; + } + System.String requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Warehouse = null; + if (cmdletContext.SnowflakeParameters_Warehouse != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Warehouse = cmdletContext.SnowflakeParameters_Warehouse; + } + if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Warehouse != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters.Warehouse = requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Warehouse; + requestDataSourceParameters_dataSourceParameters_SnowflakeParametersIsNull = false; + } + Amazon.QuickSight.Model.OAuthParameters requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters = null; + + // populate OAuthParameters + var requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParametersIsNull = true; + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters = new Amazon.QuickSight.Model.OAuthParameters(); + System.String requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderResourceUri = null; + if (cmdletContext.DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderResourceUri != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderResourceUri = cmdletContext.DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderResourceUri; + } + if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderResourceUri != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters.IdentityProviderResourceUri = requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderResourceUri; + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParametersIsNull = false; + } + System.String requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_OAuthScope = null; + if (cmdletContext.DataSourceParameters_SnowflakeParameters_OAuthParameters_OAuthScope != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_OAuthScope = cmdletContext.DataSourceParameters_SnowflakeParameters_OAuthParameters_OAuthScope; + } + if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_OAuthScope != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters.OAuthScope = requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_OAuthScope; + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParametersIsNull = false; + } + System.String requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_TokenProviderUrl = null; + if (cmdletContext.DataSourceParameters_SnowflakeParameters_OAuthParameters_TokenProviderUrl != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_TokenProviderUrl = cmdletContext.DataSourceParameters_SnowflakeParameters_OAuthParameters_TokenProviderUrl; + } + if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_TokenProviderUrl != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters.TokenProviderUrl = requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_TokenProviderUrl; + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParametersIsNull = false; + } + Amazon.QuickSight.Model.VpcConnectionProperties requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties = null; + + // populate IdentityProviderVpcConnectionProperties + var requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionPropertiesIsNull = true; + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties = new Amazon.QuickSight.Model.VpcConnectionProperties(); + System.String requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn = null; + if (cmdletContext.DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn = cmdletContext.DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn; + } + if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties.VpcConnectionArn = requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn; + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionPropertiesIsNull = false; + } + // determine if requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties should be set to null + if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionPropertiesIsNull) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties = null; + } + if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters.IdentityProviderVpcConnectionProperties = requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties; + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParametersIsNull = false; + } + // determine if requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters should be set to null + if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParametersIsNull) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters = null; + } + if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters.OAuthParameters = requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters; + requestDataSourceParameters_dataSourceParameters_SnowflakeParametersIsNull = false; + } + // determine if requestDataSourceParameters_dataSourceParameters_SnowflakeParameters should be set to null + if (requestDataSourceParameters_dataSourceParameters_SnowflakeParametersIsNull) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters = null; + } + if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters != null) + { + request.DataSourceParameters.SnowflakeParameters = requestDataSourceParameters_dataSourceParameters_SnowflakeParameters; + requestDataSourceParametersIsNull = false; + } + Amazon.QuickSight.Model.StarburstParameters requestDataSourceParameters_dataSourceParameters_StarburstParameters = null; + + // populate StarburstParameters + var requestDataSourceParameters_dataSourceParameters_StarburstParametersIsNull = true; + requestDataSourceParameters_dataSourceParameters_StarburstParameters = new Amazon.QuickSight.Model.StarburstParameters(); + Amazon.QuickSight.AuthenticationType requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_AuthenticationType = null; + if (cmdletContext.StarburstParameters_AuthenticationType != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_AuthenticationType = cmdletContext.StarburstParameters_AuthenticationType; + } + if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_AuthenticationType != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters.AuthenticationType = requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_AuthenticationType; + requestDataSourceParameters_dataSourceParameters_StarburstParametersIsNull = false; + } + System.String requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Catalog = null; + if (cmdletContext.StarburstParameters_Catalog != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Catalog = cmdletContext.StarburstParameters_Catalog; + } + if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Catalog != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters.Catalog = requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Catalog; + requestDataSourceParameters_dataSourceParameters_StarburstParametersIsNull = false; + } + System.String requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_DatabaseAccessControlRole = null; + if (cmdletContext.StarburstParameters_DatabaseAccessControlRole != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_DatabaseAccessControlRole = cmdletContext.StarburstParameters_DatabaseAccessControlRole; + } + if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_DatabaseAccessControlRole != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters.DatabaseAccessControlRole = requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_DatabaseAccessControlRole; + requestDataSourceParameters_dataSourceParameters_StarburstParametersIsNull = false; + } + System.String requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Host = null; + if (cmdletContext.StarburstParameters_Host != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Host = cmdletContext.StarburstParameters_Host; + } + if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Host != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters.Host = requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Host; + requestDataSourceParameters_dataSourceParameters_StarburstParametersIsNull = false; + } + System.Int32? requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Port = null; + if (cmdletContext.StarburstParameters_Port != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Port = cmdletContext.StarburstParameters_Port.Value; + } + if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Port != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters.Port = requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Port.Value; + requestDataSourceParameters_dataSourceParameters_StarburstParametersIsNull = false; + } + Amazon.QuickSight.StarburstProductType requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_ProductType = null; + if (cmdletContext.StarburstParameters_ProductType != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_ProductType = cmdletContext.StarburstParameters_ProductType; + } + if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_ProductType != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters.ProductType = requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_ProductType; + requestDataSourceParameters_dataSourceParameters_StarburstParametersIsNull = false; + } + Amazon.QuickSight.Model.OAuthParameters requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters = null; + + // populate OAuthParameters + var requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParametersIsNull = true; + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters = new Amazon.QuickSight.Model.OAuthParameters(); + System.String requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderResourceUri = null; + if (cmdletContext.DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderResourceUri != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderResourceUri = cmdletContext.DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderResourceUri; + } + if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderResourceUri != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters.IdentityProviderResourceUri = requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderResourceUri; + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParametersIsNull = false; + } + System.String requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_OAuthScope = null; + if (cmdletContext.DataSourceParameters_StarburstParameters_OAuthParameters_OAuthScope != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_OAuthScope = cmdletContext.DataSourceParameters_StarburstParameters_OAuthParameters_OAuthScope; + } + if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_OAuthScope != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters.OAuthScope = requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_OAuthScope; + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParametersIsNull = false; + } + System.String requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_TokenProviderUrl = null; + if (cmdletContext.DataSourceParameters_StarburstParameters_OAuthParameters_TokenProviderUrl != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_TokenProviderUrl = cmdletContext.DataSourceParameters_StarburstParameters_OAuthParameters_TokenProviderUrl; + } + if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_TokenProviderUrl != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters.TokenProviderUrl = requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_TokenProviderUrl; + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParametersIsNull = false; + } + Amazon.QuickSight.Model.VpcConnectionProperties requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties = null; + + // populate IdentityProviderVpcConnectionProperties + var requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionPropertiesIsNull = true; + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties = new Amazon.QuickSight.Model.VpcConnectionProperties(); + System.String requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn = null; + if (cmdletContext.DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn = cmdletContext.DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn; + } + if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties.VpcConnectionArn = requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn; + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionPropertiesIsNull = false; + } + // determine if requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties should be set to null + if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionPropertiesIsNull) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties = null; + } + if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters.IdentityProviderVpcConnectionProperties = requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties; + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParametersIsNull = false; + } + // determine if requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters should be set to null + if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParametersIsNull) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters = null; + } + if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters.OAuthParameters = requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters; + requestDataSourceParameters_dataSourceParameters_StarburstParametersIsNull = false; + } + // determine if requestDataSourceParameters_dataSourceParameters_StarburstParameters should be set to null + if (requestDataSourceParameters_dataSourceParameters_StarburstParametersIsNull) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters = null; + } + if (requestDataSourceParameters_dataSourceParameters_StarburstParameters != null) + { + request.DataSourceParameters.StarburstParameters = requestDataSourceParameters_dataSourceParameters_StarburstParameters; + requestDataSourceParametersIsNull = false; } // determine if request.DataSourceParameters should be set to null if (requestDataSourceParametersIsNull) @@ -2604,16 +2924,28 @@ internal partial class CmdletContext : ExecutorContext public System.String ManifestFileLocation_Key { get; set; } public System.String S3Parameters_RoleArn { get; set; } public System.String ServiceNowParameters_SiteBaseUrl { get; set; } + public Amazon.QuickSight.AuthenticationType SnowflakeParameters_AuthenticationType { get; set; } public System.String SnowflakeParameters_Database { get; set; } + public System.String SnowflakeParameters_DatabaseAccessControlRole { get; set; } public System.String SnowflakeParameters_Host { get; set; } + public System.String DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderResourceUri { get; set; } + public System.String DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn { get; set; } + public System.String DataSourceParameters_SnowflakeParameters_OAuthParameters_OAuthScope { get; set; } + public System.String DataSourceParameters_SnowflakeParameters_OAuthParameters_TokenProviderUrl { get; set; } public System.String SnowflakeParameters_Warehouse { get; set; } public System.String SparkParameters_Host { get; set; } public System.Int32? SparkParameters_Port { get; set; } public System.String SqlServerParameters_Database { get; set; } public System.String SqlServerParameters_Host { get; set; } public System.Int32? SqlServerParameters_Port { get; set; } + public Amazon.QuickSight.AuthenticationType StarburstParameters_AuthenticationType { get; set; } public System.String StarburstParameters_Catalog { get; set; } + public System.String StarburstParameters_DatabaseAccessControlRole { get; set; } public System.String StarburstParameters_Host { get; set; } + public System.String DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderResourceUri { get; set; } + public System.String DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn { get; set; } + public System.String DataSourceParameters_StarburstParameters_OAuthParameters_OAuthScope { get; set; } + public System.String DataSourceParameters_StarburstParameters_OAuthParameters_TokenProviderUrl { get; set; } public System.Int32? StarburstParameters_Port { get; set; } public Amazon.QuickSight.StarburstProductType StarburstParameters_ProductType { get; set; } public System.String TeradataParameters_Database { get; set; } diff --git a/modules/AWSPowerShell/Cmdlets/QuickSight/Basic/Update-QSDataSource-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/QuickSight/Basic/Update-QSDataSource-Cmdlet.cs index 28232b4142..9d2fadf9f2 100644 --- a/modules/AWSPowerShell/Cmdlets/QuickSight/Basic/Update-QSDataSource-Cmdlet.cs +++ b/modules/AWSPowerShell/Cmdlets/QuickSight/Basic/Update-QSDataSource-Cmdlet.cs @@ -61,6 +61,32 @@ public partial class UpdateQSDataSourceCmdlet : AmazonQuickSightClientCmdlet, IE public Amazon.QuickSight.Model.DataSourceParameters[] CredentialPair_AlternateDataSourceParameter { get; set; } #endregion + #region Parameter SnowflakeParameters_AuthenticationType + /// + /// + /// The authentication type that you want to use for your connection. This parameter accepts + /// OAuth and non-OAuth authentication types. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("DataSourceParameters_SnowflakeParameters_AuthenticationType")] + [AWSConstantClassSource("Amazon.QuickSight.AuthenticationType")] + public Amazon.QuickSight.AuthenticationType SnowflakeParameters_AuthenticationType { get; set; } + #endregion + + #region Parameter StarburstParameters_AuthenticationType + /// + /// + /// The authentication type that you want to use for your connection. This parameter accepts + /// OAuth and non-OAuth authentication types. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("DataSourceParameters_StarburstParameters_AuthenticationType")] + [AWSConstantClassSource("Amazon.QuickSight.AuthenticationType")] + public Amazon.QuickSight.AuthenticationType StarburstParameters_AuthenticationType { get; set; } + #endregion + #region Parameter IAMParameters_AutoCreateDatabaseUser /// /// @@ -282,6 +308,28 @@ public partial class UpdateQSDataSourceCmdlet : AmazonQuickSightClientCmdlet, IE public System.String TeradataParameters_Database { get; set; } #endregion + #region Parameter SnowflakeParameters_DatabaseAccessControlRole + /// + /// + /// The database access control role. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("DataSourceParameters_SnowflakeParameters_DatabaseAccessControlRole")] + public System.String SnowflakeParameters_DatabaseAccessControlRole { get; set; } + #endregion + + #region Parameter StarburstParameters_DatabaseAccessControlRole + /// + /// + /// The database access control role. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("DataSourceParameters_StarburstParameters_DatabaseAccessControlRole")] + public System.String StarburstParameters_DatabaseAccessControlRole { get; set; } + #endregion + #region Parameter IAMParameters_DatabaseGroup /// /// @@ -570,6 +618,26 @@ public partial class UpdateQSDataSourceCmdlet : AmazonQuickSightClientCmdlet, IE public System.String TrinoParameters_Host { get; set; } #endregion + #region Parameter DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderResourceUri + /// + /// + /// The resource uri of the identity provider. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderResourceUri { get; set; } + #endregion + + #region Parameter DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderResourceUri + /// + /// + /// The resource uri of the identity provider. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderResourceUri { get; set; } + #endregion + #region Parameter RdsParameters_InstanceId /// /// @@ -620,6 +688,26 @@ public partial class UpdateQSDataSourceCmdlet : AmazonQuickSightClientCmdlet, IE public System.String Name { get; set; } #endregion + #region Parameter DataSourceParameters_SnowflakeParameters_OAuthParameters_OAuthScope + /// + /// + /// The OAuth scope. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String DataSourceParameters_SnowflakeParameters_OAuthParameters_OAuthScope { get; set; } + #endregion + + #region Parameter DataSourceParameters_StarburstParameters_OAuthParameters_OAuthScope + /// + /// + /// The OAuth scope. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String DataSourceParameters_StarburstParameters_OAuthParameters_OAuthScope { get; set; } + #endregion + #region Parameter CredentialPair_Password /// /// @@ -919,6 +1007,26 @@ public partial class UpdateQSDataSourceCmdlet : AmazonQuickSightClientCmdlet, IE public System.String DatabricksParameters_SqlEndpointPath { get; set; } #endregion + #region Parameter DataSourceParameters_SnowflakeParameters_OAuthParameters_TokenProviderUrl + /// + /// + /// The token endpoint URL of the identity provider. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String DataSourceParameters_SnowflakeParameters_OAuthParameters_TokenProviderUrl { get; set; } + #endregion + + #region Parameter DataSourceParameters_StarburstParameters_OAuthParameters_TokenProviderUrl + /// + /// + /// The token endpoint URL of the identity provider. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String DataSourceParameters_StarburstParameters_OAuthParameters_TokenProviderUrl { get; set; } + #endregion + #region Parameter CredentialPair_Username /// /// @@ -930,6 +1038,26 @@ public partial class UpdateQSDataSourceCmdlet : AmazonQuickSightClientCmdlet, IE public System.String CredentialPair_Username { get; set; } #endregion + #region Parameter DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn + /// + /// + /// The Amazon Resource Name (ARN) for the VPC connection. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn { get; set; } + #endregion + + #region Parameter DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn + /// + /// + /// The Amazon Resource Name (ARN) for the VPC connection. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn { get; set; } + #endregion + #region Parameter VpcConnectionProperties_VpcConnectionArn /// /// @@ -1098,16 +1226,28 @@ protected override void ProcessRecord() context.ManifestFileLocation_Key = this.ManifestFileLocation_Key; context.S3Parameters_RoleArn = this.S3Parameters_RoleArn; context.ServiceNowParameters_SiteBaseUrl = this.ServiceNowParameters_SiteBaseUrl; + context.SnowflakeParameters_AuthenticationType = this.SnowflakeParameters_AuthenticationType; context.SnowflakeParameters_Database = this.SnowflakeParameters_Database; + context.SnowflakeParameters_DatabaseAccessControlRole = this.SnowflakeParameters_DatabaseAccessControlRole; context.SnowflakeParameters_Host = this.SnowflakeParameters_Host; + context.DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderResourceUri = this.DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderResourceUri; + context.DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn = this.DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn; + context.DataSourceParameters_SnowflakeParameters_OAuthParameters_OAuthScope = this.DataSourceParameters_SnowflakeParameters_OAuthParameters_OAuthScope; + context.DataSourceParameters_SnowflakeParameters_OAuthParameters_TokenProviderUrl = this.DataSourceParameters_SnowflakeParameters_OAuthParameters_TokenProviderUrl; context.SnowflakeParameters_Warehouse = this.SnowflakeParameters_Warehouse; context.SparkParameters_Host = this.SparkParameters_Host; context.SparkParameters_Port = this.SparkParameters_Port; context.SqlServerParameters_Database = this.SqlServerParameters_Database; context.SqlServerParameters_Host = this.SqlServerParameters_Host; context.SqlServerParameters_Port = this.SqlServerParameters_Port; + context.StarburstParameters_AuthenticationType = this.StarburstParameters_AuthenticationType; context.StarburstParameters_Catalog = this.StarburstParameters_Catalog; + context.StarburstParameters_DatabaseAccessControlRole = this.StarburstParameters_DatabaseAccessControlRole; context.StarburstParameters_Host = this.StarburstParameters_Host; + context.DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderResourceUri = this.DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderResourceUri; + context.DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn = this.DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn; + context.DataSourceParameters_StarburstParameters_OAuthParameters_OAuthScope = this.DataSourceParameters_StarburstParameters_OAuthParameters_OAuthScope; + context.DataSourceParameters_StarburstParameters_OAuthParameters_TokenProviderUrl = this.DataSourceParameters_StarburstParameters_OAuthParameters_TokenProviderUrl; context.StarburstParameters_Port = this.StarburstParameters_Port; context.StarburstParameters_ProductType = this.StarburstParameters_ProductType; context.TeradataParameters_Database = this.TeradataParameters_Database; @@ -1984,51 +2124,6 @@ public object Execute(ExecutorContext context) request.DataSourceParameters.PrestoParameters = requestDataSourceParameters_dataSourceParameters_PrestoParameters; requestDataSourceParametersIsNull = false; } - Amazon.QuickSight.Model.SnowflakeParameters requestDataSourceParameters_dataSourceParameters_SnowflakeParameters = null; - - // populate SnowflakeParameters - var requestDataSourceParameters_dataSourceParameters_SnowflakeParametersIsNull = true; - requestDataSourceParameters_dataSourceParameters_SnowflakeParameters = new Amazon.QuickSight.Model.SnowflakeParameters(); - System.String requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Database = null; - if (cmdletContext.SnowflakeParameters_Database != null) - { - requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Database = cmdletContext.SnowflakeParameters_Database; - } - if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Database != null) - { - requestDataSourceParameters_dataSourceParameters_SnowflakeParameters.Database = requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Database; - requestDataSourceParameters_dataSourceParameters_SnowflakeParametersIsNull = false; - } - System.String requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Host = null; - if (cmdletContext.SnowflakeParameters_Host != null) - { - requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Host = cmdletContext.SnowflakeParameters_Host; - } - if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Host != null) - { - requestDataSourceParameters_dataSourceParameters_SnowflakeParameters.Host = requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Host; - requestDataSourceParameters_dataSourceParameters_SnowflakeParametersIsNull = false; - } - System.String requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Warehouse = null; - if (cmdletContext.SnowflakeParameters_Warehouse != null) - { - requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Warehouse = cmdletContext.SnowflakeParameters_Warehouse; - } - if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Warehouse != null) - { - requestDataSourceParameters_dataSourceParameters_SnowflakeParameters.Warehouse = requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Warehouse; - requestDataSourceParameters_dataSourceParameters_SnowflakeParametersIsNull = false; - } - // determine if requestDataSourceParameters_dataSourceParameters_SnowflakeParameters should be set to null - if (requestDataSourceParameters_dataSourceParameters_SnowflakeParametersIsNull) - { - requestDataSourceParameters_dataSourceParameters_SnowflakeParameters = null; - } - if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters != null) - { - request.DataSourceParameters.SnowflakeParameters = requestDataSourceParameters_dataSourceParameters_SnowflakeParameters; - requestDataSourceParametersIsNull = false; - } Amazon.QuickSight.Model.SqlServerParameters requestDataSourceParameters_dataSourceParameters_SqlServerParameters = null; // populate SqlServerParameters @@ -2164,61 +2259,6 @@ public object Execute(ExecutorContext context) request.DataSourceParameters.TrinoParameters = requestDataSourceParameters_dataSourceParameters_TrinoParameters; requestDataSourceParametersIsNull = false; } - Amazon.QuickSight.Model.StarburstParameters requestDataSourceParameters_dataSourceParameters_StarburstParameters = null; - - // populate StarburstParameters - var requestDataSourceParameters_dataSourceParameters_StarburstParametersIsNull = true; - requestDataSourceParameters_dataSourceParameters_StarburstParameters = new Amazon.QuickSight.Model.StarburstParameters(); - System.String requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Catalog = null; - if (cmdletContext.StarburstParameters_Catalog != null) - { - requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Catalog = cmdletContext.StarburstParameters_Catalog; - } - if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Catalog != null) - { - requestDataSourceParameters_dataSourceParameters_StarburstParameters.Catalog = requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Catalog; - requestDataSourceParameters_dataSourceParameters_StarburstParametersIsNull = false; - } - System.String requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Host = null; - if (cmdletContext.StarburstParameters_Host != null) - { - requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Host = cmdletContext.StarburstParameters_Host; - } - if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Host != null) - { - requestDataSourceParameters_dataSourceParameters_StarburstParameters.Host = requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Host; - requestDataSourceParameters_dataSourceParameters_StarburstParametersIsNull = false; - } - System.Int32? requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Port = null; - if (cmdletContext.StarburstParameters_Port != null) - { - requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Port = cmdletContext.StarburstParameters_Port.Value; - } - if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Port != null) - { - requestDataSourceParameters_dataSourceParameters_StarburstParameters.Port = requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Port.Value; - requestDataSourceParameters_dataSourceParameters_StarburstParametersIsNull = false; - } - Amazon.QuickSight.StarburstProductType requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_ProductType = null; - if (cmdletContext.StarburstParameters_ProductType != null) - { - requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_ProductType = cmdletContext.StarburstParameters_ProductType; - } - if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_ProductType != null) - { - requestDataSourceParameters_dataSourceParameters_StarburstParameters.ProductType = requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_ProductType; - requestDataSourceParameters_dataSourceParameters_StarburstParametersIsNull = false; - } - // determine if requestDataSourceParameters_dataSourceParameters_StarburstParameters should be set to null - if (requestDataSourceParameters_dataSourceParameters_StarburstParametersIsNull) - { - requestDataSourceParameters_dataSourceParameters_StarburstParameters = null; - } - if (requestDataSourceParameters_dataSourceParameters_StarburstParameters != null) - { - request.DataSourceParameters.StarburstParameters = requestDataSourceParameters_dataSourceParameters_StarburstParameters; - requestDataSourceParametersIsNull = false; - } Amazon.QuickSight.Model.RedshiftParameters requestDataSourceParameters_dataSourceParameters_RedshiftParameters = null; // populate RedshiftParameters @@ -2353,6 +2393,286 @@ public object Execute(ExecutorContext context) { request.DataSourceParameters.RedshiftParameters = requestDataSourceParameters_dataSourceParameters_RedshiftParameters; requestDataSourceParametersIsNull = false; + } + Amazon.QuickSight.Model.SnowflakeParameters requestDataSourceParameters_dataSourceParameters_SnowflakeParameters = null; + + // populate SnowflakeParameters + var requestDataSourceParameters_dataSourceParameters_SnowflakeParametersIsNull = true; + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters = new Amazon.QuickSight.Model.SnowflakeParameters(); + Amazon.QuickSight.AuthenticationType requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_AuthenticationType = null; + if (cmdletContext.SnowflakeParameters_AuthenticationType != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_AuthenticationType = cmdletContext.SnowflakeParameters_AuthenticationType; + } + if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_AuthenticationType != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters.AuthenticationType = requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_AuthenticationType; + requestDataSourceParameters_dataSourceParameters_SnowflakeParametersIsNull = false; + } + System.String requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Database = null; + if (cmdletContext.SnowflakeParameters_Database != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Database = cmdletContext.SnowflakeParameters_Database; + } + if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Database != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters.Database = requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Database; + requestDataSourceParameters_dataSourceParameters_SnowflakeParametersIsNull = false; + } + System.String requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_DatabaseAccessControlRole = null; + if (cmdletContext.SnowflakeParameters_DatabaseAccessControlRole != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_DatabaseAccessControlRole = cmdletContext.SnowflakeParameters_DatabaseAccessControlRole; + } + if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_DatabaseAccessControlRole != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters.DatabaseAccessControlRole = requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_DatabaseAccessControlRole; + requestDataSourceParameters_dataSourceParameters_SnowflakeParametersIsNull = false; + } + System.String requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Host = null; + if (cmdletContext.SnowflakeParameters_Host != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Host = cmdletContext.SnowflakeParameters_Host; + } + if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Host != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters.Host = requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Host; + requestDataSourceParameters_dataSourceParameters_SnowflakeParametersIsNull = false; + } + System.String requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Warehouse = null; + if (cmdletContext.SnowflakeParameters_Warehouse != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Warehouse = cmdletContext.SnowflakeParameters_Warehouse; + } + if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Warehouse != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters.Warehouse = requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_snowflakeParameters_Warehouse; + requestDataSourceParameters_dataSourceParameters_SnowflakeParametersIsNull = false; + } + Amazon.QuickSight.Model.OAuthParameters requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters = null; + + // populate OAuthParameters + var requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParametersIsNull = true; + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters = new Amazon.QuickSight.Model.OAuthParameters(); + System.String requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderResourceUri = null; + if (cmdletContext.DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderResourceUri != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderResourceUri = cmdletContext.DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderResourceUri; + } + if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderResourceUri != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters.IdentityProviderResourceUri = requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderResourceUri; + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParametersIsNull = false; + } + System.String requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_OAuthScope = null; + if (cmdletContext.DataSourceParameters_SnowflakeParameters_OAuthParameters_OAuthScope != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_OAuthScope = cmdletContext.DataSourceParameters_SnowflakeParameters_OAuthParameters_OAuthScope; + } + if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_OAuthScope != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters.OAuthScope = requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_OAuthScope; + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParametersIsNull = false; + } + System.String requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_TokenProviderUrl = null; + if (cmdletContext.DataSourceParameters_SnowflakeParameters_OAuthParameters_TokenProviderUrl != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_TokenProviderUrl = cmdletContext.DataSourceParameters_SnowflakeParameters_OAuthParameters_TokenProviderUrl; + } + if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_TokenProviderUrl != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters.TokenProviderUrl = requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_TokenProviderUrl; + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParametersIsNull = false; + } + Amazon.QuickSight.Model.VpcConnectionProperties requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties = null; + + // populate IdentityProviderVpcConnectionProperties + var requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionPropertiesIsNull = true; + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties = new Amazon.QuickSight.Model.VpcConnectionProperties(); + System.String requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn = null; + if (cmdletContext.DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn = cmdletContext.DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn; + } + if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties.VpcConnectionArn = requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn; + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionPropertiesIsNull = false; + } + // determine if requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties should be set to null + if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionPropertiesIsNull) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties = null; + } + if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters.IdentityProviderVpcConnectionProperties = requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties; + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParametersIsNull = false; + } + // determine if requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters should be set to null + if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParametersIsNull) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters = null; + } + if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters != null) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters.OAuthParameters = requestDataSourceParameters_dataSourceParameters_SnowflakeParameters_dataSourceParameters_SnowflakeParameters_OAuthParameters; + requestDataSourceParameters_dataSourceParameters_SnowflakeParametersIsNull = false; + } + // determine if requestDataSourceParameters_dataSourceParameters_SnowflakeParameters should be set to null + if (requestDataSourceParameters_dataSourceParameters_SnowflakeParametersIsNull) + { + requestDataSourceParameters_dataSourceParameters_SnowflakeParameters = null; + } + if (requestDataSourceParameters_dataSourceParameters_SnowflakeParameters != null) + { + request.DataSourceParameters.SnowflakeParameters = requestDataSourceParameters_dataSourceParameters_SnowflakeParameters; + requestDataSourceParametersIsNull = false; + } + Amazon.QuickSight.Model.StarburstParameters requestDataSourceParameters_dataSourceParameters_StarburstParameters = null; + + // populate StarburstParameters + var requestDataSourceParameters_dataSourceParameters_StarburstParametersIsNull = true; + requestDataSourceParameters_dataSourceParameters_StarburstParameters = new Amazon.QuickSight.Model.StarburstParameters(); + Amazon.QuickSight.AuthenticationType requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_AuthenticationType = null; + if (cmdletContext.StarburstParameters_AuthenticationType != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_AuthenticationType = cmdletContext.StarburstParameters_AuthenticationType; + } + if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_AuthenticationType != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters.AuthenticationType = requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_AuthenticationType; + requestDataSourceParameters_dataSourceParameters_StarburstParametersIsNull = false; + } + System.String requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Catalog = null; + if (cmdletContext.StarburstParameters_Catalog != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Catalog = cmdletContext.StarburstParameters_Catalog; + } + if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Catalog != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters.Catalog = requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Catalog; + requestDataSourceParameters_dataSourceParameters_StarburstParametersIsNull = false; + } + System.String requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_DatabaseAccessControlRole = null; + if (cmdletContext.StarburstParameters_DatabaseAccessControlRole != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_DatabaseAccessControlRole = cmdletContext.StarburstParameters_DatabaseAccessControlRole; + } + if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_DatabaseAccessControlRole != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters.DatabaseAccessControlRole = requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_DatabaseAccessControlRole; + requestDataSourceParameters_dataSourceParameters_StarburstParametersIsNull = false; + } + System.String requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Host = null; + if (cmdletContext.StarburstParameters_Host != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Host = cmdletContext.StarburstParameters_Host; + } + if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Host != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters.Host = requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Host; + requestDataSourceParameters_dataSourceParameters_StarburstParametersIsNull = false; + } + System.Int32? requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Port = null; + if (cmdletContext.StarburstParameters_Port != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Port = cmdletContext.StarburstParameters_Port.Value; + } + if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Port != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters.Port = requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_Port.Value; + requestDataSourceParameters_dataSourceParameters_StarburstParametersIsNull = false; + } + Amazon.QuickSight.StarburstProductType requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_ProductType = null; + if (cmdletContext.StarburstParameters_ProductType != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_ProductType = cmdletContext.StarburstParameters_ProductType; + } + if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_ProductType != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters.ProductType = requestDataSourceParameters_dataSourceParameters_StarburstParameters_starburstParameters_ProductType; + requestDataSourceParameters_dataSourceParameters_StarburstParametersIsNull = false; + } + Amazon.QuickSight.Model.OAuthParameters requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters = null; + + // populate OAuthParameters + var requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParametersIsNull = true; + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters = new Amazon.QuickSight.Model.OAuthParameters(); + System.String requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderResourceUri = null; + if (cmdletContext.DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderResourceUri != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderResourceUri = cmdletContext.DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderResourceUri; + } + if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderResourceUri != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters.IdentityProviderResourceUri = requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderResourceUri; + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParametersIsNull = false; + } + System.String requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_OAuthScope = null; + if (cmdletContext.DataSourceParameters_StarburstParameters_OAuthParameters_OAuthScope != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_OAuthScope = cmdletContext.DataSourceParameters_StarburstParameters_OAuthParameters_OAuthScope; + } + if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_OAuthScope != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters.OAuthScope = requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_OAuthScope; + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParametersIsNull = false; + } + System.String requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_TokenProviderUrl = null; + if (cmdletContext.DataSourceParameters_StarburstParameters_OAuthParameters_TokenProviderUrl != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_TokenProviderUrl = cmdletContext.DataSourceParameters_StarburstParameters_OAuthParameters_TokenProviderUrl; + } + if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_TokenProviderUrl != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters.TokenProviderUrl = requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_TokenProviderUrl; + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParametersIsNull = false; + } + Amazon.QuickSight.Model.VpcConnectionProperties requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties = null; + + // populate IdentityProviderVpcConnectionProperties + var requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionPropertiesIsNull = true; + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties = new Amazon.QuickSight.Model.VpcConnectionProperties(); + System.String requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn = null; + if (cmdletContext.DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn = cmdletContext.DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn; + } + if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties.VpcConnectionArn = requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn; + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionPropertiesIsNull = false; + } + // determine if requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties should be set to null + if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionPropertiesIsNull) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties = null; + } + if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters.IdentityProviderVpcConnectionProperties = requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters_dataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties; + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParametersIsNull = false; + } + // determine if requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters should be set to null + if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParametersIsNull) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters = null; + } + if (requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters != null) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters.OAuthParameters = requestDataSourceParameters_dataSourceParameters_StarburstParameters_dataSourceParameters_StarburstParameters_OAuthParameters; + requestDataSourceParameters_dataSourceParameters_StarburstParametersIsNull = false; + } + // determine if requestDataSourceParameters_dataSourceParameters_StarburstParameters should be set to null + if (requestDataSourceParameters_dataSourceParameters_StarburstParametersIsNull) + { + requestDataSourceParameters_dataSourceParameters_StarburstParameters = null; + } + if (requestDataSourceParameters_dataSourceParameters_StarburstParameters != null) + { + request.DataSourceParameters.StarburstParameters = requestDataSourceParameters_dataSourceParameters_StarburstParameters; + requestDataSourceParametersIsNull = false; } // determine if request.DataSourceParameters should be set to null if (requestDataSourceParametersIsNull) @@ -2518,16 +2838,28 @@ internal partial class CmdletContext : ExecutorContext public System.String ManifestFileLocation_Key { get; set; } public System.String S3Parameters_RoleArn { get; set; } public System.String ServiceNowParameters_SiteBaseUrl { get; set; } + public Amazon.QuickSight.AuthenticationType SnowflakeParameters_AuthenticationType { get; set; } public System.String SnowflakeParameters_Database { get; set; } + public System.String SnowflakeParameters_DatabaseAccessControlRole { get; set; } public System.String SnowflakeParameters_Host { get; set; } + public System.String DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderResourceUri { get; set; } + public System.String DataSourceParameters_SnowflakeParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn { get; set; } + public System.String DataSourceParameters_SnowflakeParameters_OAuthParameters_OAuthScope { get; set; } + public System.String DataSourceParameters_SnowflakeParameters_OAuthParameters_TokenProviderUrl { get; set; } public System.String SnowflakeParameters_Warehouse { get; set; } public System.String SparkParameters_Host { get; set; } public System.Int32? SparkParameters_Port { get; set; } public System.String SqlServerParameters_Database { get; set; } public System.String SqlServerParameters_Host { get; set; } public System.Int32? SqlServerParameters_Port { get; set; } + public Amazon.QuickSight.AuthenticationType StarburstParameters_AuthenticationType { get; set; } public System.String StarburstParameters_Catalog { get; set; } + public System.String StarburstParameters_DatabaseAccessControlRole { get; set; } public System.String StarburstParameters_Host { get; set; } + public System.String DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderResourceUri { get; set; } + public System.String DataSourceParameters_StarburstParameters_OAuthParameters_IdentityProviderVpcConnectionProperties_VpcConnectionArn { get; set; } + public System.String DataSourceParameters_StarburstParameters_OAuthParameters_OAuthScope { get; set; } + public System.String DataSourceParameters_StarburstParameters_OAuthParameters_TokenProviderUrl { get; set; } public System.Int32? StarburstParameters_Port { get; set; } public Amazon.QuickSight.StarburstProductType StarburstParameters_ProductType { get; set; } public System.String TeradataParameters_Database { get; set; } diff --git a/modules/AWSPowerShell/Cmdlets/ResourceExplorer2/AWS.Tools.ResourceExplorer2.Completers.psm1 b/modules/AWSPowerShell/Cmdlets/ResourceExplorer2/AWS.Tools.ResourceExplorer2.Completers.psm1 index 9dbdf414d6..c2fe20515d 100644 --- a/modules/AWSPowerShell/Cmdlets/ResourceExplorer2/AWS.Tools.ResourceExplorer2.Completers.psm1 +++ b/modules/AWSPowerShell/Cmdlets/ResourceExplorer2/AWS.Tools.ResourceExplorer2.Completers.psm1 @@ -162,9 +162,11 @@ $AREX_SelectMap = @{ "Get-AREXAccountLevelServiceConfiguration", "Get-AREXDefaultView", "Get-AREXIndex", + "Get-AREXManagedView", "Get-AREXView", "Get-AREXIndexList", "Get-AREXIndexesForMemberList", + "Get-AREXManagedViewList", "Get-AREXResourceList", "Get-AREXSupportedResourceTypeList", "Get-AREXResourceTag", diff --git a/modules/AWSPowerShell/Cmdlets/ResourceExplorer2/AWS.Tools.ResourceExplorer2.psd1 b/modules/AWSPowerShell/Cmdlets/ResourceExplorer2/AWS.Tools.ResourceExplorer2.psd1 index 82fa0917e8..c1dbde7b37 100644 --- a/modules/AWSPowerShell/Cmdlets/ResourceExplorer2/AWS.Tools.ResourceExplorer2.psd1 +++ b/modules/AWSPowerShell/Cmdlets/ResourceExplorer2/AWS.Tools.ResourceExplorer2.psd1 @@ -92,6 +92,8 @@ This version of AWS Tools for PowerShell is compatible with Windows PowerShell 5 'Get-AREXIndex', 'Get-AREXIndexesForMemberList', 'Get-AREXIndexList', + 'Get-AREXManagedView', + 'Get-AREXManagedViewList', 'Get-AREXResourceList', 'Get-AREXResourceTag', 'Get-AREXSupportedResourceTypeList', diff --git a/modules/AWSPowerShell/Cmdlets/ResourceExplorer2/Basic/Get-AREXManagedView-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/ResourceExplorer2/Basic/Get-AREXManagedView-Cmdlet.cs new file mode 100644 index 0000000000..c903b59863 --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/ResourceExplorer2/Basic/Get-AREXManagedView-Cmdlet.cs @@ -0,0 +1,205 @@ +/******************************************************************************* + * 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.ResourceExplorer2; +using Amazon.ResourceExplorer2.Model; + +namespace Amazon.PowerShell.Cmdlets.AREX +{ + /// + /// Retrieves details of the specified Amazon + /// Web Services-managed view. + /// + [Cmdlet("Get", "AREXManagedView")] + [OutputType("Amazon.ResourceExplorer2.Model.ManagedView")] + [AWSCmdlet("Calls the AWS Resource Explorer GetManagedView API operation.", Operation = new[] {"GetManagedView"}, SelectReturnType = typeof(Amazon.ResourceExplorer2.Model.GetManagedViewResponse))] + [AWSCmdletOutput("Amazon.ResourceExplorer2.Model.ManagedView or Amazon.ResourceExplorer2.Model.GetManagedViewResponse", + "This cmdlet returns an Amazon.ResourceExplorer2.Model.ManagedView object.", + "The service call response (type Amazon.ResourceExplorer2.Model.GetManagedViewResponse) can be returned by specifying '-Select *'." + )] + public partial class GetAREXManagedViewCmdlet : AmazonResourceExplorer2ClientCmdlet, IExecutor + { + + protected override bool IsSensitiveResponse { get; set; } = true; + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter ManagedViewArn + /// + /// + /// The Amazon resource name (ARN) of the managed view. + /// + /// + #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 ManagedViewArn { get; set; } + #endregion + + #region Parameter Select + /// + /// Use the -Select parameter to control the cmdlet output. The default value is 'ManagedView'. + /// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.ResourceExplorer2.Model.GetManagedViewResponse). + /// Specifying the name of a property of type Amazon.ResourceExplorer2.Model.GetManagedViewResponse 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; } = "ManagedView"; + #endregion + + #region Parameter PassThru + /// + /// Changes the cmdlet behavior to return the value passed to the ManagedViewArn parameter. + /// The -PassThru parameter is deprecated, use -Select '^ManagedViewArn' instead. This parameter will be removed in a future version. + /// + [System.Obsolete("The -PassThru parameter is deprecated, use -Select '^ManagedViewArn' instead. This parameter will be removed in a future version.")] + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public SwitchParameter PassThru { get; set; } + #endregion + + protected override void ProcessRecord() + { + this._AWSSignerType = "v4"; + base.ProcessRecord(); + + 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.ManagedViewArn; + } + #pragma warning restore CS0618, CS0612 //A class member was marked with the Obsolete attribute + context.ManagedViewArn = this.ManagedViewArn; + #if MODULAR + if (this.ManagedViewArn == null && ParameterWasBound(nameof(this.ManagedViewArn))) + { + WriteWarning("You are passing $null as a value for parameter ManagedViewArn 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.ResourceExplorer2.Model.GetManagedViewRequest(); + + if (cmdletContext.ManagedViewArn != null) + { + request.ManagedViewArn = cmdletContext.ManagedViewArn; + } + + 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.ResourceExplorer2.Model.GetManagedViewResponse CallAWSServiceOperation(IAmazonResourceExplorer2 client, Amazon.ResourceExplorer2.Model.GetManagedViewRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Resource Explorer", "GetManagedView"); + try + { + #if DESKTOP + return client.GetManagedView(request); + #elif CORECLR + return client.GetManagedViewAsync(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 ManagedViewArn { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => response.ManagedView; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/ResourceExplorer2/Basic/Get-AREXManagedViewList-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/ResourceExplorer2/Basic/Get-AREXManagedViewList-Cmdlet.cs new file mode 100644 index 0000000000..2a0cdc3b66 --- /dev/null +++ b/modules/AWSPowerShell/Cmdlets/ResourceExplorer2/Basic/Get-AREXManagedViewList-Cmdlet.cs @@ -0,0 +1,236 @@ +/******************************************************************************* + * 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.ResourceExplorer2; +using Amazon.ResourceExplorer2.Model; + +namespace Amazon.PowerShell.Cmdlets.AREX +{ + /// + /// Lists the Amazon resource names (ARNs) of the Amazon + /// Web Services-managed views available in the Amazon Web Services Region in which + /// you call this operation. + /// + [Cmdlet("Get", "AREXManagedViewList")] + [OutputType("System.String")] + [AWSCmdlet("Calls the AWS Resource Explorer ListManagedViews API operation.", Operation = new[] {"ListManagedViews"}, SelectReturnType = typeof(Amazon.ResourceExplorer2.Model.ListManagedViewsResponse))] + [AWSCmdletOutput("System.String or Amazon.ResourceExplorer2.Model.ListManagedViewsResponse", + "This cmdlet returns a collection of System.String objects.", + "The service call response (type Amazon.ResourceExplorer2.Model.ListManagedViewsResponse) can be returned by specifying '-Select *'." + )] + public partial class GetAREXManagedViewListCmdlet : AmazonResourceExplorer2ClientCmdlet, IExecutor + { + + protected override bool IsGeneratedCmdlet { get; set; } = true; + + #region Parameter ServicePrincipal + /// + /// + /// Specifies a service principal name. If specified, then the operation only returns + /// the managed views that are managed by the input service. + /// + /// + [System.Management.Automation.Parameter(Position = 0, ValueFromPipelineByPropertyName = true, ValueFromPipeline = true)] + public System.String ServicePrincipal { get; set; } + #endregion + + #region Parameter MaxResult + /// + /// + /// The maximum number of results that you want included on each page of the response. + /// If you do not include this parameter, it defaults to a value appropriate to the operation. + /// If additional items exist beyond those included in the current response, the NextToken + /// response element is present and has a value (is not null). Include that value as the + /// NextToken request parameter in the next call to the operation to get the next + /// part of the results.An API operation can return fewer results than the maximum even when there are more + /// results available. You should check NextToken after every operation to ensure + /// that you receive all of the results. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [Alias("MaxResults")] + public System.Int32? MaxResult { get; set; } + #endregion + + #region Parameter NextToken + /// + /// + /// The parameter for receiving additional results if you receive a NextToken response + /// in a previous request. A NextToken response indicates that more output is available. + /// Set this parameter to the value of the previous call's NextToken response to + /// indicate where the output should continue from. The pagination tokens expire after + /// 24 hours. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public System.String NextToken { get; set; } + #endregion + + #region Parameter Select + /// + /// Use the -Select parameter to control the cmdlet output. The default value is 'ManagedViews'. + /// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.ResourceExplorer2.Model.ListManagedViewsResponse). + /// Specifying the name of a property of type Amazon.ResourceExplorer2.Model.ListManagedViewsResponse 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; } = "ManagedViews"; + #endregion + + #region Parameter PassThru + /// + /// Changes the cmdlet behavior to return the value passed to the ServicePrincipal parameter. + /// The -PassThru parameter is deprecated, use -Select '^ServicePrincipal' instead. This parameter will be removed in a future version. + /// + [System.Obsolete("The -PassThru parameter is deprecated, use -Select '^ServicePrincipal' instead. This parameter will be removed in a future version.")] + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + public SwitchParameter PassThru { get; set; } + #endregion + + protected override void ProcessRecord() + { + this._AWSSignerType = "v4"; + base.ProcessRecord(); + + 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.ServicePrincipal; + } + #pragma warning restore CS0618, CS0612 //A class member was marked with the Obsolete attribute + context.MaxResult = this.MaxResult; + context.NextToken = this.NextToken; + context.ServicePrincipal = this.ServicePrincipal; + + // 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.ResourceExplorer2.Model.ListManagedViewsRequest(); + + if (cmdletContext.MaxResult != null) + { + request.MaxResults = cmdletContext.MaxResult.Value; + } + if (cmdletContext.NextToken != null) + { + request.NextToken = cmdletContext.NextToken; + } + if (cmdletContext.ServicePrincipal != null) + { + request.ServicePrincipal = cmdletContext.ServicePrincipal; + } + + 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.ResourceExplorer2.Model.ListManagedViewsResponse CallAWSServiceOperation(IAmazonResourceExplorer2 client, Amazon.ResourceExplorer2.Model.ListManagedViewsRequest request) + { + Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Resource Explorer", "ListManagedViews"); + try + { + #if DESKTOP + return client.ListManagedViews(request); + #elif CORECLR + return client.ListManagedViewsAsync(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.Int32? MaxResult { get; set; } + public System.String NextToken { get; set; } + public System.String ServicePrincipal { get; set; } + public System.Func Select { get; set; } = + (response, cmdlet) => response.ManagedViews; + } + + } +} diff --git a/modules/AWSPowerShell/Cmdlets/Synthetics/AWS.Tools.Synthetics.Completers.psm1 b/modules/AWSPowerShell/Cmdlets/Synthetics/AWS.Tools.Synthetics.Completers.psm1 index 7c5eefc82b..bf84f1213a 100644 --- a/modules/AWSPowerShell/Cmdlets/Synthetics/AWS.Tools.Synthetics.Completers.psm1 +++ b/modules/AWSPowerShell/Cmdlets/Synthetics/AWS.Tools.Synthetics.Completers.psm1 @@ -90,6 +90,16 @@ $CWSYN_Completers = { break } + # Amazon.Synthetics.ProvisionedResourceCleanupSetting + { + ($_ -eq "New-CWSYNCanary/ProvisionedResourceCleanup") -Or + ($_ -eq "Update-CWSYNCanary/ProvisionedResourceCleanup") + } + { + $v = "AUTOMATIC","OFF" + break + } + } @@ -99,6 +109,7 @@ $CWSYN_Completers = { } $CWSYN_map = @{ + "ProvisionedResourceCleanup"=@("New-CWSYNCanary","Update-CWSYNCanary") "S3Encryption_EncryptionMode"=@("New-CWSYNCanary","Update-CWSYNCanary") } diff --git a/modules/AWSPowerShell/Cmdlets/Synthetics/Basic/New-CWSYNCanary-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/Synthetics/Basic/New-CWSYNCanary-Cmdlet.cs index bf13d4cc20..a97941862d 100644 --- a/modules/AWSPowerShell/Cmdlets/Synthetics/Basic/New-CWSYNCanary-Cmdlet.cs +++ b/modules/AWSPowerShell/Cmdlets/Synthetics/Basic/New-CWSYNCanary-Cmdlet.cs @@ -260,6 +260,22 @@ public partial class NewCWSYNCanaryCmdlet : AmazonSyntheticsClientCmdlet, IExecu public System.String Name { get; set; } #endregion + #region Parameter ProvisionedResourceCleanup + /// + /// + /// Specifies whether to also delete the Lambda functions and layers used by this canary + /// when the canary is deleted. If you omit this parameter, the default of AUTOMATIC + /// is used, which means that the Lambda functions and layers will be deleted when the + /// canary is deleted.If the value of this parameter is OFF, then the value of the DeleteLambda + /// parameter of the DeleteCanary + /// operation determines whether the Lambda functions and layers will be deleted. + /// + /// + [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] + [AWSConstantClassSource("Amazon.Synthetics.ProvisionedResourceCleanupSetting")] + public Amazon.Synthetics.ProvisionedResourceCleanupSetting ProvisionedResourceCleanup { get; set; } + #endregion + #region Parameter ResourcesToReplicateTag /// /// @@ -498,6 +514,7 @@ protected override void ProcessRecord() WriteWarning("You are passing $null as a value for parameter Name 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.ProvisionedResourceCleanup = this.ProvisionedResourceCleanup; if (this.ResourcesToReplicateTag != null) { context.ResourcesToReplicateTag = new List(this.ResourcesToReplicateTag); @@ -685,6 +702,10 @@ public object Execute(ExecutorContext context) { request.Name = cmdletContext.Name; } + if (cmdletContext.ProvisionedResourceCleanup != null) + { + request.ProvisionedResourceCleanup = cmdletContext.ProvisionedResourceCleanup; + } if (cmdletContext.ResourcesToReplicateTag != null) { request.ResourcesToReplicateTags = cmdletContext.ResourcesToReplicateTag; @@ -888,6 +909,7 @@ internal partial class CmdletContext : ExecutorContext public System.String ExecutionRoleArn { get; set; } public System.Int32? FailureRetentionPeriodInDay { get; set; } public System.String Name { get; set; } + public Amazon.Synthetics.ProvisionedResourceCleanupSetting ProvisionedResourceCleanup { get; set; } public List ResourcesToReplicateTag { get; set; } public System.Boolean? RunConfig_ActiveTracing { get; set; } public Dictionary RunConfig_EnvironmentVariable { get; set; } diff --git a/modules/AWSPowerShell/Cmdlets/Synthetics/Basic/Remove-CWSYNCanary-Cmdlet.cs b/modules/AWSPowerShell/Cmdlets/Synthetics/Basic/Remove-CWSYNCanary-Cmdlet.cs index cbc199ba82..ce56c7ae02 100644 --- a/modules/AWSPowerShell/Cmdlets/Synthetics/Basic/Remove-CWSYNCanary-Cmdlet.cs +++ b/modules/AWSPowerShell/Cmdlets/Synthetics/Basic/Remove-CWSYNCanary-Cmdlet.cs @@ -32,12 +32,12 @@ namespace Amazon.PowerShell.Cmdlets.CWSYN /// /// /// - /// If you specify DeleteLambda to true, CloudWatch Synthetics also deletes - /// the Lambda functions and layers that are used by the canary. + /// If the canary's ProvisionedResourceCleanup field is set to AUTOMATIC + /// or you specify DeleteLambda in this operation as true, CloudWatch Synthetics + /// also deletes the Lambda functions and layers that are used by the canary. /// /// Other resources used and created by the canary are not automatically deleted. After - /// you delete a canary that you do not intend to use again, you should also delete the - /// following: + /// you delete a canary, you should also delete the following: ///