Skip to content

Commit dc0fa65

Browse files
authored
Merge branch 'master' into depends-on-diff
2 parents 02d907b + a176044 commit dc0fa65

File tree

30 files changed

+481
-425
lines changed

30 files changed

+481
-425
lines changed

buildspec-pr.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ phases:
88
# Start docker daemon inside the container
99
- nohup /usr/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://127.0.0.1:2375 --storage-driver=overlay2&
1010
- timeout 15 sh -c "until docker info; do echo .; sleep 1; done"
11+
# login to DockerHub to avoid throttling
12+
- docker login -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD}
1113

1214
# Install yarn if it wasn't already present in the image
1315
- yarn --version || npm -g install yarn

packages/@aws-cdk/aws-appsync/lib/graphqlapi.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { ManagedPolicy, Role, ServicePrincipal, Grant, IGrantable } from '@aws-c
44
import { CfnResource, Construct, Duration, IResolvable, Stack } from '@aws-cdk/core';
55
import { CfnApiKey, CfnGraphQLApi, CfnGraphQLSchema } from './appsync.generated';
66
import { IGraphqlApi, GraphqlApiBase } from './graphqlapi-base';
7-
import { ObjectType, ObjectTypeProps } from './schema-types';
7+
import { ObjectType, ObjectTypeProps } from './schema-intermediate';
88

99
/**
1010
* enum with all possible values for AppSync authorization type

packages/@aws-cdk/aws-appsync/lib/index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ export * from './key';
44
export * from './data-source';
55
export * from './mapping-template';
66
export * from './resolver';
7-
export * from './schema-types';
7+
export * from './schema-intermediate';
8+
export * from './schema-field';
9+
export * from './schema-base';
810
export * from './graphqlapi';
911
export * from './graphqlapi-base';
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
/**
2+
* Enum containing the Types that can be used to define ObjectTypes
3+
*/
4+
export enum Type {
5+
/**
6+
* `ID` scalar type is a unique identifier. `ID` type is serialized similar to `String`.
7+
*
8+
* Often used as a key for a cache and not intended to be human-readable.
9+
*/
10+
ID = 'ID',
11+
/**
12+
* `String` scalar type is a free-form human-readable text.
13+
*/
14+
STRING = 'String',
15+
/**
16+
* `Int` scalar type is a signed non-fractional numerical value.
17+
*/
18+
INT = 'Int',
19+
/**
20+
* `Float` scalar type is a signed double-precision fractional value.
21+
*/
22+
FLOAT = 'Float',
23+
/**
24+
* `Boolean` scalar type is a boolean value: true or false.
25+
*/
26+
BOOLEAN = 'Boolean',
27+
28+
/**
29+
* `AWSDate` scalar type represents a valid extended `ISO 8601 Date` string.
30+
*
31+
* In other words, accepts date strings in the form of `YYYY-MM-DD`. It accepts time zone offsets.
32+
*
33+
* @see https://en.wikipedia.org/wiki/ISO_8601#Calendar_dates
34+
*/
35+
AWS_DATE = 'AWSDate',
36+
/**
37+
* `AWSTime` scalar type represents a valid extended `ISO 8601 Time` string.
38+
*
39+
* In other words, accepts date strings in the form of `hh:mm:ss.sss`. It accepts time zone offsets.
40+
*
41+
* @see https://en.wikipedia.org/wiki/ISO_8601#Times
42+
*/
43+
AWS_TIME = 'AWSTime',
44+
/**
45+
* `AWSDateTime` scalar type represents a valid extended `ISO 8601 DateTime` string.
46+
*
47+
* In other words, accepts date strings in the form of `YYYY-MM-DDThh:mm:ss.sssZ`. It accepts time zone offsets.
48+
*
49+
* @see https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations
50+
*/
51+
AWS_DATE_TIME = 'AWSDateTime',
52+
/**
53+
* `AWSTimestamp` scalar type represents the number of seconds since `1970-01-01T00:00Z`.
54+
*
55+
* Timestamps are serialized and deserialized as numbers.
56+
*/
57+
AWS_TIMESTAMP = 'AWSTimestamp',
58+
/**
59+
* `AWSEmail` scalar type represents an email address string (i.e.`username@example.com`)
60+
*/
61+
AWS_EMAIL = 'AWSEmail',
62+
/**
63+
* `AWSJson` scalar type represents a JSON string.
64+
*/
65+
AWS_JSON = 'AWSJSON',
66+
/**
67+
* `AWSURL` scalar type represetns a valid URL string.
68+
*
69+
* URLs wihtout schemes or contain double slashes are considered invalid.
70+
*/
71+
AWS_URL = 'AWSURL',
72+
/**
73+
* `AWSPhone` scalar type represents a valid phone number. Phone numbers maybe be whitespace delimited or hyphenated.
74+
*
75+
* The number can specify a country code at the beginning, but is not required for US phone numbers.
76+
*/
77+
AWS_PHONE = 'AWSPhone',
78+
/**
79+
* `AWSIPAddress` scalar type respresents a valid `IPv4` of `IPv6` address string.
80+
*/
81+
AWS_IP_ADDRESS = 'AWSIPAddress',
82+
83+
/**
84+
* Type used for Intermediate Types
85+
* (i.e. an interface or an object type)
86+
*/
87+
INTERMEDIATE = 'INTERMEDIATE',
88+
}

0 commit comments

Comments
 (0)