Skip to content

Commit

Permalink
Route53 records listing now contains aliases #181
Browse files Browse the repository at this point in the history
  • Loading branch information
simcap committed Jan 15, 2018
1 parent a7ae821 commit 5018037
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

### AWS Services

- Listing of Route53 records now contains a new column for aliases [#181](https://github.com/wallix/awless/issues/181)
- Create an image from an existing instance. See `awless create image -h`
* `awless create image instance=@my-instance-name name=redis-image description='redis prod image'`
* `awless create image instance=i-0ee436a45561c04df name=redis-image reboot=true`
Expand Down
1 change: 1 addition & 0 deletions aws/conv/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@ var awsResourcesDef = map[string]map[string]*propertyTransform{
properties.HealthCheck: {name: "HealthCheckId", transform: extractValueFn},
properties.Region: {name: "Region", transform: extractValueFn},
properties.Records: {name: "ResourceRecords", transform: extractStringSliceValues("Value")},
properties.Alias: {name: "AliasTarget", transform: extractFieldFn("DNSName")},
properties.Set: {name: "SetIdentifier", transform: extractValueFn},
properties.TTL: {name: "TTL", transform: extractValueFn},
properties.TrafficPolicyInstance: {name: "TrafficPolicyInstanceId", transform: extractValueFn},
Expand Down
1 change: 1 addition & 0 deletions cloud/properties/gen_properties.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const (
AgentVersion = "AgentVersion"
AlarmActions = "AlarmActions"
AlarmNames = "AlarmNames"
Alias = "Alias"
Aliases = "Aliases"
ApproximateMessageCount = "ApproximateMessageCount"
Architecture = "Architecture"
Expand Down
3 changes: 3 additions & 0 deletions cloud/rdf/gen_rdf.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const (
AgentVersion = "cloud:agentVersion"
AlarmActions = "cloud:alarmActions"
AlarmNames = "cloud:alarmNames"
Alias = "cloud:alias"
Aliases = "cloud:aliases"
ApproximateMessageCount = "cloud:approximateMessageCount"
Architecture = "cloud:architecture"
Expand Down Expand Up @@ -242,6 +243,7 @@ var Labels = map[string]string{
properties.AgentVersion: AgentVersion,
properties.AlarmActions: AlarmActions,
properties.AlarmNames: AlarmNames,
properties.Alias: Alias,
properties.Aliases: Aliases,
properties.ApproximateMessageCount: ApproximateMessageCount,
properties.Architecture: Architecture,
Expand Down Expand Up @@ -452,6 +454,7 @@ var Properties = RDFProperties{
AgentVersion: {ID: AgentVersion, RdfType: "rdf:Property", RdfsLabel: "AgentVersion", RdfsDefinedBy: "rdfs:Literal", RdfsDataType: "xsd:string"},
AlarmActions: {ID: AlarmActions, RdfType: "rdf:Property", RdfsLabel: "AlarmActions", RdfsDefinedBy: "rdfs:list", RdfsDataType: "xsd:string"},
AlarmNames: {ID: AlarmNames, RdfType: "rdf:Property", RdfsLabel: "AlarmNames", RdfsDefinedBy: "rdfs:list", RdfsDataType: "xsd:string"},
Alias: {ID: Alias, RdfType: "rdf:Property", RdfsLabel: "Alias", RdfsDefinedBy: "rdfs:Literal", RdfsDataType: "xsd:string"},
Aliases: {ID: Aliases, RdfType: "rdf:Property", RdfsLabel: "Aliases", RdfsDefinedBy: "rdfs:list", RdfsDataType: "xsd:string"},
ApproximateMessageCount: {ID: ApproximateMessageCount, RdfType: "rdf:Property", RdfsLabel: "ApproximateMessageCount", RdfsDefinedBy: "rdfs:Literal", RdfsDataType: "xsd:int"},
Architecture: {ID: Architecture, RdfType: "rdf:Property", RdfsLabel: "Architecture", RdfsDefinedBy: "rdfs:Literal", RdfsDataType: "xsd:string"},
Expand Down
3 changes: 2 additions & 1 deletion console/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ var ColumnsInListing = map[string][]string{
cloud.Topic: {properties.ID},
cloud.Queue: {properties.ID, properties.ApproximateMessageCount, properties.Created, properties.Modified, properties.Delay},
cloud.Zone: {properties.ID, properties.Name, properties.Comment, properties.Private, properties.RecordCount, properties.CallerReference},
cloud.Record: {properties.ID, properties.Type, properties.Name, properties.Records, properties.TTL},
cloud.Record: {properties.ID, properties.Type, properties.Name, properties.Records, properties.Alias, properties.TTL},
cloud.Function: {properties.Name, properties.Size, properties.Memory, properties.Runtime, properties.Version, properties.Modified, properties.Description},
cloud.Metric: {properties.ID, properties.Name, properties.Namespace, properties.Dimensions},
cloud.Alarm: {properties.Name, properties.Namespace, properties.MetricName, properties.Description, properties.State, properties.Updated, properties.Dimensions},
Expand Down Expand Up @@ -432,6 +432,7 @@ var DefaultsColumnDefinitions = map[string][]ColumnDefinition{
StringColumnDefinition{Prop: properties.Type},
StringColumnDefinition{Prop: properties.Name},
SliceColumnDefinition{StringColumnDefinition{Prop: properties.Records}},
StringColumnDefinition{Prop: properties.Alias},
StringColumnDefinition{Prop: properties.TTL},
},
// Lamba
Expand Down
1 change: 1 addition & 0 deletions gen/aws/properties_definitions.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ var PropertiesDefinitions = []property{
{AwlessLabel: "AgentVersion", RDFLabel: fmt.Sprintf("%s:agentVersion", rdf.CloudNS), RDFType: rdf.RdfProperty, RdfsDefinedBy: rdf.RdfsLiteral, RdfsDataType: rdf.XsdString},
{AwlessLabel: "AlarmActions", RDFLabel: fmt.Sprintf("%s:alarmActions", rdf.CloudNS), RDFType: rdf.RdfProperty, RdfsDefinedBy: rdf.RdfsList, RdfsDataType: rdf.XsdString},
{AwlessLabel: "AlarmNames", RDFLabel: fmt.Sprintf("%s:alarmNames", rdf.CloudNS), RDFType: rdf.RdfProperty, RdfsDefinedBy: rdf.RdfsList, RdfsDataType: rdf.XsdString},
{AwlessLabel: "Alias", RDFLabel: fmt.Sprintf("%s:alias", rdf.CloudNS), RDFType: rdf.RdfProperty, RdfsDefinedBy: rdf.RdfsLiteral, RdfsDataType: rdf.XsdString},
{AwlessLabel: "Aliases", RDFLabel: fmt.Sprintf("%s:aliases", rdf.CloudNS), RDFType: rdf.RdfProperty, RdfsDefinedBy: rdf.RdfsList, RdfsDataType: rdf.XsdString},
{AwlessLabel: "ApproximateMessageCount", RDFLabel: fmt.Sprintf("%s:approximateMessageCount", rdf.CloudNS), RDFType: rdf.RdfProperty, RdfsDefinedBy: rdf.RdfsLiteral, RdfsDataType: rdf.XsdInt},
{AwlessLabel: "Architecture", RDFLabel: fmt.Sprintf("%s:architecture", rdf.CloudNS), RDFType: rdf.RdfProperty, RdfsDefinedBy: rdf.RdfsLiteral, RdfsDataType: rdf.XsdString},
Expand Down

0 comments on commit 5018037

Please sign in to comment.