pulumi/pkg/resource/custom_timeouts.go

12 lines
351 B
Go
Raw Normal View History

2019-07-15 23:26:28 +02:00
package resource
type CustomTimeouts struct {
Create float64 `json:"create,omitempty" yaml:"create,omitempty"`
Update float64 `json:"update,omitempty" yaml:"update,omitempty"`
Delete float64 `json:"delete,omitempty" yaml:"delete,omitempty"`
}
func (c *CustomTimeouts) IsNotEmpty() bool {
return c.Delete != 0 || c.Update != 0 || c.Create != 0
2019-07-15 23:26:28 +02:00
}