Class InputType
(experimental) Input Types are abstract types that define complex objects.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.AWS.AppSync.dll
Syntax (csharp)
public class InputType : DeputyBase, IIntermediateType
Syntax (vb)
Public Class InputType
Inherits DeputyBase
Implements IIntermediateType
Remarks
They are used in arguments to represent
Stability: Experimental
ExampleMetadata: infused
Examples
GraphqlApi api;
var review = new InputType("Review", new IntermediateTypeOptions {
Definition = new Dictionary<string, IField> {
{ "stars", GraphqlType.Int(new BaseTypeOptions { IsRequired = true }) },
{ "commentary", GraphqlType.String() }
}
});
api.AddType(review);
Synopsis
Constructors
InputType(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
InputType(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
InputType(String, IIntermediateTypeOptions) |
Properties
Definition | (experimental) the attributes of this type. |
Modes | (experimental) the authorization modes for this intermediate type. |
Name | (experimental) the name of this type. |
Methods
AddField(IAddFieldOptions) | (experimental) Add a field to this Input Type. |
Attribute(IBaseTypeOptions) | (experimental) Create a GraphQL Type representing this Input Type. |
ToString() | (experimental) Generate the string of this input type. |
Constructors
InputType(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected InputType(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
InputType(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected InputType(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
InputType(String, IIntermediateTypeOptions)
public InputType(string name, IIntermediateTypeOptions props)
Parameters
- name System.String
- props IIntermediateTypeOptions
Remarks
Stability: Experimental
Properties
Definition
(experimental) the attributes of this type.
public virtual IDictionary<string, IField> Definition { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, IField>
Remarks
Stability: Experimental
Modes
(experimental) the authorization modes for this intermediate type.
protected virtual AuthorizationType[] Modes { get; set; }
Property Value
Remarks
Stability: Experimental
Name
(experimental) the name of this type.
public virtual string Name { get; }
Property Value
System.String
Remarks
Stability: Experimental
Methods
AddField(IAddFieldOptions)
(experimental) Add a field to this Input Type.
public virtual void AddField(IAddFieldOptions options)
Parameters
- options IAddFieldOptions
the options to add a field.
Remarks
Input Types must have both fieldName and field options.
Stability: Experimental
Attribute(IBaseTypeOptions)
(experimental) Create a GraphQL Type representing this Input Type.
public virtual GraphqlType Attribute(IBaseTypeOptions options = null)
Parameters
- options IBaseTypeOptions
the options to configure this attribute.
Returns
Remarks
Stability: Experimental
ToString()
(experimental) Generate the string of this input type.
public override string ToString()
Returns
System.String
Remarks
Stability: Experimental