Documentation ¶
Index ¶
- type Environment
- func (*Environment) ElementType() reflect.Type
- func (i *Environment) ToEnvironmentOutput() EnvironmentOutput
- func (i *Environment) ToEnvironmentOutputWithContext(ctx context.Context) EnvironmentOutput
- func (i *Environment) ToEnvironmentPtrOutput() EnvironmentPtrOutput
- func (i *Environment) ToEnvironmentPtrOutputWithContext(ctx context.Context) EnvironmentPtrOutput
- type EnvironmentArgs
- type EnvironmentArray
- type EnvironmentArrayInput
- type EnvironmentArrayOutput
- func (EnvironmentArrayOutput) ElementType() reflect.Type
- func (o EnvironmentArrayOutput) Index(i pulumi.IntInput) EnvironmentOutput
- func (o EnvironmentArrayOutput) ToEnvironmentArrayOutput() EnvironmentArrayOutput
- func (o EnvironmentArrayOutput) ToEnvironmentArrayOutputWithContext(ctx context.Context) EnvironmentArrayOutput
- type EnvironmentContainerImage
- type EnvironmentContainerImageArgs
- func (EnvironmentContainerImageArgs) ElementType() reflect.Type
- func (i EnvironmentContainerImageArgs) ToEnvironmentContainerImageOutput() EnvironmentContainerImageOutput
- func (i EnvironmentContainerImageArgs) ToEnvironmentContainerImageOutputWithContext(ctx context.Context) EnvironmentContainerImageOutput
- func (i EnvironmentContainerImageArgs) ToEnvironmentContainerImagePtrOutput() EnvironmentContainerImagePtrOutput
- func (i EnvironmentContainerImageArgs) ToEnvironmentContainerImagePtrOutputWithContext(ctx context.Context) EnvironmentContainerImagePtrOutput
- type EnvironmentContainerImageInput
- type EnvironmentContainerImageOutput
- func (EnvironmentContainerImageOutput) ElementType() reflect.Type
- func (o EnvironmentContainerImageOutput) Repository() pulumi.StringOutput
- func (o EnvironmentContainerImageOutput) Tag() pulumi.StringPtrOutput
- func (o EnvironmentContainerImageOutput) ToEnvironmentContainerImageOutput() EnvironmentContainerImageOutput
- func (o EnvironmentContainerImageOutput) ToEnvironmentContainerImageOutputWithContext(ctx context.Context) EnvironmentContainerImageOutput
- func (o EnvironmentContainerImageOutput) ToEnvironmentContainerImagePtrOutput() EnvironmentContainerImagePtrOutput
- func (o EnvironmentContainerImageOutput) ToEnvironmentContainerImagePtrOutputWithContext(ctx context.Context) EnvironmentContainerImagePtrOutput
- type EnvironmentContainerImagePtrInput
- type EnvironmentContainerImagePtrOutput
- func (o EnvironmentContainerImagePtrOutput) Elem() EnvironmentContainerImageOutput
- func (EnvironmentContainerImagePtrOutput) ElementType() reflect.Type
- func (o EnvironmentContainerImagePtrOutput) Repository() pulumi.StringPtrOutput
- func (o EnvironmentContainerImagePtrOutput) Tag() pulumi.StringPtrOutput
- func (o EnvironmentContainerImagePtrOutput) ToEnvironmentContainerImagePtrOutput() EnvironmentContainerImagePtrOutput
- func (o EnvironmentContainerImagePtrOutput) ToEnvironmentContainerImagePtrOutputWithContext(ctx context.Context) EnvironmentContainerImagePtrOutput
- type EnvironmentInput
- type EnvironmentMap
- type EnvironmentMapInput
- type EnvironmentMapOutput
- func (EnvironmentMapOutput) ElementType() reflect.Type
- func (o EnvironmentMapOutput) MapIndex(k pulumi.StringInput) EnvironmentOutput
- func (o EnvironmentMapOutput) ToEnvironmentMapOutput() EnvironmentMapOutput
- func (o EnvironmentMapOutput) ToEnvironmentMapOutputWithContext(ctx context.Context) EnvironmentMapOutput
- type EnvironmentOutput
- func (EnvironmentOutput) ElementType() reflect.Type
- func (o EnvironmentOutput) ToEnvironmentOutput() EnvironmentOutput
- func (o EnvironmentOutput) ToEnvironmentOutputWithContext(ctx context.Context) EnvironmentOutput
- func (o EnvironmentOutput) ToEnvironmentPtrOutput() EnvironmentPtrOutput
- func (o EnvironmentOutput) ToEnvironmentPtrOutputWithContext(ctx context.Context) EnvironmentPtrOutput
- type EnvironmentPtrInput
- type EnvironmentPtrOutput
- type EnvironmentState
- type EnvironmentVmImage
- type EnvironmentVmImageArgs
- func (EnvironmentVmImageArgs) ElementType() reflect.Type
- func (i EnvironmentVmImageArgs) ToEnvironmentVmImageOutput() EnvironmentVmImageOutput
- func (i EnvironmentVmImageArgs) ToEnvironmentVmImageOutputWithContext(ctx context.Context) EnvironmentVmImageOutput
- func (i EnvironmentVmImageArgs) ToEnvironmentVmImagePtrOutput() EnvironmentVmImagePtrOutput
- func (i EnvironmentVmImageArgs) ToEnvironmentVmImagePtrOutputWithContext(ctx context.Context) EnvironmentVmImagePtrOutput
- type EnvironmentVmImageInput
- type EnvironmentVmImageOutput
- func (EnvironmentVmImageOutput) ElementType() reflect.Type
- func (o EnvironmentVmImageOutput) ImageFamily() pulumi.StringPtrOutput
- func (o EnvironmentVmImageOutput) ImageName() pulumi.StringPtrOutput
- func (o EnvironmentVmImageOutput) Project() pulumi.StringOutput
- func (o EnvironmentVmImageOutput) ToEnvironmentVmImageOutput() EnvironmentVmImageOutput
- func (o EnvironmentVmImageOutput) ToEnvironmentVmImageOutputWithContext(ctx context.Context) EnvironmentVmImageOutput
- func (o EnvironmentVmImageOutput) ToEnvironmentVmImagePtrOutput() EnvironmentVmImagePtrOutput
- func (o EnvironmentVmImageOutput) ToEnvironmentVmImagePtrOutputWithContext(ctx context.Context) EnvironmentVmImagePtrOutput
- type EnvironmentVmImagePtrInput
- type EnvironmentVmImagePtrOutput
- func (o EnvironmentVmImagePtrOutput) Elem() EnvironmentVmImageOutput
- func (EnvironmentVmImagePtrOutput) ElementType() reflect.Type
- func (o EnvironmentVmImagePtrOutput) ImageFamily() pulumi.StringPtrOutput
- func (o EnvironmentVmImagePtrOutput) ImageName() pulumi.StringPtrOutput
- func (o EnvironmentVmImagePtrOutput) Project() pulumi.StringPtrOutput
- func (o EnvironmentVmImagePtrOutput) ToEnvironmentVmImagePtrOutput() EnvironmentVmImagePtrOutput
- func (o EnvironmentVmImagePtrOutput) ToEnvironmentVmImagePtrOutputWithContext(ctx context.Context) EnvironmentVmImagePtrOutput
- type Instance
- func (*Instance) ElementType() reflect.Type
- func (i *Instance) ToInstanceOutput() InstanceOutput
- func (i *Instance) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput
- func (i *Instance) ToInstancePtrOutput() InstancePtrOutput
- func (i *Instance) ToInstancePtrOutputWithContext(ctx context.Context) InstancePtrOutput
- type InstanceAcceleratorConfig
- type InstanceAcceleratorConfigArgs
- func (InstanceAcceleratorConfigArgs) ElementType() reflect.Type
- func (i InstanceAcceleratorConfigArgs) ToInstanceAcceleratorConfigOutput() InstanceAcceleratorConfigOutput
- func (i InstanceAcceleratorConfigArgs) ToInstanceAcceleratorConfigOutputWithContext(ctx context.Context) InstanceAcceleratorConfigOutput
- func (i InstanceAcceleratorConfigArgs) ToInstanceAcceleratorConfigPtrOutput() InstanceAcceleratorConfigPtrOutput
- func (i InstanceAcceleratorConfigArgs) ToInstanceAcceleratorConfigPtrOutputWithContext(ctx context.Context) InstanceAcceleratorConfigPtrOutput
- type InstanceAcceleratorConfigInput
- type InstanceAcceleratorConfigOutput
- func (o InstanceAcceleratorConfigOutput) CoreCount() pulumi.IntOutput
- func (InstanceAcceleratorConfigOutput) ElementType() reflect.Type
- func (o InstanceAcceleratorConfigOutput) ToInstanceAcceleratorConfigOutput() InstanceAcceleratorConfigOutput
- func (o InstanceAcceleratorConfigOutput) ToInstanceAcceleratorConfigOutputWithContext(ctx context.Context) InstanceAcceleratorConfigOutput
- func (o InstanceAcceleratorConfigOutput) ToInstanceAcceleratorConfigPtrOutput() InstanceAcceleratorConfigPtrOutput
- func (o InstanceAcceleratorConfigOutput) ToInstanceAcceleratorConfigPtrOutputWithContext(ctx context.Context) InstanceAcceleratorConfigPtrOutput
- func (o InstanceAcceleratorConfigOutput) Type() pulumi.StringOutput
- type InstanceAcceleratorConfigPtrInput
- type InstanceAcceleratorConfigPtrOutput
- func (o InstanceAcceleratorConfigPtrOutput) CoreCount() pulumi.IntPtrOutput
- func (o InstanceAcceleratorConfigPtrOutput) Elem() InstanceAcceleratorConfigOutput
- func (InstanceAcceleratorConfigPtrOutput) ElementType() reflect.Type
- func (o InstanceAcceleratorConfigPtrOutput) ToInstanceAcceleratorConfigPtrOutput() InstanceAcceleratorConfigPtrOutput
- func (o InstanceAcceleratorConfigPtrOutput) ToInstanceAcceleratorConfigPtrOutputWithContext(ctx context.Context) InstanceAcceleratorConfigPtrOutput
- func (o InstanceAcceleratorConfigPtrOutput) Type() pulumi.StringPtrOutput
- type InstanceArgs
- type InstanceArray
- type InstanceArrayInput
- type InstanceArrayOutput
- type InstanceContainerImage
- type InstanceContainerImageArgs
- func (InstanceContainerImageArgs) ElementType() reflect.Type
- func (i InstanceContainerImageArgs) ToInstanceContainerImageOutput() InstanceContainerImageOutput
- func (i InstanceContainerImageArgs) ToInstanceContainerImageOutputWithContext(ctx context.Context) InstanceContainerImageOutput
- func (i InstanceContainerImageArgs) ToInstanceContainerImagePtrOutput() InstanceContainerImagePtrOutput
- func (i InstanceContainerImageArgs) ToInstanceContainerImagePtrOutputWithContext(ctx context.Context) InstanceContainerImagePtrOutput
- type InstanceContainerImageInput
- type InstanceContainerImageOutput
- func (InstanceContainerImageOutput) ElementType() reflect.Type
- func (o InstanceContainerImageOutput) Repository() pulumi.StringOutput
- func (o InstanceContainerImageOutput) Tag() pulumi.StringPtrOutput
- func (o InstanceContainerImageOutput) ToInstanceContainerImageOutput() InstanceContainerImageOutput
- func (o InstanceContainerImageOutput) ToInstanceContainerImageOutputWithContext(ctx context.Context) InstanceContainerImageOutput
- func (o InstanceContainerImageOutput) ToInstanceContainerImagePtrOutput() InstanceContainerImagePtrOutput
- func (o InstanceContainerImageOutput) ToInstanceContainerImagePtrOutputWithContext(ctx context.Context) InstanceContainerImagePtrOutput
- type InstanceContainerImagePtrInput
- type InstanceContainerImagePtrOutput
- func (o InstanceContainerImagePtrOutput) Elem() InstanceContainerImageOutput
- func (InstanceContainerImagePtrOutput) ElementType() reflect.Type
- func (o InstanceContainerImagePtrOutput) Repository() pulumi.StringPtrOutput
- func (o InstanceContainerImagePtrOutput) Tag() pulumi.StringPtrOutput
- func (o InstanceContainerImagePtrOutput) ToInstanceContainerImagePtrOutput() InstanceContainerImagePtrOutput
- func (o InstanceContainerImagePtrOutput) ToInstanceContainerImagePtrOutputWithContext(ctx context.Context) InstanceContainerImagePtrOutput
- type InstanceIamBinding
- func (*InstanceIamBinding) ElementType() reflect.Type
- func (i *InstanceIamBinding) ToInstanceIamBindingOutput() InstanceIamBindingOutput
- func (i *InstanceIamBinding) ToInstanceIamBindingOutputWithContext(ctx context.Context) InstanceIamBindingOutput
- func (i *InstanceIamBinding) ToInstanceIamBindingPtrOutput() InstanceIamBindingPtrOutput
- func (i *InstanceIamBinding) ToInstanceIamBindingPtrOutputWithContext(ctx context.Context) InstanceIamBindingPtrOutput
- type InstanceIamBindingArgs
- type InstanceIamBindingArray
- type InstanceIamBindingArrayInput
- type InstanceIamBindingArrayOutput
- func (InstanceIamBindingArrayOutput) ElementType() reflect.Type
- func (o InstanceIamBindingArrayOutput) Index(i pulumi.IntInput) InstanceIamBindingOutput
- func (o InstanceIamBindingArrayOutput) ToInstanceIamBindingArrayOutput() InstanceIamBindingArrayOutput
- func (o InstanceIamBindingArrayOutput) ToInstanceIamBindingArrayOutputWithContext(ctx context.Context) InstanceIamBindingArrayOutput
- type InstanceIamBindingCondition
- type InstanceIamBindingConditionArgs
- func (InstanceIamBindingConditionArgs) ElementType() reflect.Type
- func (i InstanceIamBindingConditionArgs) ToInstanceIamBindingConditionOutput() InstanceIamBindingConditionOutput
- func (i InstanceIamBindingConditionArgs) ToInstanceIamBindingConditionOutputWithContext(ctx context.Context) InstanceIamBindingConditionOutput
- func (i InstanceIamBindingConditionArgs) ToInstanceIamBindingConditionPtrOutput() InstanceIamBindingConditionPtrOutput
- func (i InstanceIamBindingConditionArgs) ToInstanceIamBindingConditionPtrOutputWithContext(ctx context.Context) InstanceIamBindingConditionPtrOutput
- type InstanceIamBindingConditionInput
- type InstanceIamBindingConditionOutput
- func (o InstanceIamBindingConditionOutput) Description() pulumi.StringPtrOutput
- func (InstanceIamBindingConditionOutput) ElementType() reflect.Type
- func (o InstanceIamBindingConditionOutput) Expression() pulumi.StringOutput
- func (o InstanceIamBindingConditionOutput) Title() pulumi.StringOutput
- func (o InstanceIamBindingConditionOutput) ToInstanceIamBindingConditionOutput() InstanceIamBindingConditionOutput
- func (o InstanceIamBindingConditionOutput) ToInstanceIamBindingConditionOutputWithContext(ctx context.Context) InstanceIamBindingConditionOutput
- func (o InstanceIamBindingConditionOutput) ToInstanceIamBindingConditionPtrOutput() InstanceIamBindingConditionPtrOutput
- func (o InstanceIamBindingConditionOutput) ToInstanceIamBindingConditionPtrOutputWithContext(ctx context.Context) InstanceIamBindingConditionPtrOutput
- type InstanceIamBindingConditionPtrInput
- type InstanceIamBindingConditionPtrOutput
- func (o InstanceIamBindingConditionPtrOutput) Description() pulumi.StringPtrOutput
- func (o InstanceIamBindingConditionPtrOutput) Elem() InstanceIamBindingConditionOutput
- func (InstanceIamBindingConditionPtrOutput) ElementType() reflect.Type
- func (o InstanceIamBindingConditionPtrOutput) Expression() pulumi.StringPtrOutput
- func (o InstanceIamBindingConditionPtrOutput) Title() pulumi.StringPtrOutput
- func (o InstanceIamBindingConditionPtrOutput) ToInstanceIamBindingConditionPtrOutput() InstanceIamBindingConditionPtrOutput
- func (o InstanceIamBindingConditionPtrOutput) ToInstanceIamBindingConditionPtrOutputWithContext(ctx context.Context) InstanceIamBindingConditionPtrOutput
- type InstanceIamBindingInput
- type InstanceIamBindingMap
- type InstanceIamBindingMapInput
- type InstanceIamBindingMapOutput
- func (InstanceIamBindingMapOutput) ElementType() reflect.Type
- func (o InstanceIamBindingMapOutput) MapIndex(k pulumi.StringInput) InstanceIamBindingOutput
- func (o InstanceIamBindingMapOutput) ToInstanceIamBindingMapOutput() InstanceIamBindingMapOutput
- func (o InstanceIamBindingMapOutput) ToInstanceIamBindingMapOutputWithContext(ctx context.Context) InstanceIamBindingMapOutput
- type InstanceIamBindingOutput
- func (InstanceIamBindingOutput) ElementType() reflect.Type
- func (o InstanceIamBindingOutput) ToInstanceIamBindingOutput() InstanceIamBindingOutput
- func (o InstanceIamBindingOutput) ToInstanceIamBindingOutputWithContext(ctx context.Context) InstanceIamBindingOutput
- func (o InstanceIamBindingOutput) ToInstanceIamBindingPtrOutput() InstanceIamBindingPtrOutput
- func (o InstanceIamBindingOutput) ToInstanceIamBindingPtrOutputWithContext(ctx context.Context) InstanceIamBindingPtrOutput
- type InstanceIamBindingPtrInput
- type InstanceIamBindingPtrOutput
- type InstanceIamBindingState
- type InstanceIamMember
- func (*InstanceIamMember) ElementType() reflect.Type
- func (i *InstanceIamMember) ToInstanceIamMemberOutput() InstanceIamMemberOutput
- func (i *InstanceIamMember) ToInstanceIamMemberOutputWithContext(ctx context.Context) InstanceIamMemberOutput
- func (i *InstanceIamMember) ToInstanceIamMemberPtrOutput() InstanceIamMemberPtrOutput
- func (i *InstanceIamMember) ToInstanceIamMemberPtrOutputWithContext(ctx context.Context) InstanceIamMemberPtrOutput
- type InstanceIamMemberArgs
- type InstanceIamMemberArray
- type InstanceIamMemberArrayInput
- type InstanceIamMemberArrayOutput
- func (InstanceIamMemberArrayOutput) ElementType() reflect.Type
- func (o InstanceIamMemberArrayOutput) Index(i pulumi.IntInput) InstanceIamMemberOutput
- func (o InstanceIamMemberArrayOutput) ToInstanceIamMemberArrayOutput() InstanceIamMemberArrayOutput
- func (o InstanceIamMemberArrayOutput) ToInstanceIamMemberArrayOutputWithContext(ctx context.Context) InstanceIamMemberArrayOutput
- type InstanceIamMemberCondition
- type InstanceIamMemberConditionArgs
- func (InstanceIamMemberConditionArgs) ElementType() reflect.Type
- func (i InstanceIamMemberConditionArgs) ToInstanceIamMemberConditionOutput() InstanceIamMemberConditionOutput
- func (i InstanceIamMemberConditionArgs) ToInstanceIamMemberConditionOutputWithContext(ctx context.Context) InstanceIamMemberConditionOutput
- func (i InstanceIamMemberConditionArgs) ToInstanceIamMemberConditionPtrOutput() InstanceIamMemberConditionPtrOutput
- func (i InstanceIamMemberConditionArgs) ToInstanceIamMemberConditionPtrOutputWithContext(ctx context.Context) InstanceIamMemberConditionPtrOutput
- type InstanceIamMemberConditionInput
- type InstanceIamMemberConditionOutput
- func (o InstanceIamMemberConditionOutput) Description() pulumi.StringPtrOutput
- func (InstanceIamMemberConditionOutput) ElementType() reflect.Type
- func (o InstanceIamMemberConditionOutput) Expression() pulumi.StringOutput
- func (o InstanceIamMemberConditionOutput) Title() pulumi.StringOutput
- func (o InstanceIamMemberConditionOutput) ToInstanceIamMemberConditionOutput() InstanceIamMemberConditionOutput
- func (o InstanceIamMemberConditionOutput) ToInstanceIamMemberConditionOutputWithContext(ctx context.Context) InstanceIamMemberConditionOutput
- func (o InstanceIamMemberConditionOutput) ToInstanceIamMemberConditionPtrOutput() InstanceIamMemberConditionPtrOutput
- func (o InstanceIamMemberConditionOutput) ToInstanceIamMemberConditionPtrOutputWithContext(ctx context.Context) InstanceIamMemberConditionPtrOutput
- type InstanceIamMemberConditionPtrInput
- type InstanceIamMemberConditionPtrOutput
- func (o InstanceIamMemberConditionPtrOutput) Description() pulumi.StringPtrOutput
- func (o InstanceIamMemberConditionPtrOutput) Elem() InstanceIamMemberConditionOutput
- func (InstanceIamMemberConditionPtrOutput) ElementType() reflect.Type
- func (o InstanceIamMemberConditionPtrOutput) Expression() pulumi.StringPtrOutput
- func (o InstanceIamMemberConditionPtrOutput) Title() pulumi.StringPtrOutput
- func (o InstanceIamMemberConditionPtrOutput) ToInstanceIamMemberConditionPtrOutput() InstanceIamMemberConditionPtrOutput
- func (o InstanceIamMemberConditionPtrOutput) ToInstanceIamMemberConditionPtrOutputWithContext(ctx context.Context) InstanceIamMemberConditionPtrOutput
- type InstanceIamMemberInput
- type InstanceIamMemberMap
- type InstanceIamMemberMapInput
- type InstanceIamMemberMapOutput
- func (InstanceIamMemberMapOutput) ElementType() reflect.Type
- func (o InstanceIamMemberMapOutput) MapIndex(k pulumi.StringInput) InstanceIamMemberOutput
- func (o InstanceIamMemberMapOutput) ToInstanceIamMemberMapOutput() InstanceIamMemberMapOutput
- func (o InstanceIamMemberMapOutput) ToInstanceIamMemberMapOutputWithContext(ctx context.Context) InstanceIamMemberMapOutput
- type InstanceIamMemberOutput
- func (InstanceIamMemberOutput) ElementType() reflect.Type
- func (o InstanceIamMemberOutput) ToInstanceIamMemberOutput() InstanceIamMemberOutput
- func (o InstanceIamMemberOutput) ToInstanceIamMemberOutputWithContext(ctx context.Context) InstanceIamMemberOutput
- func (o InstanceIamMemberOutput) ToInstanceIamMemberPtrOutput() InstanceIamMemberPtrOutput
- func (o InstanceIamMemberOutput) ToInstanceIamMemberPtrOutputWithContext(ctx context.Context) InstanceIamMemberPtrOutput
- type InstanceIamMemberPtrInput
- type InstanceIamMemberPtrOutput
- type InstanceIamMemberState
- type InstanceIamPolicy
- func (*InstanceIamPolicy) ElementType() reflect.Type
- func (i *InstanceIamPolicy) ToInstanceIamPolicyOutput() InstanceIamPolicyOutput
- func (i *InstanceIamPolicy) ToInstanceIamPolicyOutputWithContext(ctx context.Context) InstanceIamPolicyOutput
- func (i *InstanceIamPolicy) ToInstanceIamPolicyPtrOutput() InstanceIamPolicyPtrOutput
- func (i *InstanceIamPolicy) ToInstanceIamPolicyPtrOutputWithContext(ctx context.Context) InstanceIamPolicyPtrOutput
- type InstanceIamPolicyArgs
- type InstanceIamPolicyArray
- type InstanceIamPolicyArrayInput
- type InstanceIamPolicyArrayOutput
- func (InstanceIamPolicyArrayOutput) ElementType() reflect.Type
- func (o InstanceIamPolicyArrayOutput) Index(i pulumi.IntInput) InstanceIamPolicyOutput
- func (o InstanceIamPolicyArrayOutput) ToInstanceIamPolicyArrayOutput() InstanceIamPolicyArrayOutput
- func (o InstanceIamPolicyArrayOutput) ToInstanceIamPolicyArrayOutputWithContext(ctx context.Context) InstanceIamPolicyArrayOutput
- type InstanceIamPolicyInput
- type InstanceIamPolicyMap
- type InstanceIamPolicyMapInput
- type InstanceIamPolicyMapOutput
- func (InstanceIamPolicyMapOutput) ElementType() reflect.Type
- func (o InstanceIamPolicyMapOutput) MapIndex(k pulumi.StringInput) InstanceIamPolicyOutput
- func (o InstanceIamPolicyMapOutput) ToInstanceIamPolicyMapOutput() InstanceIamPolicyMapOutput
- func (o InstanceIamPolicyMapOutput) ToInstanceIamPolicyMapOutputWithContext(ctx context.Context) InstanceIamPolicyMapOutput
- type InstanceIamPolicyOutput
- func (InstanceIamPolicyOutput) ElementType() reflect.Type
- func (o InstanceIamPolicyOutput) ToInstanceIamPolicyOutput() InstanceIamPolicyOutput
- func (o InstanceIamPolicyOutput) ToInstanceIamPolicyOutputWithContext(ctx context.Context) InstanceIamPolicyOutput
- func (o InstanceIamPolicyOutput) ToInstanceIamPolicyPtrOutput() InstanceIamPolicyPtrOutput
- func (o InstanceIamPolicyOutput) ToInstanceIamPolicyPtrOutputWithContext(ctx context.Context) InstanceIamPolicyPtrOutput
- type InstanceIamPolicyPtrInput
- type InstanceIamPolicyPtrOutput
- type InstanceIamPolicyState
- type InstanceInput
- type InstanceMap
- type InstanceMapInput
- type InstanceMapOutput
- type InstanceOutput
- func (InstanceOutput) ElementType() reflect.Type
- func (o InstanceOutput) ToInstanceOutput() InstanceOutput
- func (o InstanceOutput) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput
- func (o InstanceOutput) ToInstancePtrOutput() InstancePtrOutput
- func (o InstanceOutput) ToInstancePtrOutputWithContext(ctx context.Context) InstancePtrOutput
- type InstancePtrInput
- type InstancePtrOutput
- type InstanceShieldedInstanceConfig
- type InstanceShieldedInstanceConfigArgs
- func (InstanceShieldedInstanceConfigArgs) ElementType() reflect.Type
- func (i InstanceShieldedInstanceConfigArgs) ToInstanceShieldedInstanceConfigOutput() InstanceShieldedInstanceConfigOutput
- func (i InstanceShieldedInstanceConfigArgs) ToInstanceShieldedInstanceConfigOutputWithContext(ctx context.Context) InstanceShieldedInstanceConfigOutput
- func (i InstanceShieldedInstanceConfigArgs) ToInstanceShieldedInstanceConfigPtrOutput() InstanceShieldedInstanceConfigPtrOutput
- func (i InstanceShieldedInstanceConfigArgs) ToInstanceShieldedInstanceConfigPtrOutputWithContext(ctx context.Context) InstanceShieldedInstanceConfigPtrOutput
- type InstanceShieldedInstanceConfigInput
- type InstanceShieldedInstanceConfigOutput
- func (InstanceShieldedInstanceConfigOutput) ElementType() reflect.Type
- func (o InstanceShieldedInstanceConfigOutput) EnableIntegrityMonitoring() pulumi.BoolPtrOutput
- func (o InstanceShieldedInstanceConfigOutput) EnableSecureBoot() pulumi.BoolPtrOutput
- func (o InstanceShieldedInstanceConfigOutput) EnableVtpm() pulumi.BoolPtrOutput
- func (o InstanceShieldedInstanceConfigOutput) ToInstanceShieldedInstanceConfigOutput() InstanceShieldedInstanceConfigOutput
- func (o InstanceShieldedInstanceConfigOutput) ToInstanceShieldedInstanceConfigOutputWithContext(ctx context.Context) InstanceShieldedInstanceConfigOutput
- func (o InstanceShieldedInstanceConfigOutput) ToInstanceShieldedInstanceConfigPtrOutput() InstanceShieldedInstanceConfigPtrOutput
- func (o InstanceShieldedInstanceConfigOutput) ToInstanceShieldedInstanceConfigPtrOutputWithContext(ctx context.Context) InstanceShieldedInstanceConfigPtrOutput
- type InstanceShieldedInstanceConfigPtrInput
- type InstanceShieldedInstanceConfigPtrOutput
- func (o InstanceShieldedInstanceConfigPtrOutput) Elem() InstanceShieldedInstanceConfigOutput
- func (InstanceShieldedInstanceConfigPtrOutput) ElementType() reflect.Type
- func (o InstanceShieldedInstanceConfigPtrOutput) EnableIntegrityMonitoring() pulumi.BoolPtrOutput
- func (o InstanceShieldedInstanceConfigPtrOutput) EnableSecureBoot() pulumi.BoolPtrOutput
- func (o InstanceShieldedInstanceConfigPtrOutput) EnableVtpm() pulumi.BoolPtrOutput
- func (o InstanceShieldedInstanceConfigPtrOutput) ToInstanceShieldedInstanceConfigPtrOutput() InstanceShieldedInstanceConfigPtrOutput
- func (o InstanceShieldedInstanceConfigPtrOutput) ToInstanceShieldedInstanceConfigPtrOutputWithContext(ctx context.Context) InstanceShieldedInstanceConfigPtrOutput
- type InstanceState
- type InstanceVmImage
- type InstanceVmImageArgs
- func (InstanceVmImageArgs) ElementType() reflect.Type
- func (i InstanceVmImageArgs) ToInstanceVmImageOutput() InstanceVmImageOutput
- func (i InstanceVmImageArgs) ToInstanceVmImageOutputWithContext(ctx context.Context) InstanceVmImageOutput
- func (i InstanceVmImageArgs) ToInstanceVmImagePtrOutput() InstanceVmImagePtrOutput
- func (i InstanceVmImageArgs) ToInstanceVmImagePtrOutputWithContext(ctx context.Context) InstanceVmImagePtrOutput
- type InstanceVmImageInput
- type InstanceVmImageOutput
- func (InstanceVmImageOutput) ElementType() reflect.Type
- func (o InstanceVmImageOutput) ImageFamily() pulumi.StringPtrOutput
- func (o InstanceVmImageOutput) ImageName() pulumi.StringPtrOutput
- func (o InstanceVmImageOutput) Project() pulumi.StringOutput
- func (o InstanceVmImageOutput) ToInstanceVmImageOutput() InstanceVmImageOutput
- func (o InstanceVmImageOutput) ToInstanceVmImageOutputWithContext(ctx context.Context) InstanceVmImageOutput
- func (o InstanceVmImageOutput) ToInstanceVmImagePtrOutput() InstanceVmImagePtrOutput
- func (o InstanceVmImageOutput) ToInstanceVmImagePtrOutputWithContext(ctx context.Context) InstanceVmImagePtrOutput
- type InstanceVmImagePtrInput
- type InstanceVmImagePtrOutput
- func (o InstanceVmImagePtrOutput) Elem() InstanceVmImageOutput
- func (InstanceVmImagePtrOutput) ElementType() reflect.Type
- func (o InstanceVmImagePtrOutput) ImageFamily() pulumi.StringPtrOutput
- func (o InstanceVmImagePtrOutput) ImageName() pulumi.StringPtrOutput
- func (o InstanceVmImagePtrOutput) Project() pulumi.StringPtrOutput
- func (o InstanceVmImagePtrOutput) ToInstanceVmImagePtrOutput() InstanceVmImagePtrOutput
- func (o InstanceVmImagePtrOutput) ToInstanceVmImagePtrOutputWithContext(ctx context.Context) InstanceVmImagePtrOutput
- type Location
- func (*Location) ElementType() reflect.Type
- func (i *Location) ToLocationOutput() LocationOutput
- func (i *Location) ToLocationOutputWithContext(ctx context.Context) LocationOutput
- func (i *Location) ToLocationPtrOutput() LocationPtrOutput
- func (i *Location) ToLocationPtrOutputWithContext(ctx context.Context) LocationPtrOutput
- type LocationArgs
- type LocationArray
- type LocationArrayInput
- type LocationArrayOutput
- type LocationInput
- type LocationMap
- type LocationMapInput
- type LocationMapOutput
- type LocationOutput
- func (LocationOutput) ElementType() reflect.Type
- func (o LocationOutput) ToLocationOutput() LocationOutput
- func (o LocationOutput) ToLocationOutputWithContext(ctx context.Context) LocationOutput
- func (o LocationOutput) ToLocationPtrOutput() LocationPtrOutput
- func (o LocationOutput) ToLocationPtrOutputWithContext(ctx context.Context) LocationPtrOutput
- type LocationPtrInput
- type LocationPtrOutput
- type LocationState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Environment ¶
type Environment struct { pulumi.CustomResourceState // Use a container image to start the notebook instance. // Structure is documented below. ContainerImage EnvironmentContainerImagePtrOutput `pulumi:"containerImage"` // Instance creation time CreateTime pulumi.StringOutput `pulumi:"createTime"` // A brief description of this environment. Description pulumi.StringPtrOutput `pulumi:"description"` // Display name of this environment for the UI. DisplayName pulumi.StringPtrOutput `pulumi:"displayName"` // A reference to the zone where the machine resides. Location pulumi.StringOutput `pulumi:"location"` // The name specified for the Environment instance. // Format: projects/{project_id}/locations/{location}/environments/{environmentId} Name pulumi.StringOutput `pulumi:"name"` // Path to a Bash script that automatically runs after a notebook instance fully boots up. // The path must be a URL or Cloud Storage path. Example: "gs://path-to-file/file-name" PostStartupScript pulumi.StringPtrOutput `pulumi:"postStartupScript"` // The name of the Google Cloud project that this VM image belongs to. // Format: projects/{project_id} Project pulumi.StringOutput `pulumi:"project"` // Use a Compute Engine VM image to start the notebook instance. // Structure is documented below. VmImage EnvironmentVmImagePtrOutput `pulumi:"vmImage"` }
A Cloud AI Platform Notebook environment.
To get more information about Environment, see:
* [API documentation](https://cloud.google.com/ai-platform/notebooks/docs/reference/rest) * How-to Guides
- [Official Documentation](https://cloud.google.com/ai-platform-notebooks)
## Example Usage ### Notebook Environment Basic
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/notebooks" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := notebooks.NewEnvironment(ctx, "environment", ¬ebooks.EnvironmentArgs{ ContainerImage: ¬ebooks.EnvironmentContainerImageArgs{ Repository: pulumi.String("gcr.io/deeplearning-platform-release/base-cpu"), }, Location: pulumi.String("us-west1-a"), }) if err != nil { return err } return nil }) }
```
## Import
Environment can be imported using any of these accepted formats ¶
```sh
$ pulumi import gcp:notebooks/environment:Environment default projects/{{project}}/locations/{{location}}/environments/{{name}}
```
```sh
$ pulumi import gcp:notebooks/environment:Environment default {{project}}/{{location}}/{{name}}
```
```sh
$ pulumi import gcp:notebooks/environment:Environment default {{location}}/{{name}}
```
func GetEnvironment ¶
func GetEnvironment(ctx *pulumi.Context, name string, id pulumi.IDInput, state *EnvironmentState, opts ...pulumi.ResourceOption) (*Environment, error)
GetEnvironment gets an existing Environment 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 NewEnvironment ¶
func NewEnvironment(ctx *pulumi.Context, name string, args *EnvironmentArgs, opts ...pulumi.ResourceOption) (*Environment, error)
NewEnvironment registers a new resource with the given unique name, arguments, and options.
func (*Environment) ElementType ¶
func (*Environment) ElementType() reflect.Type
func (*Environment) ToEnvironmentOutput ¶
func (i *Environment) ToEnvironmentOutput() EnvironmentOutput
func (*Environment) ToEnvironmentOutputWithContext ¶
func (i *Environment) ToEnvironmentOutputWithContext(ctx context.Context) EnvironmentOutput
func (*Environment) ToEnvironmentPtrOutput ¶
func (i *Environment) ToEnvironmentPtrOutput() EnvironmentPtrOutput
func (*Environment) ToEnvironmentPtrOutputWithContext ¶
func (i *Environment) ToEnvironmentPtrOutputWithContext(ctx context.Context) EnvironmentPtrOutput
type EnvironmentArgs ¶
type EnvironmentArgs struct { // Use a container image to start the notebook instance. // Structure is documented below. ContainerImage EnvironmentContainerImagePtrInput // A brief description of this environment. Description pulumi.StringPtrInput // Display name of this environment for the UI. DisplayName pulumi.StringPtrInput // A reference to the zone where the machine resides. Location pulumi.StringInput // The name specified for the Environment instance. // Format: projects/{project_id}/locations/{location}/environments/{environmentId} Name pulumi.StringPtrInput // Path to a Bash script that automatically runs after a notebook instance fully boots up. // The path must be a URL or Cloud Storage path. Example: "gs://path-to-file/file-name" PostStartupScript pulumi.StringPtrInput // The name of the Google Cloud project that this VM image belongs to. // Format: projects/{project_id} Project pulumi.StringPtrInput // Use a Compute Engine VM image to start the notebook instance. // Structure is documented below. VmImage EnvironmentVmImagePtrInput }
The set of arguments for constructing a Environment resource.
func (EnvironmentArgs) ElementType ¶
func (EnvironmentArgs) ElementType() reflect.Type
type EnvironmentArray ¶
type EnvironmentArray []EnvironmentInput
func (EnvironmentArray) ElementType ¶
func (EnvironmentArray) ElementType() reflect.Type
func (EnvironmentArray) ToEnvironmentArrayOutput ¶
func (i EnvironmentArray) ToEnvironmentArrayOutput() EnvironmentArrayOutput
func (EnvironmentArray) ToEnvironmentArrayOutputWithContext ¶
func (i EnvironmentArray) ToEnvironmentArrayOutputWithContext(ctx context.Context) EnvironmentArrayOutput
type EnvironmentArrayInput ¶
type EnvironmentArrayInput interface { pulumi.Input ToEnvironmentArrayOutput() EnvironmentArrayOutput ToEnvironmentArrayOutputWithContext(context.Context) EnvironmentArrayOutput }
EnvironmentArrayInput is an input type that accepts EnvironmentArray and EnvironmentArrayOutput values. You can construct a concrete instance of `EnvironmentArrayInput` via:
EnvironmentArray{ EnvironmentArgs{...} }
type EnvironmentArrayOutput ¶
type EnvironmentArrayOutput struct{ *pulumi.OutputState }
func (EnvironmentArrayOutput) ElementType ¶
func (EnvironmentArrayOutput) ElementType() reflect.Type
func (EnvironmentArrayOutput) Index ¶
func (o EnvironmentArrayOutput) Index(i pulumi.IntInput) EnvironmentOutput
func (EnvironmentArrayOutput) ToEnvironmentArrayOutput ¶
func (o EnvironmentArrayOutput) ToEnvironmentArrayOutput() EnvironmentArrayOutput
func (EnvironmentArrayOutput) ToEnvironmentArrayOutputWithContext ¶
func (o EnvironmentArrayOutput) ToEnvironmentArrayOutputWithContext(ctx context.Context) EnvironmentArrayOutput
type EnvironmentContainerImageArgs ¶
type EnvironmentContainerImageArgs struct { // The path to the container image repository. // For example: gcr.io/{project_id}/{imageName} Repository pulumi.StringInput `pulumi:"repository"` // The tag of the container image. If not specified, this defaults to the latest tag. Tag pulumi.StringPtrInput `pulumi:"tag"` }
func (EnvironmentContainerImageArgs) ElementType ¶
func (EnvironmentContainerImageArgs) ElementType() reflect.Type
func (EnvironmentContainerImageArgs) ToEnvironmentContainerImageOutput ¶
func (i EnvironmentContainerImageArgs) ToEnvironmentContainerImageOutput() EnvironmentContainerImageOutput
func (EnvironmentContainerImageArgs) ToEnvironmentContainerImageOutputWithContext ¶
func (i EnvironmentContainerImageArgs) ToEnvironmentContainerImageOutputWithContext(ctx context.Context) EnvironmentContainerImageOutput
func (EnvironmentContainerImageArgs) ToEnvironmentContainerImagePtrOutput ¶
func (i EnvironmentContainerImageArgs) ToEnvironmentContainerImagePtrOutput() EnvironmentContainerImagePtrOutput
func (EnvironmentContainerImageArgs) ToEnvironmentContainerImagePtrOutputWithContext ¶
func (i EnvironmentContainerImageArgs) ToEnvironmentContainerImagePtrOutputWithContext(ctx context.Context) EnvironmentContainerImagePtrOutput
type EnvironmentContainerImageInput ¶
type EnvironmentContainerImageInput interface { pulumi.Input ToEnvironmentContainerImageOutput() EnvironmentContainerImageOutput ToEnvironmentContainerImageOutputWithContext(context.Context) EnvironmentContainerImageOutput }
EnvironmentContainerImageInput is an input type that accepts EnvironmentContainerImageArgs and EnvironmentContainerImageOutput values. You can construct a concrete instance of `EnvironmentContainerImageInput` via:
EnvironmentContainerImageArgs{...}
type EnvironmentContainerImageOutput ¶
type EnvironmentContainerImageOutput struct{ *pulumi.OutputState }
func (EnvironmentContainerImageOutput) ElementType ¶
func (EnvironmentContainerImageOutput) ElementType() reflect.Type
func (EnvironmentContainerImageOutput) Repository ¶
func (o EnvironmentContainerImageOutput) Repository() pulumi.StringOutput
The path to the container image repository. For example: gcr.io/{project_id}/{imageName}
func (EnvironmentContainerImageOutput) Tag ¶
func (o EnvironmentContainerImageOutput) Tag() pulumi.StringPtrOutput
The tag of the container image. If not specified, this defaults to the latest tag.
func (EnvironmentContainerImageOutput) ToEnvironmentContainerImageOutput ¶
func (o EnvironmentContainerImageOutput) ToEnvironmentContainerImageOutput() EnvironmentContainerImageOutput
func (EnvironmentContainerImageOutput) ToEnvironmentContainerImageOutputWithContext ¶
func (o EnvironmentContainerImageOutput) ToEnvironmentContainerImageOutputWithContext(ctx context.Context) EnvironmentContainerImageOutput
func (EnvironmentContainerImageOutput) ToEnvironmentContainerImagePtrOutput ¶
func (o EnvironmentContainerImageOutput) ToEnvironmentContainerImagePtrOutput() EnvironmentContainerImagePtrOutput
func (EnvironmentContainerImageOutput) ToEnvironmentContainerImagePtrOutputWithContext ¶
func (o EnvironmentContainerImageOutput) ToEnvironmentContainerImagePtrOutputWithContext(ctx context.Context) EnvironmentContainerImagePtrOutput
type EnvironmentContainerImagePtrInput ¶
type EnvironmentContainerImagePtrInput interface { pulumi.Input ToEnvironmentContainerImagePtrOutput() EnvironmentContainerImagePtrOutput ToEnvironmentContainerImagePtrOutputWithContext(context.Context) EnvironmentContainerImagePtrOutput }
EnvironmentContainerImagePtrInput is an input type that accepts EnvironmentContainerImageArgs, EnvironmentContainerImagePtr and EnvironmentContainerImagePtrOutput values. You can construct a concrete instance of `EnvironmentContainerImagePtrInput` via:
EnvironmentContainerImageArgs{...} or: nil
func EnvironmentContainerImagePtr ¶
func EnvironmentContainerImagePtr(v *EnvironmentContainerImageArgs) EnvironmentContainerImagePtrInput
type EnvironmentContainerImagePtrOutput ¶
type EnvironmentContainerImagePtrOutput struct{ *pulumi.OutputState }
func (EnvironmentContainerImagePtrOutput) Elem ¶
func (o EnvironmentContainerImagePtrOutput) Elem() EnvironmentContainerImageOutput
func (EnvironmentContainerImagePtrOutput) ElementType ¶
func (EnvironmentContainerImagePtrOutput) ElementType() reflect.Type
func (EnvironmentContainerImagePtrOutput) Repository ¶
func (o EnvironmentContainerImagePtrOutput) Repository() pulumi.StringPtrOutput
The path to the container image repository. For example: gcr.io/{project_id}/{imageName}
func (EnvironmentContainerImagePtrOutput) Tag ¶
func (o EnvironmentContainerImagePtrOutput) Tag() pulumi.StringPtrOutput
The tag of the container image. If not specified, this defaults to the latest tag.
func (EnvironmentContainerImagePtrOutput) ToEnvironmentContainerImagePtrOutput ¶
func (o EnvironmentContainerImagePtrOutput) ToEnvironmentContainerImagePtrOutput() EnvironmentContainerImagePtrOutput
func (EnvironmentContainerImagePtrOutput) ToEnvironmentContainerImagePtrOutputWithContext ¶
func (o EnvironmentContainerImagePtrOutput) ToEnvironmentContainerImagePtrOutputWithContext(ctx context.Context) EnvironmentContainerImagePtrOutput
type EnvironmentInput ¶
type EnvironmentInput interface { pulumi.Input ToEnvironmentOutput() EnvironmentOutput ToEnvironmentOutputWithContext(ctx context.Context) EnvironmentOutput }
type EnvironmentMap ¶
type EnvironmentMap map[string]EnvironmentInput
func (EnvironmentMap) ElementType ¶
func (EnvironmentMap) ElementType() reflect.Type
func (EnvironmentMap) ToEnvironmentMapOutput ¶
func (i EnvironmentMap) ToEnvironmentMapOutput() EnvironmentMapOutput
func (EnvironmentMap) ToEnvironmentMapOutputWithContext ¶
func (i EnvironmentMap) ToEnvironmentMapOutputWithContext(ctx context.Context) EnvironmentMapOutput
type EnvironmentMapInput ¶
type EnvironmentMapInput interface { pulumi.Input ToEnvironmentMapOutput() EnvironmentMapOutput ToEnvironmentMapOutputWithContext(context.Context) EnvironmentMapOutput }
EnvironmentMapInput is an input type that accepts EnvironmentMap and EnvironmentMapOutput values. You can construct a concrete instance of `EnvironmentMapInput` via:
EnvironmentMap{ "key": EnvironmentArgs{...} }
type EnvironmentMapOutput ¶
type EnvironmentMapOutput struct{ *pulumi.OutputState }
func (EnvironmentMapOutput) ElementType ¶
func (EnvironmentMapOutput) ElementType() reflect.Type
func (EnvironmentMapOutput) MapIndex ¶
func (o EnvironmentMapOutput) MapIndex(k pulumi.StringInput) EnvironmentOutput
func (EnvironmentMapOutput) ToEnvironmentMapOutput ¶
func (o EnvironmentMapOutput) ToEnvironmentMapOutput() EnvironmentMapOutput
func (EnvironmentMapOutput) ToEnvironmentMapOutputWithContext ¶
func (o EnvironmentMapOutput) ToEnvironmentMapOutputWithContext(ctx context.Context) EnvironmentMapOutput
type EnvironmentOutput ¶
type EnvironmentOutput struct {
*pulumi.OutputState
}
func (EnvironmentOutput) ElementType ¶
func (EnvironmentOutput) ElementType() reflect.Type
func (EnvironmentOutput) ToEnvironmentOutput ¶
func (o EnvironmentOutput) ToEnvironmentOutput() EnvironmentOutput
func (EnvironmentOutput) ToEnvironmentOutputWithContext ¶
func (o EnvironmentOutput) ToEnvironmentOutputWithContext(ctx context.Context) EnvironmentOutput
func (EnvironmentOutput) ToEnvironmentPtrOutput ¶
func (o EnvironmentOutput) ToEnvironmentPtrOutput() EnvironmentPtrOutput
func (EnvironmentOutput) ToEnvironmentPtrOutputWithContext ¶
func (o EnvironmentOutput) ToEnvironmentPtrOutputWithContext(ctx context.Context) EnvironmentPtrOutput
type EnvironmentPtrInput ¶
type EnvironmentPtrInput interface { pulumi.Input ToEnvironmentPtrOutput() EnvironmentPtrOutput ToEnvironmentPtrOutputWithContext(ctx context.Context) EnvironmentPtrOutput }
type EnvironmentPtrOutput ¶
type EnvironmentPtrOutput struct {
*pulumi.OutputState
}
func (EnvironmentPtrOutput) ElementType ¶
func (EnvironmentPtrOutput) ElementType() reflect.Type
func (EnvironmentPtrOutput) ToEnvironmentPtrOutput ¶
func (o EnvironmentPtrOutput) ToEnvironmentPtrOutput() EnvironmentPtrOutput
func (EnvironmentPtrOutput) ToEnvironmentPtrOutputWithContext ¶
func (o EnvironmentPtrOutput) ToEnvironmentPtrOutputWithContext(ctx context.Context) EnvironmentPtrOutput
type EnvironmentState ¶
type EnvironmentState struct { // Use a container image to start the notebook instance. // Structure is documented below. ContainerImage EnvironmentContainerImagePtrInput // Instance creation time CreateTime pulumi.StringPtrInput // A brief description of this environment. Description pulumi.StringPtrInput // Display name of this environment for the UI. DisplayName pulumi.StringPtrInput // A reference to the zone where the machine resides. Location pulumi.StringPtrInput // The name specified for the Environment instance. // Format: projects/{project_id}/locations/{location}/environments/{environmentId} Name pulumi.StringPtrInput // Path to a Bash script that automatically runs after a notebook instance fully boots up. // The path must be a URL or Cloud Storage path. Example: "gs://path-to-file/file-name" PostStartupScript pulumi.StringPtrInput // The name of the Google Cloud project that this VM image belongs to. // Format: projects/{project_id} Project pulumi.StringPtrInput // Use a Compute Engine VM image to start the notebook instance. // Structure is documented below. VmImage EnvironmentVmImagePtrInput }
func (EnvironmentState) ElementType ¶
func (EnvironmentState) ElementType() reflect.Type
type EnvironmentVmImage ¶
type EnvironmentVmImage struct { // Use this VM image family to find the image; the newest image in this family will be used. ImageFamily *string `pulumi:"imageFamily"` // Use VM image name to find the image. ImageName *string `pulumi:"imageName"` // The name of the Google Cloud project that this VM image belongs to. // Format: projects/{project_id} Project string `pulumi:"project"` }
type EnvironmentVmImageArgs ¶
type EnvironmentVmImageArgs struct { // Use this VM image family to find the image; the newest image in this family will be used. ImageFamily pulumi.StringPtrInput `pulumi:"imageFamily"` // Use VM image name to find the image. ImageName pulumi.StringPtrInput `pulumi:"imageName"` // The name of the Google Cloud project that this VM image belongs to. // Format: projects/{project_id} Project pulumi.StringInput `pulumi:"project"` }
func (EnvironmentVmImageArgs) ElementType ¶
func (EnvironmentVmImageArgs) ElementType() reflect.Type
func (EnvironmentVmImageArgs) ToEnvironmentVmImageOutput ¶
func (i EnvironmentVmImageArgs) ToEnvironmentVmImageOutput() EnvironmentVmImageOutput
func (EnvironmentVmImageArgs) ToEnvironmentVmImageOutputWithContext ¶
func (i EnvironmentVmImageArgs) ToEnvironmentVmImageOutputWithContext(ctx context.Context) EnvironmentVmImageOutput
func (EnvironmentVmImageArgs) ToEnvironmentVmImagePtrOutput ¶
func (i EnvironmentVmImageArgs) ToEnvironmentVmImagePtrOutput() EnvironmentVmImagePtrOutput
func (EnvironmentVmImageArgs) ToEnvironmentVmImagePtrOutputWithContext ¶
func (i EnvironmentVmImageArgs) ToEnvironmentVmImagePtrOutputWithContext(ctx context.Context) EnvironmentVmImagePtrOutput
type EnvironmentVmImageInput ¶
type EnvironmentVmImageInput interface { pulumi.Input ToEnvironmentVmImageOutput() EnvironmentVmImageOutput ToEnvironmentVmImageOutputWithContext(context.Context) EnvironmentVmImageOutput }
EnvironmentVmImageInput is an input type that accepts EnvironmentVmImageArgs and EnvironmentVmImageOutput values. You can construct a concrete instance of `EnvironmentVmImageInput` via:
EnvironmentVmImageArgs{...}
type EnvironmentVmImageOutput ¶
type EnvironmentVmImageOutput struct{ *pulumi.OutputState }
func (EnvironmentVmImageOutput) ElementType ¶
func (EnvironmentVmImageOutput) ElementType() reflect.Type
func (EnvironmentVmImageOutput) ImageFamily ¶
func (o EnvironmentVmImageOutput) ImageFamily() pulumi.StringPtrOutput
Use this VM image family to find the image; the newest image in this family will be used.
func (EnvironmentVmImageOutput) ImageName ¶
func (o EnvironmentVmImageOutput) ImageName() pulumi.StringPtrOutput
Use VM image name to find the image.
func (EnvironmentVmImageOutput) Project ¶
func (o EnvironmentVmImageOutput) Project() pulumi.StringOutput
The name of the Google Cloud project that this VM image belongs to. Format: projects/{project_id}
func (EnvironmentVmImageOutput) ToEnvironmentVmImageOutput ¶
func (o EnvironmentVmImageOutput) ToEnvironmentVmImageOutput() EnvironmentVmImageOutput
func (EnvironmentVmImageOutput) ToEnvironmentVmImageOutputWithContext ¶
func (o EnvironmentVmImageOutput) ToEnvironmentVmImageOutputWithContext(ctx context.Context) EnvironmentVmImageOutput
func (EnvironmentVmImageOutput) ToEnvironmentVmImagePtrOutput ¶
func (o EnvironmentVmImageOutput) ToEnvironmentVmImagePtrOutput() EnvironmentVmImagePtrOutput
func (EnvironmentVmImageOutput) ToEnvironmentVmImagePtrOutputWithContext ¶
func (o EnvironmentVmImageOutput) ToEnvironmentVmImagePtrOutputWithContext(ctx context.Context) EnvironmentVmImagePtrOutput
type EnvironmentVmImagePtrInput ¶
type EnvironmentVmImagePtrInput interface { pulumi.Input ToEnvironmentVmImagePtrOutput() EnvironmentVmImagePtrOutput ToEnvironmentVmImagePtrOutputWithContext(context.Context) EnvironmentVmImagePtrOutput }
EnvironmentVmImagePtrInput is an input type that accepts EnvironmentVmImageArgs, EnvironmentVmImagePtr and EnvironmentVmImagePtrOutput values. You can construct a concrete instance of `EnvironmentVmImagePtrInput` via:
EnvironmentVmImageArgs{...} or: nil
func EnvironmentVmImagePtr ¶
func EnvironmentVmImagePtr(v *EnvironmentVmImageArgs) EnvironmentVmImagePtrInput
type EnvironmentVmImagePtrOutput ¶
type EnvironmentVmImagePtrOutput struct{ *pulumi.OutputState }
func (EnvironmentVmImagePtrOutput) Elem ¶
func (o EnvironmentVmImagePtrOutput) Elem() EnvironmentVmImageOutput
func (EnvironmentVmImagePtrOutput) ElementType ¶
func (EnvironmentVmImagePtrOutput) ElementType() reflect.Type
func (EnvironmentVmImagePtrOutput) ImageFamily ¶
func (o EnvironmentVmImagePtrOutput) ImageFamily() pulumi.StringPtrOutput
Use this VM image family to find the image; the newest image in this family will be used.
func (EnvironmentVmImagePtrOutput) ImageName ¶
func (o EnvironmentVmImagePtrOutput) ImageName() pulumi.StringPtrOutput
Use VM image name to find the image.
func (EnvironmentVmImagePtrOutput) Project ¶
func (o EnvironmentVmImagePtrOutput) Project() pulumi.StringPtrOutput
The name of the Google Cloud project that this VM image belongs to. Format: projects/{project_id}
func (EnvironmentVmImagePtrOutput) ToEnvironmentVmImagePtrOutput ¶
func (o EnvironmentVmImagePtrOutput) ToEnvironmentVmImagePtrOutput() EnvironmentVmImagePtrOutput
func (EnvironmentVmImagePtrOutput) ToEnvironmentVmImagePtrOutputWithContext ¶
func (o EnvironmentVmImagePtrOutput) ToEnvironmentVmImagePtrOutputWithContext(ctx context.Context) EnvironmentVmImagePtrOutput
type Instance ¶
type Instance struct { pulumi.CustomResourceState // The hardware accelerator used on this instance. If you use accelerators, // make sure that your configuration has enough vCPUs and memory to support the // machineType you have selected. // Structure is documented below. AcceleratorConfig InstanceAcceleratorConfigPtrOutput `pulumi:"acceleratorConfig"` // The size of the boot disk in GB attached to this instance, // up to a maximum of 64000 GB (64 TB). The minimum recommended value is 100 GB. // If not specified, this defaults to 100. BootDiskSizeGb pulumi.IntPtrOutput `pulumi:"bootDiskSizeGb"` // Possible disk types for notebook instances. // Possible values are `DISK_TYPE_UNSPECIFIED`, `PD_STANDARD`, `PD_SSD`, and `PD_BALANCED`. BootDiskType pulumi.StringPtrOutput `pulumi:"bootDiskType"` // Use a container image to start the notebook instance. // Structure is documented below. ContainerImage InstanceContainerImagePtrOutput `pulumi:"containerImage"` // Instance creation time CreateTime pulumi.StringOutput `pulumi:"createTime"` // Specify a custom Cloud Storage path where the GPU driver is stored. // If not specified, we'll automatically choose from official GPU drivers. CustomGpuDriverPath pulumi.StringPtrOutput `pulumi:"customGpuDriverPath"` // The size of the data disk in GB attached to this instance, // up to a maximum of 64000 GB (64 TB). // You can choose the size of the data disk based on how big your notebooks and data are. // If not specified, this defaults to 100. DataDiskSizeGb pulumi.IntPtrOutput `pulumi:"dataDiskSizeGb"` // Possible disk types for notebook instances. // Possible values are `DISK_TYPE_UNSPECIFIED`, `PD_STANDARD`, `PD_SSD`, and `PD_BALANCED`. DataDiskType pulumi.StringPtrOutput `pulumi:"dataDiskType"` // Disk encryption method used on the boot and data disks, defaults to GMEK. // Possible values are `DISK_ENCRYPTION_UNSPECIFIED`, `GMEK`, and `CMEK`. DiskEncryption pulumi.StringPtrOutput `pulumi:"diskEncryption"` // Whether the end user authorizes Google Cloud to install GPU driver // on this instance. If this field is empty or set to false, the GPU driver // won't be installed. Only applicable to instances with GPUs. InstallGpuDriver pulumi.BoolPtrOutput `pulumi:"installGpuDriver"` // The list of owners of this instance after creation. // Format: alias@example.com. // Currently supports one owner only. // If not specified, all of the service account users of // your VM instance's service account can use the instance. InstanceOwners pulumi.StringPtrOutput `pulumi:"instanceOwners"` // The KMS key used to encrypt the disks, only applicable if diskEncryption is CMEK. // Format: projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id} KmsKey pulumi.StringPtrOutput `pulumi:"kmsKey"` // Labels to apply to this instance. These can be later modified by the setLabels method. // An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. Labels pulumi.StringMapOutput `pulumi:"labels"` // A reference to the zone where the machine resides. Location pulumi.StringOutput `pulumi:"location"` // A reference to a machine type which defines VM kind. MachineType pulumi.StringOutput `pulumi:"machineType"` // Custom metadata to apply to this instance. // An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. Metadata pulumi.StringMapOutput `pulumi:"metadata"` // The name specified for the Notebook instance. Name pulumi.StringOutput `pulumi:"name"` // The name of the VPC that this instance is in. // Format: projects/{project_id}/global/networks/{network_id} Network pulumi.StringOutput `pulumi:"network"` // The notebook instance will not register with the proxy.. NoProxyAccess pulumi.BoolPtrOutput `pulumi:"noProxyAccess"` // No public IP will be assigned to this instance. NoPublicIp pulumi.BoolPtrOutput `pulumi:"noPublicIp"` // If true, the data disk will not be auto deleted when deleting the instance. NoRemoveDataDisk pulumi.BoolPtrOutput `pulumi:"noRemoveDataDisk"` // Path to a Bash script that automatically runs after a // notebook instance fully boots up. The path must be a URL // or Cloud Storage path (gs://path-to-file/file-name). PostStartupScript pulumi.StringPtrOutput `pulumi:"postStartupScript"` // The name of the Google Cloud project that this VM image belongs to. // Format: projects/{project_id} Project pulumi.StringOutput `pulumi:"project"` // The proxy endpoint that is used to access the Jupyter notebook. ProxyUri pulumi.StringOutput `pulumi:"proxyUri"` // The service account on this instance, giving access to other // Google Cloud services. You can use any service account within // the same project, but you must have the service account user // permission to use the instance. If not specified, // the Compute Engine default service account is used. ServiceAccount pulumi.StringOutput `pulumi:"serviceAccount"` // Optional. The URIs of service account scopes to be included in Compute Engine instances. // If not specified, the following scopes are defined: // - https://www.googleapis.com/auth/cloud-platform // - https://www.googleapis.com/auth/userinfo.email ServiceAccountScopes pulumi.StringArrayOutput `pulumi:"serviceAccountScopes"` // A set of Shielded Instance options. Check [Images using supported Shielded VM features] // Not all combinations are valid // Structure is documented below. ShieldedInstanceConfig InstanceShieldedInstanceConfigOutput `pulumi:"shieldedInstanceConfig"` // The state of this instance. State pulumi.StringOutput `pulumi:"state"` // The name of the subnet that this instance is in. // Format: projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id} Subnet pulumi.StringOutput `pulumi:"subnet"` // The Compute Engine tags to add to runtime. Tags pulumi.StringArrayOutput `pulumi:"tags"` // Instance update time. UpdateTime pulumi.StringOutput `pulumi:"updateTime"` // Use a Compute Engine VM image to start the notebook instance. // Structure is documented below. VmImage InstanceVmImagePtrOutput `pulumi:"vmImage"` }
A Cloud AI Platform Notebook instance.
> **Note:** Due to limitations of the Notebooks Instance API, many fields in this resource do not properly detect drift. These fields will also not appear in state once imported.
To get more information about Instance, see:
* [API documentation](https://cloud.google.com/ai-platform/notebooks/docs/reference/rest) * How-to Guides
- [Official Documentation](https://cloud.google.com/ai-platform-notebooks)
## Example Usage ### Notebook Instance Basic
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/notebooks" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := notebooks.NewInstance(ctx, "instance", ¬ebooks.InstanceArgs{ Location: pulumi.String("us-west1-a"), MachineType: pulumi.String("e2-medium"), VmImage: ¬ebooks.InstanceVmImageArgs{ ImageFamily: pulumi.String("tf-latest-cpu"), Project: pulumi.String("deeplearning-platform-release"), }, }) if err != nil { return err } return nil }) }
``` ### Notebook Instance Basic Container
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/notebooks" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := notebooks.NewInstance(ctx, "instance", ¬ebooks.InstanceArgs{ ContainerImage: ¬ebooks.InstanceContainerImageArgs{ Repository: pulumi.String("gcr.io/deeplearning-platform-release/base-cpu"), Tag: pulumi.String("latest"), }, Location: pulumi.String("us-west1-a"), MachineType: pulumi.String("e2-medium"), Metadata: pulumi.StringMap{ "proxy-mode": pulumi.String("service_account"), }, }) if err != nil { return err } return nil }) }
``` ### Notebook Instance Basic Gpu
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/notebooks" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := notebooks.NewInstance(ctx, "instance", ¬ebooks.InstanceArgs{ AcceleratorConfig: ¬ebooks.InstanceAcceleratorConfigArgs{ CoreCount: pulumi.Int(1), Type: pulumi.String("NVIDIA_TESLA_T4"), }, InstallGpuDriver: pulumi.Bool(true), Location: pulumi.String("us-west1-a"), MachineType: pulumi.String("n1-standard-1"), VmImage: ¬ebooks.InstanceVmImageArgs{ ImageFamily: pulumi.String("tf-latest-gpu"), Project: pulumi.String("deeplearning-platform-release"), }, }) if err != nil { return err } return nil }) }
``` ### Notebook Instance Full
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/compute" "github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/notebooks" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { myNetwork, err := compute.LookupNetwork(ctx, &compute.LookupNetworkArgs{ Name: "default", }, nil) if err != nil { return err } opt0 := "default" opt1 := "us-central1" mySubnetwork, err := compute.LookupSubnetwork(ctx, &compute.LookupSubnetworkArgs{ Name: &opt0, Region: &opt1, }, nil) if err != nil { return err } _, err = notebooks.NewInstance(ctx, "instance", ¬ebooks.InstanceArgs{ Location: pulumi.String("us-central1-a"), MachineType: pulumi.String("e2-medium"), VmImage: ¬ebooks.InstanceVmImageArgs{ Project: pulumi.String("deeplearning-platform-release"), ImageFamily: pulumi.String("tf-latest-cpu"), }, InstanceOwners: pulumi.String(pulumi.String{ pulumi.String("admin@hashicorptest.com"), }), ServiceAccount: pulumi.String("emailAddress:my@service-account.com"), InstallGpuDriver: pulumi.Bool(true), BootDiskType: pulumi.String("PD_SSD"), BootDiskSizeGb: pulumi.Int(110), NoPublicIp: pulumi.Bool(true), NoProxyAccess: pulumi.Bool(true), Network: pulumi.String(myNetwork.Id), Subnet: pulumi.String(mySubnetwork.Id), Labels: pulumi.StringMap{ "k": pulumi.String("val"), }, }) if err != nil { return err } return nil }) }
```
## Import
Instance can be imported using any of these accepted formats ¶
```sh
$ pulumi import gcp:notebooks/instance:Instance default projects/{{project}}/locations/{{location}}/instances/{{name}}
```
```sh
$ pulumi import gcp:notebooks/instance:Instance default {{project}}/{{location}}/{{name}}
```
```sh
$ pulumi import gcp:notebooks/instance:Instance default {{location}}/{{name}}
```
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
func (*Instance) ToInstancePtrOutput ¶
func (i *Instance) ToInstancePtrOutput() InstancePtrOutput
func (*Instance) ToInstancePtrOutputWithContext ¶
func (i *Instance) ToInstancePtrOutputWithContext(ctx context.Context) InstancePtrOutput
type InstanceAcceleratorConfig ¶
type InstanceAcceleratorConfig struct { // Count of cores of this accelerator. CoreCount int `pulumi:"coreCount"` // Type of this accelerator. // Possible values are `ACCELERATOR_TYPE_UNSPECIFIED`, `NVIDIA_TESLA_K80`, `NVIDIA_TESLA_P100`, `NVIDIA_TESLA_V100`, `NVIDIA_TESLA_P4`, `NVIDIA_TESLA_T4`, `NVIDIA_TESLA_T4_VWS`, `NVIDIA_TESLA_P100_VWS`, `NVIDIA_TESLA_P4_VWS`, `NVIDIA_TESLA_A100`, `TPU_V2`, and `TPU_V3`. Type string `pulumi:"type"` }
type InstanceAcceleratorConfigArgs ¶
type InstanceAcceleratorConfigArgs struct { // Count of cores of this accelerator. CoreCount pulumi.IntInput `pulumi:"coreCount"` // Type of this accelerator. // Possible values are `ACCELERATOR_TYPE_UNSPECIFIED`, `NVIDIA_TESLA_K80`, `NVIDIA_TESLA_P100`, `NVIDIA_TESLA_V100`, `NVIDIA_TESLA_P4`, `NVIDIA_TESLA_T4`, `NVIDIA_TESLA_T4_VWS`, `NVIDIA_TESLA_P100_VWS`, `NVIDIA_TESLA_P4_VWS`, `NVIDIA_TESLA_A100`, `TPU_V2`, and `TPU_V3`. Type pulumi.StringInput `pulumi:"type"` }
func (InstanceAcceleratorConfigArgs) ElementType ¶
func (InstanceAcceleratorConfigArgs) ElementType() reflect.Type
func (InstanceAcceleratorConfigArgs) ToInstanceAcceleratorConfigOutput ¶
func (i InstanceAcceleratorConfigArgs) ToInstanceAcceleratorConfigOutput() InstanceAcceleratorConfigOutput
func (InstanceAcceleratorConfigArgs) ToInstanceAcceleratorConfigOutputWithContext ¶
func (i InstanceAcceleratorConfigArgs) ToInstanceAcceleratorConfigOutputWithContext(ctx context.Context) InstanceAcceleratorConfigOutput
func (InstanceAcceleratorConfigArgs) ToInstanceAcceleratorConfigPtrOutput ¶
func (i InstanceAcceleratorConfigArgs) ToInstanceAcceleratorConfigPtrOutput() InstanceAcceleratorConfigPtrOutput
func (InstanceAcceleratorConfigArgs) ToInstanceAcceleratorConfigPtrOutputWithContext ¶
func (i InstanceAcceleratorConfigArgs) ToInstanceAcceleratorConfigPtrOutputWithContext(ctx context.Context) InstanceAcceleratorConfigPtrOutput
type InstanceAcceleratorConfigInput ¶
type InstanceAcceleratorConfigInput interface { pulumi.Input ToInstanceAcceleratorConfigOutput() InstanceAcceleratorConfigOutput ToInstanceAcceleratorConfigOutputWithContext(context.Context) InstanceAcceleratorConfigOutput }
InstanceAcceleratorConfigInput is an input type that accepts InstanceAcceleratorConfigArgs and InstanceAcceleratorConfigOutput values. You can construct a concrete instance of `InstanceAcceleratorConfigInput` via:
InstanceAcceleratorConfigArgs{...}
type InstanceAcceleratorConfigOutput ¶
type InstanceAcceleratorConfigOutput struct{ *pulumi.OutputState }
func (InstanceAcceleratorConfigOutput) CoreCount ¶
func (o InstanceAcceleratorConfigOutput) CoreCount() pulumi.IntOutput
Count of cores of this accelerator.
func (InstanceAcceleratorConfigOutput) ElementType ¶
func (InstanceAcceleratorConfigOutput) ElementType() reflect.Type
func (InstanceAcceleratorConfigOutput) ToInstanceAcceleratorConfigOutput ¶
func (o InstanceAcceleratorConfigOutput) ToInstanceAcceleratorConfigOutput() InstanceAcceleratorConfigOutput
func (InstanceAcceleratorConfigOutput) ToInstanceAcceleratorConfigOutputWithContext ¶
func (o InstanceAcceleratorConfigOutput) ToInstanceAcceleratorConfigOutputWithContext(ctx context.Context) InstanceAcceleratorConfigOutput
func (InstanceAcceleratorConfigOutput) ToInstanceAcceleratorConfigPtrOutput ¶
func (o InstanceAcceleratorConfigOutput) ToInstanceAcceleratorConfigPtrOutput() InstanceAcceleratorConfigPtrOutput
func (InstanceAcceleratorConfigOutput) ToInstanceAcceleratorConfigPtrOutputWithContext ¶
func (o InstanceAcceleratorConfigOutput) ToInstanceAcceleratorConfigPtrOutputWithContext(ctx context.Context) InstanceAcceleratorConfigPtrOutput
func (InstanceAcceleratorConfigOutput) Type ¶
func (o InstanceAcceleratorConfigOutput) Type() pulumi.StringOutput
Type of this accelerator. Possible values are `ACCELERATOR_TYPE_UNSPECIFIED`, `NVIDIA_TESLA_K80`, `NVIDIA_TESLA_P100`, `NVIDIA_TESLA_V100`, `NVIDIA_TESLA_P4`, `NVIDIA_TESLA_T4`, `NVIDIA_TESLA_T4_VWS`, `NVIDIA_TESLA_P100_VWS`, `NVIDIA_TESLA_P4_VWS`, `NVIDIA_TESLA_A100`, `TPU_V2`, and `TPU_V3`.
type InstanceAcceleratorConfigPtrInput ¶
type InstanceAcceleratorConfigPtrInput interface { pulumi.Input ToInstanceAcceleratorConfigPtrOutput() InstanceAcceleratorConfigPtrOutput ToInstanceAcceleratorConfigPtrOutputWithContext(context.Context) InstanceAcceleratorConfigPtrOutput }
InstanceAcceleratorConfigPtrInput is an input type that accepts InstanceAcceleratorConfigArgs, InstanceAcceleratorConfigPtr and InstanceAcceleratorConfigPtrOutput values. You can construct a concrete instance of `InstanceAcceleratorConfigPtrInput` via:
InstanceAcceleratorConfigArgs{...} or: nil
func InstanceAcceleratorConfigPtr ¶
func InstanceAcceleratorConfigPtr(v *InstanceAcceleratorConfigArgs) InstanceAcceleratorConfigPtrInput
type InstanceAcceleratorConfigPtrOutput ¶
type InstanceAcceleratorConfigPtrOutput struct{ *pulumi.OutputState }
func (InstanceAcceleratorConfigPtrOutput) CoreCount ¶
func (o InstanceAcceleratorConfigPtrOutput) CoreCount() pulumi.IntPtrOutput
Count of cores of this accelerator.
func (InstanceAcceleratorConfigPtrOutput) Elem ¶
func (o InstanceAcceleratorConfigPtrOutput) Elem() InstanceAcceleratorConfigOutput
func (InstanceAcceleratorConfigPtrOutput) ElementType ¶
func (InstanceAcceleratorConfigPtrOutput) ElementType() reflect.Type
func (InstanceAcceleratorConfigPtrOutput) ToInstanceAcceleratorConfigPtrOutput ¶
func (o InstanceAcceleratorConfigPtrOutput) ToInstanceAcceleratorConfigPtrOutput() InstanceAcceleratorConfigPtrOutput
func (InstanceAcceleratorConfigPtrOutput) ToInstanceAcceleratorConfigPtrOutputWithContext ¶
func (o InstanceAcceleratorConfigPtrOutput) ToInstanceAcceleratorConfigPtrOutputWithContext(ctx context.Context) InstanceAcceleratorConfigPtrOutput
func (InstanceAcceleratorConfigPtrOutput) Type ¶
func (o InstanceAcceleratorConfigPtrOutput) Type() pulumi.StringPtrOutput
Type of this accelerator. Possible values are `ACCELERATOR_TYPE_UNSPECIFIED`, `NVIDIA_TESLA_K80`, `NVIDIA_TESLA_P100`, `NVIDIA_TESLA_V100`, `NVIDIA_TESLA_P4`, `NVIDIA_TESLA_T4`, `NVIDIA_TESLA_T4_VWS`, `NVIDIA_TESLA_P100_VWS`, `NVIDIA_TESLA_P4_VWS`, `NVIDIA_TESLA_A100`, `TPU_V2`, and `TPU_V3`.
type InstanceArgs ¶
type InstanceArgs struct { // The hardware accelerator used on this instance. If you use accelerators, // make sure that your configuration has enough vCPUs and memory to support the // machineType you have selected. // Structure is documented below. AcceleratorConfig InstanceAcceleratorConfigPtrInput // The size of the boot disk in GB attached to this instance, // up to a maximum of 64000 GB (64 TB). The minimum recommended value is 100 GB. // If not specified, this defaults to 100. BootDiskSizeGb pulumi.IntPtrInput // Possible disk types for notebook instances. // Possible values are `DISK_TYPE_UNSPECIFIED`, `PD_STANDARD`, `PD_SSD`, and `PD_BALANCED`. BootDiskType pulumi.StringPtrInput // Use a container image to start the notebook instance. // Structure is documented below. ContainerImage InstanceContainerImagePtrInput // Instance creation time CreateTime pulumi.StringPtrInput // Specify a custom Cloud Storage path where the GPU driver is stored. // If not specified, we'll automatically choose from official GPU drivers. CustomGpuDriverPath pulumi.StringPtrInput // The size of the data disk in GB attached to this instance, // up to a maximum of 64000 GB (64 TB). // You can choose the size of the data disk based on how big your notebooks and data are. // If not specified, this defaults to 100. DataDiskSizeGb pulumi.IntPtrInput // Possible disk types for notebook instances. // Possible values are `DISK_TYPE_UNSPECIFIED`, `PD_STANDARD`, `PD_SSD`, and `PD_BALANCED`. DataDiskType pulumi.StringPtrInput // Disk encryption method used on the boot and data disks, defaults to GMEK. // Possible values are `DISK_ENCRYPTION_UNSPECIFIED`, `GMEK`, and `CMEK`. DiskEncryption pulumi.StringPtrInput // Whether the end user authorizes Google Cloud to install GPU driver // on this instance. If this field is empty or set to false, the GPU driver // won't be installed. Only applicable to instances with GPUs. InstallGpuDriver pulumi.BoolPtrInput // The list of owners of this instance after creation. // Format: alias@example.com. // Currently supports one owner only. // If not specified, all of the service account users of // your VM instance's service account can use the instance. InstanceOwners pulumi.StringPtrInput // The KMS key used to encrypt the disks, only applicable if diskEncryption is CMEK. // Format: projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id} KmsKey pulumi.StringPtrInput // Labels to apply to this instance. These can be later modified by the setLabels method. // An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. Labels pulumi.StringMapInput // A reference to the zone where the machine resides. Location pulumi.StringInput // A reference to a machine type which defines VM kind. MachineType pulumi.StringInput // Custom metadata to apply to this instance. // An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. Metadata pulumi.StringMapInput // The name specified for the Notebook instance. Name pulumi.StringPtrInput // The name of the VPC that this instance is in. // Format: projects/{project_id}/global/networks/{network_id} Network pulumi.StringPtrInput // The notebook instance will not register with the proxy.. NoProxyAccess pulumi.BoolPtrInput // No public IP will be assigned to this instance. NoPublicIp pulumi.BoolPtrInput // If true, the data disk will not be auto deleted when deleting the instance. NoRemoveDataDisk pulumi.BoolPtrInput // Path to a Bash script that automatically runs after a // notebook instance fully boots up. The path must be a URL // or Cloud Storage path (gs://path-to-file/file-name). PostStartupScript pulumi.StringPtrInput // The name of the Google Cloud project that this VM image belongs to. // Format: projects/{project_id} Project pulumi.StringPtrInput // The service account on this instance, giving access to other // Google Cloud services. You can use any service account within // the same project, but you must have the service account user // permission to use the instance. If not specified, // the Compute Engine default service account is used. ServiceAccount pulumi.StringPtrInput // Optional. The URIs of service account scopes to be included in Compute Engine instances. // If not specified, the following scopes are defined: // - https://www.googleapis.com/auth/cloud-platform // - https://www.googleapis.com/auth/userinfo.email ServiceAccountScopes pulumi.StringArrayInput // A set of Shielded Instance options. Check [Images using supported Shielded VM features] // Not all combinations are valid // Structure is documented below. ShieldedInstanceConfig InstanceShieldedInstanceConfigPtrInput // The name of the subnet that this instance is in. // Format: projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id} Subnet pulumi.StringPtrInput // The Compute Engine tags to add to runtime. Tags pulumi.StringArrayInput // Instance update time. UpdateTime pulumi.StringPtrInput // Use a Compute Engine VM image to start the notebook instance. // Structure is documented below. VmImage InstanceVmImagePtrInput }
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 InstanceContainerImage ¶
type InstanceContainerImageArgs ¶
type InstanceContainerImageArgs struct { // The path to the container image repository. // For example: gcr.io/{project_id}/{imageName} Repository pulumi.StringInput `pulumi:"repository"` // The tag of the container image. If not specified, this defaults to the latest tag. Tag pulumi.StringPtrInput `pulumi:"tag"` }
func (InstanceContainerImageArgs) ElementType ¶
func (InstanceContainerImageArgs) ElementType() reflect.Type
func (InstanceContainerImageArgs) ToInstanceContainerImageOutput ¶
func (i InstanceContainerImageArgs) ToInstanceContainerImageOutput() InstanceContainerImageOutput
func (InstanceContainerImageArgs) ToInstanceContainerImageOutputWithContext ¶
func (i InstanceContainerImageArgs) ToInstanceContainerImageOutputWithContext(ctx context.Context) InstanceContainerImageOutput
func (InstanceContainerImageArgs) ToInstanceContainerImagePtrOutput ¶
func (i InstanceContainerImageArgs) ToInstanceContainerImagePtrOutput() InstanceContainerImagePtrOutput
func (InstanceContainerImageArgs) ToInstanceContainerImagePtrOutputWithContext ¶
func (i InstanceContainerImageArgs) ToInstanceContainerImagePtrOutputWithContext(ctx context.Context) InstanceContainerImagePtrOutput
type InstanceContainerImageInput ¶
type InstanceContainerImageInput interface { pulumi.Input ToInstanceContainerImageOutput() InstanceContainerImageOutput ToInstanceContainerImageOutputWithContext(context.Context) InstanceContainerImageOutput }
InstanceContainerImageInput is an input type that accepts InstanceContainerImageArgs and InstanceContainerImageOutput values. You can construct a concrete instance of `InstanceContainerImageInput` via:
InstanceContainerImageArgs{...}
type InstanceContainerImageOutput ¶
type InstanceContainerImageOutput struct{ *pulumi.OutputState }
func (InstanceContainerImageOutput) ElementType ¶
func (InstanceContainerImageOutput) ElementType() reflect.Type
func (InstanceContainerImageOutput) Repository ¶
func (o InstanceContainerImageOutput) Repository() pulumi.StringOutput
The path to the container image repository. For example: gcr.io/{project_id}/{imageName}
func (InstanceContainerImageOutput) Tag ¶
func (o InstanceContainerImageOutput) Tag() pulumi.StringPtrOutput
The tag of the container image. If not specified, this defaults to the latest tag.
func (InstanceContainerImageOutput) ToInstanceContainerImageOutput ¶
func (o InstanceContainerImageOutput) ToInstanceContainerImageOutput() InstanceContainerImageOutput
func (InstanceContainerImageOutput) ToInstanceContainerImageOutputWithContext ¶
func (o InstanceContainerImageOutput) ToInstanceContainerImageOutputWithContext(ctx context.Context) InstanceContainerImageOutput
func (InstanceContainerImageOutput) ToInstanceContainerImagePtrOutput ¶
func (o InstanceContainerImageOutput) ToInstanceContainerImagePtrOutput() InstanceContainerImagePtrOutput
func (InstanceContainerImageOutput) ToInstanceContainerImagePtrOutputWithContext ¶
func (o InstanceContainerImageOutput) ToInstanceContainerImagePtrOutputWithContext(ctx context.Context) InstanceContainerImagePtrOutput
type InstanceContainerImagePtrInput ¶
type InstanceContainerImagePtrInput interface { pulumi.Input ToInstanceContainerImagePtrOutput() InstanceContainerImagePtrOutput ToInstanceContainerImagePtrOutputWithContext(context.Context) InstanceContainerImagePtrOutput }
InstanceContainerImagePtrInput is an input type that accepts InstanceContainerImageArgs, InstanceContainerImagePtr and InstanceContainerImagePtrOutput values. You can construct a concrete instance of `InstanceContainerImagePtrInput` via:
InstanceContainerImageArgs{...} or: nil
func InstanceContainerImagePtr ¶
func InstanceContainerImagePtr(v *InstanceContainerImageArgs) InstanceContainerImagePtrInput
type InstanceContainerImagePtrOutput ¶
type InstanceContainerImagePtrOutput struct{ *pulumi.OutputState }
func (InstanceContainerImagePtrOutput) Elem ¶
func (o InstanceContainerImagePtrOutput) Elem() InstanceContainerImageOutput
func (InstanceContainerImagePtrOutput) ElementType ¶
func (InstanceContainerImagePtrOutput) ElementType() reflect.Type
func (InstanceContainerImagePtrOutput) Repository ¶
func (o InstanceContainerImagePtrOutput) Repository() pulumi.StringPtrOutput
The path to the container image repository. For example: gcr.io/{project_id}/{imageName}
func (InstanceContainerImagePtrOutput) Tag ¶
func (o InstanceContainerImagePtrOutput) Tag() pulumi.StringPtrOutput
The tag of the container image. If not specified, this defaults to the latest tag.
func (InstanceContainerImagePtrOutput) ToInstanceContainerImagePtrOutput ¶
func (o InstanceContainerImagePtrOutput) ToInstanceContainerImagePtrOutput() InstanceContainerImagePtrOutput
func (InstanceContainerImagePtrOutput) ToInstanceContainerImagePtrOutputWithContext ¶
func (o InstanceContainerImagePtrOutput) ToInstanceContainerImagePtrOutputWithContext(ctx context.Context) InstanceContainerImagePtrOutput
type InstanceIamBinding ¶
type InstanceIamBinding struct { pulumi.CustomResourceState Condition InstanceIamBindingConditionPtrOutput `pulumi:"condition"` // (Computed) The etag of the IAM policy. Etag pulumi.StringOutput `pulumi:"etag"` // Used to find the parent resource to bind the IAM policy to InstanceName pulumi.StringOutput `pulumi:"instanceName"` // A reference to the zone where the machine resides. Used to find the parent resource to bind the IAM policy to Location pulumi.StringOutput `pulumi:"location"` Members pulumi.StringArrayOutput `pulumi:"members"` // The ID of the project in which the resource belongs. // If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used. Project pulumi.StringOutput `pulumi:"project"` // The role that should be applied. Only one // `notebooks.InstanceIamBinding` can be used per role. Note that custom roles must be of the format // `[projects|organizations]/{parent-name}/roles/{role-name}`. Role pulumi.StringOutput `pulumi:"role"` }
Three different resources help you manage your IAM policy for Cloud AI Notebooks Instance. Each of these resources serves a different use case:
* `notebooks.InstanceIamPolicy`: Authoritative. Sets the IAM policy for the instance and replaces any existing policy already attached. * `notebooks.InstanceIamBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the instance are preserved. * `notebooks.InstanceIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the instance are preserved.
> **Note:** `notebooks.InstanceIamPolicy` **cannot** be used in conjunction with `notebooks.InstanceIamBinding` and `notebooks.InstanceIamMember` or they will fight over what your policy should be.
> **Note:** `notebooks.InstanceIamBinding` resources **can be** used in conjunction with `notebooks.InstanceIamMember` resources **only if** they do not grant privilege to the same role.
## google\_notebooks\_instance\_iam\_policy
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/notebooks" "github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/organizations" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { admin, err := organizations.LookupIAMPolicy(ctx, &organizations.LookupIAMPolicyArgs{ Bindings: []organizations.GetIAMPolicyBinding{ organizations.GetIAMPolicyBinding{ Role: "roles/viewer", Members: []string{ "user:jane@example.com", }, }, }, }, nil) if err != nil { return err } _, err = notebooks.NewInstanceIamPolicy(ctx, "policy", ¬ebooks.InstanceIamPolicyArgs{ Project: pulumi.Any(google_notebooks_instance.Instance.Project), Location: pulumi.Any(google_notebooks_instance.Instance.Location), InstanceName: pulumi.Any(google_notebooks_instance.Instance.Name), PolicyData: pulumi.String(admin.PolicyData), }) if err != nil { return err } return nil }) }
```
## google\_notebooks\_instance\_iam\_binding
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/notebooks" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := notebooks.NewInstanceIamBinding(ctx, "binding", ¬ebooks.InstanceIamBindingArgs{ Project: pulumi.Any(google_notebooks_instance.Instance.Project), Location: pulumi.Any(google_notebooks_instance.Instance.Location), InstanceName: pulumi.Any(google_notebooks_instance.Instance.Name), Role: pulumi.String("roles/viewer"), Members: pulumi.StringArray{ pulumi.String("user:jane@example.com"), }, }) if err != nil { return err } return nil }) }
```
## google\_notebooks\_instance\_iam\_member
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/notebooks" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := notebooks.NewInstanceIamMember(ctx, "member", ¬ebooks.InstanceIamMemberArgs{ Project: pulumi.Any(google_notebooks_instance.Instance.Project), Location: pulumi.Any(google_notebooks_instance.Instance.Location), InstanceName: pulumi.Any(google_notebooks_instance.Instance.Name), Role: pulumi.String("roles/viewer"), Member: pulumi.String("user:jane@example.com"), }) if err != nil { return err } return nil }) }
```
## Import
For all import syntaxes, the "resource in question" can take any of the following forms* projects/{{project}}/locations/{{location}}/instances/{{instance_name}} * {{project}}/{{location}}/{{instance_name}} * {{location}}/{{instance_name}} * {{instance_name}} Any variables not passed in the import command will be taken from the provider configuration. Cloud AI Notebooks instance IAM resources can be imported using the resource identifiers, role, and member. IAM member imports use space-delimited identifiersthe resource in question, the role, and the member identity, e.g.
```sh
$ pulumi import gcp:notebooks/instanceIamBinding:InstanceIamBinding editor "projects/{{project}}/locations/{{location}}/instances/{{instance_name}} roles/viewer user:jane@example.com"
```
IAM binding imports use space-delimited identifiersthe resource in question and the role, e.g.
```sh
$ pulumi import gcp:notebooks/instanceIamBinding:InstanceIamBinding editor "projects/{{project}}/locations/{{location}}/instances/{{instance_name}} roles/viewer"
```
IAM policy imports use the identifier of the resource in question, e.g.
```sh
$ pulumi import gcp:notebooks/instanceIamBinding:InstanceIamBinding editor projects/{{project}}/locations/{{location}}/instances/{{instance_name}}
```
-> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the
full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
func GetInstanceIamBinding ¶
func GetInstanceIamBinding(ctx *pulumi.Context, name string, id pulumi.IDInput, state *InstanceIamBindingState, opts ...pulumi.ResourceOption) (*InstanceIamBinding, error)
GetInstanceIamBinding gets an existing InstanceIamBinding 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 NewInstanceIamBinding ¶
func NewInstanceIamBinding(ctx *pulumi.Context, name string, args *InstanceIamBindingArgs, opts ...pulumi.ResourceOption) (*InstanceIamBinding, error)
NewInstanceIamBinding registers a new resource with the given unique name, arguments, and options.
func (*InstanceIamBinding) ElementType ¶
func (*InstanceIamBinding) ElementType() reflect.Type
func (*InstanceIamBinding) ToInstanceIamBindingOutput ¶
func (i *InstanceIamBinding) ToInstanceIamBindingOutput() InstanceIamBindingOutput
func (*InstanceIamBinding) ToInstanceIamBindingOutputWithContext ¶
func (i *InstanceIamBinding) ToInstanceIamBindingOutputWithContext(ctx context.Context) InstanceIamBindingOutput
func (*InstanceIamBinding) ToInstanceIamBindingPtrOutput ¶
func (i *InstanceIamBinding) ToInstanceIamBindingPtrOutput() InstanceIamBindingPtrOutput
func (*InstanceIamBinding) ToInstanceIamBindingPtrOutputWithContext ¶
func (i *InstanceIamBinding) ToInstanceIamBindingPtrOutputWithContext(ctx context.Context) InstanceIamBindingPtrOutput
type InstanceIamBindingArgs ¶
type InstanceIamBindingArgs struct { Condition InstanceIamBindingConditionPtrInput // Used to find the parent resource to bind the IAM policy to InstanceName pulumi.StringInput // A reference to the zone where the machine resides. Used to find the parent resource to bind the IAM policy to Location pulumi.StringPtrInput Members pulumi.StringArrayInput // The ID of the project in which the resource belongs. // If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used. Project pulumi.StringPtrInput // The role that should be applied. Only one // `notebooks.InstanceIamBinding` can be used per role. Note that custom roles must be of the format // `[projects|organizations]/{parent-name}/roles/{role-name}`. Role pulumi.StringInput }
The set of arguments for constructing a InstanceIamBinding resource.
func (InstanceIamBindingArgs) ElementType ¶
func (InstanceIamBindingArgs) ElementType() reflect.Type
type InstanceIamBindingArray ¶
type InstanceIamBindingArray []InstanceIamBindingInput
func (InstanceIamBindingArray) ElementType ¶
func (InstanceIamBindingArray) ElementType() reflect.Type
func (InstanceIamBindingArray) ToInstanceIamBindingArrayOutput ¶
func (i InstanceIamBindingArray) ToInstanceIamBindingArrayOutput() InstanceIamBindingArrayOutput
func (InstanceIamBindingArray) ToInstanceIamBindingArrayOutputWithContext ¶
func (i InstanceIamBindingArray) ToInstanceIamBindingArrayOutputWithContext(ctx context.Context) InstanceIamBindingArrayOutput
type InstanceIamBindingArrayInput ¶
type InstanceIamBindingArrayInput interface { pulumi.Input ToInstanceIamBindingArrayOutput() InstanceIamBindingArrayOutput ToInstanceIamBindingArrayOutputWithContext(context.Context) InstanceIamBindingArrayOutput }
InstanceIamBindingArrayInput is an input type that accepts InstanceIamBindingArray and InstanceIamBindingArrayOutput values. You can construct a concrete instance of `InstanceIamBindingArrayInput` via:
InstanceIamBindingArray{ InstanceIamBindingArgs{...} }
type InstanceIamBindingArrayOutput ¶
type InstanceIamBindingArrayOutput struct{ *pulumi.OutputState }
func (InstanceIamBindingArrayOutput) ElementType ¶
func (InstanceIamBindingArrayOutput) ElementType() reflect.Type
func (InstanceIamBindingArrayOutput) Index ¶
func (o InstanceIamBindingArrayOutput) Index(i pulumi.IntInput) InstanceIamBindingOutput
func (InstanceIamBindingArrayOutput) ToInstanceIamBindingArrayOutput ¶
func (o InstanceIamBindingArrayOutput) ToInstanceIamBindingArrayOutput() InstanceIamBindingArrayOutput
func (InstanceIamBindingArrayOutput) ToInstanceIamBindingArrayOutputWithContext ¶
func (o InstanceIamBindingArrayOutput) ToInstanceIamBindingArrayOutputWithContext(ctx context.Context) InstanceIamBindingArrayOutput
type InstanceIamBindingConditionArgs ¶
type InstanceIamBindingConditionArgs struct { Description pulumi.StringPtrInput `pulumi:"description"` Expression pulumi.StringInput `pulumi:"expression"` Title pulumi.StringInput `pulumi:"title"` }
func (InstanceIamBindingConditionArgs) ElementType ¶
func (InstanceIamBindingConditionArgs) ElementType() reflect.Type
func (InstanceIamBindingConditionArgs) ToInstanceIamBindingConditionOutput ¶
func (i InstanceIamBindingConditionArgs) ToInstanceIamBindingConditionOutput() InstanceIamBindingConditionOutput
func (InstanceIamBindingConditionArgs) ToInstanceIamBindingConditionOutputWithContext ¶
func (i InstanceIamBindingConditionArgs) ToInstanceIamBindingConditionOutputWithContext(ctx context.Context) InstanceIamBindingConditionOutput
func (InstanceIamBindingConditionArgs) ToInstanceIamBindingConditionPtrOutput ¶
func (i InstanceIamBindingConditionArgs) ToInstanceIamBindingConditionPtrOutput() InstanceIamBindingConditionPtrOutput
func (InstanceIamBindingConditionArgs) ToInstanceIamBindingConditionPtrOutputWithContext ¶
func (i InstanceIamBindingConditionArgs) ToInstanceIamBindingConditionPtrOutputWithContext(ctx context.Context) InstanceIamBindingConditionPtrOutput
type InstanceIamBindingConditionInput ¶
type InstanceIamBindingConditionInput interface { pulumi.Input ToInstanceIamBindingConditionOutput() InstanceIamBindingConditionOutput ToInstanceIamBindingConditionOutputWithContext(context.Context) InstanceIamBindingConditionOutput }
InstanceIamBindingConditionInput is an input type that accepts InstanceIamBindingConditionArgs and InstanceIamBindingConditionOutput values. You can construct a concrete instance of `InstanceIamBindingConditionInput` via:
InstanceIamBindingConditionArgs{...}
type InstanceIamBindingConditionOutput ¶
type InstanceIamBindingConditionOutput struct{ *pulumi.OutputState }
func (InstanceIamBindingConditionOutput) Description ¶
func (o InstanceIamBindingConditionOutput) Description() pulumi.StringPtrOutput
func (InstanceIamBindingConditionOutput) ElementType ¶
func (InstanceIamBindingConditionOutput) ElementType() reflect.Type
func (InstanceIamBindingConditionOutput) Expression ¶
func (o InstanceIamBindingConditionOutput) Expression() pulumi.StringOutput
func (InstanceIamBindingConditionOutput) Title ¶
func (o InstanceIamBindingConditionOutput) Title() pulumi.StringOutput
func (InstanceIamBindingConditionOutput) ToInstanceIamBindingConditionOutput ¶
func (o InstanceIamBindingConditionOutput) ToInstanceIamBindingConditionOutput() InstanceIamBindingConditionOutput
func (InstanceIamBindingConditionOutput) ToInstanceIamBindingConditionOutputWithContext ¶
func (o InstanceIamBindingConditionOutput) ToInstanceIamBindingConditionOutputWithContext(ctx context.Context) InstanceIamBindingConditionOutput
func (InstanceIamBindingConditionOutput) ToInstanceIamBindingConditionPtrOutput ¶
func (o InstanceIamBindingConditionOutput) ToInstanceIamBindingConditionPtrOutput() InstanceIamBindingConditionPtrOutput
func (InstanceIamBindingConditionOutput) ToInstanceIamBindingConditionPtrOutputWithContext ¶
func (o InstanceIamBindingConditionOutput) ToInstanceIamBindingConditionPtrOutputWithContext(ctx context.Context) InstanceIamBindingConditionPtrOutput
type InstanceIamBindingConditionPtrInput ¶
type InstanceIamBindingConditionPtrInput interface { pulumi.Input ToInstanceIamBindingConditionPtrOutput() InstanceIamBindingConditionPtrOutput ToInstanceIamBindingConditionPtrOutputWithContext(context.Context) InstanceIamBindingConditionPtrOutput }
InstanceIamBindingConditionPtrInput is an input type that accepts InstanceIamBindingConditionArgs, InstanceIamBindingConditionPtr and InstanceIamBindingConditionPtrOutput values. You can construct a concrete instance of `InstanceIamBindingConditionPtrInput` via:
InstanceIamBindingConditionArgs{...} or: nil
func InstanceIamBindingConditionPtr ¶
func InstanceIamBindingConditionPtr(v *InstanceIamBindingConditionArgs) InstanceIamBindingConditionPtrInput
type InstanceIamBindingConditionPtrOutput ¶
type InstanceIamBindingConditionPtrOutput struct{ *pulumi.OutputState }
func (InstanceIamBindingConditionPtrOutput) Description ¶
func (o InstanceIamBindingConditionPtrOutput) Description() pulumi.StringPtrOutput
func (InstanceIamBindingConditionPtrOutput) ElementType ¶
func (InstanceIamBindingConditionPtrOutput) ElementType() reflect.Type
func (InstanceIamBindingConditionPtrOutput) Expression ¶
func (o InstanceIamBindingConditionPtrOutput) Expression() pulumi.StringPtrOutput
func (InstanceIamBindingConditionPtrOutput) Title ¶
func (o InstanceIamBindingConditionPtrOutput) Title() pulumi.StringPtrOutput
func (InstanceIamBindingConditionPtrOutput) ToInstanceIamBindingConditionPtrOutput ¶
func (o InstanceIamBindingConditionPtrOutput) ToInstanceIamBindingConditionPtrOutput() InstanceIamBindingConditionPtrOutput
func (InstanceIamBindingConditionPtrOutput) ToInstanceIamBindingConditionPtrOutputWithContext ¶
func (o InstanceIamBindingConditionPtrOutput) ToInstanceIamBindingConditionPtrOutputWithContext(ctx context.Context) InstanceIamBindingConditionPtrOutput
type InstanceIamBindingInput ¶
type InstanceIamBindingInput interface { pulumi.Input ToInstanceIamBindingOutput() InstanceIamBindingOutput ToInstanceIamBindingOutputWithContext(ctx context.Context) InstanceIamBindingOutput }
type InstanceIamBindingMap ¶
type InstanceIamBindingMap map[string]InstanceIamBindingInput
func (InstanceIamBindingMap) ElementType ¶
func (InstanceIamBindingMap) ElementType() reflect.Type
func (InstanceIamBindingMap) ToInstanceIamBindingMapOutput ¶
func (i InstanceIamBindingMap) ToInstanceIamBindingMapOutput() InstanceIamBindingMapOutput
func (InstanceIamBindingMap) ToInstanceIamBindingMapOutputWithContext ¶
func (i InstanceIamBindingMap) ToInstanceIamBindingMapOutputWithContext(ctx context.Context) InstanceIamBindingMapOutput
type InstanceIamBindingMapInput ¶
type InstanceIamBindingMapInput interface { pulumi.Input ToInstanceIamBindingMapOutput() InstanceIamBindingMapOutput ToInstanceIamBindingMapOutputWithContext(context.Context) InstanceIamBindingMapOutput }
InstanceIamBindingMapInput is an input type that accepts InstanceIamBindingMap and InstanceIamBindingMapOutput values. You can construct a concrete instance of `InstanceIamBindingMapInput` via:
InstanceIamBindingMap{ "key": InstanceIamBindingArgs{...} }
type InstanceIamBindingMapOutput ¶
type InstanceIamBindingMapOutput struct{ *pulumi.OutputState }
func (InstanceIamBindingMapOutput) ElementType ¶
func (InstanceIamBindingMapOutput) ElementType() reflect.Type
func (InstanceIamBindingMapOutput) MapIndex ¶
func (o InstanceIamBindingMapOutput) MapIndex(k pulumi.StringInput) InstanceIamBindingOutput
func (InstanceIamBindingMapOutput) ToInstanceIamBindingMapOutput ¶
func (o InstanceIamBindingMapOutput) ToInstanceIamBindingMapOutput() InstanceIamBindingMapOutput
func (InstanceIamBindingMapOutput) ToInstanceIamBindingMapOutputWithContext ¶
func (o InstanceIamBindingMapOutput) ToInstanceIamBindingMapOutputWithContext(ctx context.Context) InstanceIamBindingMapOutput
type InstanceIamBindingOutput ¶
type InstanceIamBindingOutput struct {
*pulumi.OutputState
}
func (InstanceIamBindingOutput) ElementType ¶
func (InstanceIamBindingOutput) ElementType() reflect.Type
func (InstanceIamBindingOutput) ToInstanceIamBindingOutput ¶
func (o InstanceIamBindingOutput) ToInstanceIamBindingOutput() InstanceIamBindingOutput
func (InstanceIamBindingOutput) ToInstanceIamBindingOutputWithContext ¶
func (o InstanceIamBindingOutput) ToInstanceIamBindingOutputWithContext(ctx context.Context) InstanceIamBindingOutput
func (InstanceIamBindingOutput) ToInstanceIamBindingPtrOutput ¶
func (o InstanceIamBindingOutput) ToInstanceIamBindingPtrOutput() InstanceIamBindingPtrOutput
func (InstanceIamBindingOutput) ToInstanceIamBindingPtrOutputWithContext ¶
func (o InstanceIamBindingOutput) ToInstanceIamBindingPtrOutputWithContext(ctx context.Context) InstanceIamBindingPtrOutput
type InstanceIamBindingPtrInput ¶
type InstanceIamBindingPtrInput interface { pulumi.Input ToInstanceIamBindingPtrOutput() InstanceIamBindingPtrOutput ToInstanceIamBindingPtrOutputWithContext(ctx context.Context) InstanceIamBindingPtrOutput }
type InstanceIamBindingPtrOutput ¶
type InstanceIamBindingPtrOutput struct {
*pulumi.OutputState
}
func (InstanceIamBindingPtrOutput) ElementType ¶
func (InstanceIamBindingPtrOutput) ElementType() reflect.Type
func (InstanceIamBindingPtrOutput) ToInstanceIamBindingPtrOutput ¶
func (o InstanceIamBindingPtrOutput) ToInstanceIamBindingPtrOutput() InstanceIamBindingPtrOutput
func (InstanceIamBindingPtrOutput) ToInstanceIamBindingPtrOutputWithContext ¶
func (o InstanceIamBindingPtrOutput) ToInstanceIamBindingPtrOutputWithContext(ctx context.Context) InstanceIamBindingPtrOutput
type InstanceIamBindingState ¶
type InstanceIamBindingState struct { Condition InstanceIamBindingConditionPtrInput // (Computed) The etag of the IAM policy. Etag pulumi.StringPtrInput // Used to find the parent resource to bind the IAM policy to InstanceName pulumi.StringPtrInput // A reference to the zone where the machine resides. Used to find the parent resource to bind the IAM policy to Location pulumi.StringPtrInput Members pulumi.StringArrayInput // The ID of the project in which the resource belongs. // If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used. Project pulumi.StringPtrInput // The role that should be applied. Only one // `notebooks.InstanceIamBinding` can be used per role. Note that custom roles must be of the format // `[projects|organizations]/{parent-name}/roles/{role-name}`. Role pulumi.StringPtrInput }
func (InstanceIamBindingState) ElementType ¶
func (InstanceIamBindingState) ElementType() reflect.Type
type InstanceIamMember ¶
type InstanceIamMember struct { pulumi.CustomResourceState Condition InstanceIamMemberConditionPtrOutput `pulumi:"condition"` // (Computed) The etag of the IAM policy. Etag pulumi.StringOutput `pulumi:"etag"` // Used to find the parent resource to bind the IAM policy to InstanceName pulumi.StringOutput `pulumi:"instanceName"` // A reference to the zone where the machine resides. Used to find the parent resource to bind the IAM policy to Location pulumi.StringOutput `pulumi:"location"` Member pulumi.StringOutput `pulumi:"member"` // The ID of the project in which the resource belongs. // If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used. Project pulumi.StringOutput `pulumi:"project"` // The role that should be applied. Only one // `notebooks.InstanceIamBinding` can be used per role. Note that custom roles must be of the format // `[projects|organizations]/{parent-name}/roles/{role-name}`. Role pulumi.StringOutput `pulumi:"role"` }
Three different resources help you manage your IAM policy for Cloud AI Notebooks Instance. Each of these resources serves a different use case:
* `notebooks.InstanceIamPolicy`: Authoritative. Sets the IAM policy for the instance and replaces any existing policy already attached. * `notebooks.InstanceIamBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the instance are preserved. * `notebooks.InstanceIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the instance are preserved.
> **Note:** `notebooks.InstanceIamPolicy` **cannot** be used in conjunction with `notebooks.InstanceIamBinding` and `notebooks.InstanceIamMember` or they will fight over what your policy should be.
> **Note:** `notebooks.InstanceIamBinding` resources **can be** used in conjunction with `notebooks.InstanceIamMember` resources **only if** they do not grant privilege to the same role.
## google\_notebooks\_instance\_iam\_policy
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/notebooks" "github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/organizations" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { admin, err := organizations.LookupIAMPolicy(ctx, &organizations.LookupIAMPolicyArgs{ Bindings: []organizations.GetIAMPolicyBinding{ organizations.GetIAMPolicyBinding{ Role: "roles/viewer", Members: []string{ "user:jane@example.com", }, }, }, }, nil) if err != nil { return err } _, err = notebooks.NewInstanceIamPolicy(ctx, "policy", ¬ebooks.InstanceIamPolicyArgs{ Project: pulumi.Any(google_notebooks_instance.Instance.Project), Location: pulumi.Any(google_notebooks_instance.Instance.Location), InstanceName: pulumi.Any(google_notebooks_instance.Instance.Name), PolicyData: pulumi.String(admin.PolicyData), }) if err != nil { return err } return nil }) }
```
## google\_notebooks\_instance\_iam\_binding
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/notebooks" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := notebooks.NewInstanceIamBinding(ctx, "binding", ¬ebooks.InstanceIamBindingArgs{ Project: pulumi.Any(google_notebooks_instance.Instance.Project), Location: pulumi.Any(google_notebooks_instance.Instance.Location), InstanceName: pulumi.Any(google_notebooks_instance.Instance.Name), Role: pulumi.String("roles/viewer"), Members: pulumi.StringArray{ pulumi.String("user:jane@example.com"), }, }) if err != nil { return err } return nil }) }
```
## google\_notebooks\_instance\_iam\_member
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/notebooks" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := notebooks.NewInstanceIamMember(ctx, "member", ¬ebooks.InstanceIamMemberArgs{ Project: pulumi.Any(google_notebooks_instance.Instance.Project), Location: pulumi.Any(google_notebooks_instance.Instance.Location), InstanceName: pulumi.Any(google_notebooks_instance.Instance.Name), Role: pulumi.String("roles/viewer"), Member: pulumi.String("user:jane@example.com"), }) if err != nil { return err } return nil }) }
```
## Import
For all import syntaxes, the "resource in question" can take any of the following forms* projects/{{project}}/locations/{{location}}/instances/{{instance_name}} * {{project}}/{{location}}/{{instance_name}} * {{location}}/{{instance_name}} * {{instance_name}} Any variables not passed in the import command will be taken from the provider configuration. Cloud AI Notebooks instance IAM resources can be imported using the resource identifiers, role, and member. IAM member imports use space-delimited identifiersthe resource in question, the role, and the member identity, e.g.
```sh
$ pulumi import gcp:notebooks/instanceIamMember:InstanceIamMember editor "projects/{{project}}/locations/{{location}}/instances/{{instance_name}} roles/viewer user:jane@example.com"
```
IAM binding imports use space-delimited identifiersthe resource in question and the role, e.g.
```sh
$ pulumi import gcp:notebooks/instanceIamMember:InstanceIamMember editor "projects/{{project}}/locations/{{location}}/instances/{{instance_name}} roles/viewer"
```
IAM policy imports use the identifier of the resource in question, e.g.
```sh
$ pulumi import gcp:notebooks/instanceIamMember:InstanceIamMember editor projects/{{project}}/locations/{{location}}/instances/{{instance_name}}
```
-> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the
full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
func GetInstanceIamMember ¶
func GetInstanceIamMember(ctx *pulumi.Context, name string, id pulumi.IDInput, state *InstanceIamMemberState, opts ...pulumi.ResourceOption) (*InstanceIamMember, error)
GetInstanceIamMember gets an existing InstanceIamMember 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 NewInstanceIamMember ¶
func NewInstanceIamMember(ctx *pulumi.Context, name string, args *InstanceIamMemberArgs, opts ...pulumi.ResourceOption) (*InstanceIamMember, error)
NewInstanceIamMember registers a new resource with the given unique name, arguments, and options.
func (*InstanceIamMember) ElementType ¶
func (*InstanceIamMember) ElementType() reflect.Type
func (*InstanceIamMember) ToInstanceIamMemberOutput ¶
func (i *InstanceIamMember) ToInstanceIamMemberOutput() InstanceIamMemberOutput
func (*InstanceIamMember) ToInstanceIamMemberOutputWithContext ¶
func (i *InstanceIamMember) ToInstanceIamMemberOutputWithContext(ctx context.Context) InstanceIamMemberOutput
func (*InstanceIamMember) ToInstanceIamMemberPtrOutput ¶
func (i *InstanceIamMember) ToInstanceIamMemberPtrOutput() InstanceIamMemberPtrOutput
func (*InstanceIamMember) ToInstanceIamMemberPtrOutputWithContext ¶
func (i *InstanceIamMember) ToInstanceIamMemberPtrOutputWithContext(ctx context.Context) InstanceIamMemberPtrOutput
type InstanceIamMemberArgs ¶
type InstanceIamMemberArgs struct { Condition InstanceIamMemberConditionPtrInput // Used to find the parent resource to bind the IAM policy to InstanceName pulumi.StringInput // A reference to the zone where the machine resides. Used to find the parent resource to bind the IAM policy to Location pulumi.StringPtrInput Member pulumi.StringInput // The ID of the project in which the resource belongs. // If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used. Project pulumi.StringPtrInput // The role that should be applied. Only one // `notebooks.InstanceIamBinding` can be used per role. Note that custom roles must be of the format // `[projects|organizations]/{parent-name}/roles/{role-name}`. Role pulumi.StringInput }
The set of arguments for constructing a InstanceIamMember resource.
func (InstanceIamMemberArgs) ElementType ¶
func (InstanceIamMemberArgs) ElementType() reflect.Type
type InstanceIamMemberArray ¶
type InstanceIamMemberArray []InstanceIamMemberInput
func (InstanceIamMemberArray) ElementType ¶
func (InstanceIamMemberArray) ElementType() reflect.Type
func (InstanceIamMemberArray) ToInstanceIamMemberArrayOutput ¶
func (i InstanceIamMemberArray) ToInstanceIamMemberArrayOutput() InstanceIamMemberArrayOutput
func (InstanceIamMemberArray) ToInstanceIamMemberArrayOutputWithContext ¶
func (i InstanceIamMemberArray) ToInstanceIamMemberArrayOutputWithContext(ctx context.Context) InstanceIamMemberArrayOutput
type InstanceIamMemberArrayInput ¶
type InstanceIamMemberArrayInput interface { pulumi.Input ToInstanceIamMemberArrayOutput() InstanceIamMemberArrayOutput ToInstanceIamMemberArrayOutputWithContext(context.Context) InstanceIamMemberArrayOutput }
InstanceIamMemberArrayInput is an input type that accepts InstanceIamMemberArray and InstanceIamMemberArrayOutput values. You can construct a concrete instance of `InstanceIamMemberArrayInput` via:
InstanceIamMemberArray{ InstanceIamMemberArgs{...} }
type InstanceIamMemberArrayOutput ¶
type InstanceIamMemberArrayOutput struct{ *pulumi.OutputState }
func (InstanceIamMemberArrayOutput) ElementType ¶
func (InstanceIamMemberArrayOutput) ElementType() reflect.Type
func (InstanceIamMemberArrayOutput) Index ¶
func (o InstanceIamMemberArrayOutput) Index(i pulumi.IntInput) InstanceIamMemberOutput
func (InstanceIamMemberArrayOutput) ToInstanceIamMemberArrayOutput ¶
func (o InstanceIamMemberArrayOutput) ToInstanceIamMemberArrayOutput() InstanceIamMemberArrayOutput
func (InstanceIamMemberArrayOutput) ToInstanceIamMemberArrayOutputWithContext ¶
func (o InstanceIamMemberArrayOutput) ToInstanceIamMemberArrayOutputWithContext(ctx context.Context) InstanceIamMemberArrayOutput
type InstanceIamMemberConditionArgs ¶
type InstanceIamMemberConditionArgs struct { Description pulumi.StringPtrInput `pulumi:"description"` Expression pulumi.StringInput `pulumi:"expression"` Title pulumi.StringInput `pulumi:"title"` }
func (InstanceIamMemberConditionArgs) ElementType ¶
func (InstanceIamMemberConditionArgs) ElementType() reflect.Type
func (InstanceIamMemberConditionArgs) ToInstanceIamMemberConditionOutput ¶
func (i InstanceIamMemberConditionArgs) ToInstanceIamMemberConditionOutput() InstanceIamMemberConditionOutput
func (InstanceIamMemberConditionArgs) ToInstanceIamMemberConditionOutputWithContext ¶
func (i InstanceIamMemberConditionArgs) ToInstanceIamMemberConditionOutputWithContext(ctx context.Context) InstanceIamMemberConditionOutput
func (InstanceIamMemberConditionArgs) ToInstanceIamMemberConditionPtrOutput ¶
func (i InstanceIamMemberConditionArgs) ToInstanceIamMemberConditionPtrOutput() InstanceIamMemberConditionPtrOutput
func (InstanceIamMemberConditionArgs) ToInstanceIamMemberConditionPtrOutputWithContext ¶
func (i InstanceIamMemberConditionArgs) ToInstanceIamMemberConditionPtrOutputWithContext(ctx context.Context) InstanceIamMemberConditionPtrOutput
type InstanceIamMemberConditionInput ¶
type InstanceIamMemberConditionInput interface { pulumi.Input ToInstanceIamMemberConditionOutput() InstanceIamMemberConditionOutput ToInstanceIamMemberConditionOutputWithContext(context.Context) InstanceIamMemberConditionOutput }
InstanceIamMemberConditionInput is an input type that accepts InstanceIamMemberConditionArgs and InstanceIamMemberConditionOutput values. You can construct a concrete instance of `InstanceIamMemberConditionInput` via:
InstanceIamMemberConditionArgs{...}
type InstanceIamMemberConditionOutput ¶
type InstanceIamMemberConditionOutput struct{ *pulumi.OutputState }
func (InstanceIamMemberConditionOutput) Description ¶
func (o InstanceIamMemberConditionOutput) Description() pulumi.StringPtrOutput
func (InstanceIamMemberConditionOutput) ElementType ¶
func (InstanceIamMemberConditionOutput) ElementType() reflect.Type
func (InstanceIamMemberConditionOutput) Expression ¶
func (o InstanceIamMemberConditionOutput) Expression() pulumi.StringOutput
func (InstanceIamMemberConditionOutput) Title ¶
func (o InstanceIamMemberConditionOutput) Title() pulumi.StringOutput
func (InstanceIamMemberConditionOutput) ToInstanceIamMemberConditionOutput ¶
func (o InstanceIamMemberConditionOutput) ToInstanceIamMemberConditionOutput() InstanceIamMemberConditionOutput
func (InstanceIamMemberConditionOutput) ToInstanceIamMemberConditionOutputWithContext ¶
func (o InstanceIamMemberConditionOutput) ToInstanceIamMemberConditionOutputWithContext(ctx context.Context) InstanceIamMemberConditionOutput
func (InstanceIamMemberConditionOutput) ToInstanceIamMemberConditionPtrOutput ¶
func (o InstanceIamMemberConditionOutput) ToInstanceIamMemberConditionPtrOutput() InstanceIamMemberConditionPtrOutput
func (InstanceIamMemberConditionOutput) ToInstanceIamMemberConditionPtrOutputWithContext ¶
func (o InstanceIamMemberConditionOutput) ToInstanceIamMemberConditionPtrOutputWithContext(ctx context.Context) InstanceIamMemberConditionPtrOutput
type InstanceIamMemberConditionPtrInput ¶
type InstanceIamMemberConditionPtrInput interface { pulumi.Input ToInstanceIamMemberConditionPtrOutput() InstanceIamMemberConditionPtrOutput ToInstanceIamMemberConditionPtrOutputWithContext(context.Context) InstanceIamMemberConditionPtrOutput }
InstanceIamMemberConditionPtrInput is an input type that accepts InstanceIamMemberConditionArgs, InstanceIamMemberConditionPtr and InstanceIamMemberConditionPtrOutput values. You can construct a concrete instance of `InstanceIamMemberConditionPtrInput` via:
InstanceIamMemberConditionArgs{...} or: nil
func InstanceIamMemberConditionPtr ¶
func InstanceIamMemberConditionPtr(v *InstanceIamMemberConditionArgs) InstanceIamMemberConditionPtrInput
type InstanceIamMemberConditionPtrOutput ¶
type InstanceIamMemberConditionPtrOutput struct{ *pulumi.OutputState }
func (InstanceIamMemberConditionPtrOutput) Description ¶
func (o InstanceIamMemberConditionPtrOutput) Description() pulumi.StringPtrOutput
func (InstanceIamMemberConditionPtrOutput) Elem ¶
func (o InstanceIamMemberConditionPtrOutput) Elem() InstanceIamMemberConditionOutput
func (InstanceIamMemberConditionPtrOutput) ElementType ¶
func (InstanceIamMemberConditionPtrOutput) ElementType() reflect.Type
func (InstanceIamMemberConditionPtrOutput) Expression ¶
func (o InstanceIamMemberConditionPtrOutput) Expression() pulumi.StringPtrOutput
func (InstanceIamMemberConditionPtrOutput) Title ¶
func (o InstanceIamMemberConditionPtrOutput) Title() pulumi.StringPtrOutput
func (InstanceIamMemberConditionPtrOutput) ToInstanceIamMemberConditionPtrOutput ¶
func (o InstanceIamMemberConditionPtrOutput) ToInstanceIamMemberConditionPtrOutput() InstanceIamMemberConditionPtrOutput
func (InstanceIamMemberConditionPtrOutput) ToInstanceIamMemberConditionPtrOutputWithContext ¶
func (o InstanceIamMemberConditionPtrOutput) ToInstanceIamMemberConditionPtrOutputWithContext(ctx context.Context) InstanceIamMemberConditionPtrOutput
type InstanceIamMemberInput ¶
type InstanceIamMemberInput interface { pulumi.Input ToInstanceIamMemberOutput() InstanceIamMemberOutput ToInstanceIamMemberOutputWithContext(ctx context.Context) InstanceIamMemberOutput }
type InstanceIamMemberMap ¶
type InstanceIamMemberMap map[string]InstanceIamMemberInput
func (InstanceIamMemberMap) ElementType ¶
func (InstanceIamMemberMap) ElementType() reflect.Type
func (InstanceIamMemberMap) ToInstanceIamMemberMapOutput ¶
func (i InstanceIamMemberMap) ToInstanceIamMemberMapOutput() InstanceIamMemberMapOutput
func (InstanceIamMemberMap) ToInstanceIamMemberMapOutputWithContext ¶
func (i InstanceIamMemberMap) ToInstanceIamMemberMapOutputWithContext(ctx context.Context) InstanceIamMemberMapOutput
type InstanceIamMemberMapInput ¶
type InstanceIamMemberMapInput interface { pulumi.Input ToInstanceIamMemberMapOutput() InstanceIamMemberMapOutput ToInstanceIamMemberMapOutputWithContext(context.Context) InstanceIamMemberMapOutput }
InstanceIamMemberMapInput is an input type that accepts InstanceIamMemberMap and InstanceIamMemberMapOutput values. You can construct a concrete instance of `InstanceIamMemberMapInput` via:
InstanceIamMemberMap{ "key": InstanceIamMemberArgs{...} }
type InstanceIamMemberMapOutput ¶
type InstanceIamMemberMapOutput struct{ *pulumi.OutputState }
func (InstanceIamMemberMapOutput) ElementType ¶
func (InstanceIamMemberMapOutput) ElementType() reflect.Type
func (InstanceIamMemberMapOutput) MapIndex ¶
func (o InstanceIamMemberMapOutput) MapIndex(k pulumi.StringInput) InstanceIamMemberOutput
func (InstanceIamMemberMapOutput) ToInstanceIamMemberMapOutput ¶
func (o InstanceIamMemberMapOutput) ToInstanceIamMemberMapOutput() InstanceIamMemberMapOutput
func (InstanceIamMemberMapOutput) ToInstanceIamMemberMapOutputWithContext ¶
func (o InstanceIamMemberMapOutput) ToInstanceIamMemberMapOutputWithContext(ctx context.Context) InstanceIamMemberMapOutput
type InstanceIamMemberOutput ¶
type InstanceIamMemberOutput struct {
*pulumi.OutputState
}
func (InstanceIamMemberOutput) ElementType ¶
func (InstanceIamMemberOutput) ElementType() reflect.Type
func (InstanceIamMemberOutput) ToInstanceIamMemberOutput ¶
func (o InstanceIamMemberOutput) ToInstanceIamMemberOutput() InstanceIamMemberOutput
func (InstanceIamMemberOutput) ToInstanceIamMemberOutputWithContext ¶
func (o InstanceIamMemberOutput) ToInstanceIamMemberOutputWithContext(ctx context.Context) InstanceIamMemberOutput
func (InstanceIamMemberOutput) ToInstanceIamMemberPtrOutput ¶
func (o InstanceIamMemberOutput) ToInstanceIamMemberPtrOutput() InstanceIamMemberPtrOutput
func (InstanceIamMemberOutput) ToInstanceIamMemberPtrOutputWithContext ¶
func (o InstanceIamMemberOutput) ToInstanceIamMemberPtrOutputWithContext(ctx context.Context) InstanceIamMemberPtrOutput
type InstanceIamMemberPtrInput ¶
type InstanceIamMemberPtrInput interface { pulumi.Input ToInstanceIamMemberPtrOutput() InstanceIamMemberPtrOutput ToInstanceIamMemberPtrOutputWithContext(ctx context.Context) InstanceIamMemberPtrOutput }
type InstanceIamMemberPtrOutput ¶
type InstanceIamMemberPtrOutput struct {
*pulumi.OutputState
}
func (InstanceIamMemberPtrOutput) ElementType ¶
func (InstanceIamMemberPtrOutput) ElementType() reflect.Type
func (InstanceIamMemberPtrOutput) ToInstanceIamMemberPtrOutput ¶
func (o InstanceIamMemberPtrOutput) ToInstanceIamMemberPtrOutput() InstanceIamMemberPtrOutput
func (InstanceIamMemberPtrOutput) ToInstanceIamMemberPtrOutputWithContext ¶
func (o InstanceIamMemberPtrOutput) ToInstanceIamMemberPtrOutputWithContext(ctx context.Context) InstanceIamMemberPtrOutput
type InstanceIamMemberState ¶
type InstanceIamMemberState struct { Condition InstanceIamMemberConditionPtrInput // (Computed) The etag of the IAM policy. Etag pulumi.StringPtrInput // Used to find the parent resource to bind the IAM policy to InstanceName pulumi.StringPtrInput // A reference to the zone where the machine resides. Used to find the parent resource to bind the IAM policy to Location pulumi.StringPtrInput Member pulumi.StringPtrInput // The ID of the project in which the resource belongs. // If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used. Project pulumi.StringPtrInput // The role that should be applied. Only one // `notebooks.InstanceIamBinding` can be used per role. Note that custom roles must be of the format // `[projects|organizations]/{parent-name}/roles/{role-name}`. Role pulumi.StringPtrInput }
func (InstanceIamMemberState) ElementType ¶
func (InstanceIamMemberState) ElementType() reflect.Type
type InstanceIamPolicy ¶
type InstanceIamPolicy struct { pulumi.CustomResourceState // (Computed) The etag of the IAM policy. Etag pulumi.StringOutput `pulumi:"etag"` // Used to find the parent resource to bind the IAM policy to InstanceName pulumi.StringOutput `pulumi:"instanceName"` // A reference to the zone where the machine resides. Used to find the parent resource to bind the IAM policy to Location pulumi.StringOutput `pulumi:"location"` // The policy data generated by // a `organizations.getIAMPolicy` data source. PolicyData pulumi.StringOutput `pulumi:"policyData"` // The ID of the project in which the resource belongs. // If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used. Project pulumi.StringOutput `pulumi:"project"` }
Three different resources help you manage your IAM policy for Cloud AI Notebooks Instance. Each of these resources serves a different use case:
* `notebooks.InstanceIamPolicy`: Authoritative. Sets the IAM policy for the instance and replaces any existing policy already attached. * `notebooks.InstanceIamBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the instance are preserved. * `notebooks.InstanceIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the instance are preserved.
> **Note:** `notebooks.InstanceIamPolicy` **cannot** be used in conjunction with `notebooks.InstanceIamBinding` and `notebooks.InstanceIamMember` or they will fight over what your policy should be.
> **Note:** `notebooks.InstanceIamBinding` resources **can be** used in conjunction with `notebooks.InstanceIamMember` resources **only if** they do not grant privilege to the same role.
## google\_notebooks\_instance\_iam\_policy
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/notebooks" "github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/organizations" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { admin, err := organizations.LookupIAMPolicy(ctx, &organizations.LookupIAMPolicyArgs{ Bindings: []organizations.GetIAMPolicyBinding{ organizations.GetIAMPolicyBinding{ Role: "roles/viewer", Members: []string{ "user:jane@example.com", }, }, }, }, nil) if err != nil { return err } _, err = notebooks.NewInstanceIamPolicy(ctx, "policy", ¬ebooks.InstanceIamPolicyArgs{ Project: pulumi.Any(google_notebooks_instance.Instance.Project), Location: pulumi.Any(google_notebooks_instance.Instance.Location), InstanceName: pulumi.Any(google_notebooks_instance.Instance.Name), PolicyData: pulumi.String(admin.PolicyData), }) if err != nil { return err } return nil }) }
```
## google\_notebooks\_instance\_iam\_binding
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/notebooks" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := notebooks.NewInstanceIamBinding(ctx, "binding", ¬ebooks.InstanceIamBindingArgs{ Project: pulumi.Any(google_notebooks_instance.Instance.Project), Location: pulumi.Any(google_notebooks_instance.Instance.Location), InstanceName: pulumi.Any(google_notebooks_instance.Instance.Name), Role: pulumi.String("roles/viewer"), Members: pulumi.StringArray{ pulumi.String("user:jane@example.com"), }, }) if err != nil { return err } return nil }) }
```
## google\_notebooks\_instance\_iam\_member
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/notebooks" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := notebooks.NewInstanceIamMember(ctx, "member", ¬ebooks.InstanceIamMemberArgs{ Project: pulumi.Any(google_notebooks_instance.Instance.Project), Location: pulumi.Any(google_notebooks_instance.Instance.Location), InstanceName: pulumi.Any(google_notebooks_instance.Instance.Name), Role: pulumi.String("roles/viewer"), Member: pulumi.String("user:jane@example.com"), }) if err != nil { return err } return nil }) }
```
## Import
For all import syntaxes, the "resource in question" can take any of the following forms* projects/{{project}}/locations/{{location}}/instances/{{instance_name}} * {{project}}/{{location}}/{{instance_name}} * {{location}}/{{instance_name}} * {{instance_name}} Any variables not passed in the import command will be taken from the provider configuration. Cloud AI Notebooks instance IAM resources can be imported using the resource identifiers, role, and member. IAM member imports use space-delimited identifiersthe resource in question, the role, and the member identity, e.g.
```sh
$ pulumi import gcp:notebooks/instanceIamPolicy:InstanceIamPolicy editor "projects/{{project}}/locations/{{location}}/instances/{{instance_name}} roles/viewer user:jane@example.com"
```
IAM binding imports use space-delimited identifiersthe resource in question and the role, e.g.
```sh
$ pulumi import gcp:notebooks/instanceIamPolicy:InstanceIamPolicy editor "projects/{{project}}/locations/{{location}}/instances/{{instance_name}} roles/viewer"
```
IAM policy imports use the identifier of the resource in question, e.g.
```sh
$ pulumi import gcp:notebooks/instanceIamPolicy:InstanceIamPolicy editor projects/{{project}}/locations/{{location}}/instances/{{instance_name}}
```
-> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the
full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
func GetInstanceIamPolicy ¶
func GetInstanceIamPolicy(ctx *pulumi.Context, name string, id pulumi.IDInput, state *InstanceIamPolicyState, opts ...pulumi.ResourceOption) (*InstanceIamPolicy, error)
GetInstanceIamPolicy gets an existing InstanceIamPolicy 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 NewInstanceIamPolicy ¶
func NewInstanceIamPolicy(ctx *pulumi.Context, name string, args *InstanceIamPolicyArgs, opts ...pulumi.ResourceOption) (*InstanceIamPolicy, error)
NewInstanceIamPolicy registers a new resource with the given unique name, arguments, and options.
func (*InstanceIamPolicy) ElementType ¶
func (*InstanceIamPolicy) ElementType() reflect.Type
func (*InstanceIamPolicy) ToInstanceIamPolicyOutput ¶
func (i *InstanceIamPolicy) ToInstanceIamPolicyOutput() InstanceIamPolicyOutput
func (*InstanceIamPolicy) ToInstanceIamPolicyOutputWithContext ¶
func (i *InstanceIamPolicy) ToInstanceIamPolicyOutputWithContext(ctx context.Context) InstanceIamPolicyOutput
func (*InstanceIamPolicy) ToInstanceIamPolicyPtrOutput ¶
func (i *InstanceIamPolicy) ToInstanceIamPolicyPtrOutput() InstanceIamPolicyPtrOutput
func (*InstanceIamPolicy) ToInstanceIamPolicyPtrOutputWithContext ¶
func (i *InstanceIamPolicy) ToInstanceIamPolicyPtrOutputWithContext(ctx context.Context) InstanceIamPolicyPtrOutput
type InstanceIamPolicyArgs ¶
type InstanceIamPolicyArgs struct { // Used to find the parent resource to bind the IAM policy to InstanceName pulumi.StringInput // A reference to the zone where the machine resides. Used to find the parent resource to bind the IAM policy to Location pulumi.StringPtrInput // The policy data generated by // a `organizations.getIAMPolicy` data source. PolicyData pulumi.StringInput // The ID of the project in which the resource belongs. // If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used. Project pulumi.StringPtrInput }
The set of arguments for constructing a InstanceIamPolicy resource.
func (InstanceIamPolicyArgs) ElementType ¶
func (InstanceIamPolicyArgs) ElementType() reflect.Type
type InstanceIamPolicyArray ¶
type InstanceIamPolicyArray []InstanceIamPolicyInput
func (InstanceIamPolicyArray) ElementType ¶
func (InstanceIamPolicyArray) ElementType() reflect.Type
func (InstanceIamPolicyArray) ToInstanceIamPolicyArrayOutput ¶
func (i InstanceIamPolicyArray) ToInstanceIamPolicyArrayOutput() InstanceIamPolicyArrayOutput
func (InstanceIamPolicyArray) ToInstanceIamPolicyArrayOutputWithContext ¶
func (i InstanceIamPolicyArray) ToInstanceIamPolicyArrayOutputWithContext(ctx context.Context) InstanceIamPolicyArrayOutput
type InstanceIamPolicyArrayInput ¶
type InstanceIamPolicyArrayInput interface { pulumi.Input ToInstanceIamPolicyArrayOutput() InstanceIamPolicyArrayOutput ToInstanceIamPolicyArrayOutputWithContext(context.Context) InstanceIamPolicyArrayOutput }
InstanceIamPolicyArrayInput is an input type that accepts InstanceIamPolicyArray and InstanceIamPolicyArrayOutput values. You can construct a concrete instance of `InstanceIamPolicyArrayInput` via:
InstanceIamPolicyArray{ InstanceIamPolicyArgs{...} }
type InstanceIamPolicyArrayOutput ¶
type InstanceIamPolicyArrayOutput struct{ *pulumi.OutputState }
func (InstanceIamPolicyArrayOutput) ElementType ¶
func (InstanceIamPolicyArrayOutput) ElementType() reflect.Type
func (InstanceIamPolicyArrayOutput) Index ¶
func (o InstanceIamPolicyArrayOutput) Index(i pulumi.IntInput) InstanceIamPolicyOutput
func (InstanceIamPolicyArrayOutput) ToInstanceIamPolicyArrayOutput ¶
func (o InstanceIamPolicyArrayOutput) ToInstanceIamPolicyArrayOutput() InstanceIamPolicyArrayOutput
func (InstanceIamPolicyArrayOutput) ToInstanceIamPolicyArrayOutputWithContext ¶
func (o InstanceIamPolicyArrayOutput) ToInstanceIamPolicyArrayOutputWithContext(ctx context.Context) InstanceIamPolicyArrayOutput
type InstanceIamPolicyInput ¶
type InstanceIamPolicyInput interface { pulumi.Input ToInstanceIamPolicyOutput() InstanceIamPolicyOutput ToInstanceIamPolicyOutputWithContext(ctx context.Context) InstanceIamPolicyOutput }
type InstanceIamPolicyMap ¶
type InstanceIamPolicyMap map[string]InstanceIamPolicyInput
func (InstanceIamPolicyMap) ElementType ¶
func (InstanceIamPolicyMap) ElementType() reflect.Type
func (InstanceIamPolicyMap) ToInstanceIamPolicyMapOutput ¶
func (i InstanceIamPolicyMap) ToInstanceIamPolicyMapOutput() InstanceIamPolicyMapOutput
func (InstanceIamPolicyMap) ToInstanceIamPolicyMapOutputWithContext ¶
func (i InstanceIamPolicyMap) ToInstanceIamPolicyMapOutputWithContext(ctx context.Context) InstanceIamPolicyMapOutput
type InstanceIamPolicyMapInput ¶
type InstanceIamPolicyMapInput interface { pulumi.Input ToInstanceIamPolicyMapOutput() InstanceIamPolicyMapOutput ToInstanceIamPolicyMapOutputWithContext(context.Context) InstanceIamPolicyMapOutput }
InstanceIamPolicyMapInput is an input type that accepts InstanceIamPolicyMap and InstanceIamPolicyMapOutput values. You can construct a concrete instance of `InstanceIamPolicyMapInput` via:
InstanceIamPolicyMap{ "key": InstanceIamPolicyArgs{...} }
type InstanceIamPolicyMapOutput ¶
type InstanceIamPolicyMapOutput struct{ *pulumi.OutputState }
func (InstanceIamPolicyMapOutput) ElementType ¶
func (InstanceIamPolicyMapOutput) ElementType() reflect.Type
func (InstanceIamPolicyMapOutput) MapIndex ¶
func (o InstanceIamPolicyMapOutput) MapIndex(k pulumi.StringInput) InstanceIamPolicyOutput
func (InstanceIamPolicyMapOutput) ToInstanceIamPolicyMapOutput ¶
func (o InstanceIamPolicyMapOutput) ToInstanceIamPolicyMapOutput() InstanceIamPolicyMapOutput
func (InstanceIamPolicyMapOutput) ToInstanceIamPolicyMapOutputWithContext ¶
func (o InstanceIamPolicyMapOutput) ToInstanceIamPolicyMapOutputWithContext(ctx context.Context) InstanceIamPolicyMapOutput
type InstanceIamPolicyOutput ¶
type InstanceIamPolicyOutput struct {
*pulumi.OutputState
}
func (InstanceIamPolicyOutput) ElementType ¶
func (InstanceIamPolicyOutput) ElementType() reflect.Type
func (InstanceIamPolicyOutput) ToInstanceIamPolicyOutput ¶
func (o InstanceIamPolicyOutput) ToInstanceIamPolicyOutput() InstanceIamPolicyOutput
func (InstanceIamPolicyOutput) ToInstanceIamPolicyOutputWithContext ¶
func (o InstanceIamPolicyOutput) ToInstanceIamPolicyOutputWithContext(ctx context.Context) InstanceIamPolicyOutput
func (InstanceIamPolicyOutput) ToInstanceIamPolicyPtrOutput ¶
func (o InstanceIamPolicyOutput) ToInstanceIamPolicyPtrOutput() InstanceIamPolicyPtrOutput
func (InstanceIamPolicyOutput) ToInstanceIamPolicyPtrOutputWithContext ¶
func (o InstanceIamPolicyOutput) ToInstanceIamPolicyPtrOutputWithContext(ctx context.Context) InstanceIamPolicyPtrOutput
type InstanceIamPolicyPtrInput ¶
type InstanceIamPolicyPtrInput interface { pulumi.Input ToInstanceIamPolicyPtrOutput() InstanceIamPolicyPtrOutput ToInstanceIamPolicyPtrOutputWithContext(ctx context.Context) InstanceIamPolicyPtrOutput }
type InstanceIamPolicyPtrOutput ¶
type InstanceIamPolicyPtrOutput struct {
*pulumi.OutputState
}
func (InstanceIamPolicyPtrOutput) ElementType ¶
func (InstanceIamPolicyPtrOutput) ElementType() reflect.Type
func (InstanceIamPolicyPtrOutput) ToInstanceIamPolicyPtrOutput ¶
func (o InstanceIamPolicyPtrOutput) ToInstanceIamPolicyPtrOutput() InstanceIamPolicyPtrOutput
func (InstanceIamPolicyPtrOutput) ToInstanceIamPolicyPtrOutputWithContext ¶
func (o InstanceIamPolicyPtrOutput) ToInstanceIamPolicyPtrOutputWithContext(ctx context.Context) InstanceIamPolicyPtrOutput
type InstanceIamPolicyState ¶
type InstanceIamPolicyState struct { // (Computed) The etag of the IAM policy. Etag pulumi.StringPtrInput // Used to find the parent resource to bind the IAM policy to InstanceName pulumi.StringPtrInput // A reference to the zone where the machine resides. Used to find the parent resource to bind the IAM policy to Location pulumi.StringPtrInput // The policy data generated by // a `organizations.getIAMPolicy` data source. PolicyData pulumi.StringPtrInput // The ID of the project in which the resource belongs. // If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used. Project pulumi.StringPtrInput }
func (InstanceIamPolicyState) ElementType ¶
func (InstanceIamPolicyState) ElementType() reflect.Type
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) ElementType ¶
func (InstanceOutput) ElementType() reflect.Type
func (InstanceOutput) ToInstanceOutput ¶
func (o InstanceOutput) ToInstanceOutput() InstanceOutput
func (InstanceOutput) ToInstanceOutputWithContext ¶
func (o InstanceOutput) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput
func (InstanceOutput) ToInstancePtrOutput ¶
func (o InstanceOutput) ToInstancePtrOutput() InstancePtrOutput
func (InstanceOutput) ToInstancePtrOutputWithContext ¶
func (o InstanceOutput) ToInstancePtrOutputWithContext(ctx context.Context) InstancePtrOutput
type InstancePtrInput ¶
type InstancePtrInput interface { pulumi.Input ToInstancePtrOutput() InstancePtrOutput ToInstancePtrOutputWithContext(ctx context.Context) InstancePtrOutput }
type InstancePtrOutput ¶
type InstancePtrOutput struct {
*pulumi.OutputState
}
func (InstancePtrOutput) ElementType ¶
func (InstancePtrOutput) ElementType() reflect.Type
func (InstancePtrOutput) ToInstancePtrOutput ¶
func (o InstancePtrOutput) ToInstancePtrOutput() InstancePtrOutput
func (InstancePtrOutput) ToInstancePtrOutputWithContext ¶
func (o InstancePtrOutput) ToInstancePtrOutputWithContext(ctx context.Context) InstancePtrOutput
type InstanceShieldedInstanceConfig ¶
type InstanceShieldedInstanceConfig struct { // Defines whether the instance has integrity monitoring enabled. Enables monitoring and attestation of the // boot integrity of the instance. The attestation is performed against the integrity policy baseline. // This baseline is initially derived from the implicitly trusted boot image when the instance is created. // Enabled by default. EnableIntegrityMonitoring *bool `pulumi:"enableIntegrityMonitoring"` // Defines whether the instance has Secure Boot enabled. Secure Boot helps ensure that the system only runs // authentic software by verifying the digital signature of all boot components, and halting the boot process // if signature verification fails. // Disabled by default. EnableSecureBoot *bool `pulumi:"enableSecureBoot"` // Defines whether the instance has the vTPM enabled. // Enabled by default. EnableVtpm *bool `pulumi:"enableVtpm"` }
type InstanceShieldedInstanceConfigArgs ¶
type InstanceShieldedInstanceConfigArgs struct { // Defines whether the instance has integrity monitoring enabled. Enables monitoring and attestation of the // boot integrity of the instance. The attestation is performed against the integrity policy baseline. // This baseline is initially derived from the implicitly trusted boot image when the instance is created. // Enabled by default. EnableIntegrityMonitoring pulumi.BoolPtrInput `pulumi:"enableIntegrityMonitoring"` // Defines whether the instance has Secure Boot enabled. Secure Boot helps ensure that the system only runs // authentic software by verifying the digital signature of all boot components, and halting the boot process // if signature verification fails. // Disabled by default. EnableSecureBoot pulumi.BoolPtrInput `pulumi:"enableSecureBoot"` // Defines whether the instance has the vTPM enabled. // Enabled by default. EnableVtpm pulumi.BoolPtrInput `pulumi:"enableVtpm"` }
func (InstanceShieldedInstanceConfigArgs) ElementType ¶
func (InstanceShieldedInstanceConfigArgs) ElementType() reflect.Type
func (InstanceShieldedInstanceConfigArgs) ToInstanceShieldedInstanceConfigOutput ¶
func (i InstanceShieldedInstanceConfigArgs) ToInstanceShieldedInstanceConfigOutput() InstanceShieldedInstanceConfigOutput
func (InstanceShieldedInstanceConfigArgs) ToInstanceShieldedInstanceConfigOutputWithContext ¶
func (i InstanceShieldedInstanceConfigArgs) ToInstanceShieldedInstanceConfigOutputWithContext(ctx context.Context) InstanceShieldedInstanceConfigOutput
func (InstanceShieldedInstanceConfigArgs) ToInstanceShieldedInstanceConfigPtrOutput ¶
func (i InstanceShieldedInstanceConfigArgs) ToInstanceShieldedInstanceConfigPtrOutput() InstanceShieldedInstanceConfigPtrOutput
func (InstanceShieldedInstanceConfigArgs) ToInstanceShieldedInstanceConfigPtrOutputWithContext ¶
func (i InstanceShieldedInstanceConfigArgs) ToInstanceShieldedInstanceConfigPtrOutputWithContext(ctx context.Context) InstanceShieldedInstanceConfigPtrOutput
type InstanceShieldedInstanceConfigInput ¶
type InstanceShieldedInstanceConfigInput interface { pulumi.Input ToInstanceShieldedInstanceConfigOutput() InstanceShieldedInstanceConfigOutput ToInstanceShieldedInstanceConfigOutputWithContext(context.Context) InstanceShieldedInstanceConfigOutput }
InstanceShieldedInstanceConfigInput is an input type that accepts InstanceShieldedInstanceConfigArgs and InstanceShieldedInstanceConfigOutput values. You can construct a concrete instance of `InstanceShieldedInstanceConfigInput` via:
InstanceShieldedInstanceConfigArgs{...}
type InstanceShieldedInstanceConfigOutput ¶
type InstanceShieldedInstanceConfigOutput struct{ *pulumi.OutputState }
func (InstanceShieldedInstanceConfigOutput) ElementType ¶
func (InstanceShieldedInstanceConfigOutput) ElementType() reflect.Type
func (InstanceShieldedInstanceConfigOutput) EnableIntegrityMonitoring ¶
func (o InstanceShieldedInstanceConfigOutput) EnableIntegrityMonitoring() pulumi.BoolPtrOutput
Defines whether the instance has integrity monitoring enabled. Enables monitoring and attestation of the boot integrity of the instance. The attestation is performed against the integrity policy baseline. This baseline is initially derived from the implicitly trusted boot image when the instance is created. Enabled by default.
func (InstanceShieldedInstanceConfigOutput) EnableSecureBoot ¶
func (o InstanceShieldedInstanceConfigOutput) EnableSecureBoot() pulumi.BoolPtrOutput
Defines whether the instance has Secure Boot enabled. Secure Boot helps ensure that the system only runs authentic software by verifying the digital signature of all boot components, and halting the boot process if signature verification fails. Disabled by default.
func (InstanceShieldedInstanceConfigOutput) EnableVtpm ¶
func (o InstanceShieldedInstanceConfigOutput) EnableVtpm() pulumi.BoolPtrOutput
Defines whether the instance has the vTPM enabled. Enabled by default.
func (InstanceShieldedInstanceConfigOutput) ToInstanceShieldedInstanceConfigOutput ¶
func (o InstanceShieldedInstanceConfigOutput) ToInstanceShieldedInstanceConfigOutput() InstanceShieldedInstanceConfigOutput
func (InstanceShieldedInstanceConfigOutput) ToInstanceShieldedInstanceConfigOutputWithContext ¶
func (o InstanceShieldedInstanceConfigOutput) ToInstanceShieldedInstanceConfigOutputWithContext(ctx context.Context) InstanceShieldedInstanceConfigOutput
func (InstanceShieldedInstanceConfigOutput) ToInstanceShieldedInstanceConfigPtrOutput ¶
func (o InstanceShieldedInstanceConfigOutput) ToInstanceShieldedInstanceConfigPtrOutput() InstanceShieldedInstanceConfigPtrOutput
func (InstanceShieldedInstanceConfigOutput) ToInstanceShieldedInstanceConfigPtrOutputWithContext ¶
func (o InstanceShieldedInstanceConfigOutput) ToInstanceShieldedInstanceConfigPtrOutputWithContext(ctx context.Context) InstanceShieldedInstanceConfigPtrOutput
type InstanceShieldedInstanceConfigPtrInput ¶
type InstanceShieldedInstanceConfigPtrInput interface { pulumi.Input ToInstanceShieldedInstanceConfigPtrOutput() InstanceShieldedInstanceConfigPtrOutput ToInstanceShieldedInstanceConfigPtrOutputWithContext(context.Context) InstanceShieldedInstanceConfigPtrOutput }
InstanceShieldedInstanceConfigPtrInput is an input type that accepts InstanceShieldedInstanceConfigArgs, InstanceShieldedInstanceConfigPtr and InstanceShieldedInstanceConfigPtrOutput values. You can construct a concrete instance of `InstanceShieldedInstanceConfigPtrInput` via:
InstanceShieldedInstanceConfigArgs{...} or: nil
func InstanceShieldedInstanceConfigPtr ¶
func InstanceShieldedInstanceConfigPtr(v *InstanceShieldedInstanceConfigArgs) InstanceShieldedInstanceConfigPtrInput
type InstanceShieldedInstanceConfigPtrOutput ¶
type InstanceShieldedInstanceConfigPtrOutput struct{ *pulumi.OutputState }
func (InstanceShieldedInstanceConfigPtrOutput) ElementType ¶
func (InstanceShieldedInstanceConfigPtrOutput) ElementType() reflect.Type
func (InstanceShieldedInstanceConfigPtrOutput) EnableIntegrityMonitoring ¶
func (o InstanceShieldedInstanceConfigPtrOutput) EnableIntegrityMonitoring() pulumi.BoolPtrOutput
Defines whether the instance has integrity monitoring enabled. Enables monitoring and attestation of the boot integrity of the instance. The attestation is performed against the integrity policy baseline. This baseline is initially derived from the implicitly trusted boot image when the instance is created. Enabled by default.
func (InstanceShieldedInstanceConfigPtrOutput) EnableSecureBoot ¶
func (o InstanceShieldedInstanceConfigPtrOutput) EnableSecureBoot() pulumi.BoolPtrOutput
Defines whether the instance has Secure Boot enabled. Secure Boot helps ensure that the system only runs authentic software by verifying the digital signature of all boot components, and halting the boot process if signature verification fails. Disabled by default.
func (InstanceShieldedInstanceConfigPtrOutput) EnableVtpm ¶
func (o InstanceShieldedInstanceConfigPtrOutput) EnableVtpm() pulumi.BoolPtrOutput
Defines whether the instance has the vTPM enabled. Enabled by default.
func (InstanceShieldedInstanceConfigPtrOutput) ToInstanceShieldedInstanceConfigPtrOutput ¶
func (o InstanceShieldedInstanceConfigPtrOutput) ToInstanceShieldedInstanceConfigPtrOutput() InstanceShieldedInstanceConfigPtrOutput
func (InstanceShieldedInstanceConfigPtrOutput) ToInstanceShieldedInstanceConfigPtrOutputWithContext ¶
func (o InstanceShieldedInstanceConfigPtrOutput) ToInstanceShieldedInstanceConfigPtrOutputWithContext(ctx context.Context) InstanceShieldedInstanceConfigPtrOutput
type InstanceState ¶
type InstanceState struct { // The hardware accelerator used on this instance. If you use accelerators, // make sure that your configuration has enough vCPUs and memory to support the // machineType you have selected. // Structure is documented below. AcceleratorConfig InstanceAcceleratorConfigPtrInput // The size of the boot disk in GB attached to this instance, // up to a maximum of 64000 GB (64 TB). The minimum recommended value is 100 GB. // If not specified, this defaults to 100. BootDiskSizeGb pulumi.IntPtrInput // Possible disk types for notebook instances. // Possible values are `DISK_TYPE_UNSPECIFIED`, `PD_STANDARD`, `PD_SSD`, and `PD_BALANCED`. BootDiskType pulumi.StringPtrInput // Use a container image to start the notebook instance. // Structure is documented below. ContainerImage InstanceContainerImagePtrInput // Instance creation time CreateTime pulumi.StringPtrInput // Specify a custom Cloud Storage path where the GPU driver is stored. // If not specified, we'll automatically choose from official GPU drivers. CustomGpuDriverPath pulumi.StringPtrInput // The size of the data disk in GB attached to this instance, // up to a maximum of 64000 GB (64 TB). // You can choose the size of the data disk based on how big your notebooks and data are. // If not specified, this defaults to 100. DataDiskSizeGb pulumi.IntPtrInput // Possible disk types for notebook instances. // Possible values are `DISK_TYPE_UNSPECIFIED`, `PD_STANDARD`, `PD_SSD`, and `PD_BALANCED`. DataDiskType pulumi.StringPtrInput // Disk encryption method used on the boot and data disks, defaults to GMEK. // Possible values are `DISK_ENCRYPTION_UNSPECIFIED`, `GMEK`, and `CMEK`. DiskEncryption pulumi.StringPtrInput // Whether the end user authorizes Google Cloud to install GPU driver // on this instance. If this field is empty or set to false, the GPU driver // won't be installed. Only applicable to instances with GPUs. InstallGpuDriver pulumi.BoolPtrInput // The list of owners of this instance after creation. // Format: alias@example.com. // Currently supports one owner only. // If not specified, all of the service account users of // your VM instance's service account can use the instance. InstanceOwners pulumi.StringPtrInput // The KMS key used to encrypt the disks, only applicable if diskEncryption is CMEK. // Format: projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id} KmsKey pulumi.StringPtrInput // Labels to apply to this instance. These can be later modified by the setLabels method. // An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. Labels pulumi.StringMapInput // A reference to the zone where the machine resides. Location pulumi.StringPtrInput // A reference to a machine type which defines VM kind. MachineType pulumi.StringPtrInput // Custom metadata to apply to this instance. // An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. Metadata pulumi.StringMapInput // The name specified for the Notebook instance. Name pulumi.StringPtrInput // The name of the VPC that this instance is in. // Format: projects/{project_id}/global/networks/{network_id} Network pulumi.StringPtrInput // The notebook instance will not register with the proxy.. NoProxyAccess pulumi.BoolPtrInput // No public IP will be assigned to this instance. NoPublicIp pulumi.BoolPtrInput // If true, the data disk will not be auto deleted when deleting the instance. NoRemoveDataDisk pulumi.BoolPtrInput // Path to a Bash script that automatically runs after a // notebook instance fully boots up. The path must be a URL // or Cloud Storage path (gs://path-to-file/file-name). PostStartupScript pulumi.StringPtrInput // The name of the Google Cloud project that this VM image belongs to. // Format: projects/{project_id} Project pulumi.StringPtrInput // The proxy endpoint that is used to access the Jupyter notebook. ProxyUri pulumi.StringPtrInput // The service account on this instance, giving access to other // Google Cloud services. You can use any service account within // the same project, but you must have the service account user // permission to use the instance. If not specified, // the Compute Engine default service account is used. ServiceAccount pulumi.StringPtrInput // Optional. The URIs of service account scopes to be included in Compute Engine instances. // If not specified, the following scopes are defined: // - https://www.googleapis.com/auth/cloud-platform // - https://www.googleapis.com/auth/userinfo.email ServiceAccountScopes pulumi.StringArrayInput // A set of Shielded Instance options. Check [Images using supported Shielded VM features] // Not all combinations are valid // Structure is documented below. ShieldedInstanceConfig InstanceShieldedInstanceConfigPtrInput // The state of this instance. State pulumi.StringPtrInput // The name of the subnet that this instance is in. // Format: projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id} Subnet pulumi.StringPtrInput // The Compute Engine tags to add to runtime. Tags pulumi.StringArrayInput // Instance update time. UpdateTime pulumi.StringPtrInput // Use a Compute Engine VM image to start the notebook instance. // Structure is documented below. VmImage InstanceVmImagePtrInput }
func (InstanceState) ElementType ¶
func (InstanceState) ElementType() reflect.Type
type InstanceVmImage ¶
type InstanceVmImage struct { // Use this VM image family to find the image; the newest image in this family will be used. ImageFamily *string `pulumi:"imageFamily"` // Use VM image name to find the image. ImageName *string `pulumi:"imageName"` // The name of the Google Cloud project that this VM image belongs to. // Format: projects/{project_id} Project string `pulumi:"project"` }
type InstanceVmImageArgs ¶
type InstanceVmImageArgs struct { // Use this VM image family to find the image; the newest image in this family will be used. ImageFamily pulumi.StringPtrInput `pulumi:"imageFamily"` // Use VM image name to find the image. ImageName pulumi.StringPtrInput `pulumi:"imageName"` // The name of the Google Cloud project that this VM image belongs to. // Format: projects/{project_id} Project pulumi.StringInput `pulumi:"project"` }
func (InstanceVmImageArgs) ElementType ¶
func (InstanceVmImageArgs) ElementType() reflect.Type
func (InstanceVmImageArgs) ToInstanceVmImageOutput ¶
func (i InstanceVmImageArgs) ToInstanceVmImageOutput() InstanceVmImageOutput
func (InstanceVmImageArgs) ToInstanceVmImageOutputWithContext ¶
func (i InstanceVmImageArgs) ToInstanceVmImageOutputWithContext(ctx context.Context) InstanceVmImageOutput
func (InstanceVmImageArgs) ToInstanceVmImagePtrOutput ¶
func (i InstanceVmImageArgs) ToInstanceVmImagePtrOutput() InstanceVmImagePtrOutput
func (InstanceVmImageArgs) ToInstanceVmImagePtrOutputWithContext ¶
func (i InstanceVmImageArgs) ToInstanceVmImagePtrOutputWithContext(ctx context.Context) InstanceVmImagePtrOutput
type InstanceVmImageInput ¶
type InstanceVmImageInput interface { pulumi.Input ToInstanceVmImageOutput() InstanceVmImageOutput ToInstanceVmImageOutputWithContext(context.Context) InstanceVmImageOutput }
InstanceVmImageInput is an input type that accepts InstanceVmImageArgs and InstanceVmImageOutput values. You can construct a concrete instance of `InstanceVmImageInput` via:
InstanceVmImageArgs{...}
type InstanceVmImageOutput ¶
type InstanceVmImageOutput struct{ *pulumi.OutputState }
func (InstanceVmImageOutput) ElementType ¶
func (InstanceVmImageOutput) ElementType() reflect.Type
func (InstanceVmImageOutput) ImageFamily ¶
func (o InstanceVmImageOutput) ImageFamily() pulumi.StringPtrOutput
Use this VM image family to find the image; the newest image in this family will be used.
func (InstanceVmImageOutput) ImageName ¶
func (o InstanceVmImageOutput) ImageName() pulumi.StringPtrOutput
Use VM image name to find the image.
func (InstanceVmImageOutput) Project ¶
func (o InstanceVmImageOutput) Project() pulumi.StringOutput
The name of the Google Cloud project that this VM image belongs to. Format: projects/{project_id}
func (InstanceVmImageOutput) ToInstanceVmImageOutput ¶
func (o InstanceVmImageOutput) ToInstanceVmImageOutput() InstanceVmImageOutput
func (InstanceVmImageOutput) ToInstanceVmImageOutputWithContext ¶
func (o InstanceVmImageOutput) ToInstanceVmImageOutputWithContext(ctx context.Context) InstanceVmImageOutput
func (InstanceVmImageOutput) ToInstanceVmImagePtrOutput ¶
func (o InstanceVmImageOutput) ToInstanceVmImagePtrOutput() InstanceVmImagePtrOutput
func (InstanceVmImageOutput) ToInstanceVmImagePtrOutputWithContext ¶
func (o InstanceVmImageOutput) ToInstanceVmImagePtrOutputWithContext(ctx context.Context) InstanceVmImagePtrOutput
type InstanceVmImagePtrInput ¶
type InstanceVmImagePtrInput interface { pulumi.Input ToInstanceVmImagePtrOutput() InstanceVmImagePtrOutput ToInstanceVmImagePtrOutputWithContext(context.Context) InstanceVmImagePtrOutput }
InstanceVmImagePtrInput is an input type that accepts InstanceVmImageArgs, InstanceVmImagePtr and InstanceVmImagePtrOutput values. You can construct a concrete instance of `InstanceVmImagePtrInput` via:
InstanceVmImageArgs{...} or: nil
func InstanceVmImagePtr ¶
func InstanceVmImagePtr(v *InstanceVmImageArgs) InstanceVmImagePtrInput
type InstanceVmImagePtrOutput ¶
type InstanceVmImagePtrOutput struct{ *pulumi.OutputState }
func (InstanceVmImagePtrOutput) Elem ¶
func (o InstanceVmImagePtrOutput) Elem() InstanceVmImageOutput
func (InstanceVmImagePtrOutput) ElementType ¶
func (InstanceVmImagePtrOutput) ElementType() reflect.Type
func (InstanceVmImagePtrOutput) ImageFamily ¶
func (o InstanceVmImagePtrOutput) ImageFamily() pulumi.StringPtrOutput
Use this VM image family to find the image; the newest image in this family will be used.
func (InstanceVmImagePtrOutput) ImageName ¶
func (o InstanceVmImagePtrOutput) ImageName() pulumi.StringPtrOutput
Use VM image name to find the image.
func (InstanceVmImagePtrOutput) Project ¶
func (o InstanceVmImagePtrOutput) Project() pulumi.StringPtrOutput
The name of the Google Cloud project that this VM image belongs to. Format: projects/{project_id}
func (InstanceVmImagePtrOutput) ToInstanceVmImagePtrOutput ¶
func (o InstanceVmImagePtrOutput) ToInstanceVmImagePtrOutput() InstanceVmImagePtrOutput
func (InstanceVmImagePtrOutput) ToInstanceVmImagePtrOutputWithContext ¶
func (o InstanceVmImagePtrOutput) ToInstanceVmImagePtrOutputWithContext(ctx context.Context) InstanceVmImagePtrOutput
type Location ¶
type Location struct { pulumi.CustomResourceState // Name of the Location resource. Name pulumi.StringOutput `pulumi:"name"` // The ID of the project in which the resource belongs. // If it is not provided, the provider project is used. Project pulumi.StringOutput `pulumi:"project"` // The URI of the created resource. SelfLink pulumi.StringOutput `pulumi:"selfLink"` }
Represents a Location resource.
## Import
Location can be imported using any of these accepted formats ¶
```sh
$ pulumi import gcp:notebooks/location:Location default projects/{{project}}/locations/{{name}}
```
```sh
$ pulumi import gcp:notebooks/location:Location default {{project}}/{{name}}
```
```sh
$ pulumi import gcp:notebooks/location:Location default {{name}}
```
func GetLocation ¶
func GetLocation(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LocationState, opts ...pulumi.ResourceOption) (*Location, error)
GetLocation gets an existing Location 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 NewLocation ¶
func NewLocation(ctx *pulumi.Context, name string, args *LocationArgs, opts ...pulumi.ResourceOption) (*Location, error)
NewLocation registers a new resource with the given unique name, arguments, and options.
func (*Location) ElementType ¶
func (*Location) ToLocationOutput ¶
func (i *Location) ToLocationOutput() LocationOutput
func (*Location) ToLocationOutputWithContext ¶
func (i *Location) ToLocationOutputWithContext(ctx context.Context) LocationOutput
func (*Location) ToLocationPtrOutput ¶
func (i *Location) ToLocationPtrOutput() LocationPtrOutput
func (*Location) ToLocationPtrOutputWithContext ¶
func (i *Location) ToLocationPtrOutputWithContext(ctx context.Context) LocationPtrOutput
type LocationArgs ¶
type LocationArgs struct { // Name of the Location resource. Name pulumi.StringPtrInput // The ID of the project in which the resource belongs. // If it is not provided, the provider project is used. Project pulumi.StringPtrInput }
The set of arguments for constructing a Location resource.
func (LocationArgs) ElementType ¶
func (LocationArgs) ElementType() reflect.Type
type LocationArray ¶
type LocationArray []LocationInput
func (LocationArray) ElementType ¶
func (LocationArray) ElementType() reflect.Type
func (LocationArray) ToLocationArrayOutput ¶
func (i LocationArray) ToLocationArrayOutput() LocationArrayOutput
func (LocationArray) ToLocationArrayOutputWithContext ¶
func (i LocationArray) ToLocationArrayOutputWithContext(ctx context.Context) LocationArrayOutput
type LocationArrayInput ¶
type LocationArrayInput interface { pulumi.Input ToLocationArrayOutput() LocationArrayOutput ToLocationArrayOutputWithContext(context.Context) LocationArrayOutput }
LocationArrayInput is an input type that accepts LocationArray and LocationArrayOutput values. You can construct a concrete instance of `LocationArrayInput` via:
LocationArray{ LocationArgs{...} }
type LocationArrayOutput ¶
type LocationArrayOutput struct{ *pulumi.OutputState }
func (LocationArrayOutput) ElementType ¶
func (LocationArrayOutput) ElementType() reflect.Type
func (LocationArrayOutput) Index ¶
func (o LocationArrayOutput) Index(i pulumi.IntInput) LocationOutput
func (LocationArrayOutput) ToLocationArrayOutput ¶
func (o LocationArrayOutput) ToLocationArrayOutput() LocationArrayOutput
func (LocationArrayOutput) ToLocationArrayOutputWithContext ¶
func (o LocationArrayOutput) ToLocationArrayOutputWithContext(ctx context.Context) LocationArrayOutput
type LocationInput ¶
type LocationInput interface { pulumi.Input ToLocationOutput() LocationOutput ToLocationOutputWithContext(ctx context.Context) LocationOutput }
type LocationMap ¶
type LocationMap map[string]LocationInput
func (LocationMap) ElementType ¶
func (LocationMap) ElementType() reflect.Type
func (LocationMap) ToLocationMapOutput ¶
func (i LocationMap) ToLocationMapOutput() LocationMapOutput
func (LocationMap) ToLocationMapOutputWithContext ¶
func (i LocationMap) ToLocationMapOutputWithContext(ctx context.Context) LocationMapOutput
type LocationMapInput ¶
type LocationMapInput interface { pulumi.Input ToLocationMapOutput() LocationMapOutput ToLocationMapOutputWithContext(context.Context) LocationMapOutput }
LocationMapInput is an input type that accepts LocationMap and LocationMapOutput values. You can construct a concrete instance of `LocationMapInput` via:
LocationMap{ "key": LocationArgs{...} }
type LocationMapOutput ¶
type LocationMapOutput struct{ *pulumi.OutputState }
func (LocationMapOutput) ElementType ¶
func (LocationMapOutput) ElementType() reflect.Type
func (LocationMapOutput) MapIndex ¶
func (o LocationMapOutput) MapIndex(k pulumi.StringInput) LocationOutput
func (LocationMapOutput) ToLocationMapOutput ¶
func (o LocationMapOutput) ToLocationMapOutput() LocationMapOutput
func (LocationMapOutput) ToLocationMapOutputWithContext ¶
func (o LocationMapOutput) ToLocationMapOutputWithContext(ctx context.Context) LocationMapOutput
type LocationOutput ¶
type LocationOutput struct {
*pulumi.OutputState
}
func (LocationOutput) ElementType ¶
func (LocationOutput) ElementType() reflect.Type
func (LocationOutput) ToLocationOutput ¶
func (o LocationOutput) ToLocationOutput() LocationOutput
func (LocationOutput) ToLocationOutputWithContext ¶
func (o LocationOutput) ToLocationOutputWithContext(ctx context.Context) LocationOutput
func (LocationOutput) ToLocationPtrOutput ¶
func (o LocationOutput) ToLocationPtrOutput() LocationPtrOutput
func (LocationOutput) ToLocationPtrOutputWithContext ¶
func (o LocationOutput) ToLocationPtrOutputWithContext(ctx context.Context) LocationPtrOutput
type LocationPtrInput ¶
type LocationPtrInput interface { pulumi.Input ToLocationPtrOutput() LocationPtrOutput ToLocationPtrOutputWithContext(ctx context.Context) LocationPtrOutput }
type LocationPtrOutput ¶
type LocationPtrOutput struct {
*pulumi.OutputState
}
func (LocationPtrOutput) ElementType ¶
func (LocationPtrOutput) ElementType() reflect.Type
func (LocationPtrOutput) ToLocationPtrOutput ¶
func (o LocationPtrOutput) ToLocationPtrOutput() LocationPtrOutput
func (LocationPtrOutput) ToLocationPtrOutputWithContext ¶
func (o LocationPtrOutput) ToLocationPtrOutputWithContext(ctx context.Context) LocationPtrOutput
type LocationState ¶
type LocationState struct { // Name of the Location resource. Name pulumi.StringPtrInput // The ID of the project in which the resource belongs. // If it is not provided, the provider project is used. Project pulumi.StringPtrInput // The URI of the created resource. SelfLink pulumi.StringPtrInput }
func (LocationState) ElementType ¶
func (LocationState) ElementType() reflect.Type