Documentation ¶
Index ¶
- type Instance
- type InstanceArgs
- type InstanceArray
- type InstanceArrayInput
- type InstanceArrayOutput
- type InstanceInput
- type InstanceMap
- type InstanceMapInput
- type InstanceMapOutput
- type InstanceOutput
- func (o InstanceOutput) DataDiskIds() pulumi.StringArrayOutput
- func (InstanceOutput) ElementType() reflect.Type
- func (o InstanceOutput) ForcePoweroff() pulumi.BoolPtrOutput
- func (o InstanceOutput) ImageDescription() pulumi.StringPtrOutput
- func (o InstanceOutput) ImageName() pulumi.StringOutput
- func (o InstanceOutput) InstanceId() pulumi.StringPtrOutput
- func (o InstanceOutput) SnapshotIds() pulumi.StringArrayOutput
- func (o InstanceOutput) Sysprep() pulumi.BoolPtrOutput
- func (o InstanceOutput) ToInstanceOutput() InstanceOutput
- func (o InstanceOutput) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput
- type InstanceState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instance ¶
type Instance struct { pulumi.CustomResourceState // Cloud disk ID list, When creating a whole machine image based on an instance, specify the data disk ID contained in the // image. DataDiskIds pulumi.StringArrayOutput `pulumi:"dataDiskIds"` // Set whether to force shutdown during mirroring. The default value is `false`, when set to true, it means that the mirror // will be made after shutdown. ForcePoweroff pulumi.BoolPtrOutput `pulumi:"forcePoweroff"` // Image Description. ImageDescription pulumi.StringPtrOutput `pulumi:"imageDescription"` // Image name. ImageName pulumi.StringOutput `pulumi:"imageName"` // Cloud server instance ID. InstanceId pulumi.StringPtrOutput `pulumi:"instanceId"` // Cloud disk snapshot ID list; creating a mirror based on a snapshot must include a system disk snapshot. It cannot be // passed in simultaneously with InstanceId. SnapshotIds pulumi.StringArrayOutput `pulumi:"snapshotIds"` // Sysprep function under Windows. When creating a Windows image, you can select true or false to enable or disable the // Syspre function. Sysprep pulumi.BoolPtrOutput `pulumi:"sysprep"` }
func GetInstance ¶
func GetInstance(ctx *pulumi.Context, name string, id pulumi.IDInput, state *InstanceState, opts ...pulumi.ResourceOption) (*Instance, error)
GetInstance gets an existing Instance 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 NewInstance ¶
func NewInstance(ctx *pulumi.Context, name string, args *InstanceArgs, opts ...pulumi.ResourceOption) (*Instance, error)
NewInstance registers a new resource with the given unique name, arguments, and options.
func (*Instance) ElementType ¶
func (*Instance) ToInstanceOutput ¶
func (i *Instance) ToInstanceOutput() InstanceOutput
func (*Instance) ToInstanceOutputWithContext ¶
func (i *Instance) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput
type InstanceArgs ¶
type InstanceArgs struct { // Cloud disk ID list, When creating a whole machine image based on an instance, specify the data disk ID contained in the // image. DataDiskIds pulumi.StringArrayInput // Set whether to force shutdown during mirroring. The default value is `false`, when set to true, it means that the mirror // will be made after shutdown. ForcePoweroff pulumi.BoolPtrInput // Image Description. ImageDescription pulumi.StringPtrInput // Image name. ImageName pulumi.StringInput // Cloud server instance ID. InstanceId pulumi.StringPtrInput // Cloud disk snapshot ID list; creating a mirror based on a snapshot must include a system disk snapshot. It cannot be // passed in simultaneously with InstanceId. SnapshotIds pulumi.StringArrayInput // Sysprep function under Windows. When creating a Windows image, you can select true or false to enable or disable the // Syspre function. Sysprep pulumi.BoolPtrInput }
The set of arguments for constructing a Instance resource.
func (InstanceArgs) ElementType ¶
func (InstanceArgs) ElementType() reflect.Type
type InstanceArray ¶
type InstanceArray []InstanceInput
func (InstanceArray) ElementType ¶
func (InstanceArray) ElementType() reflect.Type
func (InstanceArray) ToInstanceArrayOutput ¶
func (i InstanceArray) ToInstanceArrayOutput() InstanceArrayOutput
func (InstanceArray) ToInstanceArrayOutputWithContext ¶
func (i InstanceArray) ToInstanceArrayOutputWithContext(ctx context.Context) InstanceArrayOutput
type InstanceArrayInput ¶
type InstanceArrayInput interface { pulumi.Input ToInstanceArrayOutput() InstanceArrayOutput ToInstanceArrayOutputWithContext(context.Context) InstanceArrayOutput }
InstanceArrayInput is an input type that accepts InstanceArray and InstanceArrayOutput values. You can construct a concrete instance of `InstanceArrayInput` via:
InstanceArray{ InstanceArgs{...} }
type InstanceArrayOutput ¶
type InstanceArrayOutput struct{ *pulumi.OutputState }
func (InstanceArrayOutput) ElementType ¶
func (InstanceArrayOutput) ElementType() reflect.Type
func (InstanceArrayOutput) Index ¶
func (o InstanceArrayOutput) Index(i pulumi.IntInput) InstanceOutput
func (InstanceArrayOutput) ToInstanceArrayOutput ¶
func (o InstanceArrayOutput) ToInstanceArrayOutput() InstanceArrayOutput
func (InstanceArrayOutput) ToInstanceArrayOutputWithContext ¶
func (o InstanceArrayOutput) ToInstanceArrayOutputWithContext(ctx context.Context) InstanceArrayOutput
type InstanceInput ¶
type InstanceInput interface { pulumi.Input ToInstanceOutput() InstanceOutput ToInstanceOutputWithContext(ctx context.Context) InstanceOutput }
type InstanceMap ¶
type InstanceMap map[string]InstanceInput
func (InstanceMap) ElementType ¶
func (InstanceMap) ElementType() reflect.Type
func (InstanceMap) ToInstanceMapOutput ¶
func (i InstanceMap) ToInstanceMapOutput() InstanceMapOutput
func (InstanceMap) ToInstanceMapOutputWithContext ¶
func (i InstanceMap) ToInstanceMapOutputWithContext(ctx context.Context) InstanceMapOutput
type InstanceMapInput ¶
type InstanceMapInput interface { pulumi.Input ToInstanceMapOutput() InstanceMapOutput ToInstanceMapOutputWithContext(context.Context) InstanceMapOutput }
InstanceMapInput is an input type that accepts InstanceMap and InstanceMapOutput values. You can construct a concrete instance of `InstanceMapInput` via:
InstanceMap{ "key": InstanceArgs{...} }
type InstanceMapOutput ¶
type InstanceMapOutput struct{ *pulumi.OutputState }
func (InstanceMapOutput) ElementType ¶
func (InstanceMapOutput) ElementType() reflect.Type
func (InstanceMapOutput) MapIndex ¶
func (o InstanceMapOutput) MapIndex(k pulumi.StringInput) InstanceOutput
func (InstanceMapOutput) ToInstanceMapOutput ¶
func (o InstanceMapOutput) ToInstanceMapOutput() InstanceMapOutput
func (InstanceMapOutput) ToInstanceMapOutputWithContext ¶
func (o InstanceMapOutput) ToInstanceMapOutputWithContext(ctx context.Context) InstanceMapOutput
type InstanceOutput ¶
type InstanceOutput struct{ *pulumi.OutputState }
func (InstanceOutput) DataDiskIds ¶
func (o InstanceOutput) DataDiskIds() pulumi.StringArrayOutput
Cloud disk ID list, When creating a whole machine image based on an instance, specify the data disk ID contained in the image.
func (InstanceOutput) ElementType ¶
func (InstanceOutput) ElementType() reflect.Type
func (InstanceOutput) ForcePoweroff ¶
func (o InstanceOutput) ForcePoweroff() pulumi.BoolPtrOutput
Set whether to force shutdown during mirroring. The default value is `false`, when set to true, it means that the mirror will be made after shutdown.
func (InstanceOutput) ImageDescription ¶
func (o InstanceOutput) ImageDescription() pulumi.StringPtrOutput
Image Description.
func (InstanceOutput) ImageName ¶
func (o InstanceOutput) ImageName() pulumi.StringOutput
Image name.
func (InstanceOutput) InstanceId ¶
func (o InstanceOutput) InstanceId() pulumi.StringPtrOutput
Cloud server instance ID.
func (InstanceOutput) SnapshotIds ¶
func (o InstanceOutput) SnapshotIds() pulumi.StringArrayOutput
Cloud disk snapshot ID list; creating a mirror based on a snapshot must include a system disk snapshot. It cannot be passed in simultaneously with InstanceId.
func (InstanceOutput) Sysprep ¶
func (o InstanceOutput) Sysprep() pulumi.BoolPtrOutput
Sysprep function under Windows. When creating a Windows image, you can select true or false to enable or disable the Syspre function.
func (InstanceOutput) ToInstanceOutput ¶
func (o InstanceOutput) ToInstanceOutput() InstanceOutput
func (InstanceOutput) ToInstanceOutputWithContext ¶
func (o InstanceOutput) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput
type InstanceState ¶
type InstanceState struct { // Cloud disk ID list, When creating a whole machine image based on an instance, specify the data disk ID contained in the // image. DataDiskIds pulumi.StringArrayInput // Set whether to force shutdown during mirroring. The default value is `false`, when set to true, it means that the mirror // will be made after shutdown. ForcePoweroff pulumi.BoolPtrInput // Image Description. ImageDescription pulumi.StringPtrInput // Image name. ImageName pulumi.StringPtrInput // Cloud server instance ID. InstanceId pulumi.StringPtrInput // Cloud disk snapshot ID list; creating a mirror based on a snapshot must include a system disk snapshot. It cannot be // passed in simultaneously with InstanceId. SnapshotIds pulumi.StringArrayInput // Sysprep function under Windows. When creating a Windows image, you can select true or false to enable or disable the // Syspre function. Sysprep pulumi.BoolPtrInput }
func (InstanceState) ElementType ¶
func (InstanceState) ElementType() reflect.Type