Skip to content
v2.277.0

ResponseExtractionMappingProperty Struct ​

Defines how to extract values from HTTP responses.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_glue as glue } from 'aws-cdk-lib';
const responseExtractionMappingProperty: glue.CfnConnectionType.ResponseExtractionMappingProperty = {
  contentPath: 'contentPath',
  headerKey: 'headerKey',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_glue as glue

response_extraction_mapping_property = glue.CfnConnectionType.ResponseExtractionMappingProperty(
    content_path="contentPath",
    header_key="headerKey"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.glue.*;

ResponseExtractionMappingProperty responseExtractionMappingProperty = ResponseExtractionMappingProperty.builder()
        .contentPath("contentPath")
        .headerKey("headerKey")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Glue;

var responseExtractionMappingProperty = new ResponseExtractionMappingProperty {
    ContentPath = "contentPath",
    HeaderKey = "headerKey"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

responseExtractionMappingProperty := &ResponseExtractionMappingProperty{
	ContentPath: jsii.String("contentPath"),
	HeaderKey: jsii.String("headerKey"),
}

Properties ​

contentPathoptionalstringcontent_pathoptionalstrcontentPathoptionalStringContentPathoptionalstringContentPathoptional*string #
A JSON path expression to extract a value from response body.
headerKeyoptionalstringheader_keyoptionalstrheaderKeyoptionalStringHeaderKeyoptionalstringHeaderKeyoptional*string #
The name of an HTTP response header from which to extract the value.