diff --git a/service/ocean/providers/aws/cluster.go b/service/ocean/providers/aws/cluster.go index d7956e82..b6c1fa92 100644 --- a/service/ocean/providers/aws/cluster.go +++ b/service/ocean/providers/aws/cluster.go @@ -2078,6 +2078,7 @@ type ClusterEBS struct { VolumeSize *int `json:"volumeSize,omitempty"` Throughput *int `json:"throughput,omitempty"` DynamicVolumeSize *ClusterDynamicVolumeSize `json:"dynamicVolumeSize,omitempty"` + DynamicIops *ClusterDynamicIops `json:"dynamicIops,omitempty"` forceSendFields []string nullFields []string @@ -2091,6 +2092,15 @@ type ClusterDynamicVolumeSize struct { nullFields []string } +type ClusterDynamicIops struct { + BaseSize *int `json:"baseSize,omitempty"` + SizePerResourceUnit *int `json:"sizePerResourceUnit,omitempty"` + Resource *string `json:"resource,omitempty"` + + forceSendFields []string + nullFields []string +} + // region BlockDeviceMapping func (o ClusterBlockDeviceMappings) MarshalJSON() ([]byte, error) { @@ -2186,6 +2196,13 @@ func (o *ClusterEBS) SetThroughput(v *int) *ClusterEBS { return o } +func (o *ClusterEBS) SetDynamicIops(v *ClusterDynamicIops) *ClusterEBS { + if o.DynamicIops = v; o.DynamicIops == nil { + o.nullFields = append(o.nullFields, "DynamicIops") + } + return o +} + // endregion // region DynamicVolumeSize @@ -2219,6 +2236,37 @@ func (o *ClusterDynamicVolumeSize) SetSizePerResourceUnit(v *int) *ClusterDynami // endregion +// region DynamicIops + +func (o ClusterDynamicIops) MarshalJSON() ([]byte, error) { + type noMethod ClusterDynamicIops + raw := noMethod(o) + return jsonutil.MarshalJSON(raw, o.forceSendFields, o.nullFields) +} + +func (o *ClusterDynamicIops) SetBaseSize(v *int) *ClusterDynamicIops { + if o.BaseSize = v; o.BaseSize == nil { + o.nullFields = append(o.nullFields, "BaseSize") + } + return o +} + +func (o *ClusterDynamicIops) SetResource(v *string) *ClusterDynamicIops { + if o.Resource = v; o.Resource == nil { + o.nullFields = append(o.nullFields, "Resource") + } + return o +} + +func (o *ClusterDynamicIops) SetSizePerResourceUnit(v *int) *ClusterDynamicIops { + if o.SizePerResourceUnit = v; o.SizePerResourceUnit == nil { + o.nullFields = append(o.nullFields, "SizePerResourceUnit") + } + return o +} + +// endregion + // region ResourceTagSpecification func (o ResourceTagSpecification) MarshalJSON() ([]byte, error) {