AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

Hsm

import "github.com/aws/aws-sdk-go/service/cloudhsmv2"

type Hsm struct { AvailabilityZone *string `type:"string"` ClusterId *string `type:"string"` EniId *string `type:"string"` EniIp *string `type:"string"` HsmId *string `type:"string" required:"true"` State *string `type:"string" enum:"HsmState"` StateMessage *string `type:"string"` SubnetId *string `type:"string"` }

Contains information about a hardware security module (HSM) in an AWS CloudHSM cluster.

AvailabilityZone

Type: *string

The Availability Zone that contains the HSM.

ClusterId

Type: *string

The identifier (ID) of the cluster that contains the HSM.

EniId

Type: *string

The identifier (ID) of the HSM's elastic network interface (ENI).

EniIp

Type: *string

The IP address of the HSM's elastic network interface (ENI).

HsmId

Type: *string

The HSM's identifier (ID).

HsmId is a required field

State

Type: *string

The HSM's state.

StateMessage

Type: *string

A description of the HSM's state.

SubnetId

Type: *string

The subnet that contains the HSM's elastic network interface (ENI).

Method

GoString

func (s Hsm) GoString() string

GoString returns the string representation

SetAvailabilityZone

func (s *Hsm) SetAvailabilityZone(v string) *Hsm

SetAvailabilityZone sets the AvailabilityZone field's value.

SetClusterId

func (s *Hsm) SetClusterId(v string) *Hsm

SetClusterId sets the ClusterId field's value.

SetEniId

func (s *Hsm) SetEniId(v string) *Hsm

SetEniId sets the EniId field's value.

SetEniIp

func (s *Hsm) SetEniIp(v string) *Hsm

SetEniIp sets the EniIp field's value.

SetHsmId

func (s *Hsm) SetHsmId(v string) *Hsm

SetHsmId sets the HsmId field's value.

SetState

func (s *Hsm) SetState(v string) *Hsm

SetState sets the State field's value.

SetStateMessage

func (s *Hsm) SetStateMessage(v string) *Hsm

SetStateMessage sets the StateMessage field's value.

SetSubnetId

func (s *Hsm) SetSubnetId(v string) *Hsm

SetSubnetId sets the SubnetId field's value.

String

func (s Hsm) String() string

String returns the string representation

On this page: