Tabnine Logo
BucketNotificationConfiguration.getConfigurationByName
Code IndexAdd Tabnine to your IDE (free)

How to use
getConfigurationByName
method
in
com.amazonaws.services.s3.model.BucketNotificationConfiguration

Best Java code snippets using com.amazonaws.services.s3.model.BucketNotificationConfiguration.getConfigurationByName (Showing top 4 results out of 315)

origin: aws-amplify/aws-sdk-android

@Test
public void unmarshall_ValidQueueConfiguration() throws Exception {
  final BucketNotificationConfiguration config = unmarshaller.unmarshall(getResource(QUEUE_INPUT));
  final QueueConfiguration queueConfig = (QueueConfiguration) config.getConfigurationByName("QueueConfigId");
  assertEquals("some-queue-arn", queueConfig.getQueueARN());
  assertEventsUnmarshalledCorrectly(queueConfig.getEvents());
  assertFilterRulesUnmarshalledCorrectly(queueConfig.getFilter().getS3KeyFilter().getFilterRules());
}
origin: aws-amplify/aws-sdk-android

@Test
public void unmarshall_ValidLambdaConfiguration() throws Exception {
  final BucketNotificationConfiguration config = unmarshaller.unmarshall(getResource(LAMBDA_INPUT));
  final LambdaConfiguration lambdaConfig = (LambdaConfiguration) config.getConfigurationByName("LambdaConfigId");
  assertEquals("some-lambda-function-arn", lambdaConfig.getFunctionARN());
  assertEventsUnmarshalledCorrectly(lambdaConfig.getEvents());
  assertFilterRulesUnmarshalledCorrectly(lambdaConfig.getFilter().getS3KeyFilter().getFilterRules());
}
origin: aws-amplify/aws-sdk-android

@Test
public void unmarshall_ValidTopicConfiguration() throws Exception {
  final BucketNotificationConfiguration config = unmarshaller.unmarshall(getResource(TOPIC_INPUT));
  final TopicConfiguration topicConfig = (TopicConfiguration) config.getConfigurationByName("TopicConfigId");
  assertEquals("some-topic-arn", topicConfig.getTopicARN());
  assertEventsUnmarshalledCorrectly(topicConfig.getEvents());
  assertFilterRulesUnmarshalledCorrectly(topicConfig.getFilter().getS3KeyFilter().getFilterRules());
}
origin: aws-amplify/aws-sdk-android

/**
 * If CloudFunctionConfiguration has the InvocationRole attribute it should be unmarshalled into
 * a {@link CloudFunctionConfiguration}
 */
@Test
public void unmarshall_ValidCloudFunctionConfiguration() throws Exception {
  final BucketNotificationConfiguration config = unmarshaller.unmarshall(getResource(CLOUD_FUNCTION_INPUT));
  final CloudFunctionConfiguration cloudFunctionConfig = (CloudFunctionConfiguration) config
      .getConfigurationByName("CloudFunctionConfigId");
  assertEquals("some-cloud-function-arn", cloudFunctionConfig.getCloudFunctionARN());
  assertEquals("some-cloud-invoc-role", cloudFunctionConfig.getInvocationRoleARN());
  assertEventsUnmarshalledCorrectly(cloudFunctionConfig.getEvents());
  assertFilterRulesUnmarshalledCorrectly(cloudFunctionConfig.getFilter().getS3KeyFilter().getFilterRules());
}
com.amazonaws.services.s3.modelBucketNotificationConfigurationgetConfigurationByName

Javadoc

Returns the notification configuration for the given name.

Popular methods of BucketNotificationConfiguration

  • <init>
    Creates a new bucket notification configuration containing the specified TopicConfigurations. Pas
  • addConfiguration
    Adds the given notification configuration to the BucketNotificationConfiguration object
  • getConfigurations
    Returns all the notification configurations associated with the Amazon S3 bucket.
  • setTopicConfigurations
    Sets the BucketNotificationConfiguration.TopicConfiguration. Calling this method will overwrite a

Popular in Java

  • Making http requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setContentView (Activity)
  • getResourceAsStream (ClassLoader)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now