Skip to content
v2.278.0

PaginationConfigurationProperty Struct ​

Configuration for handling paginated 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 paginationConfigurationProperty: glue.CfnConnectionType.PaginationConfigurationProperty = {
  cursorConfiguration: {
    nextPage: {
      defaultValue: 'defaultValue',
      key: 'key',
      propertyLocation: 'propertyLocation',
      value: {
        contentPath: 'contentPath',
        headerKey: 'headerKey',
      },
    },

    // the properties below are optional
    limitParameter: {
      defaultValue: 'defaultValue',
      key: 'key',
      propertyLocation: 'propertyLocation',
      value: {
        contentPath: 'contentPath',
        headerKey: 'headerKey',
      },
    },
  },
  offsetConfiguration: {
    limitParameter: {
      defaultValue: 'defaultValue',
      key: 'key',
      propertyLocation: 'propertyLocation',
      value: {
        contentPath: 'contentPath',
        headerKey: 'headerKey',
      },
    },
    offsetParameter: {
      defaultValue: 'defaultValue',
      key: 'key',
      propertyLocation: 'propertyLocation',
      value: {
        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

pagination_configuration_property = glue.CfnConnectionType.PaginationConfigurationProperty(
    cursor_configuration=glue.CfnConnectionType.CursorConfigurationProperty(
        next_page=glue.CfnConnectionType.ExtractedParameterProperty(
            default_value="defaultValue",
            key="key",
            property_location="propertyLocation",
            value=glue.CfnConnectionType.ResponseExtractionMappingProperty(
                content_path="contentPath",
                header_key="headerKey"
            )
        ),

        # the properties below are optional
        limit_parameter=glue.CfnConnectionType.ExtractedParameterProperty(
            default_value="defaultValue",
            key="key",
            property_location="propertyLocation",
            value=glue.CfnConnectionType.ResponseExtractionMappingProperty(
                content_path="contentPath",
                header_key="headerKey"
            )
        )
    ),
    offset_configuration=glue.CfnConnectionType.OffsetConfigurationProperty(
        limit_parameter=glue.CfnConnectionType.ExtractedParameterProperty(
            default_value="defaultValue",
            key="key",
            property_location="propertyLocation",
            value=glue.CfnConnectionType.ResponseExtractionMappingProperty(
                content_path="contentPath",
                header_key="headerKey"
            )
        ),
        offset_parameter=glue.CfnConnectionType.ExtractedParameterProperty(
            default_value="defaultValue",
            key="key",
            property_location="propertyLocation",
            value=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.*;

PaginationConfigurationProperty paginationConfigurationProperty = PaginationConfigurationProperty.builder()
        .cursorConfiguration(CursorConfigurationProperty.builder()
                .nextPage(ExtractedParameterProperty.builder()
                        .defaultValue("defaultValue")
                        .key("key")
                        .propertyLocation("propertyLocation")
                        .value(ResponseExtractionMappingProperty.builder()
                                .contentPath("contentPath")
                                .headerKey("headerKey")
                                .build())
                        .build())

                // the properties below are optional
                .limitParameter(ExtractedParameterProperty.builder()
                        .defaultValue("defaultValue")
                        .key("key")
                        .propertyLocation("propertyLocation")
                        .value(ResponseExtractionMappingProperty.builder()
                                .contentPath("contentPath")
                                .headerKey("headerKey")
                                .build())
                        .build())
                .build())
        .offsetConfiguration(OffsetConfigurationProperty.builder()
                .limitParameter(ExtractedParameterProperty.builder()
                        .defaultValue("defaultValue")
                        .key("key")
                        .propertyLocation("propertyLocation")
                        .value(ResponseExtractionMappingProperty.builder()
                                .contentPath("contentPath")
                                .headerKey("headerKey")
                                .build())
                        .build())
                .offsetParameter(ExtractedParameterProperty.builder()
                        .defaultValue("defaultValue")
                        .key("key")
                        .propertyLocation("propertyLocation")
                        .value(ResponseExtractionMappingProperty.builder()
                                .contentPath("contentPath")
                                .headerKey("headerKey")
                                .build())
                        .build())
                .build())
        .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 paginationConfigurationProperty = new PaginationConfigurationProperty {
    CursorConfiguration = new CursorConfigurationProperty {
        NextPage = new ExtractedParameterProperty {
            DefaultValue = "defaultValue",
            Key = "key",
            PropertyLocation = "propertyLocation",
            Value = new ResponseExtractionMappingProperty {
                ContentPath = "contentPath",
                HeaderKey = "headerKey"
            }
        },

        // the properties below are optional
        LimitParameter = new ExtractedParameterProperty {
            DefaultValue = "defaultValue",
            Key = "key",
            PropertyLocation = "propertyLocation",
            Value = new ResponseExtractionMappingProperty {
                ContentPath = "contentPath",
                HeaderKey = "headerKey"
            }
        }
    },
    OffsetConfiguration = new OffsetConfigurationProperty {
        LimitParameter = new ExtractedParameterProperty {
            DefaultValue = "defaultValue",
            Key = "key",
            PropertyLocation = "propertyLocation",
            Value = new ResponseExtractionMappingProperty {
                ContentPath = "contentPath",
                HeaderKey = "headerKey"
            }
        },
        OffsetParameter = new ExtractedParameterProperty {
            DefaultValue = "defaultValue",
            Key = "key",
            PropertyLocation = "propertyLocation",
            Value = 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"

paginationConfigurationProperty := &PaginationConfigurationProperty{
	CursorConfiguration: &CursorConfigurationProperty{
		NextPage: &ExtractedParameterProperty{
			DefaultValue: jsii.String("defaultValue"),
			Key: jsii.String("key"),
			PropertyLocation: jsii.String("propertyLocation"),
			Value: &ResponseExtractionMappingProperty{
				ContentPath: jsii.String("contentPath"),
				HeaderKey: jsii.String("headerKey"),
			},
		},

		// the properties below are optional
		LimitParameter: &ExtractedParameterProperty{
			DefaultValue: jsii.String("defaultValue"),
			Key: jsii.String("key"),
			PropertyLocation: jsii.String("propertyLocation"),
			Value: &ResponseExtractionMappingProperty{
				ContentPath: jsii.String("contentPath"),
				HeaderKey: jsii.String("headerKey"),
			},
		},
	},
	OffsetConfiguration: &OffsetConfigurationProperty{
		LimitParameter: &ExtractedParameterProperty{
			DefaultValue: jsii.String("defaultValue"),
			Key: jsii.String("key"),
			PropertyLocation: jsii.String("propertyLocation"),
			Value: &ResponseExtractionMappingProperty{
				ContentPath: jsii.String("contentPath"),
				HeaderKey: jsii.String("headerKey"),
			},
		},
		OffsetParameter: &ExtractedParameterProperty{
			DefaultValue: jsii.String("defaultValue"),
			Key: jsii.String("key"),
			PropertyLocation: jsii.String("propertyLocation"),
			Value: &ResponseExtractionMappingProperty{
				ContentPath: jsii.String("contentPath"),
				HeaderKey: jsii.String("headerKey"),
			},
		},
	},
}

Properties ​

cursorConfigurationoptionalIResolvable | CfnConnectionType.CursorConfigurationPropertycursor_configurationoptionaltyping.Union[IResolvable, CursorConfigurationProperty]cursorConfigurationoptionalIResolvableCursorConfigurationoptionalIResolvableCursorConfigurationoptionalinterface{} #
Cursor-based pagination configuration.
offsetConfigurationoptionalIResolvable | CfnConnectionType.OffsetConfigurationPropertyoffset_configurationoptionaltyping.Union[IResolvable, OffsetConfigurationProperty]offsetConfigurationoptionalIResolvableOffsetConfigurationoptionalIResolvableOffsetConfigurationoptionalinterface{} #
Offset-based pagination configuration.