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.

Encryption

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

type Encryption struct { Algorithm *string `locationName:"algorithm" type:"string" required:"true" enum:"Algorithm"` KeyType *string `locationName:"keyType" type:"string" enum:"KeyType"` RoleArn *string `locationName:"roleArn" type:"string" required:"true"` SecretArn *string `locationName:"secretArn" type:"string" required:"true"` }

Information about the encryption of the flow.

Algorithm

Type: *string

The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).

Algorithm is a required field

KeyType

Type: *string

The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).

RoleArn

Type: *string

The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).

RoleArn is a required field

SecretArn

Type: *string

The ARN that was assigned to the secret that you created in AWS Secrets Manager to store the encryption key.

SecretArn is a required field

Method

GoString

func (s Encryption) GoString() string

GoString returns the string representation

SetAlgorithm

func (s *Encryption) SetAlgorithm(v string) *Encryption

SetAlgorithm sets the Algorithm field's value.

SetKeyType

func (s *Encryption) SetKeyType(v string) *Encryption

SetKeyType sets the KeyType field's value.

SetRoleArn

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

SetRoleArn sets the RoleArn field's value.

SetSecretArn

func (s *Encryption) SetSecretArn(v string) *Encryption

SetSecretArn sets the SecretArn field's value.

String

func (s Encryption) String() string

String returns the string representation

Validate

func (s *Encryption) Validate() error

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

On this page: