Skip to contents

Does the input contain an existing (active) AWS S3 URI?

Usage

isExistingAwsS3Uri(x, profile = "default")

isAnExistingAwsS3Uri(x, profile = "default")

allAreExistingAwsS3Uris(x, profile = "default")

Arguments

x

Object.

profile

character(1). AWS profile name.

Value

TRUE on success; FALSE on failure, with cause set.

Details

Requires the AWS CLI to be installed.

Functions

  • isExistingAwsS3Uri(): Vectorized.

  • isAnExistingAwsS3Uri(): Scalar. Requires a single URI.

  • allAreExistingAwsS3Uris(): Scalar. Checks that all strings are existing URIs.

Note

Updated 2023-11-03.

See also

  • aws help.

  • https://www.learnaws.org/2023/01/30/aws-s3-cli-check-file/

  • koopa function koopa_is_existing_aws_s3_uri.

Examples

## TRUE ====
## > isAnExistingAwsS3Uri(
## >     x = "s3://koopa.acidgenomics.com/install",
## >     profile = "acidgenomics"
## > )

## FALSE ====
## > isAnExistingAwsS3Uri(
## >     x = "s3://koopa.acidgenomics.com/foo",
## >     profile = "acidgenomics"
## > )