public abstract static class SnsIO.WriteAsync<T> extends PTransform<PCollection<T>,PCollection<org.apache.beam.sdk.io.aws2.sns.SnsResponse<T>>>
SnsIO.writeAsync()
.name, resourceHints
Constructor and Description |
---|
WriteAsync() |
Modifier and Type | Method and Description |
---|---|
PCollection<org.apache.beam.sdk.io.aws2.sns.SnsResponse<T>> |
expand(PCollection<T> input)
Override this method to specify how this
PTransform should be expanded on the given
InputT . |
SnsIO.WriteAsync<T> |
withCoder(Coder<T> elementCoder)
Specify a Coder for SNS PublishRequest object.
|
SnsIO.WriteAsync<T> |
withPublishRequestFn(SerializableFunction<T,PublishRequest> publishRequestFn)
Specify a function for converting a message into PublishRequest object.
|
SnsIO.WriteAsync<T> |
withSnsClientProvider(AwsCredentialsProvider credentialsProvider,
java.lang.String region)
Specify credential details and region to be used to write to SNS.
|
SnsIO.WriteAsync<T> |
withSnsClientProvider(AwsCredentialsProvider credentialsProvider,
java.lang.String region,
java.net.URI serviceEndpoint)
Specify credential details and region to be used to write to SNS.
|
SnsIO.WriteAsync<T> |
withSnsClientProvider(SnsAsyncClientProvider asyncClientProvider)
Allows to specify custom
SnsAsyncClientProvider . |
compose, compose, getAdditionalInputs, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, populateDisplayData, setResourceHints, toString, validate
public SnsIO.WriteAsync<T> withCoder(Coder<T> elementCoder)
elementCoder
- Coderpublic SnsIO.WriteAsync<T> withPublishRequestFn(SerializableFunction<T,PublishRequest> publishRequestFn)
publishRequestFn
- publishRequestFnpublic SnsIO.WriteAsync<T> withSnsClientProvider(SnsAsyncClientProvider asyncClientProvider)
SnsAsyncClientProvider
. SnsAsyncClientProvider
creates new SnsAsyncClientProvider
which is later used for writing to a SNS topic.public SnsIO.WriteAsync<T> withSnsClientProvider(AwsCredentialsProvider credentialsProvider, java.lang.String region)
withSnsClientProvider(SnsAsyncClientProvider)
.public SnsIO.WriteAsync<T> withSnsClientProvider(AwsCredentialsProvider credentialsProvider, java.lang.String region, java.net.URI serviceEndpoint)
withSnsClientProvider(SnsAsyncClientProvider)
.
The serviceEndpoint
sets an alternative service host.
public PCollection<org.apache.beam.sdk.io.aws2.sns.SnsResponse<T>> expand(PCollection<T> input)
PTransform
PTransform
should be expanded on the given
InputT
.
NOTE: This method should not be called directly. Instead apply the PTransform
should
be applied to the InputT
using the apply
method.
Composite transforms, which are defined in terms of other transforms, should return the output of one of the composed transforms. Non-composite transforms, which do not apply any transforms internally, should return a new unbound output and register evaluators (via backend-specific registration methods).
expand
in class PTransform<PCollection<T>,PCollection<org.apache.beam.sdk.io.aws2.sns.SnsResponse<T>>>