diff --git a/apis/sqs/v1beta1/queue_types.go b/apis/sqs/v1beta1/queue_types.go index adb5d18883..2e7d284008 100644 --- a/apis/sqs/v1beta1/queue_types.go +++ b/apis/sqs/v1beta1/queue_types.go @@ -176,8 +176,8 @@ type QueueParameters struct { // +optional ContentBasedDeduplication *bool `json:"contentBasedDeduplication,omitempty"` - //Boolean to enable server-side encryption (SSE) of - //message content with SQS-owned encryption keys. See Encryption at rest. + // Boolean to enable server-side encryption (SSE) of + // message content with SQS-owned encryption keys. See Encryption at rest. SqsManagedSseEnabled *bool `json:"sseEnabled,omitempty"` // Tags add cost allocation tags to the specified Amazon SQS queue. diff --git a/pkg/clients/sqs/queue.go b/pkg/clients/sqs/queue.go index 5090b25dd3..3f789394bd 100644 --- a/pkg/clients/sqs/queue.go +++ b/pkg/clients/sqs/queue.go @@ -171,7 +171,7 @@ func LateInitialize(in *v1beta1.QueueParameters, attributes map[string]string, t in.VisibilityTimeout = awsclients.LateInitializeInt64Ptr(in.VisibilityTimeout, int64Ptr(attributes[v1beta1.AttributeVisibilityTimeout])) in.SqsManagedSseEnabled = nil - SqsManagedSseEnabled, err := strconv.ParseBool(attributes[string(attributes[v1beta1.AttributeSqsManagedSseEnabled])]) + SqsManagedSseEnabled, err := strconv.ParseBool(attributes[v1beta1.AttributeSqsManagedSseEnabled]) if err == nil && SqsManagedSseEnabled { in.SqsManagedSseEnabled = awsclients.LateInitializeBoolPtr(in.SqsManagedSseEnabled, aws.Bool(SqsManagedSseEnabled)) }