Skip to content

Commit

Permalink
'sage_maker_pipeline' -> 'sagemaker_pipeline'.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Jun 9, 2023
1 parent 24b9f39 commit 3229613
Showing 4 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .changelog/31607.txt
Original file line number Diff line number Diff line change
@@ -7,5 +7,5 @@ resource/aws_pipes_pipe: Add `active_mq_broker`, `dynamo_db_stream`, `kinesis_st
```

```release-note:enhancement
resource/aws_pipes_pipe: Add `batch_target`, `cloudwatch_logs`, `ecs_task`, `event_bridge_event_bus`, `http_parameters`, `kinesis_stream`, `lambda_function`, `redshift_data`, `sage_maker_pipeline`, `sqs_queue` and `step_function` attributes to the `target_parameters` configuration block
resource/aws_pipes_pipe: Add `batch_target`, `cloudwatch_logs`, `ecs_task`, `event_bridge_event_bus`, `http_parameters`, `kinesis_stream`, `lambda_function`, `redshift_data`, `sagemaker_pipeline`, `sqs_queue` and `step_function` attributes to the `target_parameters` configuration block
```
26 changes: 13 additions & 13 deletions internal/service/pipes/target_parameters.go
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@ func targetParametersSchema() *schema.Schema {
"target_parameters.0.kinesis_stream",
"target_parameters.0.lambda_function",
"target_parameters.0.redshift_data",
"target_parameters.0.sage_maker_pipeline",
"target_parameters.0.sagemaker_pipeline",
"target_parameters.0.sqs_queue",
"target_parameters.0.step_function",
},
@@ -176,7 +176,7 @@ func targetParametersSchema() *schema.Schema {
"target_parameters.0.kinesis_stream",
"target_parameters.0.lambda_function",
"target_parameters.0.redshift_data",
"target_parameters.0.sage_maker_pipeline",
"target_parameters.0.sagemaker_pipeline",
"target_parameters.0.sqs_queue",
"target_parameters.0.step_function",
},
@@ -210,7 +210,7 @@ func targetParametersSchema() *schema.Schema {
"target_parameters.0.kinesis_stream",
"target_parameters.0.lambda_function",
"target_parameters.0.redshift_data",
"target_parameters.0.sage_maker_pipeline",
"target_parameters.0.sagemaker_pipeline",
"target_parameters.0.sqs_queue",
"target_parameters.0.step_function",
},
@@ -543,7 +543,7 @@ func targetParametersSchema() *schema.Schema {
"target_parameters.0.kinesis_stream",
"target_parameters.0.lambda_function",
"target_parameters.0.redshift_data",
"target_parameters.0.sage_maker_pipeline",
"target_parameters.0.sagemaker_pipeline",
"target_parameters.0.sqs_queue",
"target_parameters.0.step_function",
},
@@ -601,7 +601,7 @@ func targetParametersSchema() *schema.Schema {
"target_parameters.0.kinesis_stream",
"target_parameters.0.lambda_function",
"target_parameters.0.redshift_data",
"target_parameters.0.sage_maker_pipeline",
"target_parameters.0.sagemaker_pipeline",
"target_parameters.0.sqs_queue",
"target_parameters.0.step_function",
},
@@ -670,7 +670,7 @@ func targetParametersSchema() *schema.Schema {
"target_parameters.0.http_parameters",
"target_parameters.0.lambda_function",
"target_parameters.0.redshift_data",
"target_parameters.0.sage_maker_pipeline",
"target_parameters.0.sagemaker_pipeline",
"target_parameters.0.sqs_queue",
"target_parameters.0.step_function",
},
@@ -696,7 +696,7 @@ func targetParametersSchema() *schema.Schema {
"target_parameters.0.http_parameters",
"target_parameters.0.kinesis_stream",
"target_parameters.0.redshift_data",
"target_parameters.0.sage_maker_pipeline",
"target_parameters.0.sagemaker_pipeline",
"target_parameters.0.sqs_queue",
"target_parameters.0.step_function",
},
@@ -722,7 +722,7 @@ func targetParametersSchema() *schema.Schema {
"target_parameters.0.http_parameters",
"target_parameters.0.kinesis_stream",
"target_parameters.0.lambda_function",
"target_parameters.0.sage_maker_pipeline",
"target_parameters.0.sagemaker_pipeline",
"target_parameters.0.sqs_queue",
"target_parameters.0.step_function",
},
@@ -764,7 +764,7 @@ func targetParametersSchema() *schema.Schema {
},
},
},
"sage_maker_pipeline": {
"sagemaker_pipeline": {
Type: schema.TypeList,
Optional: true,
MaxItems: 1,
@@ -820,7 +820,7 @@ func targetParametersSchema() *schema.Schema {
"target_parameters.0.kinesis_stream",
"target_parameters.0.lambda_function",
"target_parameters.0.redshift_data",
"target_parameters.0.sage_maker_pipeline",
"target_parameters.0.sagemaker_pipeline",
"target_parameters.0.step_function",
},
Elem: &schema.Resource{
@@ -851,7 +851,7 @@ func targetParametersSchema() *schema.Schema {
"target_parameters.0.kinesis_stream",
"target_parameters.0.lambda_function",
"target_parameters.0.redshift_data",
"target_parameters.0.sage_maker_pipeline",
"target_parameters.0.sagemaker_pipeline",
"target_parameters.0.sqs_queue",
},
Elem: &schema.Resource{
@@ -917,7 +917,7 @@ func expandTargetParameters(config []interface{}) *types.PipeTargetParameters {
parameters.RedshiftDataParameters = expandTargetRedshiftDataParameters(val.([]interface{}))
}

if val, ok := param["sage_maker_pipeline"]; ok {
if val, ok := param["sagemaker_pipeline"]; ok {
parameters.SageMakerPipelineParameters = expandTargetSageMakerPipelineParameters(val.([]interface{}))
}

@@ -1622,7 +1622,7 @@ func flattenTargetParameters(targetParameters *types.PipeTargetParameters) []map
}

if targetParameters.SageMakerPipelineParameters != nil {
config["sage_maker_pipeline"] = flattenTargetSageMakerPipelineParameters(targetParameters.SageMakerPipelineParameters)
config["sagemaker_pipeline"] = flattenTargetSageMakerPipelineParameters(targetParameters.SageMakerPipelineParameters)
}

if targetParameters.SqsQueueParameters != nil {
8 changes: 4 additions & 4 deletions internal/service/pipes/target_parameters_test.go
Original file line number Diff line number Diff line change
@@ -467,9 +467,9 @@ func Test_expandTargetParameters(t *testing.T) {
},
},
},
"sage_maker_pipeline config": {
"sagemaker_pipeline config": {
config: map[string]interface{}{
"sage_maker_pipeline": []interface{}{
"sagemaker_pipeline": []interface{}{
map[string]interface{}{
"parameters": []interface{}{
map[string]interface{}{
@@ -1021,10 +1021,10 @@ func Test_flattenTargetParameters(t *testing.T) {
},
},
},
"sage_maker_pipeline config": {
"sagemaker_pipeline config": {
expected: []map[string]interface{}{
{
"sage_maker_pipeline": []map[string]interface{}{
"sagemaker_pipeline": []map[string]interface{}{
{
"parameters": []map[string]interface{}{
{
6 changes: 3 additions & 3 deletions website/docs/r/pipes_pipe.html.markdown
Original file line number Diff line number Diff line change
@@ -351,7 +351,7 @@ You can find out more about EventBridge Pipes Targets in the [User Guide](https:
* `kinesis_stream` - (Optional) The parameters for using a Kinesis stream as a source. Detailed below.
* `lambda_function` - (Optional) The parameters for using a Lambda function as a target. Detailed below.
* `redshift_data` - (Optional) These are custom parameters to be used when the target is a Amazon Redshift cluster to invoke the Amazon Redshift Data API BatchExecuteStatement. Detailed below.
* `sage_maker_pipeline` - (Optional) The parameters for using a SageMaker pipeline as a target. Detailed below.
* `sagemaker_pipeline` - (Optional) The parameters for using a SageMaker pipeline as a target. Detailed below.
* `sqs_queue` - (Optional) The parameters for using a Amazon SQS stream as a target. Detailed below.
* `step_function` - (Optional) The parameters for using a Step Functions state machine as a target. Detailed below.

@@ -540,11 +540,11 @@ You can find out more about EventBridge Pipes Targets in the [User Guide](https:
* `statement_name` - (Optional) The name of the SQL statement. You can name the SQL statement when you create it to identify the query.
* `with_event` - (Optional) Indicates whether to send an event back to EventBridge after the SQL statement runs.

#### target_parameters.sage_maker_pipeline Configuration Block
#### target_parameters.sagemaker_pipeline Configuration Block

* `parameters` - (Optional) List of Parameter names and values for SageMaker Model Building Pipeline execution. Detailed below.

##### target_parameters.sage_maker_pipeline.parameters Configuration Block
##### target_parameters.sagemaker_pipeline.parameters Configuration Block

* `name` - (Optional) Name of parameter to start execution of a SageMaker Model Building Pipeline. Maximum length of 256.
* `value` - (Optional) Value of parameter to start execution of a SageMaker Model Building Pipeline. Maximum length of 1024.

0 comments on commit 3229613

Please sign in to comment.