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.

PresignedUrlConfig

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

type PresignedUrlConfig struct { ExpiresInSec *int64 `locationName:"expiresInSec" min:"60" type:"long"` RoleArn *string `locationName:"roleArn" min:"20" type:"string"` }

Configuration for pre-signed S3 URLs.

ExpiresInSec

Type: *int64

How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600, the default value is 3600 seconds. Pre-signed URLs are generated when Jobs receives an MQTT request for the job document.

RoleArn

Type: *string

The ARN of an IAM role that grants grants permission to download files from the S3 bucket where the job data/updates are stored. The role must also grant permission for IoT to download the files.

Method

GoString

func (s PresignedUrlConfig) GoString() string

GoString returns the string representation

SetExpiresInSec

func (s *PresignedUrlConfig) SetExpiresInSec(v int64) *PresignedUrlConfig

SetExpiresInSec sets the ExpiresInSec field's value.

SetRoleArn

func (s *PresignedUrlConfig) SetRoleArn(v string) *PresignedUrlConfig

SetRoleArn sets the RoleArn field's value.

String

func (s PresignedUrlConfig) String() string

String returns the string representation

Validate

func (s *PresignedUrlConfig) Validate() error

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

On this page: