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.

AssociateDeviceWithPlacementInput

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

type AssociateDeviceWithPlacementInput struct { DeviceId *string `locationName:"deviceId" min:"1" type:"string" required:"true"` DeviceTemplateName *string `location:"uri" locationName:"deviceTemplateName" min:"1" type:"string" required:"true"` PlacementName *string `location:"uri" locationName:"placementName" min:"1" type:"string" required:"true"` ProjectName *string `location:"uri" locationName:"projectName" min:"1" type:"string" required:"true"` }

DeviceId

Type: *string

The ID of the physical device to be associated with the given placement in the project. Note that a mandatory 4 character prefix is required for all deviceId values.

DeviceId is a required field

DeviceTemplateName

Type: *string

The device template name to associate with the device ID.

DeviceTemplateName is a required field

PlacementName

Type: *string

The name of the placement in which to associate the device.

PlacementName is a required field

ProjectName

Type: *string

The name of the project containing the placement in which to associate the device.

ProjectName is a required field

Method

GoString

func (s AssociateDeviceWithPlacementInput) GoString() string

GoString returns the string representation

SetDeviceId

func (s *AssociateDeviceWithPlacementInput) SetDeviceId(v string) *AssociateDeviceWithPlacementInput

SetDeviceId sets the DeviceId field's value.

SetDeviceTemplateName

func (s *AssociateDeviceWithPlacementInput) SetDeviceTemplateName(v string) *AssociateDeviceWithPlacementInput

SetDeviceTemplateName sets the DeviceTemplateName field's value.

SetPlacementName

func (s *AssociateDeviceWithPlacementInput) SetPlacementName(v string) *AssociateDeviceWithPlacementInput

SetPlacementName sets the PlacementName field's value.

SetProjectName

func (s *AssociateDeviceWithPlacementInput) SetProjectName(v string) *AssociateDeviceWithPlacementInput

SetProjectName sets the ProjectName field's value.

String

func (s AssociateDeviceWithPlacementInput) String() string

String returns the string representation

Validate

func (s *AssociateDeviceWithPlacementInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: