Module

x/aws_api/encoding/xml.ts>XmlNode

From-scratch Typescript client for accessing AWS APIs
Go to Latest
class XmlNode
implements Node
import { XmlNode } from "https://dotland.deno.dev/x/aws_api@v0.4.0/encoding/xml.ts";

Constructors

new
XmlNode(name: string)

Properties

attributes: { [key: string]: string; }
children: XmlNode[]
optional
content: string
name: string

Methods

first(name: string, required: true): XmlNode
first<T>(
name: string,
required: true,
accessor: (node: XmlNode) => T | undefined,
): T
first(name: string, required?: false): XmlNode | undefined
first<T>(
name: string,
required: false,
accessor: (node: XmlNode) => T,
): T | undefined
getList(...names: string[]): XmlNode[]
strings<R extends { [key: string]: true; }, O extends { [key: string]: true; }>(opts: { required?: R; optional?: O; }): [key in keyof R]: string & [key in keyof O]: string | undefined
throwMissingKeys(missingKeys: Iterable<string | number | symbol>): never