File tree Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -59,8 +59,17 @@ func execute(c *cli.Context) error { //nolint:funlen,gocyclo
59
59
continue
60
60
}
61
61
62
+ name := reg .Name
63
+ description := ""
64
+ if strings .HasPrefix (name , "AWS::" ) {
65
+ description = `This is a resource that is access and controlled via the Cloud Control API, as such it's name
66
+ and properties do not match the standard format for aws-nuke resources. Furthermore, the resource properties are
67
+ dynamically populated and therefore cannot be documented here.`
68
+ }
69
+
62
70
data := TemplateData {
63
- Name : reg .Name ,
71
+ Name : name ,
72
+ Description : description ,
64
73
Properties : docs .GeneratePropertiesMap (reg .Resource ),
65
74
Settings : reg .Settings ,
66
75
DependsOn : reg .DependsOn ,
@@ -92,7 +101,7 @@ func execute(c *cli.Context) error { //nolint:funlen,gocyclo
92
101
}
93
102
94
103
if c .Bool ("write-to-disk" ) {
95
- filename := KebabCase (strings .ToLower (SplitCamelCase (reg . Name )))
104
+ filename := KebabCase (strings .ToLower (SplitCamelCase (name )))
96
105
filename = strings .Replace (filename , "io-t" , "iot-" , 1 )
97
106
filename = strings .Replace (filename , "iamsaml-" , "iam-saml-" , 1 )
98
107
filename = strings .Replace (filename , "wa-fv2-" , "wafv2-" , 1 )
Original file line number Diff line number Diff line change @@ -14,9 +14,11 @@ generated: true
14
14
{{ if .AlternativeResource -}}
15
15
### Alternative Resource
16
16
17
- !!! note - Cloud Control API - Alternative Resource
18
- This resource can also be controlled and used via Cloud Control API. Please refer to the documentation for
19
- [Cloud Control Resources](../config-cloud-control.md) for more information.
17
+ !!! warning - Cloud Control API - Alternative Resource
18
+ This resource conflicts with an alternative resource that can be controlled and used via Cloud Control API. If you
19
+ use this alternative resource, please note that any properties listed on this page may not be valid. You will need
20
+ run the tool to determine what properties are available for the alternative resource via the Cloud Control API.
21
+ Please refer to the documentation for [Cloud Control Resources](../config-cloud-control.md) for more information.
20
22
21
23
```text
22
24
{{ .AlternativeResource }}
@@ -29,7 +31,6 @@ generated: true
29
31
{{ range $key, $value := .Properties }}
30
32
- `{{ $key }}`: {{ if ne $value "" }}{{ $value }}{{ else }}No Description{{ end }}
31
33
{{- end }}
32
- {{- end }}
33
34
34
35
!!! note - Using Properties
35
36
Properties are what [Filters](../config-filtering.md) are written against in your configuration. You use the property
@@ -42,6 +43,7 @@ resources support properties. To write a filter against the string representatio
42
43
the filter.
43
44
44
45
The string value is always what is used in the output of the log format when a resource is identified.
46
+ {{- end }}
45
47
46
48
{{ if .Settings -}}
47
49
## Settings
You can’t perform that action at this time.
0 commit comments