Skip to content

Commit

Permalink
Update schema docs
Browse files Browse the repository at this point in the history
  • Loading branch information
castrapel committed May 19, 2023
1 parent a4a6725 commit 95b9328
Show file tree
Hide file tree
Showing 28 changed files with 221 additions and 136 deletions.
23 changes: 15 additions & 8 deletions docs/web/docs/3-reference/3-schemas/aws_iam_group_template.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
},
"deleted": {
"title": "Deleted",
"description": "Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is run.",
"description": "Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is ran.",
"default": false,
"type": "boolean"
},
Expand Down Expand Up @@ -187,7 +187,7 @@
},
"deleted": {
"title": "Deleted",
"description": "Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is run.",
"description": "Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is ran.",
"default": false,
"type": "boolean"
},
Expand Down Expand Up @@ -333,7 +333,7 @@
},
"deleted": {
"title": "Deleted",
"description": "Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is run.",
"description": "Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is ran.",
"default": false,
"type": "boolean"
},
Expand Down Expand Up @@ -505,7 +505,7 @@
},
"deleted": {
"title": "Deleted",
"description": "Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is run.",
"description": "Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is ran.",
"default": false,
"type": "boolean"
},
Expand Down Expand Up @@ -561,10 +561,17 @@
"statement": {
"title": "Statement",
"description": "List of policy statements",
"type": "array",
"items": {
"$ref": "#/definitions/PolicyStatement"
}
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/PolicyStatement"
}
},
{
"$ref": "#/definitions/PolicyStatement"
}
]
}
},
"required": [
Expand Down
15 changes: 9 additions & 6 deletions docs/web/docs/3-reference/3-schemas/aws_iam_group_template.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ configurations for other models used in IAMbic.*
- *string*
- *string*
- *string*
- **`deleted`** *(boolean)*: Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is run. Default: `false`.
- **`deleted`** *(boolean)*: Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is ran. Default: `false`.
- **`template_type`** *(string)*: Default: `"NOQ::AWS::IAM::Group"`.
- **`owner`** *(string)*: Owner of the group.
- **`iambic_managed`**: Controls the directionality of Iambic changes. Default: `"undefined"`.
Expand Down Expand Up @@ -57,7 +57,7 @@ configurations for other models used in IAMbic. Cannot contain additional proper
- *string*
- *string*
- *string*
- **`deleted`** *(boolean)*: Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is run. Default: `false`.
- **`deleted`** *(boolean)*: Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is ran. Default: `false`.
- **`included_accounts`** *(array)*: A list of account ids and/or account names this statement applies to. Account ids/names can be represented as a regex and string. Default: `["*"]`.
- **Items** *(string)*
- **`excluded_accounts`** *(array)*: A list of account ids and/or account names this statement explicitly does not apply to. Account ids/names can be represented as a regex and string. Default: `[]`.
Expand Down Expand Up @@ -103,7 +103,7 @@ configurations for other models used in IAMbic. Cannot contain additional proper
- *string*
- *string*
- *string*
- **`deleted`** *(boolean)*: Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is run. Default: `false`.
- **`deleted`** *(boolean)*: Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is ran. Default: `false`.
- **`included_accounts`** *(array)*: A list of account ids and/or account names this statement applies to. Account ids/names can be represented as a regex and string. Default: `["*"]`.
- **Items** *(string)*
- **`excluded_accounts`** *(array)*: A list of account ids and/or account names this statement explicitly does not apply to. Account ids/names can be represented as a regex and string. Default: `[]`.
Expand Down Expand Up @@ -153,7 +153,7 @@ configurations for other models used in IAMbic. Cannot contain additional proper
- *string*
- *string*
- *string*
- **`deleted`** *(boolean)*: Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is run. Default: `false`.
- **`deleted`** *(boolean)*: Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is ran. Default: `false`.
- **`included_accounts`** *(array)*: A list of account ids and/or account names this statement applies to. Account ids/names can be represented as a regex and string. Default: `["*"]`.
- **Items** *(string)*
- **`excluded_accounts`** *(array)*: A list of account ids and/or account names this statement explicitly does not apply to. Account ids/names can be represented as a regex and string. Default: `[]`.
Expand All @@ -164,8 +164,11 @@ configurations for other models used in IAMbic. Cannot contain additional proper
- **Items** *(string)*
- **`policy_name`** *(string)*: The name of the policy.
- **`version`** *(string)*
- **`statement`** *(array)*: List of policy statements.
- **Items**: Refer to *[#/definitions/PolicyStatement](#definitions/PolicyStatement)*.
- **`statement`**: List of policy statements.
- **Any of**
- *array*
- **Items**: Refer to *[#/definitions/PolicyStatement](#definitions/PolicyStatement)*.
- : Refer to *[#/definitions/PolicyStatement](#definitions/PolicyStatement)*.

<a id="definitions/GroupProperties"></a>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
},
"deleted": {
"title": "Deleted",
"description": "Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is run.",
"description": "Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is ran.",
"default": false,
"type": "boolean"
},
Expand Down Expand Up @@ -301,7 +301,7 @@
},
"deleted": {
"title": "Deleted",
"description": "Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is run.",
"description": "Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is ran.",
"default": false,
"type": "boolean"
},
Expand Down Expand Up @@ -501,10 +501,17 @@
"statement": {
"title": "Statement",
"description": "List of policy statements",
"type": "array",
"items": {
"$ref": "#/definitions/PolicyStatement"
}
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/PolicyStatement"
}
},
{
"$ref": "#/definitions/PolicyStatement"
}
]
}
}
},
Expand Down Expand Up @@ -572,7 +579,7 @@
},
"deleted": {
"title": "Deleted",
"description": "Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is run.",
"description": "Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is ran.",
"default": false,
"type": "boolean"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ configurations for other models used in IAMbic.*
- *string*
- *string*
- *string*
- **`deleted`** *(boolean)*: Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is run. Default: `false`.
- **`deleted`** *(boolean)*: Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is ran. Default: `false`.
- **`template_type`** *(string)*: Default: `"NOQ::AWS::IAM::ManagedPolicy"`.
- **`owner`** *(string)*
- **`iambic_managed`**: Controls the directionality of Iambic changes. Default: `"undefined"`.
Expand Down Expand Up @@ -96,7 +96,7 @@ configurations for other models used in IAMbic. Cannot contain additional proper
- *string*
- *string*
- *string*
- **`deleted`** *(boolean)*: Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is run. Default: `false`.
- **`deleted`** *(boolean)*: Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is ran. Default: `false`.
- **`included_accounts`** *(array)*: A list of account ids and/or account names this statement applies to. Account ids/names can be represented as a regex and string. Default: `["*"]`.
- **Items** *(string)*
- **`excluded_accounts`** *(array)*: A list of account ids and/or account names this statement explicitly does not apply to. Account ids/names can be represented as a regex and string. Default: `[]`.
Expand Down Expand Up @@ -150,8 +150,11 @@ configurations for other models used in IAMbic.
- **`excluded_orgs`** *(array)*: A list of AWS organization ids this statement explicitly does not apply to. Org ids can be represented as a regex and string. Default: `[]`.
- **Items** *(string)*
- **`version`** *(string)*
- **`statement`** *(array)*: List of policy statements.
- **Items**: Refer to *[#/definitions/PolicyStatement](#definitions/PolicyStatement)*.
- **`statement`**: List of policy statements.
- **Any of**
- *array*
- **Items**: Refer to *[#/definitions/PolicyStatement](#definitions/PolicyStatement)*.
- : Refer to *[#/definitions/PolicyStatement](#definitions/PolicyStatement)*.

<a id="definitions/Tag"></a>

Expand All @@ -170,7 +173,7 @@ configurations for other models used in IAMbic. Cannot contain additional proper
- *string*
- *string*
- *string*
- **`deleted`** *(boolean)*: Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is run. Default: `false`.
- **`deleted`** *(boolean)*: Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is ran. Default: `false`.
- **`key`** *(string)*
- **`value`** *(string)*

Expand Down
44 changes: 29 additions & 15 deletions docs/web/docs/3-reference/3-schemas/aws_iam_role_template.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
},
"deleted": {
"title": "Deleted",
"description": "Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is run.",
"description": "Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is ran.",
"default": false,
"type": "boolean"
},
Expand Down Expand Up @@ -342,7 +342,7 @@
},
"deleted": {
"title": "Deleted",
"description": "Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is run.",
"description": "Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is ran.",
"default": false,
"type": "boolean"
},
Expand Down Expand Up @@ -448,7 +448,7 @@
},
"deleted": {
"title": "Deleted",
"description": "Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is run.",
"description": "Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is ran.",
"default": false,
"type": "boolean"
},
Expand Down Expand Up @@ -648,10 +648,17 @@
},
"statement": {
"title": "Statement",
"type": "array",
"items": {
"$ref": "#/definitions/PolicyStatement"
}
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/PolicyStatement"
}
},
{
"$ref": "#/definitions/PolicyStatement"
}
]
}
}
},
Expand Down Expand Up @@ -719,7 +726,7 @@
},
"deleted": {
"title": "Deleted",
"description": "Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is run.",
"description": "Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is ran.",
"default": false,
"type": "boolean"
},
Expand Down Expand Up @@ -762,7 +769,7 @@
},
"deleted": {
"title": "Deleted",
"description": "Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is run.",
"description": "Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is ran.",
"default": false,
"type": "boolean"
},
Expand Down Expand Up @@ -845,7 +852,7 @@
},
"deleted": {
"title": "Deleted",
"description": "Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is run.",
"description": "Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is ran.",
"default": false,
"type": "boolean"
},
Expand Down Expand Up @@ -901,10 +908,17 @@
"statement": {
"title": "Statement",
"description": "List of policy statements",
"type": "array",
"items": {
"$ref": "#/definitions/PolicyStatement"
}
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/PolicyStatement"
}
},
{
"$ref": "#/definitions/PolicyStatement"
}
]
}
},
"required": [
Expand Down Expand Up @@ -1094,7 +1108,7 @@
},
"deleted": {
"title": "Deleted",
"description": "Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is run.",
"description": "Denotes whether the resource has been removed from AWS.Upon being set to true, the resource will be deleted the next time iambic is ran.",
"default": false,
"type": "boolean"
},
Expand Down
Loading

0 comments on commit 95b9328

Please sign in to comment.