Documentation
¶
Index ¶
- func PkgVersion() (semver.Version, error)
- type Alarmrule
- type AlarmruleAlarmAction
- type AlarmruleAlarmActionArgs
- type AlarmruleAlarmActionArray
- type AlarmruleAlarmActionArrayInput
- type AlarmruleAlarmActionArrayOutput
- func (AlarmruleAlarmActionArrayOutput) ElementType() reflect.Type
- func (o AlarmruleAlarmActionArrayOutput) Index(i pulumi.IntInput) AlarmruleAlarmActionOutput
- func (o AlarmruleAlarmActionArrayOutput) ToAlarmruleAlarmActionArrayOutput() AlarmruleAlarmActionArrayOutput
- func (o AlarmruleAlarmActionArrayOutput) ToAlarmruleAlarmActionArrayOutputWithContext(ctx context.Context) AlarmruleAlarmActionArrayOutput
- type AlarmruleAlarmActionInput
- type AlarmruleAlarmActionOutput
- func (AlarmruleAlarmActionOutput) ElementType() reflect.Type
- func (o AlarmruleAlarmActionOutput) NotificationLists() pulumi.StringArrayOutput
- func (o AlarmruleAlarmActionOutput) ToAlarmruleAlarmActionOutput() AlarmruleAlarmActionOutput
- func (o AlarmruleAlarmActionOutput) ToAlarmruleAlarmActionOutputWithContext(ctx context.Context) AlarmruleAlarmActionOutput
- func (o AlarmruleAlarmActionOutput) Type() pulumi.StringOutput
- type AlarmruleArgs
- type AlarmruleArray
- type AlarmruleArrayInput
- type AlarmruleArrayOutput
- func (AlarmruleArrayOutput) ElementType() reflect.Type
- func (o AlarmruleArrayOutput) Index(i pulumi.IntInput) AlarmruleOutput
- func (o AlarmruleArrayOutput) ToAlarmruleArrayOutput() AlarmruleArrayOutput
- func (o AlarmruleArrayOutput) ToAlarmruleArrayOutputWithContext(ctx context.Context) AlarmruleArrayOutput
- type AlarmruleCondition
- type AlarmruleConditionArgs
- type AlarmruleConditionArray
- type AlarmruleConditionArrayInput
- type AlarmruleConditionArrayOutput
- func (AlarmruleConditionArrayOutput) ElementType() reflect.Type
- func (o AlarmruleConditionArrayOutput) Index(i pulumi.IntInput) AlarmruleConditionOutput
- func (o AlarmruleConditionArrayOutput) ToAlarmruleConditionArrayOutput() AlarmruleConditionArrayOutput
- func (o AlarmruleConditionArrayOutput) ToAlarmruleConditionArrayOutputWithContext(ctx context.Context) AlarmruleConditionArrayOutput
- type AlarmruleConditionInput
- type AlarmruleConditionOutput
- func (o AlarmruleConditionOutput) AlarmLevel() pulumi.IntPtrOutput
- func (o AlarmruleConditionOutput) ComparisonOperator() pulumi.StringOutput
- func (o AlarmruleConditionOutput) Count() pulumi.IntOutput
- func (AlarmruleConditionOutput) ElementType() reflect.Type
- func (o AlarmruleConditionOutput) Filter() pulumi.StringOutput
- func (o AlarmruleConditionOutput) MetricName() pulumi.StringPtrOutput
- func (o AlarmruleConditionOutput) Period() pulumi.IntOutput
- func (o AlarmruleConditionOutput) SuppressDuration() pulumi.IntPtrOutput
- func (o AlarmruleConditionOutput) ToAlarmruleConditionOutput() AlarmruleConditionOutput
- func (o AlarmruleConditionOutput) ToAlarmruleConditionOutputWithContext(ctx context.Context) AlarmruleConditionOutput
- func (o AlarmruleConditionOutput) Unit() pulumi.StringPtrOutput
- func (o AlarmruleConditionOutput) Value() pulumi.Float64Output
- type AlarmruleInput
- type AlarmruleInsufficientdataAction
- type AlarmruleInsufficientdataActionArgs
- func (AlarmruleInsufficientdataActionArgs) ElementType() reflect.Type
- func (i AlarmruleInsufficientdataActionArgs) ToAlarmruleInsufficientdataActionOutput() AlarmruleInsufficientdataActionOutput
- func (i AlarmruleInsufficientdataActionArgs) ToAlarmruleInsufficientdataActionOutputWithContext(ctx context.Context) AlarmruleInsufficientdataActionOutput
- type AlarmruleInsufficientdataActionArray
- func (AlarmruleInsufficientdataActionArray) ElementType() reflect.Type
- func (i AlarmruleInsufficientdataActionArray) ToAlarmruleInsufficientdataActionArrayOutput() AlarmruleInsufficientdataActionArrayOutput
- func (i AlarmruleInsufficientdataActionArray) ToAlarmruleInsufficientdataActionArrayOutputWithContext(ctx context.Context) AlarmruleInsufficientdataActionArrayOutput
- type AlarmruleInsufficientdataActionArrayInput
- type AlarmruleInsufficientdataActionArrayOutput
- func (AlarmruleInsufficientdataActionArrayOutput) ElementType() reflect.Type
- func (o AlarmruleInsufficientdataActionArrayOutput) Index(i pulumi.IntInput) AlarmruleInsufficientdataActionOutput
- func (o AlarmruleInsufficientdataActionArrayOutput) ToAlarmruleInsufficientdataActionArrayOutput() AlarmruleInsufficientdataActionArrayOutput
- func (o AlarmruleInsufficientdataActionArrayOutput) ToAlarmruleInsufficientdataActionArrayOutputWithContext(ctx context.Context) AlarmruleInsufficientdataActionArrayOutput
- type AlarmruleInsufficientdataActionInput
- type AlarmruleInsufficientdataActionOutput
- func (AlarmruleInsufficientdataActionOutput) ElementType() reflect.Type
- func (o AlarmruleInsufficientdataActionOutput) NotificationLists() pulumi.StringArrayOutput
- func (o AlarmruleInsufficientdataActionOutput) ToAlarmruleInsufficientdataActionOutput() AlarmruleInsufficientdataActionOutput
- func (o AlarmruleInsufficientdataActionOutput) ToAlarmruleInsufficientdataActionOutputWithContext(ctx context.Context) AlarmruleInsufficientdataActionOutput
- func (o AlarmruleInsufficientdataActionOutput) Type() pulumi.StringOutput
- type AlarmruleMap
- type AlarmruleMapInput
- type AlarmruleMapOutput
- type AlarmruleMetric
- type AlarmruleMetricArgs
- func (AlarmruleMetricArgs) ElementType() reflect.Type
- func (i AlarmruleMetricArgs) ToAlarmruleMetricOutput() AlarmruleMetricOutput
- func (i AlarmruleMetricArgs) ToAlarmruleMetricOutputWithContext(ctx context.Context) AlarmruleMetricOutput
- func (i AlarmruleMetricArgs) ToAlarmruleMetricPtrOutput() AlarmruleMetricPtrOutput
- func (i AlarmruleMetricArgs) ToAlarmruleMetricPtrOutputWithContext(ctx context.Context) AlarmruleMetricPtrOutput
- type AlarmruleMetricDimension
- type AlarmruleMetricDimensionArgs
- func (AlarmruleMetricDimensionArgs) ElementType() reflect.Type
- func (i AlarmruleMetricDimensionArgs) ToAlarmruleMetricDimensionOutput() AlarmruleMetricDimensionOutput
- func (i AlarmruleMetricDimensionArgs) ToAlarmruleMetricDimensionOutputWithContext(ctx context.Context) AlarmruleMetricDimensionOutput
- type AlarmruleMetricDimensionArray
- func (AlarmruleMetricDimensionArray) ElementType() reflect.Type
- func (i AlarmruleMetricDimensionArray) ToAlarmruleMetricDimensionArrayOutput() AlarmruleMetricDimensionArrayOutput
- func (i AlarmruleMetricDimensionArray) ToAlarmruleMetricDimensionArrayOutputWithContext(ctx context.Context) AlarmruleMetricDimensionArrayOutput
- type AlarmruleMetricDimensionArrayInput
- type AlarmruleMetricDimensionArrayOutput
- func (AlarmruleMetricDimensionArrayOutput) ElementType() reflect.Type
- func (o AlarmruleMetricDimensionArrayOutput) Index(i pulumi.IntInput) AlarmruleMetricDimensionOutput
- func (o AlarmruleMetricDimensionArrayOutput) ToAlarmruleMetricDimensionArrayOutput() AlarmruleMetricDimensionArrayOutput
- func (o AlarmruleMetricDimensionArrayOutput) ToAlarmruleMetricDimensionArrayOutputWithContext(ctx context.Context) AlarmruleMetricDimensionArrayOutput
- type AlarmruleMetricDimensionInput
- type AlarmruleMetricDimensionOutput
- func (AlarmruleMetricDimensionOutput) ElementType() reflect.Type
- func (o AlarmruleMetricDimensionOutput) Name() pulumi.StringOutput
- func (o AlarmruleMetricDimensionOutput) ToAlarmruleMetricDimensionOutput() AlarmruleMetricDimensionOutput
- func (o AlarmruleMetricDimensionOutput) ToAlarmruleMetricDimensionOutputWithContext(ctx context.Context) AlarmruleMetricDimensionOutput
- func (o AlarmruleMetricDimensionOutput) Value() pulumi.StringPtrOutput
- type AlarmruleMetricInput
- type AlarmruleMetricOutput
- func (o AlarmruleMetricOutput) Dimensions() AlarmruleMetricDimensionArrayOutput
- func (AlarmruleMetricOutput) ElementType() reflect.Type
- func (o AlarmruleMetricOutput) MetricName() pulumi.StringPtrOutput
- func (o AlarmruleMetricOutput) Namespace() pulumi.StringOutput
- func (o AlarmruleMetricOutput) ToAlarmruleMetricOutput() AlarmruleMetricOutput
- func (o AlarmruleMetricOutput) ToAlarmruleMetricOutputWithContext(ctx context.Context) AlarmruleMetricOutput
- func (o AlarmruleMetricOutput) ToAlarmruleMetricPtrOutput() AlarmruleMetricPtrOutput
- func (o AlarmruleMetricOutput) ToAlarmruleMetricPtrOutputWithContext(ctx context.Context) AlarmruleMetricPtrOutput
- type AlarmruleMetricPtrInput
- type AlarmruleMetricPtrOutput
- func (o AlarmruleMetricPtrOutput) Dimensions() AlarmruleMetricDimensionArrayOutput
- func (o AlarmruleMetricPtrOutput) Elem() AlarmruleMetricOutput
- func (AlarmruleMetricPtrOutput) ElementType() reflect.Type
- func (o AlarmruleMetricPtrOutput) MetricName() pulumi.StringPtrOutput
- func (o AlarmruleMetricPtrOutput) Namespace() pulumi.StringPtrOutput
- func (o AlarmruleMetricPtrOutput) ToAlarmruleMetricPtrOutput() AlarmruleMetricPtrOutput
- func (o AlarmruleMetricPtrOutput) ToAlarmruleMetricPtrOutputWithContext(ctx context.Context) AlarmruleMetricPtrOutput
- type AlarmruleOkAction
- type AlarmruleOkActionArgs
- type AlarmruleOkActionArray
- type AlarmruleOkActionArrayInput
- type AlarmruleOkActionArrayOutput
- func (AlarmruleOkActionArrayOutput) ElementType() reflect.Type
- func (o AlarmruleOkActionArrayOutput) Index(i pulumi.IntInput) AlarmruleOkActionOutput
- func (o AlarmruleOkActionArrayOutput) ToAlarmruleOkActionArrayOutput() AlarmruleOkActionArrayOutput
- func (o AlarmruleOkActionArrayOutput) ToAlarmruleOkActionArrayOutputWithContext(ctx context.Context) AlarmruleOkActionArrayOutput
- type AlarmruleOkActionInput
- type AlarmruleOkActionOutput
- func (AlarmruleOkActionOutput) ElementType() reflect.Type
- func (o AlarmruleOkActionOutput) NotificationLists() pulumi.StringArrayOutput
- func (o AlarmruleOkActionOutput) ToAlarmruleOkActionOutput() AlarmruleOkActionOutput
- func (o AlarmruleOkActionOutput) ToAlarmruleOkActionOutputWithContext(ctx context.Context) AlarmruleOkActionOutput
- func (o AlarmruleOkActionOutput) Type() pulumi.StringOutput
- type AlarmruleOutput
- func (o AlarmruleOutput) AlarmActionEnabled() pulumi.BoolPtrOutput
- func (o AlarmruleOutput) AlarmActions() AlarmruleAlarmActionArrayOutput
- func (o AlarmruleOutput) AlarmDescription() pulumi.StringPtrOutput
- func (o AlarmruleOutput) AlarmEnabled() pulumi.BoolPtrOutput
- func (o AlarmruleOutput) AlarmLevel() pulumi.IntOutput
- func (o AlarmruleOutput) AlarmName() pulumi.StringOutput
- func (o AlarmruleOutput) AlarmState() pulumi.StringOutput
- func (o AlarmruleOutput) AlarmType() pulumi.StringPtrOutput
- func (o AlarmruleOutput) Conditions() AlarmruleConditionArrayOutput
- func (AlarmruleOutput) ElementType() reflect.Type
- func (o AlarmruleOutput) EnterpriseProjectId() pulumi.StringOutput
- func (o AlarmruleOutput) InsufficientdataActions() AlarmruleInsufficientdataActionArrayOutputdeprecated
- func (o AlarmruleOutput) Metric() AlarmruleMetricOutput
- func (o AlarmruleOutput) NotificationBeginTime() pulumi.StringOutput
- func (o AlarmruleOutput) NotificationEndTime() pulumi.StringOutput
- func (o AlarmruleOutput) OkActions() AlarmruleOkActionArrayOutput
- func (o AlarmruleOutput) Region() pulumi.StringOutput
- func (o AlarmruleOutput) ResourceGroupId() pulumi.StringOutput
- func (o AlarmruleOutput) Resources() AlarmruleResourceArrayOutput
- func (o AlarmruleOutput) ToAlarmruleOutput() AlarmruleOutput
- func (o AlarmruleOutput) ToAlarmruleOutputWithContext(ctx context.Context) AlarmruleOutput
- func (o AlarmruleOutput) UpdateTime() pulumi.IntOutput
- type AlarmruleResource
- type AlarmruleResourceArgs
- type AlarmruleResourceArray
- type AlarmruleResourceArrayInput
- type AlarmruleResourceArrayOutput
- func (AlarmruleResourceArrayOutput) ElementType() reflect.Type
- func (o AlarmruleResourceArrayOutput) Index(i pulumi.IntInput) AlarmruleResourceOutput
- func (o AlarmruleResourceArrayOutput) ToAlarmruleResourceArrayOutput() AlarmruleResourceArrayOutput
- func (o AlarmruleResourceArrayOutput) ToAlarmruleResourceArrayOutputWithContext(ctx context.Context) AlarmruleResourceArrayOutput
- type AlarmruleResourceDimension
- type AlarmruleResourceDimensionArgs
- func (AlarmruleResourceDimensionArgs) ElementType() reflect.Type
- func (i AlarmruleResourceDimensionArgs) ToAlarmruleResourceDimensionOutput() AlarmruleResourceDimensionOutput
- func (i AlarmruleResourceDimensionArgs) ToAlarmruleResourceDimensionOutputWithContext(ctx context.Context) AlarmruleResourceDimensionOutput
- type AlarmruleResourceDimensionArray
- func (AlarmruleResourceDimensionArray) ElementType() reflect.Type
- func (i AlarmruleResourceDimensionArray) ToAlarmruleResourceDimensionArrayOutput() AlarmruleResourceDimensionArrayOutput
- func (i AlarmruleResourceDimensionArray) ToAlarmruleResourceDimensionArrayOutputWithContext(ctx context.Context) AlarmruleResourceDimensionArrayOutput
- type AlarmruleResourceDimensionArrayInput
- type AlarmruleResourceDimensionArrayOutput
- func (AlarmruleResourceDimensionArrayOutput) ElementType() reflect.Type
- func (o AlarmruleResourceDimensionArrayOutput) Index(i pulumi.IntInput) AlarmruleResourceDimensionOutput
- func (o AlarmruleResourceDimensionArrayOutput) ToAlarmruleResourceDimensionArrayOutput() AlarmruleResourceDimensionArrayOutput
- func (o AlarmruleResourceDimensionArrayOutput) ToAlarmruleResourceDimensionArrayOutputWithContext(ctx context.Context) AlarmruleResourceDimensionArrayOutput
- type AlarmruleResourceDimensionInput
- type AlarmruleResourceDimensionOutput
- func (AlarmruleResourceDimensionOutput) ElementType() reflect.Type
- func (o AlarmruleResourceDimensionOutput) Name() pulumi.StringOutput
- func (o AlarmruleResourceDimensionOutput) ToAlarmruleResourceDimensionOutput() AlarmruleResourceDimensionOutput
- func (o AlarmruleResourceDimensionOutput) ToAlarmruleResourceDimensionOutputWithContext(ctx context.Context) AlarmruleResourceDimensionOutput
- func (o AlarmruleResourceDimensionOutput) Value() pulumi.StringPtrOutput
- type AlarmruleResourceInput
- type AlarmruleResourceOutput
- func (o AlarmruleResourceOutput) Dimensions() AlarmruleResourceDimensionArrayOutput
- func (AlarmruleResourceOutput) ElementType() reflect.Type
- func (o AlarmruleResourceOutput) ToAlarmruleResourceOutput() AlarmruleResourceOutput
- func (o AlarmruleResourceOutput) ToAlarmruleResourceOutputWithContext(ctx context.Context) AlarmruleResourceOutput
- type AlarmruleState
- type Microservice
- type MicroserviceArgs
- type MicroserviceArray
- type MicroserviceArrayInput
- type MicroserviceArrayOutput
- func (MicroserviceArrayOutput) ElementType() reflect.Type
- func (o MicroserviceArrayOutput) Index(i pulumi.IntInput) MicroserviceOutput
- func (o MicroserviceArrayOutput) ToMicroserviceArrayOutput() MicroserviceArrayOutput
- func (o MicroserviceArrayOutput) ToMicroserviceArrayOutputWithContext(ctx context.Context) MicroserviceArrayOutput
- type MicroserviceEngine
- type MicroserviceEngineArgs
- type MicroserviceEngineArray
- type MicroserviceEngineArrayInput
- type MicroserviceEngineArrayOutput
- func (MicroserviceEngineArrayOutput) ElementType() reflect.Type
- func (o MicroserviceEngineArrayOutput) Index(i pulumi.IntInput) MicroserviceEngineOutput
- func (o MicroserviceEngineArrayOutput) ToMicroserviceEngineArrayOutput() MicroserviceEngineArrayOutput
- func (o MicroserviceEngineArrayOutput) ToMicroserviceEngineArrayOutputWithContext(ctx context.Context) MicroserviceEngineArrayOutput
- type MicroserviceEngineConfigCenterAddress
- type MicroserviceEngineConfigCenterAddressArgs
- func (MicroserviceEngineConfigCenterAddressArgs) ElementType() reflect.Type
- func (i MicroserviceEngineConfigCenterAddressArgs) ToMicroserviceEngineConfigCenterAddressOutput() MicroserviceEngineConfigCenterAddressOutput
- func (i MicroserviceEngineConfigCenterAddressArgs) ToMicroserviceEngineConfigCenterAddressOutputWithContext(ctx context.Context) MicroserviceEngineConfigCenterAddressOutput
- type MicroserviceEngineConfigCenterAddressArray
- func (MicroserviceEngineConfigCenterAddressArray) ElementType() reflect.Type
- func (i MicroserviceEngineConfigCenterAddressArray) ToMicroserviceEngineConfigCenterAddressArrayOutput() MicroserviceEngineConfigCenterAddressArrayOutput
- func (i MicroserviceEngineConfigCenterAddressArray) ToMicroserviceEngineConfigCenterAddressArrayOutputWithContext(ctx context.Context) MicroserviceEngineConfigCenterAddressArrayOutput
- type MicroserviceEngineConfigCenterAddressArrayInput
- type MicroserviceEngineConfigCenterAddressArrayOutput
- func (MicroserviceEngineConfigCenterAddressArrayOutput) ElementType() reflect.Type
- func (o MicroserviceEngineConfigCenterAddressArrayOutput) Index(i pulumi.IntInput) MicroserviceEngineConfigCenterAddressOutput
- func (o MicroserviceEngineConfigCenterAddressArrayOutput) ToMicroserviceEngineConfigCenterAddressArrayOutput() MicroserviceEngineConfigCenterAddressArrayOutput
- func (o MicroserviceEngineConfigCenterAddressArrayOutput) ToMicroserviceEngineConfigCenterAddressArrayOutputWithContext(ctx context.Context) MicroserviceEngineConfigCenterAddressArrayOutput
- type MicroserviceEngineConfigCenterAddressInput
- type MicroserviceEngineConfigCenterAddressOutput
- func (MicroserviceEngineConfigCenterAddressOutput) ElementType() reflect.Type
- func (o MicroserviceEngineConfigCenterAddressOutput) Private() pulumi.StringPtrOutput
- func (o MicroserviceEngineConfigCenterAddressOutput) Public() pulumi.StringPtrOutput
- func (o MicroserviceEngineConfigCenterAddressOutput) ToMicroserviceEngineConfigCenterAddressOutput() MicroserviceEngineConfigCenterAddressOutput
- func (o MicroserviceEngineConfigCenterAddressOutput) ToMicroserviceEngineConfigCenterAddressOutputWithContext(ctx context.Context) MicroserviceEngineConfigCenterAddressOutput
- type MicroserviceEngineInput
- type MicroserviceEngineMap
- type MicroserviceEngineMapInput
- type MicroserviceEngineMapOutput
- func (MicroserviceEngineMapOutput) ElementType() reflect.Type
- func (o MicroserviceEngineMapOutput) MapIndex(k pulumi.StringInput) MicroserviceEngineOutput
- func (o MicroserviceEngineMapOutput) ToMicroserviceEngineMapOutput() MicroserviceEngineMapOutput
- func (o MicroserviceEngineMapOutput) ToMicroserviceEngineMapOutputWithContext(ctx context.Context) MicroserviceEngineMapOutput
- type MicroserviceEngineOutput
- func (o MicroserviceEngineOutput) AdminPass() pulumi.StringPtrOutput
- func (o MicroserviceEngineOutput) AuthType() pulumi.StringOutput
- func (o MicroserviceEngineOutput) AvailabilityZones() pulumi.StringArrayOutput
- func (o MicroserviceEngineOutput) ConfigCenterAddresses() MicroserviceEngineConfigCenterAddressArrayOutput
- func (o MicroserviceEngineOutput) Description() pulumi.StringPtrOutput
- func (o MicroserviceEngineOutput) EipId() pulumi.StringPtrOutput
- func (MicroserviceEngineOutput) ElementType() reflect.Type
- func (o MicroserviceEngineOutput) EnterpriseProjectId() pulumi.StringPtrOutput
- func (o MicroserviceEngineOutput) ExtendParams() pulumi.StringMapOutput
- func (o MicroserviceEngineOutput) Flavor() pulumi.StringOutput
- func (o MicroserviceEngineOutput) InstanceLimit() pulumi.IntOutput
- func (o MicroserviceEngineOutput) Name() pulumi.StringOutput
- func (o MicroserviceEngineOutput) NetworkId() pulumi.StringOutput
- func (o MicroserviceEngineOutput) Region() pulumi.StringOutput
- func (o MicroserviceEngineOutput) ServiceLimit() pulumi.IntOutput
- func (o MicroserviceEngineOutput) ServiceRegistryAddresses() MicroserviceEngineServiceRegistryAddressArrayOutput
- func (o MicroserviceEngineOutput) ToMicroserviceEngineOutput() MicroserviceEngineOutput
- func (o MicroserviceEngineOutput) ToMicroserviceEngineOutputWithContext(ctx context.Context) MicroserviceEngineOutput
- func (o MicroserviceEngineOutput) Version() pulumi.StringPtrOutput
- type MicroserviceEngineServiceRegistryAddress
- type MicroserviceEngineServiceRegistryAddressArgs
- func (MicroserviceEngineServiceRegistryAddressArgs) ElementType() reflect.Type
- func (i MicroserviceEngineServiceRegistryAddressArgs) ToMicroserviceEngineServiceRegistryAddressOutput() MicroserviceEngineServiceRegistryAddressOutput
- func (i MicroserviceEngineServiceRegistryAddressArgs) ToMicroserviceEngineServiceRegistryAddressOutputWithContext(ctx context.Context) MicroserviceEngineServiceRegistryAddressOutput
- type MicroserviceEngineServiceRegistryAddressArray
- func (MicroserviceEngineServiceRegistryAddressArray) ElementType() reflect.Type
- func (i MicroserviceEngineServiceRegistryAddressArray) ToMicroserviceEngineServiceRegistryAddressArrayOutput() MicroserviceEngineServiceRegistryAddressArrayOutput
- func (i MicroserviceEngineServiceRegistryAddressArray) ToMicroserviceEngineServiceRegistryAddressArrayOutputWithContext(ctx context.Context) MicroserviceEngineServiceRegistryAddressArrayOutput
- type MicroserviceEngineServiceRegistryAddressArrayInput
- type MicroserviceEngineServiceRegistryAddressArrayOutput
- func (MicroserviceEngineServiceRegistryAddressArrayOutput) ElementType() reflect.Type
- func (o MicroserviceEngineServiceRegistryAddressArrayOutput) Index(i pulumi.IntInput) MicroserviceEngineServiceRegistryAddressOutput
- func (o MicroserviceEngineServiceRegistryAddressArrayOutput) ToMicroserviceEngineServiceRegistryAddressArrayOutput() MicroserviceEngineServiceRegistryAddressArrayOutput
- func (o MicroserviceEngineServiceRegistryAddressArrayOutput) ToMicroserviceEngineServiceRegistryAddressArrayOutputWithContext(ctx context.Context) MicroserviceEngineServiceRegistryAddressArrayOutput
- type MicroserviceEngineServiceRegistryAddressInput
- type MicroserviceEngineServiceRegistryAddressOutput
- func (MicroserviceEngineServiceRegistryAddressOutput) ElementType() reflect.Type
- func (o MicroserviceEngineServiceRegistryAddressOutput) Private() pulumi.StringPtrOutput
- func (o MicroserviceEngineServiceRegistryAddressOutput) Public() pulumi.StringPtrOutput
- func (o MicroserviceEngineServiceRegistryAddressOutput) ToMicroserviceEngineServiceRegistryAddressOutput() MicroserviceEngineServiceRegistryAddressOutput
- func (o MicroserviceEngineServiceRegistryAddressOutput) ToMicroserviceEngineServiceRegistryAddressOutputWithContext(ctx context.Context) MicroserviceEngineServiceRegistryAddressOutput
- type MicroserviceEngineState
- type MicroserviceInput
- type MicroserviceInstance
- type MicroserviceInstanceArgs
- type MicroserviceInstanceArray
- type MicroserviceInstanceArrayInput
- type MicroserviceInstanceArrayOutput
- func (MicroserviceInstanceArrayOutput) ElementType() reflect.Type
- func (o MicroserviceInstanceArrayOutput) Index(i pulumi.IntInput) MicroserviceInstanceOutput
- func (o MicroserviceInstanceArrayOutput) ToMicroserviceInstanceArrayOutput() MicroserviceInstanceArrayOutput
- func (o MicroserviceInstanceArrayOutput) ToMicroserviceInstanceArrayOutputWithContext(ctx context.Context) MicroserviceInstanceArrayOutput
- type MicroserviceInstanceDataCenter
- type MicroserviceInstanceDataCenterArgs
- func (MicroserviceInstanceDataCenterArgs) ElementType() reflect.Type
- func (i MicroserviceInstanceDataCenterArgs) ToMicroserviceInstanceDataCenterOutput() MicroserviceInstanceDataCenterOutput
- func (i MicroserviceInstanceDataCenterArgs) ToMicroserviceInstanceDataCenterOutputWithContext(ctx context.Context) MicroserviceInstanceDataCenterOutput
- func (i MicroserviceInstanceDataCenterArgs) ToMicroserviceInstanceDataCenterPtrOutput() MicroserviceInstanceDataCenterPtrOutput
- func (i MicroserviceInstanceDataCenterArgs) ToMicroserviceInstanceDataCenterPtrOutputWithContext(ctx context.Context) MicroserviceInstanceDataCenterPtrOutput
- type MicroserviceInstanceDataCenterInput
- type MicroserviceInstanceDataCenterOutput
- func (o MicroserviceInstanceDataCenterOutput) AvailabilityZone() pulumi.StringOutput
- func (MicroserviceInstanceDataCenterOutput) ElementType() reflect.Type
- func (o MicroserviceInstanceDataCenterOutput) Name() pulumi.StringOutput
- func (o MicroserviceInstanceDataCenterOutput) Region() pulumi.StringOutput
- func (o MicroserviceInstanceDataCenterOutput) ToMicroserviceInstanceDataCenterOutput() MicroserviceInstanceDataCenterOutput
- func (o MicroserviceInstanceDataCenterOutput) ToMicroserviceInstanceDataCenterOutputWithContext(ctx context.Context) MicroserviceInstanceDataCenterOutput
- func (o MicroserviceInstanceDataCenterOutput) ToMicroserviceInstanceDataCenterPtrOutput() MicroserviceInstanceDataCenterPtrOutput
- func (o MicroserviceInstanceDataCenterOutput) ToMicroserviceInstanceDataCenterPtrOutputWithContext(ctx context.Context) MicroserviceInstanceDataCenterPtrOutput
- type MicroserviceInstanceDataCenterPtrInput
- type MicroserviceInstanceDataCenterPtrOutput
- func (o MicroserviceInstanceDataCenterPtrOutput) AvailabilityZone() pulumi.StringPtrOutput
- func (o MicroserviceInstanceDataCenterPtrOutput) Elem() MicroserviceInstanceDataCenterOutput
- func (MicroserviceInstanceDataCenterPtrOutput) ElementType() reflect.Type
- func (o MicroserviceInstanceDataCenterPtrOutput) Name() pulumi.StringPtrOutput
- func (o MicroserviceInstanceDataCenterPtrOutput) Region() pulumi.StringPtrOutput
- func (o MicroserviceInstanceDataCenterPtrOutput) ToMicroserviceInstanceDataCenterPtrOutput() MicroserviceInstanceDataCenterPtrOutput
- func (o MicroserviceInstanceDataCenterPtrOutput) ToMicroserviceInstanceDataCenterPtrOutputWithContext(ctx context.Context) MicroserviceInstanceDataCenterPtrOutput
- type MicroserviceInstanceHealthCheck
- type MicroserviceInstanceHealthCheckArgs
- func (MicroserviceInstanceHealthCheckArgs) ElementType() reflect.Type
- func (i MicroserviceInstanceHealthCheckArgs) ToMicroserviceInstanceHealthCheckOutput() MicroserviceInstanceHealthCheckOutput
- func (i MicroserviceInstanceHealthCheckArgs) ToMicroserviceInstanceHealthCheckOutputWithContext(ctx context.Context) MicroserviceInstanceHealthCheckOutput
- func (i MicroserviceInstanceHealthCheckArgs) ToMicroserviceInstanceHealthCheckPtrOutput() MicroserviceInstanceHealthCheckPtrOutput
- func (i MicroserviceInstanceHealthCheckArgs) ToMicroserviceInstanceHealthCheckPtrOutputWithContext(ctx context.Context) MicroserviceInstanceHealthCheckPtrOutput
- type MicroserviceInstanceHealthCheckInput
- type MicroserviceInstanceHealthCheckOutput
- func (MicroserviceInstanceHealthCheckOutput) ElementType() reflect.Type
- func (o MicroserviceInstanceHealthCheckOutput) Interval() pulumi.IntOutput
- func (o MicroserviceInstanceHealthCheckOutput) MaxRetries() pulumi.IntOutput
- func (o MicroserviceInstanceHealthCheckOutput) Mode() pulumi.StringOutput
- func (o MicroserviceInstanceHealthCheckOutput) Port() pulumi.IntPtrOutput
- func (o MicroserviceInstanceHealthCheckOutput) ToMicroserviceInstanceHealthCheckOutput() MicroserviceInstanceHealthCheckOutput
- func (o MicroserviceInstanceHealthCheckOutput) ToMicroserviceInstanceHealthCheckOutputWithContext(ctx context.Context) MicroserviceInstanceHealthCheckOutput
- func (o MicroserviceInstanceHealthCheckOutput) ToMicroserviceInstanceHealthCheckPtrOutput() MicroserviceInstanceHealthCheckPtrOutput
- func (o MicroserviceInstanceHealthCheckOutput) ToMicroserviceInstanceHealthCheckPtrOutputWithContext(ctx context.Context) MicroserviceInstanceHealthCheckPtrOutput
- type MicroserviceInstanceHealthCheckPtrInput
- type MicroserviceInstanceHealthCheckPtrOutput
- func (o MicroserviceInstanceHealthCheckPtrOutput) Elem() MicroserviceInstanceHealthCheckOutput
- func (MicroserviceInstanceHealthCheckPtrOutput) ElementType() reflect.Type
- func (o MicroserviceInstanceHealthCheckPtrOutput) Interval() pulumi.IntPtrOutput
- func (o MicroserviceInstanceHealthCheckPtrOutput) MaxRetries() pulumi.IntPtrOutput
- func (o MicroserviceInstanceHealthCheckPtrOutput) Mode() pulumi.StringPtrOutput
- func (o MicroserviceInstanceHealthCheckPtrOutput) Port() pulumi.IntPtrOutput
- func (o MicroserviceInstanceHealthCheckPtrOutput) ToMicroserviceInstanceHealthCheckPtrOutput() MicroserviceInstanceHealthCheckPtrOutput
- func (o MicroserviceInstanceHealthCheckPtrOutput) ToMicroserviceInstanceHealthCheckPtrOutputWithContext(ctx context.Context) MicroserviceInstanceHealthCheckPtrOutput
- type MicroserviceInstanceInput
- type MicroserviceInstanceMap
- type MicroserviceInstanceMapInput
- type MicroserviceInstanceMapOutput
- func (MicroserviceInstanceMapOutput) ElementType() reflect.Type
- func (o MicroserviceInstanceMapOutput) MapIndex(k pulumi.StringInput) MicroserviceInstanceOutput
- func (o MicroserviceInstanceMapOutput) ToMicroserviceInstanceMapOutput() MicroserviceInstanceMapOutput
- func (o MicroserviceInstanceMapOutput) ToMicroserviceInstanceMapOutputWithContext(ctx context.Context) MicroserviceInstanceMapOutput
- type MicroserviceInstanceOutput
- func (o MicroserviceInstanceOutput) AdminPass() pulumi.StringPtrOutput
- func (o MicroserviceInstanceOutput) AdminUser() pulumi.StringPtrOutput
- func (o MicroserviceInstanceOutput) ConnectAddress() pulumi.StringOutput
- func (o MicroserviceInstanceOutput) DataCenter() MicroserviceInstanceDataCenterOutput
- func (MicroserviceInstanceOutput) ElementType() reflect.Type
- func (o MicroserviceInstanceOutput) Endpoints() pulumi.StringArrayOutput
- func (o MicroserviceInstanceOutput) HealthCheck() MicroserviceInstanceHealthCheckOutput
- func (o MicroserviceInstanceOutput) HostName() pulumi.StringOutput
- func (o MicroserviceInstanceOutput) MicroserviceId() pulumi.StringOutput
- func (o MicroserviceInstanceOutput) Properties() pulumi.StringMapOutput
- func (o MicroserviceInstanceOutput) Status() pulumi.StringOutput
- func (o MicroserviceInstanceOutput) ToMicroserviceInstanceOutput() MicroserviceInstanceOutput
- func (o MicroserviceInstanceOutput) ToMicroserviceInstanceOutputWithContext(ctx context.Context) MicroserviceInstanceOutput
- func (o MicroserviceInstanceOutput) Version() pulumi.StringOutput
- type MicroserviceInstanceState
- type MicroserviceMap
- type MicroserviceMapInput
- type MicroserviceMapOutput
- func (MicroserviceMapOutput) ElementType() reflect.Type
- func (o MicroserviceMapOutput) MapIndex(k pulumi.StringInput) MicroserviceOutput
- func (o MicroserviceMapOutput) ToMicroserviceMapOutput() MicroserviceMapOutput
- func (o MicroserviceMapOutput) ToMicroserviceMapOutputWithContext(ctx context.Context) MicroserviceMapOutput
- type MicroserviceOutput
- func (o MicroserviceOutput) AdminPass() pulumi.StringPtrOutput
- func (o MicroserviceOutput) AdminUser() pulumi.StringPtrOutput
- func (o MicroserviceOutput) AppName() pulumi.StringOutput
- func (o MicroserviceOutput) ConnectAddress() pulumi.StringOutput
- func (o MicroserviceOutput) Description() pulumi.StringPtrOutput
- func (MicroserviceOutput) ElementType() reflect.Type
- func (o MicroserviceOutput) Environment() pulumi.StringPtrOutput
- func (o MicroserviceOutput) Level() pulumi.StringPtrOutput
- func (o MicroserviceOutput) Name() pulumi.StringOutput
- func (o MicroserviceOutput) Status() pulumi.StringOutput
- func (o MicroserviceOutput) ToMicroserviceOutput() MicroserviceOutput
- func (o MicroserviceOutput) ToMicroserviceOutputWithContext(ctx context.Context) MicroserviceOutput
- func (o MicroserviceOutput) Version() pulumi.StringOutput
- type MicroserviceState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PkgVersion ¶ added in v0.0.2
PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.
Types ¶
type Alarmrule ¶
type Alarmrule struct { pulumi.CustomResourceState // Specifies whether to enable the action to be triggered by an alarm. The // default value is true. AlarmActionEnabled pulumi.BoolPtrOutput `pulumi:"alarmActionEnabled"` // Specifies the action triggered by an alarm. The structure is described // below. AlarmActions AlarmruleAlarmActionArrayOutput `pulumi:"alarmActions"` // The value can be a string of 0 to 256 characters. AlarmDescription pulumi.StringPtrOutput `pulumi:"alarmDescription"` // Specifies whether to enable the alarm. The default value is true. AlarmEnabled pulumi.BoolPtrOutput `pulumi:"alarmEnabled"` // Specifies the alarm severity of the condition. The value can be 1, 2, 3 or 4, // which indicates *critical*, *major*, *minor*, and *informational*, respectively. // The default value is 2. AlarmLevel pulumi.IntOutput `pulumi:"alarmLevel"` // Specifies the name of an alarm rule. The value can be a string of 1 to 128 // characters that can consist of letters, digits, underscores (_), hyphens (-) and chinese characters. AlarmName pulumi.StringOutput `pulumi:"alarmName"` // Indicates the alarm status. The value can be: // + ok: The alarm status is normal; // + alarm: An alarm is generated; // + insufficient_data: The required data is insufficient. AlarmState pulumi.StringOutput `pulumi:"alarmState"` // Specifies the alarm type. The value can be **EVENT.SYS**, **EVENT.CUSTOM**, // **MULTI_INSTANCE** and **ALL_INSTANCE**. Defaults to **MULTI_INSTANCE**. AlarmType pulumi.StringPtrOutput `pulumi:"alarmType"` // Specifies the alarm triggering condition. The structure is described below. Conditions AlarmruleConditionArrayOutput `pulumi:"conditions"` // Specifies the enterprise project id of the alarm rule. Changing // this creates a new resource. EnterpriseProjectId pulumi.StringOutput `pulumi:"enterpriseProjectId"` // Deprecated: insufficientdata_actions is deprecated InsufficientdataActions AlarmruleInsufficientdataActionArrayOutput `pulumi:"insufficientdataActions"` // Specifies the alarm metrics. The structure is described below. Changing this // creates a new resource. Metric AlarmruleMetricOutput `pulumi:"metric"` // Specifies the alarm notification start time, for // example: **05:30**. Changing this creates a new resource. NotificationBeginTime pulumi.StringOutput `pulumi:"notificationBeginTime"` // Specifies the alarm notification stop time, for // example: **22:10**. Changing this creates a new resource. NotificationEndTime pulumi.StringOutput `pulumi:"notificationEndTime"` // Specifies the action triggered by the clearing of an alarm. The structure is // described below. OkActions AlarmruleOkActionArrayOutput `pulumi:"okActions"` // The region in which to create the alarm rule resource. If omitted, the // provider-level region will be used. Changing this creates a new resource. Region pulumi.StringOutput `pulumi:"region"` // schema: Internal ResourceGroupId pulumi.StringOutput `pulumi:"resourceGroupId"` // Specifies the list of the resources to add into the alarm rule. // The structure is described below. Resources AlarmruleResourceArrayOutput `pulumi:"resources"` // Indicates the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms. UpdateTime pulumi.IntOutput `pulumi:"updateTime"` }
Manages a Cloud Eye alarm rule resource within HuaweiCloud.
## Example Usage ### Basic example
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Cse" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Cse" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") instanceId1 := cfg.RequireObject("instanceId1") instanceId2 := cfg.RequireObject("instanceId2") topicUrn := cfg.RequireObject("topicUrn") _, err := Cse.NewAlarmrule(ctx, "test", &Cse.AlarmruleArgs{ AlarmName: pulumi.String("rule-test"), AlarmActionEnabled: pulumi.Bool(true), AlarmEnabled: pulumi.Bool(true), AlarmType: pulumi.String("MULTI_INSTANCE"), Metric: &cse.AlarmruleMetricArgs{ Namespace: pulumi.String("SYS.ECS"), }, Resources: cse.AlarmruleResourceArray{ &cse.AlarmruleResourceArgs{ Dimensions: cse.AlarmruleResourceDimensionArray{ &cse.AlarmruleResourceDimensionArgs{ Name: pulumi.String("instance_id"), Value: pulumi.Any(instanceId1), }, }, }, &cse.AlarmruleResourceArgs{ Dimensions: cse.AlarmruleResourceDimensionArray{ &cse.AlarmruleResourceDimensionArgs{ Name: pulumi.String("instance_id"), Value: pulumi.Any(instanceId2), }, }, }, }, Conditions: cse.AlarmruleConditionArray{ &cse.AlarmruleConditionArgs{ Period: pulumi.Int(1200), Filter: pulumi.String("average"), ComparisonOperator: pulumi.String(">"), Value: pulumi.Float64(6.5), Unit: pulumi.String("B/s"), Count: pulumi.Int(1), SuppressDuration: pulumi.Int(300), MetricName: pulumi.String("network_outgoing_bytes_rate_inband"), AlarmLevel: pulumi.Int(4), }, &cse.AlarmruleConditionArgs{ Period: pulumi.Int(3600), Filter: pulumi.String("average"), ComparisonOperator: pulumi.String(">="), Value: pulumi.Float64(20), Unit: pulumi.String("B/s"), Count: pulumi.Int(1), SuppressDuration: pulumi.Int(300), MetricName: pulumi.String("network_outgoing_bytes_rate_inband"), AlarmLevel: pulumi.Int(4), }, }, AlarmActions: cse.AlarmruleAlarmActionArray{ &cse.AlarmruleAlarmActionArgs{ Type: pulumi.String("notification"), NotificationLists: pulumi.StringArray{ pulumi.Any(topicUrn), }, }, }, }) if err != nil { return err } return nil }) }
``` ## Alarm rule for event monitoring
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Cse" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Cse" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") topicUrn := cfg.RequireObject("topicUrn") _, err := Cse.NewAlarmrule(ctx, "test", &Cse.AlarmruleArgs{ AlarmName: pulumi.String("rule-test"), AlarmActionEnabled: pulumi.Bool(true), AlarmType: pulumi.String("EVENT.SYS"), Metric: &cse.AlarmruleMetricArgs{ Namespace: pulumi.String("SYS.ECS"), }, Conditions: cse.AlarmruleConditionArray{ &cse.AlarmruleConditionArgs{ MetricName: pulumi.String("stopServer"), Period: pulumi.Int(0), Filter: pulumi.String("average"), ComparisonOperator: pulumi.String(">="), Value: pulumi.Float64(1), Unit: pulumi.String("count"), Count: pulumi.Int(1), SuppressDuration: pulumi.Int(0), AlarmLevel: pulumi.Int(2), }, }, AlarmActions: cse.AlarmruleAlarmActionArray{ &cse.AlarmruleAlarmActionArgs{ Type: pulumi.String("notification"), NotificationLists: pulumi.StringArray{ pulumi.Any(topicUrn), }, }, }, }) if err != nil { return err } return nil }) }
```
## Import
CES alarm rules can be imported using the `id`, e.g.
```sh
$ pulumi import huaweicloud:Cse/alarmrule:Alarmrule alarm_rule al1619578509719Ga0X1RGWv
```
func GetAlarmrule ¶
func GetAlarmrule(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AlarmruleState, opts ...pulumi.ResourceOption) (*Alarmrule, error)
GetAlarmrule gets an existing Alarmrule resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewAlarmrule ¶
func NewAlarmrule(ctx *pulumi.Context, name string, args *AlarmruleArgs, opts ...pulumi.ResourceOption) (*Alarmrule, error)
NewAlarmrule registers a new resource with the given unique name, arguments, and options.
func (*Alarmrule) ElementType ¶
func (*Alarmrule) ToAlarmruleOutput ¶
func (i *Alarmrule) ToAlarmruleOutput() AlarmruleOutput
func (*Alarmrule) ToAlarmruleOutputWithContext ¶
func (i *Alarmrule) ToAlarmruleOutputWithContext(ctx context.Context) AlarmruleOutput
type AlarmruleAlarmAction ¶
type AlarmruleAlarmAction struct { // specifies the list of objects to be notified if the alarm status changes, the // maximum length is 5. NotificationLists []string `pulumi:"notificationLists"` // Specifies the type of action triggered by an alarm. the value is notification. // notification: indicates that a notification will be sent to the user. Type string `pulumi:"type"` }
type AlarmruleAlarmActionArgs ¶
type AlarmruleAlarmActionArgs struct { // specifies the list of objects to be notified if the alarm status changes, the // maximum length is 5. NotificationLists pulumi.StringArrayInput `pulumi:"notificationLists"` // Specifies the type of action triggered by an alarm. the value is notification. // notification: indicates that a notification will be sent to the user. Type pulumi.StringInput `pulumi:"type"` }
func (AlarmruleAlarmActionArgs) ElementType ¶
func (AlarmruleAlarmActionArgs) ElementType() reflect.Type
func (AlarmruleAlarmActionArgs) ToAlarmruleAlarmActionOutput ¶
func (i AlarmruleAlarmActionArgs) ToAlarmruleAlarmActionOutput() AlarmruleAlarmActionOutput
func (AlarmruleAlarmActionArgs) ToAlarmruleAlarmActionOutputWithContext ¶
func (i AlarmruleAlarmActionArgs) ToAlarmruleAlarmActionOutputWithContext(ctx context.Context) AlarmruleAlarmActionOutput
type AlarmruleAlarmActionArray ¶
type AlarmruleAlarmActionArray []AlarmruleAlarmActionInput
func (AlarmruleAlarmActionArray) ElementType ¶
func (AlarmruleAlarmActionArray) ElementType() reflect.Type
func (AlarmruleAlarmActionArray) ToAlarmruleAlarmActionArrayOutput ¶
func (i AlarmruleAlarmActionArray) ToAlarmruleAlarmActionArrayOutput() AlarmruleAlarmActionArrayOutput
func (AlarmruleAlarmActionArray) ToAlarmruleAlarmActionArrayOutputWithContext ¶
func (i AlarmruleAlarmActionArray) ToAlarmruleAlarmActionArrayOutputWithContext(ctx context.Context) AlarmruleAlarmActionArrayOutput
type AlarmruleAlarmActionArrayInput ¶
type AlarmruleAlarmActionArrayInput interface { pulumi.Input ToAlarmruleAlarmActionArrayOutput() AlarmruleAlarmActionArrayOutput ToAlarmruleAlarmActionArrayOutputWithContext(context.Context) AlarmruleAlarmActionArrayOutput }
AlarmruleAlarmActionArrayInput is an input type that accepts AlarmruleAlarmActionArray and AlarmruleAlarmActionArrayOutput values. You can construct a concrete instance of `AlarmruleAlarmActionArrayInput` via:
AlarmruleAlarmActionArray{ AlarmruleAlarmActionArgs{...} }
type AlarmruleAlarmActionArrayOutput ¶
type AlarmruleAlarmActionArrayOutput struct{ *pulumi.OutputState }
func (AlarmruleAlarmActionArrayOutput) ElementType ¶
func (AlarmruleAlarmActionArrayOutput) ElementType() reflect.Type
func (AlarmruleAlarmActionArrayOutput) Index ¶
func (o AlarmruleAlarmActionArrayOutput) Index(i pulumi.IntInput) AlarmruleAlarmActionOutput
func (AlarmruleAlarmActionArrayOutput) ToAlarmruleAlarmActionArrayOutput ¶
func (o AlarmruleAlarmActionArrayOutput) ToAlarmruleAlarmActionArrayOutput() AlarmruleAlarmActionArrayOutput
func (AlarmruleAlarmActionArrayOutput) ToAlarmruleAlarmActionArrayOutputWithContext ¶
func (o AlarmruleAlarmActionArrayOutput) ToAlarmruleAlarmActionArrayOutputWithContext(ctx context.Context) AlarmruleAlarmActionArrayOutput
type AlarmruleAlarmActionInput ¶
type AlarmruleAlarmActionInput interface { pulumi.Input ToAlarmruleAlarmActionOutput() AlarmruleAlarmActionOutput ToAlarmruleAlarmActionOutputWithContext(context.Context) AlarmruleAlarmActionOutput }
AlarmruleAlarmActionInput is an input type that accepts AlarmruleAlarmActionArgs and AlarmruleAlarmActionOutput values. You can construct a concrete instance of `AlarmruleAlarmActionInput` via:
AlarmruleAlarmActionArgs{...}
type AlarmruleAlarmActionOutput ¶
type AlarmruleAlarmActionOutput struct{ *pulumi.OutputState }
func (AlarmruleAlarmActionOutput) ElementType ¶
func (AlarmruleAlarmActionOutput) ElementType() reflect.Type
func (AlarmruleAlarmActionOutput) NotificationLists ¶
func (o AlarmruleAlarmActionOutput) NotificationLists() pulumi.StringArrayOutput
specifies the list of objects to be notified if the alarm status changes, the maximum length is 5.
func (AlarmruleAlarmActionOutput) ToAlarmruleAlarmActionOutput ¶
func (o AlarmruleAlarmActionOutput) ToAlarmruleAlarmActionOutput() AlarmruleAlarmActionOutput
func (AlarmruleAlarmActionOutput) ToAlarmruleAlarmActionOutputWithContext ¶
func (o AlarmruleAlarmActionOutput) ToAlarmruleAlarmActionOutputWithContext(ctx context.Context) AlarmruleAlarmActionOutput
func (AlarmruleAlarmActionOutput) Type ¶
func (o AlarmruleAlarmActionOutput) Type() pulumi.StringOutput
Specifies the type of action triggered by an alarm. the value is notification. notification: indicates that a notification will be sent to the user.
type AlarmruleArgs ¶
type AlarmruleArgs struct { // Specifies whether to enable the action to be triggered by an alarm. The // default value is true. AlarmActionEnabled pulumi.BoolPtrInput // Specifies the action triggered by an alarm. The structure is described // below. AlarmActions AlarmruleAlarmActionArrayInput // The value can be a string of 0 to 256 characters. AlarmDescription pulumi.StringPtrInput // Specifies whether to enable the alarm. The default value is true. AlarmEnabled pulumi.BoolPtrInput // Specifies the alarm severity of the condition. The value can be 1, 2, 3 or 4, // which indicates *critical*, *major*, *minor*, and *informational*, respectively. // The default value is 2. AlarmLevel pulumi.IntPtrInput // Specifies the name of an alarm rule. The value can be a string of 1 to 128 // characters that can consist of letters, digits, underscores (_), hyphens (-) and chinese characters. AlarmName pulumi.StringInput // Specifies the alarm type. The value can be **EVENT.SYS**, **EVENT.CUSTOM**, // **MULTI_INSTANCE** and **ALL_INSTANCE**. Defaults to **MULTI_INSTANCE**. AlarmType pulumi.StringPtrInput // Specifies the alarm triggering condition. The structure is described below. Conditions AlarmruleConditionArrayInput // Specifies the enterprise project id of the alarm rule. Changing // this creates a new resource. EnterpriseProjectId pulumi.StringPtrInput // Deprecated: insufficientdata_actions is deprecated InsufficientdataActions AlarmruleInsufficientdataActionArrayInput // Specifies the alarm metrics. The structure is described below. Changing this // creates a new resource. Metric AlarmruleMetricInput // Specifies the alarm notification start time, for // example: **05:30**. Changing this creates a new resource. NotificationBeginTime pulumi.StringPtrInput // Specifies the alarm notification stop time, for // example: **22:10**. Changing this creates a new resource. NotificationEndTime pulumi.StringPtrInput // Specifies the action triggered by the clearing of an alarm. The structure is // described below. OkActions AlarmruleOkActionArrayInput // The region in which to create the alarm rule resource. If omitted, the // provider-level region will be used. Changing this creates a new resource. Region pulumi.StringPtrInput // schema: Internal ResourceGroupId pulumi.StringPtrInput // Specifies the list of the resources to add into the alarm rule. // The structure is described below. Resources AlarmruleResourceArrayInput }
The set of arguments for constructing a Alarmrule resource.
func (AlarmruleArgs) ElementType ¶
func (AlarmruleArgs) ElementType() reflect.Type
type AlarmruleArray ¶
type AlarmruleArray []AlarmruleInput
func (AlarmruleArray) ElementType ¶
func (AlarmruleArray) ElementType() reflect.Type
func (AlarmruleArray) ToAlarmruleArrayOutput ¶
func (i AlarmruleArray) ToAlarmruleArrayOutput() AlarmruleArrayOutput
func (AlarmruleArray) ToAlarmruleArrayOutputWithContext ¶
func (i AlarmruleArray) ToAlarmruleArrayOutputWithContext(ctx context.Context) AlarmruleArrayOutput
type AlarmruleArrayInput ¶
type AlarmruleArrayInput interface { pulumi.Input ToAlarmruleArrayOutput() AlarmruleArrayOutput ToAlarmruleArrayOutputWithContext(context.Context) AlarmruleArrayOutput }
AlarmruleArrayInput is an input type that accepts AlarmruleArray and AlarmruleArrayOutput values. You can construct a concrete instance of `AlarmruleArrayInput` via:
AlarmruleArray{ AlarmruleArgs{...} }
type AlarmruleArrayOutput ¶
type AlarmruleArrayOutput struct{ *pulumi.OutputState }
func (AlarmruleArrayOutput) ElementType ¶
func (AlarmruleArrayOutput) ElementType() reflect.Type
func (AlarmruleArrayOutput) Index ¶
func (o AlarmruleArrayOutput) Index(i pulumi.IntInput) AlarmruleOutput
func (AlarmruleArrayOutput) ToAlarmruleArrayOutput ¶
func (o AlarmruleArrayOutput) ToAlarmruleArrayOutput() AlarmruleArrayOutput
func (AlarmruleArrayOutput) ToAlarmruleArrayOutputWithContext ¶
func (o AlarmruleArrayOutput) ToAlarmruleArrayOutputWithContext(ctx context.Context) AlarmruleArrayOutput
type AlarmruleCondition ¶
type AlarmruleCondition struct { // Specifies the alarm severity of the condition. The value can be 1, 2, 3 or 4, // which indicates *critical*, *major*, *minor*, and *informational*, respectively. // The default value is 2. AlarmLevel *int `pulumi:"alarmLevel"` // Specifies the comparison condition of alarm thresholds. The value can be >, // =, <, >=, or <=. ComparisonOperator string `pulumi:"comparisonOperator"` // Specifies the number of consecutive occurrence times. The value ranges from 1 to 5. Count int `pulumi:"count"` // Specifies the data rollup methods. The value can be max, min, average, sum, and vaiance. Filter string `pulumi:"filter"` // Specifies the metric name of the condition. The value can be a string of // 1 to 64 characters that must start with a letter and contain only letters, digits, and underscores (_). // For details, see [Services Interconnected with Cloud Eye](https://support.huaweicloud.com/intl/en-us/api-ces/ces_03_0059.html). MetricName *string `pulumi:"metricName"` // Specifies the alarm checking period in seconds. The value can be 0, 1, 300, 1200, 3600, 14400, // and 86400. Period int `pulumi:"period"` // Specifies the interval for triggering an alarm if the alarm persists. // Possible values are as follows: // + **0**: Cloud Eye triggers the alarm only once; // + **300**: Cloud Eye triggers the alarm every 5 minutes; // + **600**: Cloud Eye triggers the alarm every 10 minutes; // + **900**: Cloud Eye triggers the alarm every 15 minutes; // + **1800**: Cloud Eye triggers the alarm every 30 minutes; // + **3600**: Cloud Eye triggers the alarm every hour; // + **10800**: Cloud Eye triggers the alarm every 3 hours; // + **21600**: Cloud Eye triggers the alarm every 6 hours; // + **43200**: Cloud Eye triggers the alarm every 12 hour; // + **86400**: Cloud Eye triggers the alarm every day. SuppressDuration *int `pulumi:"suppressDuration"` // Specifies the data unit. // For details, see [Services Interconnected with Cloud Eye](https://support.huaweicloud.com/intl/en-us/api-ces/ces_03_0059.html). Unit *string `pulumi:"unit"` // Specifies the alarm threshold. The value ranges from 0 to Number of // 1.7976931348623157e+108. Value float64 `pulumi:"value"` }
type AlarmruleConditionArgs ¶
type AlarmruleConditionArgs struct { // Specifies the alarm severity of the condition. The value can be 1, 2, 3 or 4, // which indicates *critical*, *major*, *minor*, and *informational*, respectively. // The default value is 2. AlarmLevel pulumi.IntPtrInput `pulumi:"alarmLevel"` // Specifies the comparison condition of alarm thresholds. The value can be >, // =, <, >=, or <=. ComparisonOperator pulumi.StringInput `pulumi:"comparisonOperator"` // Specifies the number of consecutive occurrence times. The value ranges from 1 to 5. Count pulumi.IntInput `pulumi:"count"` // Specifies the data rollup methods. The value can be max, min, average, sum, and vaiance. Filter pulumi.StringInput `pulumi:"filter"` // Specifies the metric name of the condition. The value can be a string of // 1 to 64 characters that must start with a letter and contain only letters, digits, and underscores (_). // For details, see [Services Interconnected with Cloud Eye](https://support.huaweicloud.com/intl/en-us/api-ces/ces_03_0059.html). MetricName pulumi.StringPtrInput `pulumi:"metricName"` // Specifies the alarm checking period in seconds. The value can be 0, 1, 300, 1200, 3600, 14400, // and 86400. Period pulumi.IntInput `pulumi:"period"` // Specifies the interval for triggering an alarm if the alarm persists. // Possible values are as follows: // + **0**: Cloud Eye triggers the alarm only once; // + **300**: Cloud Eye triggers the alarm every 5 minutes; // + **600**: Cloud Eye triggers the alarm every 10 minutes; // + **900**: Cloud Eye triggers the alarm every 15 minutes; // + **1800**: Cloud Eye triggers the alarm every 30 minutes; // + **3600**: Cloud Eye triggers the alarm every hour; // + **10800**: Cloud Eye triggers the alarm every 3 hours; // + **21600**: Cloud Eye triggers the alarm every 6 hours; // + **43200**: Cloud Eye triggers the alarm every 12 hour; // + **86400**: Cloud Eye triggers the alarm every day. SuppressDuration pulumi.IntPtrInput `pulumi:"suppressDuration"` // Specifies the data unit. // For details, see [Services Interconnected with Cloud Eye](https://support.huaweicloud.com/intl/en-us/api-ces/ces_03_0059.html). Unit pulumi.StringPtrInput `pulumi:"unit"` // Specifies the alarm threshold. The value ranges from 0 to Number of // 1.7976931348623157e+108. Value pulumi.Float64Input `pulumi:"value"` }
func (AlarmruleConditionArgs) ElementType ¶
func (AlarmruleConditionArgs) ElementType() reflect.Type
func (AlarmruleConditionArgs) ToAlarmruleConditionOutput ¶
func (i AlarmruleConditionArgs) ToAlarmruleConditionOutput() AlarmruleConditionOutput
func (AlarmruleConditionArgs) ToAlarmruleConditionOutputWithContext ¶
func (i AlarmruleConditionArgs) ToAlarmruleConditionOutputWithContext(ctx context.Context) AlarmruleConditionOutput
type AlarmruleConditionArray ¶ added in v0.0.8
type AlarmruleConditionArray []AlarmruleConditionInput
func (AlarmruleConditionArray) ElementType ¶ added in v0.0.8
func (AlarmruleConditionArray) ElementType() reflect.Type
func (AlarmruleConditionArray) ToAlarmruleConditionArrayOutput ¶ added in v0.0.8
func (i AlarmruleConditionArray) ToAlarmruleConditionArrayOutput() AlarmruleConditionArrayOutput
func (AlarmruleConditionArray) ToAlarmruleConditionArrayOutputWithContext ¶ added in v0.0.8
func (i AlarmruleConditionArray) ToAlarmruleConditionArrayOutputWithContext(ctx context.Context) AlarmruleConditionArrayOutput
type AlarmruleConditionArrayInput ¶ added in v0.0.8
type AlarmruleConditionArrayInput interface { pulumi.Input ToAlarmruleConditionArrayOutput() AlarmruleConditionArrayOutput ToAlarmruleConditionArrayOutputWithContext(context.Context) AlarmruleConditionArrayOutput }
AlarmruleConditionArrayInput is an input type that accepts AlarmruleConditionArray and AlarmruleConditionArrayOutput values. You can construct a concrete instance of `AlarmruleConditionArrayInput` via:
AlarmruleConditionArray{ AlarmruleConditionArgs{...} }
type AlarmruleConditionArrayOutput ¶ added in v0.0.8
type AlarmruleConditionArrayOutput struct{ *pulumi.OutputState }
func (AlarmruleConditionArrayOutput) ElementType ¶ added in v0.0.8
func (AlarmruleConditionArrayOutput) ElementType() reflect.Type
func (AlarmruleConditionArrayOutput) Index ¶ added in v0.0.8
func (o AlarmruleConditionArrayOutput) Index(i pulumi.IntInput) AlarmruleConditionOutput
func (AlarmruleConditionArrayOutput) ToAlarmruleConditionArrayOutput ¶ added in v0.0.8
func (o AlarmruleConditionArrayOutput) ToAlarmruleConditionArrayOutput() AlarmruleConditionArrayOutput
func (AlarmruleConditionArrayOutput) ToAlarmruleConditionArrayOutputWithContext ¶ added in v0.0.8
func (o AlarmruleConditionArrayOutput) ToAlarmruleConditionArrayOutputWithContext(ctx context.Context) AlarmruleConditionArrayOutput
type AlarmruleConditionInput ¶
type AlarmruleConditionInput interface { pulumi.Input ToAlarmruleConditionOutput() AlarmruleConditionOutput ToAlarmruleConditionOutputWithContext(context.Context) AlarmruleConditionOutput }
AlarmruleConditionInput is an input type that accepts AlarmruleConditionArgs and AlarmruleConditionOutput values. You can construct a concrete instance of `AlarmruleConditionInput` via:
AlarmruleConditionArgs{...}
type AlarmruleConditionOutput ¶
type AlarmruleConditionOutput struct{ *pulumi.OutputState }
func (AlarmruleConditionOutput) AlarmLevel ¶ added in v0.0.8
func (o AlarmruleConditionOutput) AlarmLevel() pulumi.IntPtrOutput
Specifies the alarm severity of the condition. The value can be 1, 2, 3 or 4, which indicates *critical*, *major*, *minor*, and *informational*, respectively. The default value is 2.
func (AlarmruleConditionOutput) ComparisonOperator ¶
func (o AlarmruleConditionOutput) ComparisonOperator() pulumi.StringOutput
Specifies the comparison condition of alarm thresholds. The value can be >, =, <, >=, or <=.
func (AlarmruleConditionOutput) Count ¶
func (o AlarmruleConditionOutput) Count() pulumi.IntOutput
Specifies the number of consecutive occurrence times. The value ranges from 1 to 5.
func (AlarmruleConditionOutput) ElementType ¶
func (AlarmruleConditionOutput) ElementType() reflect.Type
func (AlarmruleConditionOutput) Filter ¶
func (o AlarmruleConditionOutput) Filter() pulumi.StringOutput
Specifies the data rollup methods. The value can be max, min, average, sum, and vaiance.
func (AlarmruleConditionOutput) MetricName ¶ added in v0.0.8
func (o AlarmruleConditionOutput) MetricName() pulumi.StringPtrOutput
Specifies the metric name of the condition. The value can be a string of 1 to 64 characters that must start with a letter and contain only letters, digits, and underscores (_). For details, see [Services Interconnected with Cloud Eye](https://support.huaweicloud.com/intl/en-us/api-ces/ces_03_0059.html).
func (AlarmruleConditionOutput) Period ¶
func (o AlarmruleConditionOutput) Period() pulumi.IntOutput
Specifies the alarm checking period in seconds. The value can be 0, 1, 300, 1200, 3600, 14400, and 86400.
func (AlarmruleConditionOutput) SuppressDuration ¶
func (o AlarmruleConditionOutput) SuppressDuration() pulumi.IntPtrOutput
Specifies the interval for triggering an alarm if the alarm persists. Possible values are as follows: + **0**: Cloud Eye triggers the alarm only once; + **300**: Cloud Eye triggers the alarm every 5 minutes; + **600**: Cloud Eye triggers the alarm every 10 minutes; + **900**: Cloud Eye triggers the alarm every 15 minutes; + **1800**: Cloud Eye triggers the alarm every 30 minutes; + **3600**: Cloud Eye triggers the alarm every hour; + **10800**: Cloud Eye triggers the alarm every 3 hours; + **21600**: Cloud Eye triggers the alarm every 6 hours; + **43200**: Cloud Eye triggers the alarm every 12 hour; + **86400**: Cloud Eye triggers the alarm every day.
func (AlarmruleConditionOutput) ToAlarmruleConditionOutput ¶
func (o AlarmruleConditionOutput) ToAlarmruleConditionOutput() AlarmruleConditionOutput
func (AlarmruleConditionOutput) ToAlarmruleConditionOutputWithContext ¶
func (o AlarmruleConditionOutput) ToAlarmruleConditionOutputWithContext(ctx context.Context) AlarmruleConditionOutput
func (AlarmruleConditionOutput) Unit ¶
func (o AlarmruleConditionOutput) Unit() pulumi.StringPtrOutput
Specifies the data unit. For details, see [Services Interconnected with Cloud Eye](https://support.huaweicloud.com/intl/en-us/api-ces/ces_03_0059.html).
func (AlarmruleConditionOutput) Value ¶
func (o AlarmruleConditionOutput) Value() pulumi.Float64Output
Specifies the alarm threshold. The value ranges from 0 to Number of 1.7976931348623157e+108.
type AlarmruleInput ¶
type AlarmruleInput interface { pulumi.Input ToAlarmruleOutput() AlarmruleOutput ToAlarmruleOutputWithContext(ctx context.Context) AlarmruleOutput }
type AlarmruleInsufficientdataAction ¶
type AlarmruleInsufficientdataAction struct { // specifies the list of objects to be notified if the alarm status changes, the // maximum length is 5. NotificationLists []string `pulumi:"notificationLists"` // Specifies the type of action triggered by an alarm. the value is notification. // notification: indicates that a notification will be sent to the user. Type string `pulumi:"type"` }
type AlarmruleInsufficientdataActionArgs ¶
type AlarmruleInsufficientdataActionArgs struct { // specifies the list of objects to be notified if the alarm status changes, the // maximum length is 5. NotificationLists pulumi.StringArrayInput `pulumi:"notificationLists"` // Specifies the type of action triggered by an alarm. the value is notification. // notification: indicates that a notification will be sent to the user. Type pulumi.StringInput `pulumi:"type"` }
func (AlarmruleInsufficientdataActionArgs) ElementType ¶
func (AlarmruleInsufficientdataActionArgs) ElementType() reflect.Type
func (AlarmruleInsufficientdataActionArgs) ToAlarmruleInsufficientdataActionOutput ¶
func (i AlarmruleInsufficientdataActionArgs) ToAlarmruleInsufficientdataActionOutput() AlarmruleInsufficientdataActionOutput
func (AlarmruleInsufficientdataActionArgs) ToAlarmruleInsufficientdataActionOutputWithContext ¶
func (i AlarmruleInsufficientdataActionArgs) ToAlarmruleInsufficientdataActionOutputWithContext(ctx context.Context) AlarmruleInsufficientdataActionOutput
type AlarmruleInsufficientdataActionArray ¶
type AlarmruleInsufficientdataActionArray []AlarmruleInsufficientdataActionInput
func (AlarmruleInsufficientdataActionArray) ElementType ¶
func (AlarmruleInsufficientdataActionArray) ElementType() reflect.Type
func (AlarmruleInsufficientdataActionArray) ToAlarmruleInsufficientdataActionArrayOutput ¶
func (i AlarmruleInsufficientdataActionArray) ToAlarmruleInsufficientdataActionArrayOutput() AlarmruleInsufficientdataActionArrayOutput
func (AlarmruleInsufficientdataActionArray) ToAlarmruleInsufficientdataActionArrayOutputWithContext ¶
func (i AlarmruleInsufficientdataActionArray) ToAlarmruleInsufficientdataActionArrayOutputWithContext(ctx context.Context) AlarmruleInsufficientdataActionArrayOutput
type AlarmruleInsufficientdataActionArrayInput ¶
type AlarmruleInsufficientdataActionArrayInput interface { pulumi.Input ToAlarmruleInsufficientdataActionArrayOutput() AlarmruleInsufficientdataActionArrayOutput ToAlarmruleInsufficientdataActionArrayOutputWithContext(context.Context) AlarmruleInsufficientdataActionArrayOutput }
AlarmruleInsufficientdataActionArrayInput is an input type that accepts AlarmruleInsufficientdataActionArray and AlarmruleInsufficientdataActionArrayOutput values. You can construct a concrete instance of `AlarmruleInsufficientdataActionArrayInput` via:
AlarmruleInsufficientdataActionArray{ AlarmruleInsufficientdataActionArgs{...} }
type AlarmruleInsufficientdataActionArrayOutput ¶
type AlarmruleInsufficientdataActionArrayOutput struct{ *pulumi.OutputState }
func (AlarmruleInsufficientdataActionArrayOutput) ElementType ¶
func (AlarmruleInsufficientdataActionArrayOutput) ElementType() reflect.Type
func (AlarmruleInsufficientdataActionArrayOutput) ToAlarmruleInsufficientdataActionArrayOutput ¶
func (o AlarmruleInsufficientdataActionArrayOutput) ToAlarmruleInsufficientdataActionArrayOutput() AlarmruleInsufficientdataActionArrayOutput
func (AlarmruleInsufficientdataActionArrayOutput) ToAlarmruleInsufficientdataActionArrayOutputWithContext ¶
func (o AlarmruleInsufficientdataActionArrayOutput) ToAlarmruleInsufficientdataActionArrayOutputWithContext(ctx context.Context) AlarmruleInsufficientdataActionArrayOutput
type AlarmruleInsufficientdataActionInput ¶
type AlarmruleInsufficientdataActionInput interface { pulumi.Input ToAlarmruleInsufficientdataActionOutput() AlarmruleInsufficientdataActionOutput ToAlarmruleInsufficientdataActionOutputWithContext(context.Context) AlarmruleInsufficientdataActionOutput }
AlarmruleInsufficientdataActionInput is an input type that accepts AlarmruleInsufficientdataActionArgs and AlarmruleInsufficientdataActionOutput values. You can construct a concrete instance of `AlarmruleInsufficientdataActionInput` via:
AlarmruleInsufficientdataActionArgs{...}
type AlarmruleInsufficientdataActionOutput ¶
type AlarmruleInsufficientdataActionOutput struct{ *pulumi.OutputState }
func (AlarmruleInsufficientdataActionOutput) ElementType ¶
func (AlarmruleInsufficientdataActionOutput) ElementType() reflect.Type
func (AlarmruleInsufficientdataActionOutput) NotificationLists ¶
func (o AlarmruleInsufficientdataActionOutput) NotificationLists() pulumi.StringArrayOutput
specifies the list of objects to be notified if the alarm status changes, the maximum length is 5.
func (AlarmruleInsufficientdataActionOutput) ToAlarmruleInsufficientdataActionOutput ¶
func (o AlarmruleInsufficientdataActionOutput) ToAlarmruleInsufficientdataActionOutput() AlarmruleInsufficientdataActionOutput
func (AlarmruleInsufficientdataActionOutput) ToAlarmruleInsufficientdataActionOutputWithContext ¶
func (o AlarmruleInsufficientdataActionOutput) ToAlarmruleInsufficientdataActionOutputWithContext(ctx context.Context) AlarmruleInsufficientdataActionOutput
func (AlarmruleInsufficientdataActionOutput) Type ¶
func (o AlarmruleInsufficientdataActionOutput) Type() pulumi.StringOutput
Specifies the type of action triggered by an alarm. the value is notification. notification: indicates that a notification will be sent to the user.
type AlarmruleMap ¶
type AlarmruleMap map[string]AlarmruleInput
func (AlarmruleMap) ElementType ¶
func (AlarmruleMap) ElementType() reflect.Type
func (AlarmruleMap) ToAlarmruleMapOutput ¶
func (i AlarmruleMap) ToAlarmruleMapOutput() AlarmruleMapOutput
func (AlarmruleMap) ToAlarmruleMapOutputWithContext ¶
func (i AlarmruleMap) ToAlarmruleMapOutputWithContext(ctx context.Context) AlarmruleMapOutput
type AlarmruleMapInput ¶
type AlarmruleMapInput interface { pulumi.Input ToAlarmruleMapOutput() AlarmruleMapOutput ToAlarmruleMapOutputWithContext(context.Context) AlarmruleMapOutput }
AlarmruleMapInput is an input type that accepts AlarmruleMap and AlarmruleMapOutput values. You can construct a concrete instance of `AlarmruleMapInput` via:
AlarmruleMap{ "key": AlarmruleArgs{...} }
type AlarmruleMapOutput ¶
type AlarmruleMapOutput struct{ *pulumi.OutputState }
func (AlarmruleMapOutput) ElementType ¶
func (AlarmruleMapOutput) ElementType() reflect.Type
func (AlarmruleMapOutput) MapIndex ¶
func (o AlarmruleMapOutput) MapIndex(k pulumi.StringInput) AlarmruleOutput
func (AlarmruleMapOutput) ToAlarmruleMapOutput ¶
func (o AlarmruleMapOutput) ToAlarmruleMapOutput() AlarmruleMapOutput
func (AlarmruleMapOutput) ToAlarmruleMapOutputWithContext ¶
func (o AlarmruleMapOutput) ToAlarmruleMapOutputWithContext(ctx context.Context) AlarmruleMapOutput
type AlarmruleMetric ¶
type AlarmruleMetric struct { // Specifies the list of metric dimensions. The structure is described below. Dimensions []AlarmruleMetricDimension `pulumi:"dimensions"` // Specifies the metric name of the condition. The value can be a string of // 1 to 64 characters that must start with a letter and contain only letters, digits, and underscores (_). // For details, see [Services Interconnected with Cloud Eye](https://support.huaweicloud.com/intl/en-us/api-ces/ces_03_0059.html). MetricName *string `pulumi:"metricName"` // Specifies the namespace in **service.item** format. **service** and **item** // each must be a string that starts with a letter and contains only letters, digits, and underscores (_). // Changing this creates a new resource. // For details, see [Services Interconnected with Cloud Eye](https://support.huaweicloud.com/intl/en-us/api-ces/ces_03_0059.html). Namespace string `pulumi:"namespace"` }
type AlarmruleMetricArgs ¶
type AlarmruleMetricArgs struct { // Specifies the list of metric dimensions. The structure is described below. Dimensions AlarmruleMetricDimensionArrayInput `pulumi:"dimensions"` // Specifies the metric name of the condition. The value can be a string of // 1 to 64 characters that must start with a letter and contain only letters, digits, and underscores (_). // For details, see [Services Interconnected with Cloud Eye](https://support.huaweicloud.com/intl/en-us/api-ces/ces_03_0059.html). MetricName pulumi.StringPtrInput `pulumi:"metricName"` // Specifies the namespace in **service.item** format. **service** and **item** // each must be a string that starts with a letter and contains only letters, digits, and underscores (_). // Changing this creates a new resource. // For details, see [Services Interconnected with Cloud Eye](https://support.huaweicloud.com/intl/en-us/api-ces/ces_03_0059.html). Namespace pulumi.StringInput `pulumi:"namespace"` }
func (AlarmruleMetricArgs) ElementType ¶
func (AlarmruleMetricArgs) ElementType() reflect.Type
func (AlarmruleMetricArgs) ToAlarmruleMetricOutput ¶
func (i AlarmruleMetricArgs) ToAlarmruleMetricOutput() AlarmruleMetricOutput
func (AlarmruleMetricArgs) ToAlarmruleMetricOutputWithContext ¶
func (i AlarmruleMetricArgs) ToAlarmruleMetricOutputWithContext(ctx context.Context) AlarmruleMetricOutput
func (AlarmruleMetricArgs) ToAlarmruleMetricPtrOutput ¶
func (i AlarmruleMetricArgs) ToAlarmruleMetricPtrOutput() AlarmruleMetricPtrOutput
func (AlarmruleMetricArgs) ToAlarmruleMetricPtrOutputWithContext ¶
func (i AlarmruleMetricArgs) ToAlarmruleMetricPtrOutputWithContext(ctx context.Context) AlarmruleMetricPtrOutput
type AlarmruleMetricDimension ¶
type AlarmruleMetricDimension struct { // Specifies the dimension name. The value can be a string of 1 to 32 characters // that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-). Name string `pulumi:"name"` // Specifies the alarm threshold. The value ranges from 0 to Number of // 1.7976931348623157e+108. Value *string `pulumi:"value"` }
type AlarmruleMetricDimensionArgs ¶
type AlarmruleMetricDimensionArgs struct { // Specifies the dimension name. The value can be a string of 1 to 32 characters // that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-). Name pulumi.StringInput `pulumi:"name"` // Specifies the alarm threshold. The value ranges from 0 to Number of // 1.7976931348623157e+108. Value pulumi.StringPtrInput `pulumi:"value"` }
func (AlarmruleMetricDimensionArgs) ElementType ¶
func (AlarmruleMetricDimensionArgs) ElementType() reflect.Type
func (AlarmruleMetricDimensionArgs) ToAlarmruleMetricDimensionOutput ¶
func (i AlarmruleMetricDimensionArgs) ToAlarmruleMetricDimensionOutput() AlarmruleMetricDimensionOutput
func (AlarmruleMetricDimensionArgs) ToAlarmruleMetricDimensionOutputWithContext ¶
func (i AlarmruleMetricDimensionArgs) ToAlarmruleMetricDimensionOutputWithContext(ctx context.Context) AlarmruleMetricDimensionOutput
type AlarmruleMetricDimensionArray ¶
type AlarmruleMetricDimensionArray []AlarmruleMetricDimensionInput
func (AlarmruleMetricDimensionArray) ElementType ¶
func (AlarmruleMetricDimensionArray) ElementType() reflect.Type
func (AlarmruleMetricDimensionArray) ToAlarmruleMetricDimensionArrayOutput ¶
func (i AlarmruleMetricDimensionArray) ToAlarmruleMetricDimensionArrayOutput() AlarmruleMetricDimensionArrayOutput
func (AlarmruleMetricDimensionArray) ToAlarmruleMetricDimensionArrayOutputWithContext ¶
func (i AlarmruleMetricDimensionArray) ToAlarmruleMetricDimensionArrayOutputWithContext(ctx context.Context) AlarmruleMetricDimensionArrayOutput
type AlarmruleMetricDimensionArrayInput ¶
type AlarmruleMetricDimensionArrayInput interface { pulumi.Input ToAlarmruleMetricDimensionArrayOutput() AlarmruleMetricDimensionArrayOutput ToAlarmruleMetricDimensionArrayOutputWithContext(context.Context) AlarmruleMetricDimensionArrayOutput }
AlarmruleMetricDimensionArrayInput is an input type that accepts AlarmruleMetricDimensionArray and AlarmruleMetricDimensionArrayOutput values. You can construct a concrete instance of `AlarmruleMetricDimensionArrayInput` via:
AlarmruleMetricDimensionArray{ AlarmruleMetricDimensionArgs{...} }
type AlarmruleMetricDimensionArrayOutput ¶
type AlarmruleMetricDimensionArrayOutput struct{ *pulumi.OutputState }
func (AlarmruleMetricDimensionArrayOutput) ElementType ¶
func (AlarmruleMetricDimensionArrayOutput) ElementType() reflect.Type
func (AlarmruleMetricDimensionArrayOutput) Index ¶
func (o AlarmruleMetricDimensionArrayOutput) Index(i pulumi.IntInput) AlarmruleMetricDimensionOutput
func (AlarmruleMetricDimensionArrayOutput) ToAlarmruleMetricDimensionArrayOutput ¶
func (o AlarmruleMetricDimensionArrayOutput) ToAlarmruleMetricDimensionArrayOutput() AlarmruleMetricDimensionArrayOutput
func (AlarmruleMetricDimensionArrayOutput) ToAlarmruleMetricDimensionArrayOutputWithContext ¶
func (o AlarmruleMetricDimensionArrayOutput) ToAlarmruleMetricDimensionArrayOutputWithContext(ctx context.Context) AlarmruleMetricDimensionArrayOutput
type AlarmruleMetricDimensionInput ¶
type AlarmruleMetricDimensionInput interface { pulumi.Input ToAlarmruleMetricDimensionOutput() AlarmruleMetricDimensionOutput ToAlarmruleMetricDimensionOutputWithContext(context.Context) AlarmruleMetricDimensionOutput }
AlarmruleMetricDimensionInput is an input type that accepts AlarmruleMetricDimensionArgs and AlarmruleMetricDimensionOutput values. You can construct a concrete instance of `AlarmruleMetricDimensionInput` via:
AlarmruleMetricDimensionArgs{...}
type AlarmruleMetricDimensionOutput ¶
type AlarmruleMetricDimensionOutput struct{ *pulumi.OutputState }
func (AlarmruleMetricDimensionOutput) ElementType ¶
func (AlarmruleMetricDimensionOutput) ElementType() reflect.Type
func (AlarmruleMetricDimensionOutput) Name ¶
func (o AlarmruleMetricDimensionOutput) Name() pulumi.StringOutput
Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-).
func (AlarmruleMetricDimensionOutput) ToAlarmruleMetricDimensionOutput ¶
func (o AlarmruleMetricDimensionOutput) ToAlarmruleMetricDimensionOutput() AlarmruleMetricDimensionOutput
func (AlarmruleMetricDimensionOutput) ToAlarmruleMetricDimensionOutputWithContext ¶
func (o AlarmruleMetricDimensionOutput) ToAlarmruleMetricDimensionOutputWithContext(ctx context.Context) AlarmruleMetricDimensionOutput
func (AlarmruleMetricDimensionOutput) Value ¶
func (o AlarmruleMetricDimensionOutput) Value() pulumi.StringPtrOutput
Specifies the alarm threshold. The value ranges from 0 to Number of 1.7976931348623157e+108.
type AlarmruleMetricInput ¶
type AlarmruleMetricInput interface { pulumi.Input ToAlarmruleMetricOutput() AlarmruleMetricOutput ToAlarmruleMetricOutputWithContext(context.Context) AlarmruleMetricOutput }
AlarmruleMetricInput is an input type that accepts AlarmruleMetricArgs and AlarmruleMetricOutput values. You can construct a concrete instance of `AlarmruleMetricInput` via:
AlarmruleMetricArgs{...}
type AlarmruleMetricOutput ¶
type AlarmruleMetricOutput struct{ *pulumi.OutputState }
func (AlarmruleMetricOutput) Dimensions ¶
func (o AlarmruleMetricOutput) Dimensions() AlarmruleMetricDimensionArrayOutput
Specifies the list of metric dimensions. The structure is described below.
func (AlarmruleMetricOutput) ElementType ¶
func (AlarmruleMetricOutput) ElementType() reflect.Type
func (AlarmruleMetricOutput) MetricName ¶
func (o AlarmruleMetricOutput) MetricName() pulumi.StringPtrOutput
Specifies the metric name of the condition. The value can be a string of 1 to 64 characters that must start with a letter and contain only letters, digits, and underscores (_). For details, see [Services Interconnected with Cloud Eye](https://support.huaweicloud.com/intl/en-us/api-ces/ces_03_0059.html).
func (AlarmruleMetricOutput) Namespace ¶
func (o AlarmruleMetricOutput) Namespace() pulumi.StringOutput
Specifies the namespace in **service.item** format. **service** and **item** each must be a string that starts with a letter and contains only letters, digits, and underscores (_). Changing this creates a new resource. For details, see [Services Interconnected with Cloud Eye](https://support.huaweicloud.com/intl/en-us/api-ces/ces_03_0059.html).
func (AlarmruleMetricOutput) ToAlarmruleMetricOutput ¶
func (o AlarmruleMetricOutput) ToAlarmruleMetricOutput() AlarmruleMetricOutput
func (AlarmruleMetricOutput) ToAlarmruleMetricOutputWithContext ¶
func (o AlarmruleMetricOutput) ToAlarmruleMetricOutputWithContext(ctx context.Context) AlarmruleMetricOutput
func (AlarmruleMetricOutput) ToAlarmruleMetricPtrOutput ¶
func (o AlarmruleMetricOutput) ToAlarmruleMetricPtrOutput() AlarmruleMetricPtrOutput
func (AlarmruleMetricOutput) ToAlarmruleMetricPtrOutputWithContext ¶
func (o AlarmruleMetricOutput) ToAlarmruleMetricPtrOutputWithContext(ctx context.Context) AlarmruleMetricPtrOutput
type AlarmruleMetricPtrInput ¶
type AlarmruleMetricPtrInput interface { pulumi.Input ToAlarmruleMetricPtrOutput() AlarmruleMetricPtrOutput ToAlarmruleMetricPtrOutputWithContext(context.Context) AlarmruleMetricPtrOutput }
AlarmruleMetricPtrInput is an input type that accepts AlarmruleMetricArgs, AlarmruleMetricPtr and AlarmruleMetricPtrOutput values. You can construct a concrete instance of `AlarmruleMetricPtrInput` via:
AlarmruleMetricArgs{...} or: nil
func AlarmruleMetricPtr ¶
func AlarmruleMetricPtr(v *AlarmruleMetricArgs) AlarmruleMetricPtrInput
type AlarmruleMetricPtrOutput ¶
type AlarmruleMetricPtrOutput struct{ *pulumi.OutputState }
func (AlarmruleMetricPtrOutput) Dimensions ¶
func (o AlarmruleMetricPtrOutput) Dimensions() AlarmruleMetricDimensionArrayOutput
Specifies the list of metric dimensions. The structure is described below.
func (AlarmruleMetricPtrOutput) Elem ¶
func (o AlarmruleMetricPtrOutput) Elem() AlarmruleMetricOutput
func (AlarmruleMetricPtrOutput) ElementType ¶
func (AlarmruleMetricPtrOutput) ElementType() reflect.Type
func (AlarmruleMetricPtrOutput) MetricName ¶
func (o AlarmruleMetricPtrOutput) MetricName() pulumi.StringPtrOutput
Specifies the metric name of the condition. The value can be a string of 1 to 64 characters that must start with a letter and contain only letters, digits, and underscores (_). For details, see [Services Interconnected with Cloud Eye](https://support.huaweicloud.com/intl/en-us/api-ces/ces_03_0059.html).
func (AlarmruleMetricPtrOutput) Namespace ¶
func (o AlarmruleMetricPtrOutput) Namespace() pulumi.StringPtrOutput
Specifies the namespace in **service.item** format. **service** and **item** each must be a string that starts with a letter and contains only letters, digits, and underscores (_). Changing this creates a new resource. For details, see [Services Interconnected with Cloud Eye](https://support.huaweicloud.com/intl/en-us/api-ces/ces_03_0059.html).
func (AlarmruleMetricPtrOutput) ToAlarmruleMetricPtrOutput ¶
func (o AlarmruleMetricPtrOutput) ToAlarmruleMetricPtrOutput() AlarmruleMetricPtrOutput
func (AlarmruleMetricPtrOutput) ToAlarmruleMetricPtrOutputWithContext ¶
func (o AlarmruleMetricPtrOutput) ToAlarmruleMetricPtrOutputWithContext(ctx context.Context) AlarmruleMetricPtrOutput
type AlarmruleOkAction ¶
type AlarmruleOkAction struct { // specifies the list of objects to be notified if the alarm status changes, the // maximum length is 5. NotificationLists []string `pulumi:"notificationLists"` // Specifies the type of action triggered by an alarm. the value is notification. // notification: indicates that a notification will be sent to the user. Type string `pulumi:"type"` }
type AlarmruleOkActionArgs ¶
type AlarmruleOkActionArgs struct { // specifies the list of objects to be notified if the alarm status changes, the // maximum length is 5. NotificationLists pulumi.StringArrayInput `pulumi:"notificationLists"` // Specifies the type of action triggered by an alarm. the value is notification. // notification: indicates that a notification will be sent to the user. Type pulumi.StringInput `pulumi:"type"` }
func (AlarmruleOkActionArgs) ElementType ¶
func (AlarmruleOkActionArgs) ElementType() reflect.Type
func (AlarmruleOkActionArgs) ToAlarmruleOkActionOutput ¶
func (i AlarmruleOkActionArgs) ToAlarmruleOkActionOutput() AlarmruleOkActionOutput
func (AlarmruleOkActionArgs) ToAlarmruleOkActionOutputWithContext ¶
func (i AlarmruleOkActionArgs) ToAlarmruleOkActionOutputWithContext(ctx context.Context) AlarmruleOkActionOutput
type AlarmruleOkActionArray ¶
type AlarmruleOkActionArray []AlarmruleOkActionInput
func (AlarmruleOkActionArray) ElementType ¶
func (AlarmruleOkActionArray) ElementType() reflect.Type
func (AlarmruleOkActionArray) ToAlarmruleOkActionArrayOutput ¶
func (i AlarmruleOkActionArray) ToAlarmruleOkActionArrayOutput() AlarmruleOkActionArrayOutput
func (AlarmruleOkActionArray) ToAlarmruleOkActionArrayOutputWithContext ¶
func (i AlarmruleOkActionArray) ToAlarmruleOkActionArrayOutputWithContext(ctx context.Context) AlarmruleOkActionArrayOutput
type AlarmruleOkActionArrayInput ¶
type AlarmruleOkActionArrayInput interface { pulumi.Input ToAlarmruleOkActionArrayOutput() AlarmruleOkActionArrayOutput ToAlarmruleOkActionArrayOutputWithContext(context.Context) AlarmruleOkActionArrayOutput }
AlarmruleOkActionArrayInput is an input type that accepts AlarmruleOkActionArray and AlarmruleOkActionArrayOutput values. You can construct a concrete instance of `AlarmruleOkActionArrayInput` via:
AlarmruleOkActionArray{ AlarmruleOkActionArgs{...} }
type AlarmruleOkActionArrayOutput ¶
type AlarmruleOkActionArrayOutput struct{ *pulumi.OutputState }
func (AlarmruleOkActionArrayOutput) ElementType ¶
func (AlarmruleOkActionArrayOutput) ElementType() reflect.Type
func (AlarmruleOkActionArrayOutput) Index ¶
func (o AlarmruleOkActionArrayOutput) Index(i pulumi.IntInput) AlarmruleOkActionOutput
func (AlarmruleOkActionArrayOutput) ToAlarmruleOkActionArrayOutput ¶
func (o AlarmruleOkActionArrayOutput) ToAlarmruleOkActionArrayOutput() AlarmruleOkActionArrayOutput
func (AlarmruleOkActionArrayOutput) ToAlarmruleOkActionArrayOutputWithContext ¶
func (o AlarmruleOkActionArrayOutput) ToAlarmruleOkActionArrayOutputWithContext(ctx context.Context) AlarmruleOkActionArrayOutput
type AlarmruleOkActionInput ¶
type AlarmruleOkActionInput interface { pulumi.Input ToAlarmruleOkActionOutput() AlarmruleOkActionOutput ToAlarmruleOkActionOutputWithContext(context.Context) AlarmruleOkActionOutput }
AlarmruleOkActionInput is an input type that accepts AlarmruleOkActionArgs and AlarmruleOkActionOutput values. You can construct a concrete instance of `AlarmruleOkActionInput` via:
AlarmruleOkActionArgs{...}
type AlarmruleOkActionOutput ¶
type AlarmruleOkActionOutput struct{ *pulumi.OutputState }
func (AlarmruleOkActionOutput) ElementType ¶
func (AlarmruleOkActionOutput) ElementType() reflect.Type
func (AlarmruleOkActionOutput) NotificationLists ¶
func (o AlarmruleOkActionOutput) NotificationLists() pulumi.StringArrayOutput
specifies the list of objects to be notified if the alarm status changes, the maximum length is 5.
func (AlarmruleOkActionOutput) ToAlarmruleOkActionOutput ¶
func (o AlarmruleOkActionOutput) ToAlarmruleOkActionOutput() AlarmruleOkActionOutput
func (AlarmruleOkActionOutput) ToAlarmruleOkActionOutputWithContext ¶
func (o AlarmruleOkActionOutput) ToAlarmruleOkActionOutputWithContext(ctx context.Context) AlarmruleOkActionOutput
func (AlarmruleOkActionOutput) Type ¶
func (o AlarmruleOkActionOutput) Type() pulumi.StringOutput
Specifies the type of action triggered by an alarm. the value is notification. notification: indicates that a notification will be sent to the user.
type AlarmruleOutput ¶
type AlarmruleOutput struct{ *pulumi.OutputState }
func (AlarmruleOutput) AlarmActionEnabled ¶
func (o AlarmruleOutput) AlarmActionEnabled() pulumi.BoolPtrOutput
Specifies whether to enable the action to be triggered by an alarm. The default value is true.
func (AlarmruleOutput) AlarmActions ¶
func (o AlarmruleOutput) AlarmActions() AlarmruleAlarmActionArrayOutput
Specifies the action triggered by an alarm. The structure is described below.
func (AlarmruleOutput) AlarmDescription ¶
func (o AlarmruleOutput) AlarmDescription() pulumi.StringPtrOutput
The value can be a string of 0 to 256 characters.
func (AlarmruleOutput) AlarmEnabled ¶
func (o AlarmruleOutput) AlarmEnabled() pulumi.BoolPtrOutput
Specifies whether to enable the alarm. The default value is true.
func (AlarmruleOutput) AlarmLevel ¶
func (o AlarmruleOutput) AlarmLevel() pulumi.IntOutput
Specifies the alarm severity of the condition. The value can be 1, 2, 3 or 4, which indicates *critical*, *major*, *minor*, and *informational*, respectively. The default value is 2.
func (AlarmruleOutput) AlarmName ¶
func (o AlarmruleOutput) AlarmName() pulumi.StringOutput
Specifies the name of an alarm rule. The value can be a string of 1 to 128 characters that can consist of letters, digits, underscores (_), hyphens (-) and chinese characters.
func (AlarmruleOutput) AlarmState ¶
func (o AlarmruleOutput) AlarmState() pulumi.StringOutput
Indicates the alarm status. The value can be: + ok: The alarm status is normal; + alarm: An alarm is generated; + insufficient_data: The required data is insufficient.
func (AlarmruleOutput) AlarmType ¶
func (o AlarmruleOutput) AlarmType() pulumi.StringPtrOutput
Specifies the alarm type. The value can be **EVENT.SYS**, **EVENT.CUSTOM**, **MULTI_INSTANCE** and **ALL_INSTANCE**. Defaults to **MULTI_INSTANCE**.
func (AlarmruleOutput) Conditions ¶ added in v0.0.8
func (o AlarmruleOutput) Conditions() AlarmruleConditionArrayOutput
Specifies the alarm triggering condition. The structure is described below.
func (AlarmruleOutput) ElementType ¶
func (AlarmruleOutput) ElementType() reflect.Type
func (AlarmruleOutput) EnterpriseProjectId ¶
func (o AlarmruleOutput) EnterpriseProjectId() pulumi.StringOutput
Specifies the enterprise project id of the alarm rule. Changing this creates a new resource.
func (AlarmruleOutput) InsufficientdataActions
deprecated
func (o AlarmruleOutput) InsufficientdataActions() AlarmruleInsufficientdataActionArrayOutput
Deprecated: insufficientdata_actions is deprecated
func (AlarmruleOutput) Metric ¶
func (o AlarmruleOutput) Metric() AlarmruleMetricOutput
Specifies the alarm metrics. The structure is described below. Changing this creates a new resource.
func (AlarmruleOutput) NotificationBeginTime ¶ added in v0.0.8
func (o AlarmruleOutput) NotificationBeginTime() pulumi.StringOutput
Specifies the alarm notification start time, for example: **05:30**. Changing this creates a new resource.
func (AlarmruleOutput) NotificationEndTime ¶ added in v0.0.8
func (o AlarmruleOutput) NotificationEndTime() pulumi.StringOutput
Specifies the alarm notification stop time, for example: **22:10**. Changing this creates a new resource.
func (AlarmruleOutput) OkActions ¶
func (o AlarmruleOutput) OkActions() AlarmruleOkActionArrayOutput
Specifies the action triggered by the clearing of an alarm. The structure is described below.
func (AlarmruleOutput) Region ¶
func (o AlarmruleOutput) Region() pulumi.StringOutput
The region in which to create the alarm rule resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
func (AlarmruleOutput) ResourceGroupId ¶ added in v0.0.8
func (o AlarmruleOutput) ResourceGroupId() pulumi.StringOutput
schema: Internal
func (AlarmruleOutput) Resources ¶ added in v0.0.8
func (o AlarmruleOutput) Resources() AlarmruleResourceArrayOutput
Specifies the list of the resources to add into the alarm rule. The structure is described below.
func (AlarmruleOutput) ToAlarmruleOutput ¶
func (o AlarmruleOutput) ToAlarmruleOutput() AlarmruleOutput
func (AlarmruleOutput) ToAlarmruleOutputWithContext ¶
func (o AlarmruleOutput) ToAlarmruleOutputWithContext(ctx context.Context) AlarmruleOutput
func (AlarmruleOutput) UpdateTime ¶
func (o AlarmruleOutput) UpdateTime() pulumi.IntOutput
Indicates the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
type AlarmruleResource ¶ added in v0.0.8
type AlarmruleResource struct { // Specifies the list of metric dimensions. The structure is described below. Dimensions []AlarmruleResourceDimension `pulumi:"dimensions"` }
type AlarmruleResourceArgs ¶ added in v0.0.8
type AlarmruleResourceArgs struct { // Specifies the list of metric dimensions. The structure is described below. Dimensions AlarmruleResourceDimensionArrayInput `pulumi:"dimensions"` }
func (AlarmruleResourceArgs) ElementType ¶ added in v0.0.8
func (AlarmruleResourceArgs) ElementType() reflect.Type
func (AlarmruleResourceArgs) ToAlarmruleResourceOutput ¶ added in v0.0.8
func (i AlarmruleResourceArgs) ToAlarmruleResourceOutput() AlarmruleResourceOutput
func (AlarmruleResourceArgs) ToAlarmruleResourceOutputWithContext ¶ added in v0.0.8
func (i AlarmruleResourceArgs) ToAlarmruleResourceOutputWithContext(ctx context.Context) AlarmruleResourceOutput
type AlarmruleResourceArray ¶ added in v0.0.8
type AlarmruleResourceArray []AlarmruleResourceInput
func (AlarmruleResourceArray) ElementType ¶ added in v0.0.8
func (AlarmruleResourceArray) ElementType() reflect.Type
func (AlarmruleResourceArray) ToAlarmruleResourceArrayOutput ¶ added in v0.0.8
func (i AlarmruleResourceArray) ToAlarmruleResourceArrayOutput() AlarmruleResourceArrayOutput
func (AlarmruleResourceArray) ToAlarmruleResourceArrayOutputWithContext ¶ added in v0.0.8
func (i AlarmruleResourceArray) ToAlarmruleResourceArrayOutputWithContext(ctx context.Context) AlarmruleResourceArrayOutput
type AlarmruleResourceArrayInput ¶ added in v0.0.8
type AlarmruleResourceArrayInput interface { pulumi.Input ToAlarmruleResourceArrayOutput() AlarmruleResourceArrayOutput ToAlarmruleResourceArrayOutputWithContext(context.Context) AlarmruleResourceArrayOutput }
AlarmruleResourceArrayInput is an input type that accepts AlarmruleResourceArray and AlarmruleResourceArrayOutput values. You can construct a concrete instance of `AlarmruleResourceArrayInput` via:
AlarmruleResourceArray{ AlarmruleResourceArgs{...} }
type AlarmruleResourceArrayOutput ¶ added in v0.0.8
type AlarmruleResourceArrayOutput struct{ *pulumi.OutputState }
func (AlarmruleResourceArrayOutput) ElementType ¶ added in v0.0.8
func (AlarmruleResourceArrayOutput) ElementType() reflect.Type
func (AlarmruleResourceArrayOutput) Index ¶ added in v0.0.8
func (o AlarmruleResourceArrayOutput) Index(i pulumi.IntInput) AlarmruleResourceOutput
func (AlarmruleResourceArrayOutput) ToAlarmruleResourceArrayOutput ¶ added in v0.0.8
func (o AlarmruleResourceArrayOutput) ToAlarmruleResourceArrayOutput() AlarmruleResourceArrayOutput
func (AlarmruleResourceArrayOutput) ToAlarmruleResourceArrayOutputWithContext ¶ added in v0.0.8
func (o AlarmruleResourceArrayOutput) ToAlarmruleResourceArrayOutputWithContext(ctx context.Context) AlarmruleResourceArrayOutput
type AlarmruleResourceDimension ¶ added in v0.0.8
type AlarmruleResourceDimension struct { // Specifies the dimension name. The value can be a string of 1 to 32 characters // that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-). Name string `pulumi:"name"` // Specifies the alarm threshold. The value ranges from 0 to Number of // 1.7976931348623157e+108. Value *string `pulumi:"value"` }
type AlarmruleResourceDimensionArgs ¶ added in v0.0.8
type AlarmruleResourceDimensionArgs struct { // Specifies the dimension name. The value can be a string of 1 to 32 characters // that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-). Name pulumi.StringInput `pulumi:"name"` // Specifies the alarm threshold. The value ranges from 0 to Number of // 1.7976931348623157e+108. Value pulumi.StringPtrInput `pulumi:"value"` }
func (AlarmruleResourceDimensionArgs) ElementType ¶ added in v0.0.8
func (AlarmruleResourceDimensionArgs) ElementType() reflect.Type
func (AlarmruleResourceDimensionArgs) ToAlarmruleResourceDimensionOutput ¶ added in v0.0.8
func (i AlarmruleResourceDimensionArgs) ToAlarmruleResourceDimensionOutput() AlarmruleResourceDimensionOutput
func (AlarmruleResourceDimensionArgs) ToAlarmruleResourceDimensionOutputWithContext ¶ added in v0.0.8
func (i AlarmruleResourceDimensionArgs) ToAlarmruleResourceDimensionOutputWithContext(ctx context.Context) AlarmruleResourceDimensionOutput
type AlarmruleResourceDimensionArray ¶ added in v0.0.8
type AlarmruleResourceDimensionArray []AlarmruleResourceDimensionInput
func (AlarmruleResourceDimensionArray) ElementType ¶ added in v0.0.8
func (AlarmruleResourceDimensionArray) ElementType() reflect.Type
func (AlarmruleResourceDimensionArray) ToAlarmruleResourceDimensionArrayOutput ¶ added in v0.0.8
func (i AlarmruleResourceDimensionArray) ToAlarmruleResourceDimensionArrayOutput() AlarmruleResourceDimensionArrayOutput
func (AlarmruleResourceDimensionArray) ToAlarmruleResourceDimensionArrayOutputWithContext ¶ added in v0.0.8
func (i AlarmruleResourceDimensionArray) ToAlarmruleResourceDimensionArrayOutputWithContext(ctx context.Context) AlarmruleResourceDimensionArrayOutput
type AlarmruleResourceDimensionArrayInput ¶ added in v0.0.8
type AlarmruleResourceDimensionArrayInput interface { pulumi.Input ToAlarmruleResourceDimensionArrayOutput() AlarmruleResourceDimensionArrayOutput ToAlarmruleResourceDimensionArrayOutputWithContext(context.Context) AlarmruleResourceDimensionArrayOutput }
AlarmruleResourceDimensionArrayInput is an input type that accepts AlarmruleResourceDimensionArray and AlarmruleResourceDimensionArrayOutput values. You can construct a concrete instance of `AlarmruleResourceDimensionArrayInput` via:
AlarmruleResourceDimensionArray{ AlarmruleResourceDimensionArgs{...} }
type AlarmruleResourceDimensionArrayOutput ¶ added in v0.0.8
type AlarmruleResourceDimensionArrayOutput struct{ *pulumi.OutputState }
func (AlarmruleResourceDimensionArrayOutput) ElementType ¶ added in v0.0.8
func (AlarmruleResourceDimensionArrayOutput) ElementType() reflect.Type
func (AlarmruleResourceDimensionArrayOutput) Index ¶ added in v0.0.8
func (o AlarmruleResourceDimensionArrayOutput) Index(i pulumi.IntInput) AlarmruleResourceDimensionOutput
func (AlarmruleResourceDimensionArrayOutput) ToAlarmruleResourceDimensionArrayOutput ¶ added in v0.0.8
func (o AlarmruleResourceDimensionArrayOutput) ToAlarmruleResourceDimensionArrayOutput() AlarmruleResourceDimensionArrayOutput
func (AlarmruleResourceDimensionArrayOutput) ToAlarmruleResourceDimensionArrayOutputWithContext ¶ added in v0.0.8
func (o AlarmruleResourceDimensionArrayOutput) ToAlarmruleResourceDimensionArrayOutputWithContext(ctx context.Context) AlarmruleResourceDimensionArrayOutput
type AlarmruleResourceDimensionInput ¶ added in v0.0.8
type AlarmruleResourceDimensionInput interface { pulumi.Input ToAlarmruleResourceDimensionOutput() AlarmruleResourceDimensionOutput ToAlarmruleResourceDimensionOutputWithContext(context.Context) AlarmruleResourceDimensionOutput }
AlarmruleResourceDimensionInput is an input type that accepts AlarmruleResourceDimensionArgs and AlarmruleResourceDimensionOutput values. You can construct a concrete instance of `AlarmruleResourceDimensionInput` via:
AlarmruleResourceDimensionArgs{...}
type AlarmruleResourceDimensionOutput ¶ added in v0.0.8
type AlarmruleResourceDimensionOutput struct{ *pulumi.OutputState }
func (AlarmruleResourceDimensionOutput) ElementType ¶ added in v0.0.8
func (AlarmruleResourceDimensionOutput) ElementType() reflect.Type
func (AlarmruleResourceDimensionOutput) Name ¶ added in v0.0.8
func (o AlarmruleResourceDimensionOutput) Name() pulumi.StringOutput
Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-).
func (AlarmruleResourceDimensionOutput) ToAlarmruleResourceDimensionOutput ¶ added in v0.0.8
func (o AlarmruleResourceDimensionOutput) ToAlarmruleResourceDimensionOutput() AlarmruleResourceDimensionOutput
func (AlarmruleResourceDimensionOutput) ToAlarmruleResourceDimensionOutputWithContext ¶ added in v0.0.8
func (o AlarmruleResourceDimensionOutput) ToAlarmruleResourceDimensionOutputWithContext(ctx context.Context) AlarmruleResourceDimensionOutput
func (AlarmruleResourceDimensionOutput) Value ¶ added in v0.0.8
func (o AlarmruleResourceDimensionOutput) Value() pulumi.StringPtrOutput
Specifies the alarm threshold. The value ranges from 0 to Number of 1.7976931348623157e+108.
type AlarmruleResourceInput ¶ added in v0.0.8
type AlarmruleResourceInput interface { pulumi.Input ToAlarmruleResourceOutput() AlarmruleResourceOutput ToAlarmruleResourceOutputWithContext(context.Context) AlarmruleResourceOutput }
AlarmruleResourceInput is an input type that accepts AlarmruleResourceArgs and AlarmruleResourceOutput values. You can construct a concrete instance of `AlarmruleResourceInput` via:
AlarmruleResourceArgs{...}
type AlarmruleResourceOutput ¶ added in v0.0.8
type AlarmruleResourceOutput struct{ *pulumi.OutputState }
func (AlarmruleResourceOutput) Dimensions ¶ added in v0.0.8
func (o AlarmruleResourceOutput) Dimensions() AlarmruleResourceDimensionArrayOutput
Specifies the list of metric dimensions. The structure is described below.
func (AlarmruleResourceOutput) ElementType ¶ added in v0.0.8
func (AlarmruleResourceOutput) ElementType() reflect.Type
func (AlarmruleResourceOutput) ToAlarmruleResourceOutput ¶ added in v0.0.8
func (o AlarmruleResourceOutput) ToAlarmruleResourceOutput() AlarmruleResourceOutput
func (AlarmruleResourceOutput) ToAlarmruleResourceOutputWithContext ¶ added in v0.0.8
func (o AlarmruleResourceOutput) ToAlarmruleResourceOutputWithContext(ctx context.Context) AlarmruleResourceOutput
type AlarmruleState ¶
type AlarmruleState struct { // Specifies whether to enable the action to be triggered by an alarm. The // default value is true. AlarmActionEnabled pulumi.BoolPtrInput // Specifies the action triggered by an alarm. The structure is described // below. AlarmActions AlarmruleAlarmActionArrayInput // The value can be a string of 0 to 256 characters. AlarmDescription pulumi.StringPtrInput // Specifies whether to enable the alarm. The default value is true. AlarmEnabled pulumi.BoolPtrInput // Specifies the alarm severity of the condition. The value can be 1, 2, 3 or 4, // which indicates *critical*, *major*, *minor*, and *informational*, respectively. // The default value is 2. AlarmLevel pulumi.IntPtrInput // Specifies the name of an alarm rule. The value can be a string of 1 to 128 // characters that can consist of letters, digits, underscores (_), hyphens (-) and chinese characters. AlarmName pulumi.StringPtrInput // Indicates the alarm status. The value can be: // + ok: The alarm status is normal; // + alarm: An alarm is generated; // + insufficient_data: The required data is insufficient. AlarmState pulumi.StringPtrInput // Specifies the alarm type. The value can be **EVENT.SYS**, **EVENT.CUSTOM**, // **MULTI_INSTANCE** and **ALL_INSTANCE**. Defaults to **MULTI_INSTANCE**. AlarmType pulumi.StringPtrInput // Specifies the alarm triggering condition. The structure is described below. Conditions AlarmruleConditionArrayInput // Specifies the enterprise project id of the alarm rule. Changing // this creates a new resource. EnterpriseProjectId pulumi.StringPtrInput // Deprecated: insufficientdata_actions is deprecated InsufficientdataActions AlarmruleInsufficientdataActionArrayInput // Specifies the alarm metrics. The structure is described below. Changing this // creates a new resource. Metric AlarmruleMetricPtrInput // Specifies the alarm notification start time, for // example: **05:30**. Changing this creates a new resource. NotificationBeginTime pulumi.StringPtrInput // Specifies the alarm notification stop time, for // example: **22:10**. Changing this creates a new resource. NotificationEndTime pulumi.StringPtrInput // Specifies the action triggered by the clearing of an alarm. The structure is // described below. OkActions AlarmruleOkActionArrayInput // The region in which to create the alarm rule resource. If omitted, the // provider-level region will be used. Changing this creates a new resource. Region pulumi.StringPtrInput // schema: Internal ResourceGroupId pulumi.StringPtrInput // Specifies the list of the resources to add into the alarm rule. // The structure is described below. Resources AlarmruleResourceArrayInput // Indicates the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms. UpdateTime pulumi.IntPtrInput }
func (AlarmruleState) ElementType ¶
func (AlarmruleState) ElementType() reflect.Type
type Microservice ¶
type Microservice struct { pulumi.CustomResourceState // Specifies the account password. // Required if the `authType` of engine is **RBAC**. Changing this will create a new microservice. // The password format must meet the following conditions: // + Must be `8` to `32` characters long. // + A password must contain at least one digit, one uppercase letter, one lowercase letter, and one special character // (-~!@#%^*_=+?$&()|<>{}[]). // + Cannot be the account name or account name spelled backwards. // + The password can only start with a letter. AdminPass pulumi.StringPtrOutput `pulumi:"adminPass"` // Specifies the account name. The initial account name is **root**. // Required if the `authType` of engine is **RBAC**. Changing this will create a new microservice. AdminUser pulumi.StringPtrOutput `pulumi:"adminUser"` // Specifies the name of the dedicated microservice application. // Changing this will create a new microservice. AppName pulumi.StringOutput `pulumi:"appName"` // Specifies the connection address of service registry center for the // specified dedicated CSE engine. Changing this will create a new microservice. ConnectAddress pulumi.StringOutput `pulumi:"connectAddress"` // Specifies the description of the dedicated microservice. // The description can contain a maximum of `256` characters. // Changing this will create a new microservice. Description pulumi.StringPtrOutput `pulumi:"description"` // Specifies the environment (stage) type. // The valid values are **development**, **testing**, **acceptance** and **production**. // If omitted, the microservice will be deployed in an empty environment. // Changing this will create a new microservice. Environment pulumi.StringPtrOutput `pulumi:"environment"` // Specifies the microservice level. // The valid values are **FRONT**, **MIDDLE**, and **BACK**. Changing this will create a new microservice. Level pulumi.StringPtrOutput `pulumi:"level"` // Specifies the name of the dedicated microservice. // The name can contain `1` to `128` characters, only letters, digits, underscore (_), hyphens (-) and dots (.) are // allowed. The name must start and end with a letter or digit. Changing this will create a new microservice. Name pulumi.StringOutput `pulumi:"name"` // The microservice status. The values supports **UP** and **DOWN**. Status pulumi.StringOutput `pulumi:"status"` // Specifies the version of the dedicated microservice. // Changing this will create a new microservice. Version pulumi.StringOutput `pulumi:"version"` }
Manages a dedicated microservice resource within HuaweiCloud.
> When deleting a microservice, all instances under it will also be deleted together.
## Example Usage ### Create a microservice in an engine with RBAC authentication disabled
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Cse" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") engineConnAddr := cfg.RequireObject("engineConnAddr") serviceName := cfg.RequireObject("serviceName") appName := cfg.RequireObject("appName") _, err := Cse.NewMicroservice(ctx, "test", &Cse.MicroserviceArgs{ ConnectAddress: pulumi.Any(engineConnAddr), Version: pulumi.String("1.0.0"), Environment: pulumi.String("development"), AppName: pulumi.Any(appName), }) if err != nil { return err } return nil }) }
``` ### Create a microservice in an engine with RBAC authentication enabled
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Cse" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") engineConnAddr := cfg.RequireObject("engineConnAddr") serviceName := cfg.RequireObject("serviceName") appName := cfg.RequireObject("appName") _, err := Cse.NewMicroservice(ctx, "test", &Cse.MicroserviceArgs{ ConnectAddress: pulumi.Any(engineConnAddr), Version: pulumi.String("1.0.0"), Environment: pulumi.String("development"), AppName: pulumi.Any(appName), AdminUser: pulumi.String("root"), AdminPass: pulumi.String("Huawei!123"), }) if err != nil { return err } return nil }) }
```
## Import
Microservices can be imported using related `connect_address` and their `id`, separated by a slash (/), e.g.
```sh
$ pulumi import huaweicloud:Cse/microservice:Microservice test https://124.70.26.32:30100/f14960ba495e03f59f85aacaaafbdef3fbff3f0d
```
If you enabled the **RBAC** authorization, you also need to provide the account name and password, e.g.
```sh
$ pulumi import huaweicloud:Cse/microservice:Microservice test 'https://124.70.26.32:30100/f14960ba495e03f59f85aacaaafbdef3fbff3f0d/root/Test!123'
```
The single quotes can help you solve the problem of special characters reporting errors on bash.
func GetMicroservice ¶
func GetMicroservice(ctx *pulumi.Context, name string, id pulumi.IDInput, state *MicroserviceState, opts ...pulumi.ResourceOption) (*Microservice, error)
GetMicroservice gets an existing Microservice resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewMicroservice ¶
func NewMicroservice(ctx *pulumi.Context, name string, args *MicroserviceArgs, opts ...pulumi.ResourceOption) (*Microservice, error)
NewMicroservice registers a new resource with the given unique name, arguments, and options.
func (*Microservice) ElementType ¶
func (*Microservice) ElementType() reflect.Type
func (*Microservice) ToMicroserviceOutput ¶
func (i *Microservice) ToMicroserviceOutput() MicroserviceOutput
func (*Microservice) ToMicroserviceOutputWithContext ¶
func (i *Microservice) ToMicroserviceOutputWithContext(ctx context.Context) MicroserviceOutput
type MicroserviceArgs ¶
type MicroserviceArgs struct { // Specifies the account password. // Required if the `authType` of engine is **RBAC**. Changing this will create a new microservice. // The password format must meet the following conditions: // + Must be `8` to `32` characters long. // + A password must contain at least one digit, one uppercase letter, one lowercase letter, and one special character // (-~!@#%^*_=+?$&()|<>{}[]). // + Cannot be the account name or account name spelled backwards. // + The password can only start with a letter. AdminPass pulumi.StringPtrInput // Specifies the account name. The initial account name is **root**. // Required if the `authType` of engine is **RBAC**. Changing this will create a new microservice. AdminUser pulumi.StringPtrInput // Specifies the name of the dedicated microservice application. // Changing this will create a new microservice. AppName pulumi.StringInput // Specifies the connection address of service registry center for the // specified dedicated CSE engine. Changing this will create a new microservice. ConnectAddress pulumi.StringInput // Specifies the description of the dedicated microservice. // The description can contain a maximum of `256` characters. // Changing this will create a new microservice. Description pulumi.StringPtrInput // Specifies the environment (stage) type. // The valid values are **development**, **testing**, **acceptance** and **production**. // If omitted, the microservice will be deployed in an empty environment. // Changing this will create a new microservice. Environment pulumi.StringPtrInput // Specifies the microservice level. // The valid values are **FRONT**, **MIDDLE**, and **BACK**. Changing this will create a new microservice. Level pulumi.StringPtrInput // Specifies the name of the dedicated microservice. // The name can contain `1` to `128` characters, only letters, digits, underscore (_), hyphens (-) and dots (.) are // allowed. The name must start and end with a letter or digit. Changing this will create a new microservice. Name pulumi.StringPtrInput // Specifies the version of the dedicated microservice. // Changing this will create a new microservice. Version pulumi.StringInput }
The set of arguments for constructing a Microservice resource.
func (MicroserviceArgs) ElementType ¶
func (MicroserviceArgs) ElementType() reflect.Type
type MicroserviceArray ¶
type MicroserviceArray []MicroserviceInput
func (MicroserviceArray) ElementType ¶
func (MicroserviceArray) ElementType() reflect.Type
func (MicroserviceArray) ToMicroserviceArrayOutput ¶
func (i MicroserviceArray) ToMicroserviceArrayOutput() MicroserviceArrayOutput
func (MicroserviceArray) ToMicroserviceArrayOutputWithContext ¶
func (i MicroserviceArray) ToMicroserviceArrayOutputWithContext(ctx context.Context) MicroserviceArrayOutput
type MicroserviceArrayInput ¶
type MicroserviceArrayInput interface { pulumi.Input ToMicroserviceArrayOutput() MicroserviceArrayOutput ToMicroserviceArrayOutputWithContext(context.Context) MicroserviceArrayOutput }
MicroserviceArrayInput is an input type that accepts MicroserviceArray and MicroserviceArrayOutput values. You can construct a concrete instance of `MicroserviceArrayInput` via:
MicroserviceArray{ MicroserviceArgs{...} }
type MicroserviceArrayOutput ¶
type MicroserviceArrayOutput struct{ *pulumi.OutputState }
func (MicroserviceArrayOutput) ElementType ¶
func (MicroserviceArrayOutput) ElementType() reflect.Type
func (MicroserviceArrayOutput) Index ¶
func (o MicroserviceArrayOutput) Index(i pulumi.IntInput) MicroserviceOutput
func (MicroserviceArrayOutput) ToMicroserviceArrayOutput ¶
func (o MicroserviceArrayOutput) ToMicroserviceArrayOutput() MicroserviceArrayOutput
func (MicroserviceArrayOutput) ToMicroserviceArrayOutputWithContext ¶
func (o MicroserviceArrayOutput) ToMicroserviceArrayOutputWithContext(ctx context.Context) MicroserviceArrayOutput
type MicroserviceEngine ¶
type MicroserviceEngine struct { pulumi.CustomResourceState // Specifies the account password. The corresponding account name is **root**. // Required if `authType` is **RBAC**. Changing this will create a new engine. // The password format must meet the following conditions: // + Must be `8` to `32` characters long. // + A password must contain at least one digit, one uppercase letter, one lowercase letter, and one special character // (-~!@#%^*_=+?$&()|<>{}[]). // + Cannot be the account name or account name spelled backwards. // + The password can only start with a letter. AdminPass pulumi.StringPtrOutput `pulumi:"adminPass"` // Specifies the authentication method for the dedicated microservice engine. // Changing this will create a new engine. // + **RBAC**: Enable security authentication. // Security authentication applies to the scenario where multiple users use the same engine. // After security authentication is enabled, all users who use the engine can log in using the account and password. // You can assign the account and role in the System Management. // + **NONE**: Disable security authentication. // After security authentication is disabled, all users who use the engine can use the engine without using the account // and password, and have the same operation permissions on all services. AuthType pulumi.StringOutput `pulumi:"authType"` // Specifies the list of availability zone. // Changing this will create a new engine. AvailabilityZones pulumi.StringArrayOutput `pulumi:"availabilityZones"` // The address of config center. // The object structure is documented below. ConfigCenterAddresses MicroserviceEngineConfigCenterAddressArrayOutput `pulumi:"configCenterAddresses"` // Specifies the description of the dedicated microservice engine. // The description can contain a maximum of `255` characters. // Changing this will create a new engine. Description pulumi.StringPtrOutput `pulumi:"description"` // Specifies the EIP ID to which the dedicated microservice engine assocated. // Changing this will create a new engine. EipId pulumi.StringPtrOutput `pulumi:"eipId"` // Specifies the enterprise project ID to which the dedicated // microservice engine belongs. // Changing this will create a new engine. EnterpriseProjectId pulumi.StringPtrOutput `pulumi:"enterpriseProjectId"` // Specifies the additional parameters for the dedicated microservice engine. // Changing this will create a new engine. ExtendParams pulumi.StringMapOutput `pulumi:"extendParams"` // Specifies the flavor of the dedicated microservice engine. // Changing this will create a new engine. Flavor pulumi.StringOutput `pulumi:"flavor"` // The maximum number of the microservice instance resources. InstanceLimit pulumi.IntOutput `pulumi:"instanceLimit"` // Specifies the name of the dedicated microservice engine. // The name can contain `3` to `24` characters, only letters, digits and hyphens (-) are allowed. // The name must start with a letter and cannot end with a hyphen (-). // Changing this will create a new engine. Name pulumi.StringOutput `pulumi:"name"` // Specifies the network ID of the subnet to which the dedicated microservice // engine belongs. Changing this will create a new engine. NetworkId pulumi.StringOutput `pulumi:"networkId"` // Specifies the region in which to create the dedicated microservice engine. // If omitted, the provider-level region will be used. Changing this will create a new engine. Region pulumi.StringOutput `pulumi:"region"` // The maximum number of the microservice resources. ServiceLimit pulumi.IntOutput `pulumi:"serviceLimit"` // The connection address of service center. // The object structure is documented below. ServiceRegistryAddresses MicroserviceEngineServiceRegistryAddressArrayOutput `pulumi:"serviceRegistryAddresses"` // Specifies the version of the dedicated microservice engine. The value can be: // **CSE2**. Defaults to: **CSE2**. Changing this will create a new engine. Version pulumi.StringPtrOutput `pulumi:"version"` }
Manages a dedicated microservice engine (2.0+) resource within HuaweiCloud.
## Example Usage
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Cse" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") engineName := cfg.RequireObject("engineName") networkId := cfg.RequireObject("networkId") az1 := cfg.RequireObject("az1") _, err := Cse.NewMicroserviceEngine(ctx, "test", &Cse.MicroserviceEngineArgs{ Flavor: pulumi.String("cse.s1.small2"), NetworkId: pulumi.Any(networkId), AuthType: pulumi.String("NONE"), AvailabilityZones: pulumi.StringArray{ pulumi.Any(az1), }, }) if err != nil { return err } return nil }) }
```
## Import
Engines can be imported using their `id`, e.g. bash
```sh
$ pulumi import huaweicloud:Cse/microserviceEngine:MicroserviceEngine test eddc5d42-f9d5-4f8e-984b-d6f3e088561c
```
Note that the imported state may not be identical to your resource definition, due to some attributes missing from the API response, security or some other reason. The missing attributes are `admin_pass` and `extend_params`. It is generally recommended running `terraform plan` after importing an instance. You can then decide if changes should be applied to the instance, or the resource definition should be updated to align with the instance. Also you can ignore changes as below. resource "huaweicloud_cse_microservice_engine" "test" { ... lifecycle { ignore_changes = [ admin_pass, extend_params, ] } } For the engine created with the `enterprise_project_id`, its enterprise project ID needs to be specified additionally when importing, the format is `<id>/<enterprise_project_id>`, e.g. bash
```sh
$ pulumi import huaweicloud:Cse/microserviceEngine:MicroserviceEngine test eddc5d42-f9d5-4f8e-984b-d6f3e088561c/ef101e1a-990c-42cd-bb99-a4474e41e461
```
func GetMicroserviceEngine ¶
func GetMicroserviceEngine(ctx *pulumi.Context, name string, id pulumi.IDInput, state *MicroserviceEngineState, opts ...pulumi.ResourceOption) (*MicroserviceEngine, error)
GetMicroserviceEngine gets an existing MicroserviceEngine resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewMicroserviceEngine ¶
func NewMicroserviceEngine(ctx *pulumi.Context, name string, args *MicroserviceEngineArgs, opts ...pulumi.ResourceOption) (*MicroserviceEngine, error)
NewMicroserviceEngine registers a new resource with the given unique name, arguments, and options.
func (*MicroserviceEngine) ElementType ¶
func (*MicroserviceEngine) ElementType() reflect.Type
func (*MicroserviceEngine) ToMicroserviceEngineOutput ¶
func (i *MicroserviceEngine) ToMicroserviceEngineOutput() MicroserviceEngineOutput
func (*MicroserviceEngine) ToMicroserviceEngineOutputWithContext ¶
func (i *MicroserviceEngine) ToMicroserviceEngineOutputWithContext(ctx context.Context) MicroserviceEngineOutput
type MicroserviceEngineArgs ¶
type MicroserviceEngineArgs struct { // Specifies the account password. The corresponding account name is **root**. // Required if `authType` is **RBAC**. Changing this will create a new engine. // The password format must meet the following conditions: // + Must be `8` to `32` characters long. // + A password must contain at least one digit, one uppercase letter, one lowercase letter, and one special character // (-~!@#%^*_=+?$&()|<>{}[]). // + Cannot be the account name or account name spelled backwards. // + The password can only start with a letter. AdminPass pulumi.StringPtrInput // Specifies the authentication method for the dedicated microservice engine. // Changing this will create a new engine. // + **RBAC**: Enable security authentication. // Security authentication applies to the scenario where multiple users use the same engine. // After security authentication is enabled, all users who use the engine can log in using the account and password. // You can assign the account and role in the System Management. // + **NONE**: Disable security authentication. // After security authentication is disabled, all users who use the engine can use the engine without using the account // and password, and have the same operation permissions on all services. AuthType pulumi.StringInput // Specifies the list of availability zone. // Changing this will create a new engine. AvailabilityZones pulumi.StringArrayInput // Specifies the description of the dedicated microservice engine. // The description can contain a maximum of `255` characters. // Changing this will create a new engine. Description pulumi.StringPtrInput // Specifies the EIP ID to which the dedicated microservice engine assocated. // Changing this will create a new engine. EipId pulumi.StringPtrInput // Specifies the enterprise project ID to which the dedicated // microservice engine belongs. // Changing this will create a new engine. EnterpriseProjectId pulumi.StringPtrInput // Specifies the additional parameters for the dedicated microservice engine. // Changing this will create a new engine. ExtendParams pulumi.StringMapInput // Specifies the flavor of the dedicated microservice engine. // Changing this will create a new engine. Flavor pulumi.StringInput // Specifies the name of the dedicated microservice engine. // The name can contain `3` to `24` characters, only letters, digits and hyphens (-) are allowed. // The name must start with a letter and cannot end with a hyphen (-). // Changing this will create a new engine. Name pulumi.StringPtrInput // Specifies the network ID of the subnet to which the dedicated microservice // engine belongs. Changing this will create a new engine. NetworkId pulumi.StringInput // Specifies the region in which to create the dedicated microservice engine. // If omitted, the provider-level region will be used. Changing this will create a new engine. Region pulumi.StringPtrInput // Specifies the version of the dedicated microservice engine. The value can be: // **CSE2**. Defaults to: **CSE2**. Changing this will create a new engine. Version pulumi.StringPtrInput }
The set of arguments for constructing a MicroserviceEngine resource.
func (MicroserviceEngineArgs) ElementType ¶
func (MicroserviceEngineArgs) ElementType() reflect.Type
type MicroserviceEngineArray ¶
type MicroserviceEngineArray []MicroserviceEngineInput
func (MicroserviceEngineArray) ElementType ¶
func (MicroserviceEngineArray) ElementType() reflect.Type
func (MicroserviceEngineArray) ToMicroserviceEngineArrayOutput ¶
func (i MicroserviceEngineArray) ToMicroserviceEngineArrayOutput() MicroserviceEngineArrayOutput
func (MicroserviceEngineArray) ToMicroserviceEngineArrayOutputWithContext ¶
func (i MicroserviceEngineArray) ToMicroserviceEngineArrayOutputWithContext(ctx context.Context) MicroserviceEngineArrayOutput
type MicroserviceEngineArrayInput ¶
type MicroserviceEngineArrayInput interface { pulumi.Input ToMicroserviceEngineArrayOutput() MicroserviceEngineArrayOutput ToMicroserviceEngineArrayOutputWithContext(context.Context) MicroserviceEngineArrayOutput }
MicroserviceEngineArrayInput is an input type that accepts MicroserviceEngineArray and MicroserviceEngineArrayOutput values. You can construct a concrete instance of `MicroserviceEngineArrayInput` via:
MicroserviceEngineArray{ MicroserviceEngineArgs{...} }
type MicroserviceEngineArrayOutput ¶
type MicroserviceEngineArrayOutput struct{ *pulumi.OutputState }
func (MicroserviceEngineArrayOutput) ElementType ¶
func (MicroserviceEngineArrayOutput) ElementType() reflect.Type
func (MicroserviceEngineArrayOutput) Index ¶
func (o MicroserviceEngineArrayOutput) Index(i pulumi.IntInput) MicroserviceEngineOutput
func (MicroserviceEngineArrayOutput) ToMicroserviceEngineArrayOutput ¶
func (o MicroserviceEngineArrayOutput) ToMicroserviceEngineArrayOutput() MicroserviceEngineArrayOutput
func (MicroserviceEngineArrayOutput) ToMicroserviceEngineArrayOutputWithContext ¶
func (o MicroserviceEngineArrayOutput) ToMicroserviceEngineArrayOutputWithContext(ctx context.Context) MicroserviceEngineArrayOutput
type MicroserviceEngineConfigCenterAddressArgs ¶
type MicroserviceEngineConfigCenterAddressArgs struct { // The internal access address. Private pulumi.StringPtrInput `pulumi:"private"` // The public access address. This address is only set when EIP is bound. Public pulumi.StringPtrInput `pulumi:"public"` }
func (MicroserviceEngineConfigCenterAddressArgs) ElementType ¶
func (MicroserviceEngineConfigCenterAddressArgs) ElementType() reflect.Type
func (MicroserviceEngineConfigCenterAddressArgs) ToMicroserviceEngineConfigCenterAddressOutput ¶
func (i MicroserviceEngineConfigCenterAddressArgs) ToMicroserviceEngineConfigCenterAddressOutput() MicroserviceEngineConfigCenterAddressOutput
func (MicroserviceEngineConfigCenterAddressArgs) ToMicroserviceEngineConfigCenterAddressOutputWithContext ¶
func (i MicroserviceEngineConfigCenterAddressArgs) ToMicroserviceEngineConfigCenterAddressOutputWithContext(ctx context.Context) MicroserviceEngineConfigCenterAddressOutput
type MicroserviceEngineConfigCenterAddressArray ¶
type MicroserviceEngineConfigCenterAddressArray []MicroserviceEngineConfigCenterAddressInput
func (MicroserviceEngineConfigCenterAddressArray) ElementType ¶
func (MicroserviceEngineConfigCenterAddressArray) ElementType() reflect.Type
func (MicroserviceEngineConfigCenterAddressArray) ToMicroserviceEngineConfigCenterAddressArrayOutput ¶
func (i MicroserviceEngineConfigCenterAddressArray) ToMicroserviceEngineConfigCenterAddressArrayOutput() MicroserviceEngineConfigCenterAddressArrayOutput
func (MicroserviceEngineConfigCenterAddressArray) ToMicroserviceEngineConfigCenterAddressArrayOutputWithContext ¶
func (i MicroserviceEngineConfigCenterAddressArray) ToMicroserviceEngineConfigCenterAddressArrayOutputWithContext(ctx context.Context) MicroserviceEngineConfigCenterAddressArrayOutput
type MicroserviceEngineConfigCenterAddressArrayInput ¶
type MicroserviceEngineConfigCenterAddressArrayInput interface { pulumi.Input ToMicroserviceEngineConfigCenterAddressArrayOutput() MicroserviceEngineConfigCenterAddressArrayOutput ToMicroserviceEngineConfigCenterAddressArrayOutputWithContext(context.Context) MicroserviceEngineConfigCenterAddressArrayOutput }
MicroserviceEngineConfigCenterAddressArrayInput is an input type that accepts MicroserviceEngineConfigCenterAddressArray and MicroserviceEngineConfigCenterAddressArrayOutput values. You can construct a concrete instance of `MicroserviceEngineConfigCenterAddressArrayInput` via:
MicroserviceEngineConfigCenterAddressArray{ MicroserviceEngineConfigCenterAddressArgs{...} }
type MicroserviceEngineConfigCenterAddressArrayOutput ¶
type MicroserviceEngineConfigCenterAddressArrayOutput struct{ *pulumi.OutputState }
func (MicroserviceEngineConfigCenterAddressArrayOutput) ElementType ¶
func (MicroserviceEngineConfigCenterAddressArrayOutput) ElementType() reflect.Type
func (MicroserviceEngineConfigCenterAddressArrayOutput) ToMicroserviceEngineConfigCenterAddressArrayOutput ¶
func (o MicroserviceEngineConfigCenterAddressArrayOutput) ToMicroserviceEngineConfigCenterAddressArrayOutput() MicroserviceEngineConfigCenterAddressArrayOutput
func (MicroserviceEngineConfigCenterAddressArrayOutput) ToMicroserviceEngineConfigCenterAddressArrayOutputWithContext ¶
func (o MicroserviceEngineConfigCenterAddressArrayOutput) ToMicroserviceEngineConfigCenterAddressArrayOutputWithContext(ctx context.Context) MicroserviceEngineConfigCenterAddressArrayOutput
type MicroserviceEngineConfigCenterAddressInput ¶
type MicroserviceEngineConfigCenterAddressInput interface { pulumi.Input ToMicroserviceEngineConfigCenterAddressOutput() MicroserviceEngineConfigCenterAddressOutput ToMicroserviceEngineConfigCenterAddressOutputWithContext(context.Context) MicroserviceEngineConfigCenterAddressOutput }
MicroserviceEngineConfigCenterAddressInput is an input type that accepts MicroserviceEngineConfigCenterAddressArgs and MicroserviceEngineConfigCenterAddressOutput values. You can construct a concrete instance of `MicroserviceEngineConfigCenterAddressInput` via:
MicroserviceEngineConfigCenterAddressArgs{...}
type MicroserviceEngineConfigCenterAddressOutput ¶
type MicroserviceEngineConfigCenterAddressOutput struct{ *pulumi.OutputState }
func (MicroserviceEngineConfigCenterAddressOutput) ElementType ¶
func (MicroserviceEngineConfigCenterAddressOutput) ElementType() reflect.Type
func (MicroserviceEngineConfigCenterAddressOutput) Private ¶
func (o MicroserviceEngineConfigCenterAddressOutput) Private() pulumi.StringPtrOutput
The internal access address.
func (MicroserviceEngineConfigCenterAddressOutput) Public ¶
func (o MicroserviceEngineConfigCenterAddressOutput) Public() pulumi.StringPtrOutput
The public access address. This address is only set when EIP is bound.
func (MicroserviceEngineConfigCenterAddressOutput) ToMicroserviceEngineConfigCenterAddressOutput ¶
func (o MicroserviceEngineConfigCenterAddressOutput) ToMicroserviceEngineConfigCenterAddressOutput() MicroserviceEngineConfigCenterAddressOutput
func (MicroserviceEngineConfigCenterAddressOutput) ToMicroserviceEngineConfigCenterAddressOutputWithContext ¶
func (o MicroserviceEngineConfigCenterAddressOutput) ToMicroserviceEngineConfigCenterAddressOutputWithContext(ctx context.Context) MicroserviceEngineConfigCenterAddressOutput
type MicroserviceEngineInput ¶
type MicroserviceEngineInput interface { pulumi.Input ToMicroserviceEngineOutput() MicroserviceEngineOutput ToMicroserviceEngineOutputWithContext(ctx context.Context) MicroserviceEngineOutput }
type MicroserviceEngineMap ¶
type MicroserviceEngineMap map[string]MicroserviceEngineInput
func (MicroserviceEngineMap) ElementType ¶
func (MicroserviceEngineMap) ElementType() reflect.Type
func (MicroserviceEngineMap) ToMicroserviceEngineMapOutput ¶
func (i MicroserviceEngineMap) ToMicroserviceEngineMapOutput() MicroserviceEngineMapOutput
func (MicroserviceEngineMap) ToMicroserviceEngineMapOutputWithContext ¶
func (i MicroserviceEngineMap) ToMicroserviceEngineMapOutputWithContext(ctx context.Context) MicroserviceEngineMapOutput
type MicroserviceEngineMapInput ¶
type MicroserviceEngineMapInput interface { pulumi.Input ToMicroserviceEngineMapOutput() MicroserviceEngineMapOutput ToMicroserviceEngineMapOutputWithContext(context.Context) MicroserviceEngineMapOutput }
MicroserviceEngineMapInput is an input type that accepts MicroserviceEngineMap and MicroserviceEngineMapOutput values. You can construct a concrete instance of `MicroserviceEngineMapInput` via:
MicroserviceEngineMap{ "key": MicroserviceEngineArgs{...} }
type MicroserviceEngineMapOutput ¶
type MicroserviceEngineMapOutput struct{ *pulumi.OutputState }
func (MicroserviceEngineMapOutput) ElementType ¶
func (MicroserviceEngineMapOutput) ElementType() reflect.Type
func (MicroserviceEngineMapOutput) MapIndex ¶
func (o MicroserviceEngineMapOutput) MapIndex(k pulumi.StringInput) MicroserviceEngineOutput
func (MicroserviceEngineMapOutput) ToMicroserviceEngineMapOutput ¶
func (o MicroserviceEngineMapOutput) ToMicroserviceEngineMapOutput() MicroserviceEngineMapOutput
func (MicroserviceEngineMapOutput) ToMicroserviceEngineMapOutputWithContext ¶
func (o MicroserviceEngineMapOutput) ToMicroserviceEngineMapOutputWithContext(ctx context.Context) MicroserviceEngineMapOutput
type MicroserviceEngineOutput ¶
type MicroserviceEngineOutput struct{ *pulumi.OutputState }
func (MicroserviceEngineOutput) AdminPass ¶
func (o MicroserviceEngineOutput) AdminPass() pulumi.StringPtrOutput
Specifies the account password. The corresponding account name is **root**. Required if `authType` is **RBAC**. Changing this will create a new engine. The password format must meet the following conditions:
- Must be `8` to `32` characters long.
- A password must contain at least one digit, one uppercase letter, one lowercase letter, and one special character (-~!@#%^*_=+?$&()|<>{}[]).
- Cannot be the account name or account name spelled backwards.
- The password can only start with a letter.
func (MicroserviceEngineOutput) AuthType ¶
func (o MicroserviceEngineOutput) AuthType() pulumi.StringOutput
Specifies the authentication method for the dedicated microservice engine. Changing this will create a new engine.
- **RBAC**: Enable security authentication. Security authentication applies to the scenario where multiple users use the same engine. After security authentication is enabled, all users who use the engine can log in using the account and password. You can assign the account and role in the System Management.
- **NONE**: Disable security authentication. After security authentication is disabled, all users who use the engine can use the engine without using the account and password, and have the same operation permissions on all services.
func (MicroserviceEngineOutput) AvailabilityZones ¶
func (o MicroserviceEngineOutput) AvailabilityZones() pulumi.StringArrayOutput
Specifies the list of availability zone. Changing this will create a new engine.
func (MicroserviceEngineOutput) ConfigCenterAddresses ¶
func (o MicroserviceEngineOutput) ConfigCenterAddresses() MicroserviceEngineConfigCenterAddressArrayOutput
The address of config center. The object structure is documented below.
func (MicroserviceEngineOutput) Description ¶
func (o MicroserviceEngineOutput) Description() pulumi.StringPtrOutput
Specifies the description of the dedicated microservice engine. The description can contain a maximum of `255` characters. Changing this will create a new engine.
func (MicroserviceEngineOutput) EipId ¶
func (o MicroserviceEngineOutput) EipId() pulumi.StringPtrOutput
Specifies the EIP ID to which the dedicated microservice engine assocated. Changing this will create a new engine.
func (MicroserviceEngineOutput) ElementType ¶
func (MicroserviceEngineOutput) ElementType() reflect.Type
func (MicroserviceEngineOutput) EnterpriseProjectId ¶
func (o MicroserviceEngineOutput) EnterpriseProjectId() pulumi.StringPtrOutput
Specifies the enterprise project ID to which the dedicated microservice engine belongs. Changing this will create a new engine.
func (MicroserviceEngineOutput) ExtendParams ¶
func (o MicroserviceEngineOutput) ExtendParams() pulumi.StringMapOutput
Specifies the additional parameters for the dedicated microservice engine. Changing this will create a new engine.
func (MicroserviceEngineOutput) Flavor ¶
func (o MicroserviceEngineOutput) Flavor() pulumi.StringOutput
Specifies the flavor of the dedicated microservice engine. Changing this will create a new engine.
func (MicroserviceEngineOutput) InstanceLimit ¶
func (o MicroserviceEngineOutput) InstanceLimit() pulumi.IntOutput
The maximum number of the microservice instance resources.
func (MicroserviceEngineOutput) Name ¶
func (o MicroserviceEngineOutput) Name() pulumi.StringOutput
Specifies the name of the dedicated microservice engine. The name can contain `3` to `24` characters, only letters, digits and hyphens (-) are allowed. The name must start with a letter and cannot end with a hyphen (-). Changing this will create a new engine.
func (MicroserviceEngineOutput) NetworkId ¶
func (o MicroserviceEngineOutput) NetworkId() pulumi.StringOutput
Specifies the network ID of the subnet to which the dedicated microservice engine belongs. Changing this will create a new engine.
func (MicroserviceEngineOutput) Region ¶
func (o MicroserviceEngineOutput) Region() pulumi.StringOutput
Specifies the region in which to create the dedicated microservice engine. If omitted, the provider-level region will be used. Changing this will create a new engine.
func (MicroserviceEngineOutput) ServiceLimit ¶
func (o MicroserviceEngineOutput) ServiceLimit() pulumi.IntOutput
The maximum number of the microservice resources.
func (MicroserviceEngineOutput) ServiceRegistryAddresses ¶
func (o MicroserviceEngineOutput) ServiceRegistryAddresses() MicroserviceEngineServiceRegistryAddressArrayOutput
The connection address of service center. The object structure is documented below.
func (MicroserviceEngineOutput) ToMicroserviceEngineOutput ¶
func (o MicroserviceEngineOutput) ToMicroserviceEngineOutput() MicroserviceEngineOutput
func (MicroserviceEngineOutput) ToMicroserviceEngineOutputWithContext ¶
func (o MicroserviceEngineOutput) ToMicroserviceEngineOutputWithContext(ctx context.Context) MicroserviceEngineOutput
func (MicroserviceEngineOutput) Version ¶
func (o MicroserviceEngineOutput) Version() pulumi.StringPtrOutput
Specifies the version of the dedicated microservice engine. The value can be: **CSE2**. Defaults to: **CSE2**. Changing this will create a new engine.
type MicroserviceEngineServiceRegistryAddressArgs ¶
type MicroserviceEngineServiceRegistryAddressArgs struct { // The internal access address. Private pulumi.StringPtrInput `pulumi:"private"` // The public access address. This address is only set when EIP is bound. Public pulumi.StringPtrInput `pulumi:"public"` }
func (MicroserviceEngineServiceRegistryAddressArgs) ElementType ¶
func (MicroserviceEngineServiceRegistryAddressArgs) ElementType() reflect.Type
func (MicroserviceEngineServiceRegistryAddressArgs) ToMicroserviceEngineServiceRegistryAddressOutput ¶
func (i MicroserviceEngineServiceRegistryAddressArgs) ToMicroserviceEngineServiceRegistryAddressOutput() MicroserviceEngineServiceRegistryAddressOutput
func (MicroserviceEngineServiceRegistryAddressArgs) ToMicroserviceEngineServiceRegistryAddressOutputWithContext ¶
func (i MicroserviceEngineServiceRegistryAddressArgs) ToMicroserviceEngineServiceRegistryAddressOutputWithContext(ctx context.Context) MicroserviceEngineServiceRegistryAddressOutput
type MicroserviceEngineServiceRegistryAddressArray ¶
type MicroserviceEngineServiceRegistryAddressArray []MicroserviceEngineServiceRegistryAddressInput
func (MicroserviceEngineServiceRegistryAddressArray) ElementType ¶
func (MicroserviceEngineServiceRegistryAddressArray) ElementType() reflect.Type
func (MicroserviceEngineServiceRegistryAddressArray) ToMicroserviceEngineServiceRegistryAddressArrayOutput ¶
func (i MicroserviceEngineServiceRegistryAddressArray) ToMicroserviceEngineServiceRegistryAddressArrayOutput() MicroserviceEngineServiceRegistryAddressArrayOutput
func (MicroserviceEngineServiceRegistryAddressArray) ToMicroserviceEngineServiceRegistryAddressArrayOutputWithContext ¶
func (i MicroserviceEngineServiceRegistryAddressArray) ToMicroserviceEngineServiceRegistryAddressArrayOutputWithContext(ctx context.Context) MicroserviceEngineServiceRegistryAddressArrayOutput
type MicroserviceEngineServiceRegistryAddressArrayInput ¶
type MicroserviceEngineServiceRegistryAddressArrayInput interface { pulumi.Input ToMicroserviceEngineServiceRegistryAddressArrayOutput() MicroserviceEngineServiceRegistryAddressArrayOutput ToMicroserviceEngineServiceRegistryAddressArrayOutputWithContext(context.Context) MicroserviceEngineServiceRegistryAddressArrayOutput }
MicroserviceEngineServiceRegistryAddressArrayInput is an input type that accepts MicroserviceEngineServiceRegistryAddressArray and MicroserviceEngineServiceRegistryAddressArrayOutput values. You can construct a concrete instance of `MicroserviceEngineServiceRegistryAddressArrayInput` via:
MicroserviceEngineServiceRegistryAddressArray{ MicroserviceEngineServiceRegistryAddressArgs{...} }
type MicroserviceEngineServiceRegistryAddressArrayOutput ¶
type MicroserviceEngineServiceRegistryAddressArrayOutput struct{ *pulumi.OutputState }
func (MicroserviceEngineServiceRegistryAddressArrayOutput) ElementType ¶
func (MicroserviceEngineServiceRegistryAddressArrayOutput) ElementType() reflect.Type
func (MicroserviceEngineServiceRegistryAddressArrayOutput) ToMicroserviceEngineServiceRegistryAddressArrayOutput ¶
func (o MicroserviceEngineServiceRegistryAddressArrayOutput) ToMicroserviceEngineServiceRegistryAddressArrayOutput() MicroserviceEngineServiceRegistryAddressArrayOutput
func (MicroserviceEngineServiceRegistryAddressArrayOutput) ToMicroserviceEngineServiceRegistryAddressArrayOutputWithContext ¶
func (o MicroserviceEngineServiceRegistryAddressArrayOutput) ToMicroserviceEngineServiceRegistryAddressArrayOutputWithContext(ctx context.Context) MicroserviceEngineServiceRegistryAddressArrayOutput
type MicroserviceEngineServiceRegistryAddressInput ¶
type MicroserviceEngineServiceRegistryAddressInput interface { pulumi.Input ToMicroserviceEngineServiceRegistryAddressOutput() MicroserviceEngineServiceRegistryAddressOutput ToMicroserviceEngineServiceRegistryAddressOutputWithContext(context.Context) MicroserviceEngineServiceRegistryAddressOutput }
MicroserviceEngineServiceRegistryAddressInput is an input type that accepts MicroserviceEngineServiceRegistryAddressArgs and MicroserviceEngineServiceRegistryAddressOutput values. You can construct a concrete instance of `MicroserviceEngineServiceRegistryAddressInput` via:
MicroserviceEngineServiceRegistryAddressArgs{...}
type MicroserviceEngineServiceRegistryAddressOutput ¶
type MicroserviceEngineServiceRegistryAddressOutput struct{ *pulumi.OutputState }
func (MicroserviceEngineServiceRegistryAddressOutput) ElementType ¶
func (MicroserviceEngineServiceRegistryAddressOutput) ElementType() reflect.Type
func (MicroserviceEngineServiceRegistryAddressOutput) Private ¶
func (o MicroserviceEngineServiceRegistryAddressOutput) Private() pulumi.StringPtrOutput
The internal access address.
func (MicroserviceEngineServiceRegistryAddressOutput) Public ¶
func (o MicroserviceEngineServiceRegistryAddressOutput) Public() pulumi.StringPtrOutput
The public access address. This address is only set when EIP is bound.
func (MicroserviceEngineServiceRegistryAddressOutput) ToMicroserviceEngineServiceRegistryAddressOutput ¶
func (o MicroserviceEngineServiceRegistryAddressOutput) ToMicroserviceEngineServiceRegistryAddressOutput() MicroserviceEngineServiceRegistryAddressOutput
func (MicroserviceEngineServiceRegistryAddressOutput) ToMicroserviceEngineServiceRegistryAddressOutputWithContext ¶
func (o MicroserviceEngineServiceRegistryAddressOutput) ToMicroserviceEngineServiceRegistryAddressOutputWithContext(ctx context.Context) MicroserviceEngineServiceRegistryAddressOutput
type MicroserviceEngineState ¶
type MicroserviceEngineState struct { // Specifies the account password. The corresponding account name is **root**. // Required if `authType` is **RBAC**. Changing this will create a new engine. // The password format must meet the following conditions: // + Must be `8` to `32` characters long. // + A password must contain at least one digit, one uppercase letter, one lowercase letter, and one special character // (-~!@#%^*_=+?$&()|<>{}[]). // + Cannot be the account name or account name spelled backwards. // + The password can only start with a letter. AdminPass pulumi.StringPtrInput // Specifies the authentication method for the dedicated microservice engine. // Changing this will create a new engine. // + **RBAC**: Enable security authentication. // Security authentication applies to the scenario where multiple users use the same engine. // After security authentication is enabled, all users who use the engine can log in using the account and password. // You can assign the account and role in the System Management. // + **NONE**: Disable security authentication. // After security authentication is disabled, all users who use the engine can use the engine without using the account // and password, and have the same operation permissions on all services. AuthType pulumi.StringPtrInput // Specifies the list of availability zone. // Changing this will create a new engine. AvailabilityZones pulumi.StringArrayInput // The address of config center. // The object structure is documented below. ConfigCenterAddresses MicroserviceEngineConfigCenterAddressArrayInput // Specifies the description of the dedicated microservice engine. // The description can contain a maximum of `255` characters. // Changing this will create a new engine. Description pulumi.StringPtrInput // Specifies the EIP ID to which the dedicated microservice engine assocated. // Changing this will create a new engine. EipId pulumi.StringPtrInput // Specifies the enterprise project ID to which the dedicated // microservice engine belongs. // Changing this will create a new engine. EnterpriseProjectId pulumi.StringPtrInput // Specifies the additional parameters for the dedicated microservice engine. // Changing this will create a new engine. ExtendParams pulumi.StringMapInput // Specifies the flavor of the dedicated microservice engine. // Changing this will create a new engine. Flavor pulumi.StringPtrInput // The maximum number of the microservice instance resources. InstanceLimit pulumi.IntPtrInput // Specifies the name of the dedicated microservice engine. // The name can contain `3` to `24` characters, only letters, digits and hyphens (-) are allowed. // The name must start with a letter and cannot end with a hyphen (-). // Changing this will create a new engine. Name pulumi.StringPtrInput // Specifies the network ID of the subnet to which the dedicated microservice // engine belongs. Changing this will create a new engine. NetworkId pulumi.StringPtrInput // Specifies the region in which to create the dedicated microservice engine. // If omitted, the provider-level region will be used. Changing this will create a new engine. Region pulumi.StringPtrInput // The maximum number of the microservice resources. ServiceLimit pulumi.IntPtrInput // The connection address of service center. // The object structure is documented below. ServiceRegistryAddresses MicroserviceEngineServiceRegistryAddressArrayInput // Specifies the version of the dedicated microservice engine. The value can be: // **CSE2**. Defaults to: **CSE2**. Changing this will create a new engine. Version pulumi.StringPtrInput }
func (MicroserviceEngineState) ElementType ¶
func (MicroserviceEngineState) ElementType() reflect.Type
type MicroserviceInput ¶
type MicroserviceInput interface { pulumi.Input ToMicroserviceOutput() MicroserviceOutput ToMicroserviceOutputWithContext(ctx context.Context) MicroserviceOutput }
type MicroserviceInstance ¶
type MicroserviceInstance struct { pulumi.CustomResourceState // Specifies the account password. // Required if the `authType` of engine is **RBAC**. Changing this will create a new microservice instance. // The password format must meet the following conditions: // + Must be `8` to `32` characters long. // + A password must contain at least one digit, one uppercase letter, one lowercase letter, and one special character // (-~!@#%^*_=+?$&()|<>{}[]). // + Cannot be the account name or account name spelled backwards. // + The password can only start with a letter. AdminPass pulumi.StringPtrOutput `pulumi:"adminPass"` // Specifies the account name. The initial account name is **root**. // Required if the `authType` of engine is **RBAC**. Changing this will create a new microservice instance. AdminUser pulumi.StringPtrOutput `pulumi:"adminUser"` // Specifies the connection address of service registry center for the // specified dedicated CSE engine. Changing this will create a new microservice instance. ConnectAddress pulumi.StringOutput `pulumi:"connectAddress"` // Specifies the data center configuration. // The object structure is documented below. // Changing this will create a new microservice instance. DataCenter MicroserviceInstanceDataCenterOutput `pulumi:"dataCenter"` // Specifies the access addresses information. // Changing this will create a new microservice instance. Endpoints pulumi.StringArrayOutput `pulumi:"endpoints"` // Specifies the health check configuration. // The object structure is documented below. // Changing this will create a new microservice instance. HealthCheck MicroserviceInstanceHealthCheckOutput `pulumi:"healthCheck"` // Specifies the host name, such as `localhost`. // Changing this will create a new microservice instance. HostName pulumi.StringOutput `pulumi:"hostName"` // Specifies the ID of the dedicated microservice to which the instance // belongs. Changing this will create a new microservice instance. MicroserviceId pulumi.StringOutput `pulumi:"microserviceId"` // Specifies the extended attributes. // Changing this will create a new microservice instance. Properties pulumi.StringMapOutput `pulumi:"properties"` // The microservice instance status. The values supports **UP**, **DOWN**, **STARTING** and **OUTOFSERVICE**. Status pulumi.StringOutput `pulumi:"status"` // Specifies the version of the dedicated microservice instance. // Changing this will create a new microservice instance. Version pulumi.StringOutput `pulumi:"version"` }
Manages a dedicated microservice instance resource within HuaweiCloud.
## Example Usage ### Create a microservice instance under a microservice with RBAC authentication of engine disabled
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Cse" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Cse" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") engineConnAddr := cfg.RequireObject("engineConnAddr") microserviceId := cfg.RequireObject("microserviceId") regionName := cfg.RequireObject("regionName") azName := cfg.RequireObject("azName") _, err := Cse.NewMicroserviceInstance(ctx, "test", &Cse.MicroserviceInstanceArgs{ ConnectAddress: pulumi.Any(engineConnAddr), MicroserviceId: pulumi.Any(microserviceId), HostName: pulumi.String("localhost"), Endpoints: pulumi.StringArray{ pulumi.String("grpc://127.0.1.132:9980"), pulumi.String("rest://127.0.0.111:8081"), }, Version: pulumi.String("1.0.0"), Properties: pulumi.StringMap{ "_TAGS": pulumi.String("A, B"), "attr1": pulumi.String("a"), "nodeIP": pulumi.String("127.0.0.1"), }, HealthCheck: &cse.MicroserviceInstanceHealthCheckArgs{ Mode: pulumi.String("push"), Interval: pulumi.Int(30), MaxRetries: pulumi.Int(3), }, DataCenter: &cse.MicroserviceInstanceDataCenterArgs{ Name: pulumi.String("dc"), Region: pulumi.Any(regionName), AvailabilityZone: pulumi.Any(azName), }, }) if err != nil { return err } return nil }) }
``` ### Create a microservice instance under a microservice with RBAC authentication of engine enabled
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Cse" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Cse" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") engineConnAddr := cfg.RequireObject("engineConnAddr") microserviceId := cfg.RequireObject("microserviceId") regionName := cfg.RequireObject("regionName") azName := cfg.RequireObject("azName") _, err := Cse.NewMicroserviceInstance(ctx, "test", &Cse.MicroserviceInstanceArgs{ ConnectAddress: pulumi.Any(engineConnAddr), MicroserviceId: pulumi.Any(microserviceId), HostName: pulumi.String("localhost"), Endpoints: pulumi.StringArray{ pulumi.String("grpc://127.0.1.132:9980"), pulumi.String("rest://127.0.0.111:8081"), }, Version: pulumi.String("1.0.0"), Properties: pulumi.StringMap{ "_TAGS": pulumi.String("A, B"), "attr1": pulumi.String("a"), "nodeIP": pulumi.String("127.0.0.1"), }, HealthCheck: &cse.MicroserviceInstanceHealthCheckArgs{ Mode: pulumi.String("push"), Interval: pulumi.Int(30), MaxRetries: pulumi.Int(3), }, DataCenter: &cse.MicroserviceInstanceDataCenterArgs{ Name: pulumi.String("dc"), Region: pulumi.Any(regionName), AvailabilityZone: pulumi.Any(azName), }, AdminUser: pulumi.String("root"), AdminPass: pulumi.String("Huawei!123"), }) if err != nil { return err } return nil }) }
```
## Import
Microservices can be imported using related `connect_address`, `microservice_id` and their `id`, separated by a slash (/), e.g.
```sh
$ pulumi import huaweicloud:Cse/microserviceInstance:MicroserviceInstance test https://124.70.26.32:30100/f14960ba495e03f59f85aacaaafbdef3fbff3f0d/336e7428dd9411eca913fa163e7364b7
```
If you enabled the **RBAC** authorization, you also need to provide the account name and password, e.g.
```sh
$ pulumi import huaweicloud:Cse/microserviceInstance:MicroserviceInstance test 'https://124.70.26.32:30100/f14960ba495e03f59f85aacaaafbdef3fbff3f0d/336e7428dd9411eca913fa163e7364b7/root/Test!123'
```
The single quotes can help you solve the problem of special characters reporting errors on bash.
func GetMicroserviceInstance ¶
func GetMicroserviceInstance(ctx *pulumi.Context, name string, id pulumi.IDInput, state *MicroserviceInstanceState, opts ...pulumi.ResourceOption) (*MicroserviceInstance, error)
GetMicroserviceInstance gets an existing MicroserviceInstance resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewMicroserviceInstance ¶
func NewMicroserviceInstance(ctx *pulumi.Context, name string, args *MicroserviceInstanceArgs, opts ...pulumi.ResourceOption) (*MicroserviceInstance, error)
NewMicroserviceInstance registers a new resource with the given unique name, arguments, and options.
func (*MicroserviceInstance) ElementType ¶
func (*MicroserviceInstance) ElementType() reflect.Type
func (*MicroserviceInstance) ToMicroserviceInstanceOutput ¶
func (i *MicroserviceInstance) ToMicroserviceInstanceOutput() MicroserviceInstanceOutput
func (*MicroserviceInstance) ToMicroserviceInstanceOutputWithContext ¶
func (i *MicroserviceInstance) ToMicroserviceInstanceOutputWithContext(ctx context.Context) MicroserviceInstanceOutput
type MicroserviceInstanceArgs ¶
type MicroserviceInstanceArgs struct { // Specifies the account password. // Required if the `authType` of engine is **RBAC**. Changing this will create a new microservice instance. // The password format must meet the following conditions: // + Must be `8` to `32` characters long. // + A password must contain at least one digit, one uppercase letter, one lowercase letter, and one special character // (-~!@#%^*_=+?$&()|<>{}[]). // + Cannot be the account name or account name spelled backwards. // + The password can only start with a letter. AdminPass pulumi.StringPtrInput // Specifies the account name. The initial account name is **root**. // Required if the `authType` of engine is **RBAC**. Changing this will create a new microservice instance. AdminUser pulumi.StringPtrInput // Specifies the connection address of service registry center for the // specified dedicated CSE engine. Changing this will create a new microservice instance. ConnectAddress pulumi.StringInput // Specifies the data center configuration. // The object structure is documented below. // Changing this will create a new microservice instance. DataCenter MicroserviceInstanceDataCenterPtrInput // Specifies the access addresses information. // Changing this will create a new microservice instance. Endpoints pulumi.StringArrayInput // Specifies the health check configuration. // The object structure is documented below. // Changing this will create a new microservice instance. HealthCheck MicroserviceInstanceHealthCheckPtrInput // Specifies the host name, such as `localhost`. // Changing this will create a new microservice instance. HostName pulumi.StringInput // Specifies the ID of the dedicated microservice to which the instance // belongs. Changing this will create a new microservice instance. MicroserviceId pulumi.StringInput // Specifies the extended attributes. // Changing this will create a new microservice instance. Properties pulumi.StringMapInput // Specifies the version of the dedicated microservice instance. // Changing this will create a new microservice instance. Version pulumi.StringPtrInput }
The set of arguments for constructing a MicroserviceInstance resource.
func (MicroserviceInstanceArgs) ElementType ¶
func (MicroserviceInstanceArgs) ElementType() reflect.Type
type MicroserviceInstanceArray ¶
type MicroserviceInstanceArray []MicroserviceInstanceInput
func (MicroserviceInstanceArray) ElementType ¶
func (MicroserviceInstanceArray) ElementType() reflect.Type
func (MicroserviceInstanceArray) ToMicroserviceInstanceArrayOutput ¶
func (i MicroserviceInstanceArray) ToMicroserviceInstanceArrayOutput() MicroserviceInstanceArrayOutput
func (MicroserviceInstanceArray) ToMicroserviceInstanceArrayOutputWithContext ¶
func (i MicroserviceInstanceArray) ToMicroserviceInstanceArrayOutputWithContext(ctx context.Context) MicroserviceInstanceArrayOutput
type MicroserviceInstanceArrayInput ¶
type MicroserviceInstanceArrayInput interface { pulumi.Input ToMicroserviceInstanceArrayOutput() MicroserviceInstanceArrayOutput ToMicroserviceInstanceArrayOutputWithContext(context.Context) MicroserviceInstanceArrayOutput }
MicroserviceInstanceArrayInput is an input type that accepts MicroserviceInstanceArray and MicroserviceInstanceArrayOutput values. You can construct a concrete instance of `MicroserviceInstanceArrayInput` via:
MicroserviceInstanceArray{ MicroserviceInstanceArgs{...} }
type MicroserviceInstanceArrayOutput ¶
type MicroserviceInstanceArrayOutput struct{ *pulumi.OutputState }
func (MicroserviceInstanceArrayOutput) ElementType ¶
func (MicroserviceInstanceArrayOutput) ElementType() reflect.Type
func (MicroserviceInstanceArrayOutput) Index ¶
func (o MicroserviceInstanceArrayOutput) Index(i pulumi.IntInput) MicroserviceInstanceOutput
func (MicroserviceInstanceArrayOutput) ToMicroserviceInstanceArrayOutput ¶
func (o MicroserviceInstanceArrayOutput) ToMicroserviceInstanceArrayOutput() MicroserviceInstanceArrayOutput
func (MicroserviceInstanceArrayOutput) ToMicroserviceInstanceArrayOutputWithContext ¶
func (o MicroserviceInstanceArrayOutput) ToMicroserviceInstanceArrayOutputWithContext(ctx context.Context) MicroserviceInstanceArrayOutput
type MicroserviceInstanceDataCenter ¶
type MicroserviceInstanceDataCenter struct { // Specifies the custom availability zone name of the data center. // Changing this will create a new microservice instance. AvailabilityZone string `pulumi:"availabilityZone"` // Specifies the data center name. // Changing this will create a new microservice instance. Name string `pulumi:"name"` // Specifies the custom region name of the data center. // Changing this will create a new microservice instance. Region string `pulumi:"region"` }
type MicroserviceInstanceDataCenterArgs ¶
type MicroserviceInstanceDataCenterArgs struct { // Specifies the custom availability zone name of the data center. // Changing this will create a new microservice instance. AvailabilityZone pulumi.StringInput `pulumi:"availabilityZone"` // Specifies the data center name. // Changing this will create a new microservice instance. Name pulumi.StringInput `pulumi:"name"` // Specifies the custom region name of the data center. // Changing this will create a new microservice instance. Region pulumi.StringInput `pulumi:"region"` }
func (MicroserviceInstanceDataCenterArgs) ElementType ¶
func (MicroserviceInstanceDataCenterArgs) ElementType() reflect.Type
func (MicroserviceInstanceDataCenterArgs) ToMicroserviceInstanceDataCenterOutput ¶
func (i MicroserviceInstanceDataCenterArgs) ToMicroserviceInstanceDataCenterOutput() MicroserviceInstanceDataCenterOutput
func (MicroserviceInstanceDataCenterArgs) ToMicroserviceInstanceDataCenterOutputWithContext ¶
func (i MicroserviceInstanceDataCenterArgs) ToMicroserviceInstanceDataCenterOutputWithContext(ctx context.Context) MicroserviceInstanceDataCenterOutput
func (MicroserviceInstanceDataCenterArgs) ToMicroserviceInstanceDataCenterPtrOutput ¶
func (i MicroserviceInstanceDataCenterArgs) ToMicroserviceInstanceDataCenterPtrOutput() MicroserviceInstanceDataCenterPtrOutput
func (MicroserviceInstanceDataCenterArgs) ToMicroserviceInstanceDataCenterPtrOutputWithContext ¶
func (i MicroserviceInstanceDataCenterArgs) ToMicroserviceInstanceDataCenterPtrOutputWithContext(ctx context.Context) MicroserviceInstanceDataCenterPtrOutput
type MicroserviceInstanceDataCenterInput ¶
type MicroserviceInstanceDataCenterInput interface { pulumi.Input ToMicroserviceInstanceDataCenterOutput() MicroserviceInstanceDataCenterOutput ToMicroserviceInstanceDataCenterOutputWithContext(context.Context) MicroserviceInstanceDataCenterOutput }
MicroserviceInstanceDataCenterInput is an input type that accepts MicroserviceInstanceDataCenterArgs and MicroserviceInstanceDataCenterOutput values. You can construct a concrete instance of `MicroserviceInstanceDataCenterInput` via:
MicroserviceInstanceDataCenterArgs{...}
type MicroserviceInstanceDataCenterOutput ¶
type MicroserviceInstanceDataCenterOutput struct{ *pulumi.OutputState }
func (MicroserviceInstanceDataCenterOutput) AvailabilityZone ¶
func (o MicroserviceInstanceDataCenterOutput) AvailabilityZone() pulumi.StringOutput
Specifies the custom availability zone name of the data center. Changing this will create a new microservice instance.
func (MicroserviceInstanceDataCenterOutput) ElementType ¶
func (MicroserviceInstanceDataCenterOutput) ElementType() reflect.Type
func (MicroserviceInstanceDataCenterOutput) Name ¶
func (o MicroserviceInstanceDataCenterOutput) Name() pulumi.StringOutput
Specifies the data center name. Changing this will create a new microservice instance.
func (MicroserviceInstanceDataCenterOutput) Region ¶
func (o MicroserviceInstanceDataCenterOutput) Region() pulumi.StringOutput
Specifies the custom region name of the data center. Changing this will create a new microservice instance.
func (MicroserviceInstanceDataCenterOutput) ToMicroserviceInstanceDataCenterOutput ¶
func (o MicroserviceInstanceDataCenterOutput) ToMicroserviceInstanceDataCenterOutput() MicroserviceInstanceDataCenterOutput
func (MicroserviceInstanceDataCenterOutput) ToMicroserviceInstanceDataCenterOutputWithContext ¶
func (o MicroserviceInstanceDataCenterOutput) ToMicroserviceInstanceDataCenterOutputWithContext(ctx context.Context) MicroserviceInstanceDataCenterOutput
func (MicroserviceInstanceDataCenterOutput) ToMicroserviceInstanceDataCenterPtrOutput ¶
func (o MicroserviceInstanceDataCenterOutput) ToMicroserviceInstanceDataCenterPtrOutput() MicroserviceInstanceDataCenterPtrOutput
func (MicroserviceInstanceDataCenterOutput) ToMicroserviceInstanceDataCenterPtrOutputWithContext ¶
func (o MicroserviceInstanceDataCenterOutput) ToMicroserviceInstanceDataCenterPtrOutputWithContext(ctx context.Context) MicroserviceInstanceDataCenterPtrOutput
type MicroserviceInstanceDataCenterPtrInput ¶
type MicroserviceInstanceDataCenterPtrInput interface { pulumi.Input ToMicroserviceInstanceDataCenterPtrOutput() MicroserviceInstanceDataCenterPtrOutput ToMicroserviceInstanceDataCenterPtrOutputWithContext(context.Context) MicroserviceInstanceDataCenterPtrOutput }
MicroserviceInstanceDataCenterPtrInput is an input type that accepts MicroserviceInstanceDataCenterArgs, MicroserviceInstanceDataCenterPtr and MicroserviceInstanceDataCenterPtrOutput values. You can construct a concrete instance of `MicroserviceInstanceDataCenterPtrInput` via:
MicroserviceInstanceDataCenterArgs{...} or: nil
func MicroserviceInstanceDataCenterPtr ¶
func MicroserviceInstanceDataCenterPtr(v *MicroserviceInstanceDataCenterArgs) MicroserviceInstanceDataCenterPtrInput
type MicroserviceInstanceDataCenterPtrOutput ¶
type MicroserviceInstanceDataCenterPtrOutput struct{ *pulumi.OutputState }
func (MicroserviceInstanceDataCenterPtrOutput) AvailabilityZone ¶
func (o MicroserviceInstanceDataCenterPtrOutput) AvailabilityZone() pulumi.StringPtrOutput
Specifies the custom availability zone name of the data center. Changing this will create a new microservice instance.
func (MicroserviceInstanceDataCenterPtrOutput) ElementType ¶
func (MicroserviceInstanceDataCenterPtrOutput) ElementType() reflect.Type
func (MicroserviceInstanceDataCenterPtrOutput) Name ¶
func (o MicroserviceInstanceDataCenterPtrOutput) Name() pulumi.StringPtrOutput
Specifies the data center name. Changing this will create a new microservice instance.
func (MicroserviceInstanceDataCenterPtrOutput) Region ¶
func (o MicroserviceInstanceDataCenterPtrOutput) Region() pulumi.StringPtrOutput
Specifies the custom region name of the data center. Changing this will create a new microservice instance.
func (MicroserviceInstanceDataCenterPtrOutput) ToMicroserviceInstanceDataCenterPtrOutput ¶
func (o MicroserviceInstanceDataCenterPtrOutput) ToMicroserviceInstanceDataCenterPtrOutput() MicroserviceInstanceDataCenterPtrOutput
func (MicroserviceInstanceDataCenterPtrOutput) ToMicroserviceInstanceDataCenterPtrOutputWithContext ¶
func (o MicroserviceInstanceDataCenterPtrOutput) ToMicroserviceInstanceDataCenterPtrOutputWithContext(ctx context.Context) MicroserviceInstanceDataCenterPtrOutput
type MicroserviceInstanceHealthCheck ¶
type MicroserviceInstanceHealthCheck struct { // Specifies the heartbeat interval. The unit is **s** (second). // Changing this will create a new microservice instance. Interval int `pulumi:"interval"` // Specifies the maximum retries. // Changing this will create a new microservice instance. MaxRetries int `pulumi:"maxRetries"` // Specifies the heartbeat mode. The valid values are **push** and **pull**. // Changing this will create a new microservice instance. Mode string `pulumi:"mode"` // Specifies the port number. // Changing this will create a new microservice instance. Port *int `pulumi:"port"` }
type MicroserviceInstanceHealthCheckArgs ¶
type MicroserviceInstanceHealthCheckArgs struct { // Specifies the heartbeat interval. The unit is **s** (second). // Changing this will create a new microservice instance. Interval pulumi.IntInput `pulumi:"interval"` // Specifies the maximum retries. // Changing this will create a new microservice instance. MaxRetries pulumi.IntInput `pulumi:"maxRetries"` // Specifies the heartbeat mode. The valid values are **push** and **pull**. // Changing this will create a new microservice instance. Mode pulumi.StringInput `pulumi:"mode"` // Specifies the port number. // Changing this will create a new microservice instance. Port pulumi.IntPtrInput `pulumi:"port"` }
func (MicroserviceInstanceHealthCheckArgs) ElementType ¶
func (MicroserviceInstanceHealthCheckArgs) ElementType() reflect.Type
func (MicroserviceInstanceHealthCheckArgs) ToMicroserviceInstanceHealthCheckOutput ¶
func (i MicroserviceInstanceHealthCheckArgs) ToMicroserviceInstanceHealthCheckOutput() MicroserviceInstanceHealthCheckOutput
func (MicroserviceInstanceHealthCheckArgs) ToMicroserviceInstanceHealthCheckOutputWithContext ¶
func (i MicroserviceInstanceHealthCheckArgs) ToMicroserviceInstanceHealthCheckOutputWithContext(ctx context.Context) MicroserviceInstanceHealthCheckOutput
func (MicroserviceInstanceHealthCheckArgs) ToMicroserviceInstanceHealthCheckPtrOutput ¶
func (i MicroserviceInstanceHealthCheckArgs) ToMicroserviceInstanceHealthCheckPtrOutput() MicroserviceInstanceHealthCheckPtrOutput
func (MicroserviceInstanceHealthCheckArgs) ToMicroserviceInstanceHealthCheckPtrOutputWithContext ¶
func (i MicroserviceInstanceHealthCheckArgs) ToMicroserviceInstanceHealthCheckPtrOutputWithContext(ctx context.Context) MicroserviceInstanceHealthCheckPtrOutput
type MicroserviceInstanceHealthCheckInput ¶
type MicroserviceInstanceHealthCheckInput interface { pulumi.Input ToMicroserviceInstanceHealthCheckOutput() MicroserviceInstanceHealthCheckOutput ToMicroserviceInstanceHealthCheckOutputWithContext(context.Context) MicroserviceInstanceHealthCheckOutput }
MicroserviceInstanceHealthCheckInput is an input type that accepts MicroserviceInstanceHealthCheckArgs and MicroserviceInstanceHealthCheckOutput values. You can construct a concrete instance of `MicroserviceInstanceHealthCheckInput` via:
MicroserviceInstanceHealthCheckArgs{...}
type MicroserviceInstanceHealthCheckOutput ¶
type MicroserviceInstanceHealthCheckOutput struct{ *pulumi.OutputState }
func (MicroserviceInstanceHealthCheckOutput) ElementType ¶
func (MicroserviceInstanceHealthCheckOutput) ElementType() reflect.Type
func (MicroserviceInstanceHealthCheckOutput) Interval ¶
func (o MicroserviceInstanceHealthCheckOutput) Interval() pulumi.IntOutput
Specifies the heartbeat interval. The unit is **s** (second). Changing this will create a new microservice instance.
func (MicroserviceInstanceHealthCheckOutput) MaxRetries ¶
func (o MicroserviceInstanceHealthCheckOutput) MaxRetries() pulumi.IntOutput
Specifies the maximum retries. Changing this will create a new microservice instance.
func (MicroserviceInstanceHealthCheckOutput) Mode ¶
func (o MicroserviceInstanceHealthCheckOutput) Mode() pulumi.StringOutput
Specifies the heartbeat mode. The valid values are **push** and **pull**. Changing this will create a new microservice instance.
func (MicroserviceInstanceHealthCheckOutput) Port ¶
func (o MicroserviceInstanceHealthCheckOutput) Port() pulumi.IntPtrOutput
Specifies the port number. Changing this will create a new microservice instance.
func (MicroserviceInstanceHealthCheckOutput) ToMicroserviceInstanceHealthCheckOutput ¶
func (o MicroserviceInstanceHealthCheckOutput) ToMicroserviceInstanceHealthCheckOutput() MicroserviceInstanceHealthCheckOutput
func (MicroserviceInstanceHealthCheckOutput) ToMicroserviceInstanceHealthCheckOutputWithContext ¶
func (o MicroserviceInstanceHealthCheckOutput) ToMicroserviceInstanceHealthCheckOutputWithContext(ctx context.Context) MicroserviceInstanceHealthCheckOutput
func (MicroserviceInstanceHealthCheckOutput) ToMicroserviceInstanceHealthCheckPtrOutput ¶
func (o MicroserviceInstanceHealthCheckOutput) ToMicroserviceInstanceHealthCheckPtrOutput() MicroserviceInstanceHealthCheckPtrOutput
func (MicroserviceInstanceHealthCheckOutput) ToMicroserviceInstanceHealthCheckPtrOutputWithContext ¶
func (o MicroserviceInstanceHealthCheckOutput) ToMicroserviceInstanceHealthCheckPtrOutputWithContext(ctx context.Context) MicroserviceInstanceHealthCheckPtrOutput
type MicroserviceInstanceHealthCheckPtrInput ¶
type MicroserviceInstanceHealthCheckPtrInput interface { pulumi.Input ToMicroserviceInstanceHealthCheckPtrOutput() MicroserviceInstanceHealthCheckPtrOutput ToMicroserviceInstanceHealthCheckPtrOutputWithContext(context.Context) MicroserviceInstanceHealthCheckPtrOutput }
MicroserviceInstanceHealthCheckPtrInput is an input type that accepts MicroserviceInstanceHealthCheckArgs, MicroserviceInstanceHealthCheckPtr and MicroserviceInstanceHealthCheckPtrOutput values. You can construct a concrete instance of `MicroserviceInstanceHealthCheckPtrInput` via:
MicroserviceInstanceHealthCheckArgs{...} or: nil
func MicroserviceInstanceHealthCheckPtr ¶
func MicroserviceInstanceHealthCheckPtr(v *MicroserviceInstanceHealthCheckArgs) MicroserviceInstanceHealthCheckPtrInput
type MicroserviceInstanceHealthCheckPtrOutput ¶
type MicroserviceInstanceHealthCheckPtrOutput struct{ *pulumi.OutputState }
func (MicroserviceInstanceHealthCheckPtrOutput) ElementType ¶
func (MicroserviceInstanceHealthCheckPtrOutput) ElementType() reflect.Type
func (MicroserviceInstanceHealthCheckPtrOutput) Interval ¶
func (o MicroserviceInstanceHealthCheckPtrOutput) Interval() pulumi.IntPtrOutput
Specifies the heartbeat interval. The unit is **s** (second). Changing this will create a new microservice instance.
func (MicroserviceInstanceHealthCheckPtrOutput) MaxRetries ¶
func (o MicroserviceInstanceHealthCheckPtrOutput) MaxRetries() pulumi.IntPtrOutput
Specifies the maximum retries. Changing this will create a new microservice instance.
func (MicroserviceInstanceHealthCheckPtrOutput) Mode ¶
func (o MicroserviceInstanceHealthCheckPtrOutput) Mode() pulumi.StringPtrOutput
Specifies the heartbeat mode. The valid values are **push** and **pull**. Changing this will create a new microservice instance.
func (MicroserviceInstanceHealthCheckPtrOutput) Port ¶
func (o MicroserviceInstanceHealthCheckPtrOutput) Port() pulumi.IntPtrOutput
Specifies the port number. Changing this will create a new microservice instance.
func (MicroserviceInstanceHealthCheckPtrOutput) ToMicroserviceInstanceHealthCheckPtrOutput ¶
func (o MicroserviceInstanceHealthCheckPtrOutput) ToMicroserviceInstanceHealthCheckPtrOutput() MicroserviceInstanceHealthCheckPtrOutput
func (MicroserviceInstanceHealthCheckPtrOutput) ToMicroserviceInstanceHealthCheckPtrOutputWithContext ¶
func (o MicroserviceInstanceHealthCheckPtrOutput) ToMicroserviceInstanceHealthCheckPtrOutputWithContext(ctx context.Context) MicroserviceInstanceHealthCheckPtrOutput
type MicroserviceInstanceInput ¶
type MicroserviceInstanceInput interface { pulumi.Input ToMicroserviceInstanceOutput() MicroserviceInstanceOutput ToMicroserviceInstanceOutputWithContext(ctx context.Context) MicroserviceInstanceOutput }
type MicroserviceInstanceMap ¶
type MicroserviceInstanceMap map[string]MicroserviceInstanceInput
func (MicroserviceInstanceMap) ElementType ¶
func (MicroserviceInstanceMap) ElementType() reflect.Type
func (MicroserviceInstanceMap) ToMicroserviceInstanceMapOutput ¶
func (i MicroserviceInstanceMap) ToMicroserviceInstanceMapOutput() MicroserviceInstanceMapOutput
func (MicroserviceInstanceMap) ToMicroserviceInstanceMapOutputWithContext ¶
func (i MicroserviceInstanceMap) ToMicroserviceInstanceMapOutputWithContext(ctx context.Context) MicroserviceInstanceMapOutput
type MicroserviceInstanceMapInput ¶
type MicroserviceInstanceMapInput interface { pulumi.Input ToMicroserviceInstanceMapOutput() MicroserviceInstanceMapOutput ToMicroserviceInstanceMapOutputWithContext(context.Context) MicroserviceInstanceMapOutput }
MicroserviceInstanceMapInput is an input type that accepts MicroserviceInstanceMap and MicroserviceInstanceMapOutput values. You can construct a concrete instance of `MicroserviceInstanceMapInput` via:
MicroserviceInstanceMap{ "key": MicroserviceInstanceArgs{...} }
type MicroserviceInstanceMapOutput ¶
type MicroserviceInstanceMapOutput struct{ *pulumi.OutputState }
func (MicroserviceInstanceMapOutput) ElementType ¶
func (MicroserviceInstanceMapOutput) ElementType() reflect.Type
func (MicroserviceInstanceMapOutput) MapIndex ¶
func (o MicroserviceInstanceMapOutput) MapIndex(k pulumi.StringInput) MicroserviceInstanceOutput
func (MicroserviceInstanceMapOutput) ToMicroserviceInstanceMapOutput ¶
func (o MicroserviceInstanceMapOutput) ToMicroserviceInstanceMapOutput() MicroserviceInstanceMapOutput
func (MicroserviceInstanceMapOutput) ToMicroserviceInstanceMapOutputWithContext ¶
func (o MicroserviceInstanceMapOutput) ToMicroserviceInstanceMapOutputWithContext(ctx context.Context) MicroserviceInstanceMapOutput
type MicroserviceInstanceOutput ¶
type MicroserviceInstanceOutput struct{ *pulumi.OutputState }
func (MicroserviceInstanceOutput) AdminPass ¶
func (o MicroserviceInstanceOutput) AdminPass() pulumi.StringPtrOutput
Specifies the account password. Required if the `authType` of engine is **RBAC**. Changing this will create a new microservice instance. The password format must meet the following conditions:
- Must be `8` to `32` characters long.
- A password must contain at least one digit, one uppercase letter, one lowercase letter, and one special character (-~!@#%^*_=+?$&()|<>{}[]).
- Cannot be the account name or account name spelled backwards.
- The password can only start with a letter.
func (MicroserviceInstanceOutput) AdminUser ¶
func (o MicroserviceInstanceOutput) AdminUser() pulumi.StringPtrOutput
Specifies the account name. The initial account name is **root**. Required if the `authType` of engine is **RBAC**. Changing this will create a new microservice instance.
func (MicroserviceInstanceOutput) ConnectAddress ¶
func (o MicroserviceInstanceOutput) ConnectAddress() pulumi.StringOutput
Specifies the connection address of service registry center for the specified dedicated CSE engine. Changing this will create a new microservice instance.
func (MicroserviceInstanceOutput) DataCenter ¶
func (o MicroserviceInstanceOutput) DataCenter() MicroserviceInstanceDataCenterOutput
Specifies the data center configuration. The object structure is documented below. Changing this will create a new microservice instance.
func (MicroserviceInstanceOutput) ElementType ¶
func (MicroserviceInstanceOutput) ElementType() reflect.Type
func (MicroserviceInstanceOutput) Endpoints ¶
func (o MicroserviceInstanceOutput) Endpoints() pulumi.StringArrayOutput
Specifies the access addresses information. Changing this will create a new microservice instance.
func (MicroserviceInstanceOutput) HealthCheck ¶
func (o MicroserviceInstanceOutput) HealthCheck() MicroserviceInstanceHealthCheckOutput
Specifies the health check configuration. The object structure is documented below. Changing this will create a new microservice instance.
func (MicroserviceInstanceOutput) HostName ¶
func (o MicroserviceInstanceOutput) HostName() pulumi.StringOutput
Specifies the host name, such as `localhost`. Changing this will create a new microservice instance.
func (MicroserviceInstanceOutput) MicroserviceId ¶
func (o MicroserviceInstanceOutput) MicroserviceId() pulumi.StringOutput
Specifies the ID of the dedicated microservice to which the instance belongs. Changing this will create a new microservice instance.
func (MicroserviceInstanceOutput) Properties ¶
func (o MicroserviceInstanceOutput) Properties() pulumi.StringMapOutput
Specifies the extended attributes. Changing this will create a new microservice instance.
func (MicroserviceInstanceOutput) Status ¶
func (o MicroserviceInstanceOutput) Status() pulumi.StringOutput
The microservice instance status. The values supports **UP**, **DOWN**, **STARTING** and **OUTOFSERVICE**.
func (MicroserviceInstanceOutput) ToMicroserviceInstanceOutput ¶
func (o MicroserviceInstanceOutput) ToMicroserviceInstanceOutput() MicroserviceInstanceOutput
func (MicroserviceInstanceOutput) ToMicroserviceInstanceOutputWithContext ¶
func (o MicroserviceInstanceOutput) ToMicroserviceInstanceOutputWithContext(ctx context.Context) MicroserviceInstanceOutput
func (MicroserviceInstanceOutput) Version ¶
func (o MicroserviceInstanceOutput) Version() pulumi.StringOutput
Specifies the version of the dedicated microservice instance. Changing this will create a new microservice instance.
type MicroserviceInstanceState ¶
type MicroserviceInstanceState struct { // Specifies the account password. // Required if the `authType` of engine is **RBAC**. Changing this will create a new microservice instance. // The password format must meet the following conditions: // + Must be `8` to `32` characters long. // + A password must contain at least one digit, one uppercase letter, one lowercase letter, and one special character // (-~!@#%^*_=+?$&()|<>{}[]). // + Cannot be the account name or account name spelled backwards. // + The password can only start with a letter. AdminPass pulumi.StringPtrInput // Specifies the account name. The initial account name is **root**. // Required if the `authType` of engine is **RBAC**. Changing this will create a new microservice instance. AdminUser pulumi.StringPtrInput // Specifies the connection address of service registry center for the // specified dedicated CSE engine. Changing this will create a new microservice instance. ConnectAddress pulumi.StringPtrInput // Specifies the data center configuration. // The object structure is documented below. // Changing this will create a new microservice instance. DataCenter MicroserviceInstanceDataCenterPtrInput // Specifies the access addresses information. // Changing this will create a new microservice instance. Endpoints pulumi.StringArrayInput // Specifies the health check configuration. // The object structure is documented below. // Changing this will create a new microservice instance. HealthCheck MicroserviceInstanceHealthCheckPtrInput // Specifies the host name, such as `localhost`. // Changing this will create a new microservice instance. HostName pulumi.StringPtrInput // Specifies the ID of the dedicated microservice to which the instance // belongs. Changing this will create a new microservice instance. MicroserviceId pulumi.StringPtrInput // Specifies the extended attributes. // Changing this will create a new microservice instance. Properties pulumi.StringMapInput // The microservice instance status. The values supports **UP**, **DOWN**, **STARTING** and **OUTOFSERVICE**. Status pulumi.StringPtrInput // Specifies the version of the dedicated microservice instance. // Changing this will create a new microservice instance. Version pulumi.StringPtrInput }
func (MicroserviceInstanceState) ElementType ¶
func (MicroserviceInstanceState) ElementType() reflect.Type
type MicroserviceMap ¶
type MicroserviceMap map[string]MicroserviceInput
func (MicroserviceMap) ElementType ¶
func (MicroserviceMap) ElementType() reflect.Type
func (MicroserviceMap) ToMicroserviceMapOutput ¶
func (i MicroserviceMap) ToMicroserviceMapOutput() MicroserviceMapOutput
func (MicroserviceMap) ToMicroserviceMapOutputWithContext ¶
func (i MicroserviceMap) ToMicroserviceMapOutputWithContext(ctx context.Context) MicroserviceMapOutput
type MicroserviceMapInput ¶
type MicroserviceMapInput interface { pulumi.Input ToMicroserviceMapOutput() MicroserviceMapOutput ToMicroserviceMapOutputWithContext(context.Context) MicroserviceMapOutput }
MicroserviceMapInput is an input type that accepts MicroserviceMap and MicroserviceMapOutput values. You can construct a concrete instance of `MicroserviceMapInput` via:
MicroserviceMap{ "key": MicroserviceArgs{...} }
type MicroserviceMapOutput ¶
type MicroserviceMapOutput struct{ *pulumi.OutputState }
func (MicroserviceMapOutput) ElementType ¶
func (MicroserviceMapOutput) ElementType() reflect.Type
func (MicroserviceMapOutput) MapIndex ¶
func (o MicroserviceMapOutput) MapIndex(k pulumi.StringInput) MicroserviceOutput
func (MicroserviceMapOutput) ToMicroserviceMapOutput ¶
func (o MicroserviceMapOutput) ToMicroserviceMapOutput() MicroserviceMapOutput
func (MicroserviceMapOutput) ToMicroserviceMapOutputWithContext ¶
func (o MicroserviceMapOutput) ToMicroserviceMapOutputWithContext(ctx context.Context) MicroserviceMapOutput
type MicroserviceOutput ¶
type MicroserviceOutput struct{ *pulumi.OutputState }
func (MicroserviceOutput) AdminPass ¶
func (o MicroserviceOutput) AdminPass() pulumi.StringPtrOutput
Specifies the account password. Required if the `authType` of engine is **RBAC**. Changing this will create a new microservice. The password format must meet the following conditions:
- Must be `8` to `32` characters long.
- A password must contain at least one digit, one uppercase letter, one lowercase letter, and one special character (-~!@#%^*_=+?$&()|<>{}[]).
- Cannot be the account name or account name spelled backwards.
- The password can only start with a letter.
func (MicroserviceOutput) AdminUser ¶
func (o MicroserviceOutput) AdminUser() pulumi.StringPtrOutput
Specifies the account name. The initial account name is **root**. Required if the `authType` of engine is **RBAC**. Changing this will create a new microservice.
func (MicroserviceOutput) AppName ¶
func (o MicroserviceOutput) AppName() pulumi.StringOutput
Specifies the name of the dedicated microservice application. Changing this will create a new microservice.
func (MicroserviceOutput) ConnectAddress ¶
func (o MicroserviceOutput) ConnectAddress() pulumi.StringOutput
Specifies the connection address of service registry center for the specified dedicated CSE engine. Changing this will create a new microservice.
func (MicroserviceOutput) Description ¶
func (o MicroserviceOutput) Description() pulumi.StringPtrOutput
Specifies the description of the dedicated microservice. The description can contain a maximum of `256` characters. Changing this will create a new microservice.
func (MicroserviceOutput) ElementType ¶
func (MicroserviceOutput) ElementType() reflect.Type
func (MicroserviceOutput) Environment ¶
func (o MicroserviceOutput) Environment() pulumi.StringPtrOutput
Specifies the environment (stage) type. The valid values are **development**, **testing**, **acceptance** and **production**. If omitted, the microservice will be deployed in an empty environment. Changing this will create a new microservice.
func (MicroserviceOutput) Level ¶
func (o MicroserviceOutput) Level() pulumi.StringPtrOutput
Specifies the microservice level. The valid values are **FRONT**, **MIDDLE**, and **BACK**. Changing this will create a new microservice.
func (MicroserviceOutput) Name ¶
func (o MicroserviceOutput) Name() pulumi.StringOutput
Specifies the name of the dedicated microservice. The name can contain `1` to `128` characters, only letters, digits, underscore (_), hyphens (-) and dots (.) are allowed. The name must start and end with a letter or digit. Changing this will create a new microservice.
func (MicroserviceOutput) Status ¶
func (o MicroserviceOutput) Status() pulumi.StringOutput
The microservice status. The values supports **UP** and **DOWN**.
func (MicroserviceOutput) ToMicroserviceOutput ¶
func (o MicroserviceOutput) ToMicroserviceOutput() MicroserviceOutput
func (MicroserviceOutput) ToMicroserviceOutputWithContext ¶
func (o MicroserviceOutput) ToMicroserviceOutputWithContext(ctx context.Context) MicroserviceOutput
func (MicroserviceOutput) Version ¶
func (o MicroserviceOutput) Version() pulumi.StringOutput
Specifies the version of the dedicated microservice. Changing this will create a new microservice.
type MicroserviceState ¶
type MicroserviceState struct { // Specifies the account password. // Required if the `authType` of engine is **RBAC**. Changing this will create a new microservice. // The password format must meet the following conditions: // + Must be `8` to `32` characters long. // + A password must contain at least one digit, one uppercase letter, one lowercase letter, and one special character // (-~!@#%^*_=+?$&()|<>{}[]). // + Cannot be the account name or account name spelled backwards. // + The password can only start with a letter. AdminPass pulumi.StringPtrInput // Specifies the account name. The initial account name is **root**. // Required if the `authType` of engine is **RBAC**. Changing this will create a new microservice. AdminUser pulumi.StringPtrInput // Specifies the name of the dedicated microservice application. // Changing this will create a new microservice. AppName pulumi.StringPtrInput // Specifies the connection address of service registry center for the // specified dedicated CSE engine. Changing this will create a new microservice. ConnectAddress pulumi.StringPtrInput // Specifies the description of the dedicated microservice. // The description can contain a maximum of `256` characters. // Changing this will create a new microservice. Description pulumi.StringPtrInput // Specifies the environment (stage) type. // The valid values are **development**, **testing**, **acceptance** and **production**. // If omitted, the microservice will be deployed in an empty environment. // Changing this will create a new microservice. Environment pulumi.StringPtrInput // Specifies the microservice level. // The valid values are **FRONT**, **MIDDLE**, and **BACK**. Changing this will create a new microservice. Level pulumi.StringPtrInput // Specifies the name of the dedicated microservice. // The name can contain `1` to `128` characters, only letters, digits, underscore (_), hyphens (-) and dots (.) are // allowed. The name must start and end with a letter or digit. Changing this will create a new microservice. Name pulumi.StringPtrInput // The microservice status. The values supports **UP** and **DOWN**. Status pulumi.StringPtrInput // Specifies the version of the dedicated microservice. // Changing this will create a new microservice. Version pulumi.StringPtrInput }
func (MicroserviceState) ElementType ¶
func (MicroserviceState) ElementType() reflect.Type