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.

CreateNotificationSubscriptionInput

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

type CreateNotificationSubscriptionInput struct { Endpoint *string `min:"1" type:"string" required:"true"` OrganizationId *string `location:"uri" locationName:"OrganizationId" min:"1" type:"string" required:"true"` Protocol *string `type:"string" required:"true" enum:"SubscriptionProtocolType"` SubscriptionType *string `type:"string" required:"true" enum:"SubscriptionType"` }

Endpoint

Type: *string

The endpoint to receive the notifications. If the protocol is HTTPS, the endpoint is a URL that begins with https.

Endpoint is a required field

OrganizationId

Type: *string

The ID of the organization.

OrganizationId is a required field

Protocol

Type: *string

The protocol to use. The supported value is https, which delivers JSON-encoded messages using HTTPS POST.

Protocol is a required field

SubscriptionType

Type: *string

The notification type.

SubscriptionType is a required field

Method

GoString

func (s CreateNotificationSubscriptionInput) GoString() string

GoString returns the string representation

SetEndpoint

func (s *CreateNotificationSubscriptionInput) SetEndpoint(v string) *CreateNotificationSubscriptionInput

SetEndpoint sets the Endpoint field's value.

SetOrganizationId

func (s *CreateNotificationSubscriptionInput) SetOrganizationId(v string) *CreateNotificationSubscriptionInput

SetOrganizationId sets the OrganizationId field's value.

SetProtocol

func (s *CreateNotificationSubscriptionInput) SetProtocol(v string) *CreateNotificationSubscriptionInput

SetProtocol sets the Protocol field's value.

SetSubscriptionType

func (s *CreateNotificationSubscriptionInput) SetSubscriptionType(v string) *CreateNotificationSubscriptionInput

SetSubscriptionType sets the SubscriptionType field's value.

String

func (s CreateNotificationSubscriptionInput) String() string

String returns the string representation

Validate

func (s *CreateNotificationSubscriptionInput) Validate() error

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

On this page: