summaryrefslogtreecommitdiffstats
path: root/schemas/awstags.xsd
blob: 72be0366f7a6156757f17ebbc91388ae264d6012 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en">

  <xsd:annotation>
    <xsd:documentation>
      :ref:`AWSTags &lt;server-plugins-connectors-awstags&gt;` config
      schema for bcfg2
    </xsd:documentation>
  </xsd:annotation>

  <xsd:import namespace="http://www.w3.org/XML/1998/namespace"
              schemaLocation="xml.xsd"/>

  <xsd:complexType name="TagType">
    <xsd:choice minOccurs="1" maxOccurs="unbounded">
      <xsd:element name="Group" type="xsd:string" minOccurs="1"
                   maxOccurs="unbounded">
        <xsd:annotation>
          <xsd:documentation>
            The group to assign to machines with tags that match the
            enclosing Tag expression.  More than one group can be
            specified.
          </xsd:documentation>
        </xsd:annotation>
      </xsd:element>
    </xsd:choice>
    <xsd:attribute name="name" type="xsd:string" use="required">
      <xsd:annotation>
        <xsd:documentation>
          The name pattern to match against. This is a regular
          expression. It is not anchored.
        </xsd:documentation>
      </xsd:annotation>
    </xsd:attribute>
    <xsd:attribute name="value" type="xsd:string">
      <xsd:annotation>
        <xsd:documentation>
          The value pattern to match against. This is a regular
          expression. It is not anchored.
        </xsd:documentation>
      </xsd:annotation>
    </xsd:attribute>
  </xsd:complexType>

  <xsd:complexType name="AWSTagsType">
    <xsd:annotation>
      <xsd:documentation>
        Top-level tag for ``AWSTags/config.xml``.
      </xsd:documentation>
    </xsd:annotation>
    <xsd:choice minOccurs="1" maxOccurs="unbounded">
      <xsd:element name="Tag" type="TagType">
        <xsd:annotation>
          <xsd:documentation>
            Representation of a pattern that matches AWS tags. Tags can be
            matched in one of two ways:

            * If only :xml:attribute:`TagType:name` is specified, then
              AWSTags will only look for a tag with a matching name, and
              the value of tags is ignored.
            * If both :xml:attribute:`TagType:name` and
              :xml:attribute:`TagType:value` are specified, a tag must
              have a matching name *and* a matching value.
          </xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="AWSTags" type="AWSTagsType"/>
    </xsd:choice>
    <xsd:attribute ref="xml:base"/>
  </xsd:complexType>

  <xsd:element name="AWSTags" type="AWSTagsType"/>
</xsd:schema>