AWS Tools for Windows PowerShell
Command Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Synopsis

Calls the Amazon Bedrock AgentCore StartDatasetGeneration API operation.

Syntax

Start-BACDatasetGeneration
-Source_TraceGeneration_Selection_Filters_AttributeFilter <GenerationAttributeFilter[]>
-Source_TraceGeneration_SourceConfig_BatchEvaluation_BatchEvaluationArn <String>
-Source_TraceGeneration_RedactionConfiguration_CustomDataIdentifier <CustomDataIdentifier[]>
-DatasetId <String>
-Description <String>
-Source_TraceGeneration_SourceConfig_CloudWatchLogs_EndTime <DateTime>
-Source_TraceGeneration_SourceConfig_OnlineEvaluation_EndTime <DateTime>
-Source_TraceGeneration_Selection_Filters_EvaluatorFilter <EvaluatorFilter[]>
-Source_TraceGeneration_GroundTruth_Field <String[]>
-Source_TraceGeneration_RedactionConfiguration_Identifier <String[]>
-Source_TraceGeneration_SourceConfig_CloudWatchLogs_LogGroupNamePrefix <String[]>
-Source_TraceGeneration_SourceConfig_CloudWatchLogs_LogGroupName <String[]>
-Source_TraceGeneration_Selection_Filters_TurnCount_Max <Int32>
-Source_TraceGeneration_Sampling_MaxScenario <Int32>
-Source_TraceGeneration_Selection_Filters_TurnCount_Min <Int32>
-Name <String>
-Source_TraceGeneration_SourceConfig_OnlineEvaluation_OnlineEvaluationConfigArn <String>
-Source_TraceGeneration_GroundTruth_QualityFilter <EvaluatorFilter[]>
-ScenarioType <ScenarioType>
-Source_TraceGeneration_SourceConfig_CloudWatchLogs_ServiceName <String[]>
-Source_TraceGeneration_Selection_Identifiers_SessionId <String[]>
-Source_TraceGeneration_SourceConfig_CloudWatchLogs_StartTime <DateTime>
-Source_TraceGeneration_SourceConfig_OnlineEvaluation_StartTime <DateTime>
-Source_TraceGeneration_Selection_Identifiers_TraceId <String[]>
-ClientToken <String>
-Select <String>
-Force <SwitchParameter>
-ClientConfig <AmazonBedrockAgentCoreConfig>

Description

Starts a dataset generation, which creates examples for an existing dataset from your agent's traces. The dataset must be ACTIVE. Each generation produces one scenario type, set by scenarioType. When the generation finishes, AgentCore adds the examples to the dataset's draft. Examples that duplicate each other, or that duplicate examples already in the draft, are left out. A dataset can have only one generation in progress at a time. While it runs, requests that change the dataset's draft or publish a version are rejected with a ConflictException. AgentCore reads the traces with your credentials, so you need read access to the trace log groups, and to the dataset's KMS key if the dataset uses a customer managed key. The draft can hold at most 1,000 examples, including the examples this generation can add (maxScenarios). The operation returns immediately. To track progress, call GetDatasetGeneration.

Parameters

Amazon.PowerShell.Cmdlets.BAC.AmazonBedrockAgentCoreClientCmdlet.ClientConfig
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-ClientToken <String>
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, the service ignores the request, but does not return an error.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-DatasetId <String>
The unique identifier of the dataset to add the generated examples to. The dataset must be ACTIVE.
Required?True
Position?Named
Accept pipeline input?True (ByPropertyName)
-Description <String>
A description of the dataset generation.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
This parameter overrides confirmation prompts to force the cmdlet to continue its operation. This parameter should always be used with caution.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Name <String>
The name of the dataset generation. The generation ID starts with this name.
Required?True
Position?Named
Accept pipeline input?True (ByPropertyName)
-ScenarioType <ScenarioType>
The type of scenario to generate. If you don't specify a value, the generation produces DYNAMIC scenarios.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Select <String>
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.BedrockAgentCore.Model.StartDatasetGenerationResponse). Specifying the name of a property of type Amazon.BedrockAgentCore.Model.StartDatasetGenerationResponse will result in that property being returned. Specifying -Select '^ParameterName' will result in the cmdlet returning the selected cmdlet parameter value.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Source_TraceGeneration_GroundTruth_Field <String[]>
The reference fields to copy. Values are copied from the session as observed, not generated. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSource_TraceGeneration_GroundTruth_Fields
-Source_TraceGeneration_GroundTruth_QualityFilter <EvaluatorFilter[]>
Evaluator conditions that a selected session must also meet to have reference fields copied. If you don't specify these, the generation uses the evaluator filters from selection. If the selection names sessions and traces by ID, every selected session gets reference fields. Specify an empty list to give every selected session reference fields. You can't specify quality filters with a cloudWatchLogs source. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSource_TraceGeneration_GroundTruth_QualityFilters
-Source_TraceGeneration_RedactionConfiguration_CustomDataIdentifier <CustomDataIdentifier[]>
Custom data identifiers to apply, up to 10. You can use custom identifiers without any managed identifiers. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSource_TraceGeneration_RedactionConfiguration_CustomDataIdentifiers
-Source_TraceGeneration_RedactionConfiguration_Identifier <String[]>
The managed data identifiers to apply. These match the CloudWatch Logs managed data identifiers. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSource_TraceGeneration_RedactionConfiguration_Identifiers
-Source_TraceGeneration_Sampling_MaxScenario <Int32>
The maximum number of scenarios to generate, from 1 to 1,000. The default is 100. The generation produces at most one scenario for each selected session. The dataset's draft examples plus this value can't be more than 1,000.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSource_TraceGeneration_Sampling_MaxScenarios
-Source_TraceGeneration_Selection_Filters_AttributeFilter <GenerationAttributeFilter[]>
Attribute conditions, up to 5. A session must meet all of them. An attribute on a span matches when any span in the session meets the condition. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSource_TraceGeneration_Selection_Filters_AttributeFilters
-Source_TraceGeneration_Selection_Filters_EvaluatorFilter <EvaluatorFilter[]>
Conditions on evaluation results, up to 10. A session must meet all of them. You can use these only with an onlineEvaluation or batchEvaluation source. A cloudWatchLogs source has no evaluation results. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSource_TraceGeneration_Selection_Filters_EvaluatorFilters
-Source_TraceGeneration_Selection_Filters_TurnCount_Max <Int32>
The maximum number of turns. The default is 100.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Source_TraceGeneration_Selection_Filters_TurnCount_Min <Int32>
The minimum number of turns.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Source_TraceGeneration_Selection_Identifiers_SessionId <String[]>
The IDs of the sessions to use, up to 25. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSource_TraceGeneration_Selection_Identifiers_SessionIds
-Source_TraceGeneration_Selection_Identifiers_TraceId <String[]>
The IDs of the traces to use, up to 25. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSource_TraceGeneration_Selection_Identifiers_TraceIds
-Source_TraceGeneration_SourceConfig_BatchEvaluation_BatchEvaluationArn <String>
The Amazon Resource Name (ARN) of the batch evaluation.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Source_TraceGeneration_SourceConfig_CloudWatchLogs_EndTime <DateTime>
The end of the time window to read sessions from. The default is the time the generation starts.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Source_TraceGeneration_SourceConfig_CloudWatchLogs_LogGroupName <String[]>
The names of the log groups to read, from 1 to 5. You can't specify this together with logGroupNamePrefixes. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSource_TraceGeneration_SourceConfig_CloudWatchLogs_LogGroupNames
-Source_TraceGeneration_SourceConfig_CloudWatchLogs_LogGroupNamePrefix <String[]>
Prefixes of the names of the log groups to read, from 1 to 5. You can't specify this together with logGroupNames. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSource_TraceGeneration_SourceConfig_CloudWatchLogs_LogGroupNamePrefixes
-Source_TraceGeneration_SourceConfig_CloudWatchLogs_ServiceName <String[]>
The service name of the agent, which matches the service.name resource attribute in its traces. Specify exactly one. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSource_TraceGeneration_SourceConfig_CloudWatchLogs_ServiceNames
-Source_TraceGeneration_SourceConfig_CloudWatchLogs_StartTime <DateTime>
The start of the time window to read sessions from. The default is 7 days before endTime.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Source_TraceGeneration_SourceConfig_OnlineEvaluation_EndTime <DateTime>
The end of the time window to read sessions from. The default is the time the generation starts.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Source_TraceGeneration_SourceConfig_OnlineEvaluation_OnlineEvaluationConfigArn <String>
The Amazon Resource Name (ARN) of the online evaluation configuration.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Source_TraceGeneration_SourceConfig_OnlineEvaluation_StartTime <DateTime>
The start of the time window to read sessions from. The default is 7 days before endTime.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)

Common Credential and Region Parameters

-AccessKey <String>
The AWS access key for the user account. This can be a temporary access key if the corresponding session token is supplied to the -SessionToken parameter.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAK
-Credential <AWSCredentials>
An AWSCredentials object instance containing access and secret key information, and optionally a token for session-based credentials.
Required?False
Position?Named
Accept pipeline input?True (ByValue, ByPropertyName)
-EndpointUrl <String>
The endpoint to make the call against.Note: This parameter is primarily for internal AWS use and is not required/should not be specified for normal usage. The cmdlets normally determine which endpoint to call based on the region specified to the -Region parameter or set as default in the shell (via Set-DefaultAWSRegion). Only specify this parameter if you must direct the call to a specific custom endpoint.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-NetworkCredential <PSCredential>
Used with SAML-based authentication when ProfileName references a SAML role profile. Contains the network credentials to be supplied during authentication with the configured identity provider's endpoint. This parameter is not required if the user's default network identity can or should be used during authentication.
Required?False
Position?Named
Accept pipeline input?True (ByValue, ByPropertyName)
-ProfileLocation <String>
Used to specify the name and location of the ini-format credential file (shared with the AWS CLI and other AWS SDKs)If this optional parameter is omitted this cmdlet will search the encrypted credential file used by the AWS SDK for .NET and AWS Toolkit for Visual Studio first. If the profile is not found then the cmdlet will search in the ini-format credential file at the default location: (user's home directory)\.aws\credentials.If this parameter is specified then this cmdlet will only search the ini-format credential file at the location given.As the current folder can vary in a shell or during script execution it is advised that you use specify a fully qualified path instead of a relative path.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAWSProfilesLocation, ProfilesLocation
-ProfileName <String>
The user-defined name of an AWS credentials or SAML-based role profile containing credential information. The profile is expected to be found in the secure credential file shared with the AWS SDK for .NET and AWS Toolkit for Visual Studio. You can also specify the name of a profile stored in the .ini-format credential file used with the AWS CLI and other AWS SDKs.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesStoredCredentials, AWSProfileName
-Region <Object>
The system name of an AWS region or an AWSRegion instance. This governs the endpoint that will be used when calling service operations. Note that the AWS resources referenced in a call are usually region-specific.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesRegionToCall
-SecretKey <String>
The AWS secret key for the user account. This can be a temporary secret key if the corresponding session token is supplied to the -SessionToken parameter.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSK, SecretAccessKey
-SessionToken <String>
The session token if the access and secret keys are temporary session-based credentials.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesST

Outputs

This cmdlet returns an Amazon.BedrockAgentCore.Model.StartDatasetGenerationResponse object containing multiple properties.

Supported Version

AWS Tools for PowerShell: 2.x.y.z