Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Implement aws.IsVirtualHostableS3Bucket function. #16

Merged
merged 3 commits into from
Sep 15, 2022

Conversation

alextwoods
Copy link
Collaborator

@alextwoods alextwoods commented Sep 12, 2022

Note: This PR is pending review/acceptance of specification changes.

Description of changes:
Implement the new aws.IsVirtualHostableS3Bucket function.
Rules:

  • The bucket name is at least 3 and no more than 63 characters long.
  • The bucket name must be a series of one or more labels. Labels can contain:
    • lowercase letters
    • numbers
    • hyphens
  • Each label must start and end with a lowercase letter or a number. Adjacent labels may be separated by a single period (.). Dots may only be used with HTTP (allowDots argument).

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@alextwoods alextwoods marked this pull request as ready for review September 15, 2022 20:12
@alextwoods alextwoods merged commit 77b09ad into rules-engine Sep 15, 2022
@alextwoods alextwoods deleted the s3Virtual branch September 15, 2022 20:13
rcoh added a commit that referenced this pull request Nov 18, 2022
* Rules Engine Initial Port

* Incorporate Latest Rules Engine Commits

eb43dc73...c92510ca

* Fix several cases where serializers were missing and add round-trip tests (#1)

* Change namespace from reterminus to language

* Move resources to correct classpath locations

* Mark unstable, make classes final that can be

* Add UseGlobalEndpoint builtins for STS/S3

* Make UseGlobalEndpoints default to false.

* Prune synthesizer components

* Update the PartitionFn to fallback to the AWS partition

* Add more tests of hostLabel standard library function

* Add disable MRAP builtin

* constrain substring to the set of ascii characters

* fix doc comment

* Integrate Smithy Rules Engine Traits (#8)

* smithy-rules-engine trait fixes
* Integrate of smithy-rules-engine traits

* Fixed additional trait issues (#9)

* Fix checkstyle

* Windows fixes

* Removed endpoints.json (#10)

* add partition names to output (#11)

* Rename language to syntax

* Add aws-iso global regions.

* Fix tests to pass latest partitions.json (#13)

* Add S3Control builtin + EndpointRuleset toBuilder (#14)

* Fix addRules -> rules usage

* MandatorySourceLocation cleanups

* Lots of refactors + extract function registry

* refactor booleanequals and string equals

* Fixups

* More cleanups: good by eval trait

* Delete FnVisitor & address CR feedback

* Add more comments

* Implement aws.IsVirtualHostableS3Bucket function. (#16)

* Add condition methods to GetAttr

* Add functions for isVirtualHostableS3Bucket to Expr

* Fix Parameters toBuilder

* Remove the EndpointRulesetCustomization interface (#17)

* Add additional checks for invalid labels + ip addresses (#18)

* Add a test case for empty host label

* First pass at cleanup

* Fix substring

* Replace newlines in invalidTestCase tests (possible windows fix)

* Compact whitespace in IntegrationTests#invalidTestCases

* Replace test paths in IntegrationTest with OS independent seperators

Co-authored-by: Russell Cohen <russell.r.cohen@gmail.com>
Co-authored-by: Alex Woods <alexwoo@amazon.com>
Co-authored-by: Russell Cohen <rcoh@amazon.com>
Co-authored-by: Alex Woods <alextwoods@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants