// Adds a statement to a topic's access control policy, granting access for the
// specified AWS accounts to the specified actions.
Adds a statement to a topic's access control policy, granting access for the
specified AWS accounts to the specified actions.
// Adds a statement to a topic ' s access control policy granting access for the // specified AWS accounts to the specified actions .
func (c *Client) AddPermission(ctx context.Context, params *AddPermissionInput, optFns ...func(*Options)) (*AddPermissionOutput, error) {
	if params == nil {
		params = &AddPermissionInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "AddPermission", params, optFns, addOperationAddPermissionMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*AddPermissionOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) AddPermission ( ctx context . Context , params * AddPermissionInput , optFns ... func ( * Options ) ) ( * AddPermissionOutput , error ) { if params == nil { params = & AddPermissionInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationAddPermissionMiddlewares ) if err != nil { return nil , err } out := result . ( * AddPermissionOutput ) out . ResultMetadata = metadata return out , nil }
Adds a statement to a topic's access control policy, granting access for the
specified AWS accounts to the specified actions.
Adds a statement to a topic ' s access control policy granting access for the specified AWS accounts to the specified actions .