Class SippyAwsSource
- Namespace
- Cloudflare.NET.Accounts.Models
- Assembly
- Cloudflare.NET.dll
Represents the source bucket configuration for Sippy migration from AWS S3.
public record SippyAwsSource : IEquatable<SippyAwsSource>
- Inheritance
-
SippyAwsSource
- Implements
- Inherited Members
Constructors
SippyAwsSource(SippyProvider, string, string?, string?, string?)
Represents the source bucket configuration for Sippy migration from AWS S3.
public SippyAwsSource(SippyProvider Provider, string Bucket, string? Region = null, string? AccessKeyId = null, string? SecretAccessKey = null)
Parameters
ProviderSippyProviderThe source provider (must be Aws).
BucketstringThe name of the source AWS S3 bucket.
RegionstringThe AWS region where the bucket is located (e.g., "us-east-1").
AccessKeyIdstringThe AWS access key ID for reading from the source bucket.
SecretAccessKeystringThe AWS secret access key for reading from the source bucket.
Properties
AccessKeyId
The AWS access key ID for reading from the source bucket.
[JsonPropertyName("accessKeyId")]
public string? AccessKeyId { get; init; }
Property Value
Bucket
The name of the source AWS S3 bucket.
[JsonPropertyName("bucket")]
public string Bucket { get; init; }
Property Value
Provider
The source provider (must be Aws).
[JsonPropertyName("provider")]
public SippyProvider Provider { get; init; }
Property Value
Region
The AWS region where the bucket is located (e.g., "us-east-1").
[JsonPropertyName("region")]
public string? Region { get; init; }
Property Value
SecretAccessKey
The AWS secret access key for reading from the source bucket.
[JsonPropertyName("secretAccessKey")]
public string? SecretAccessKey { get; init; }
Property Value
Methods
Create(string, string, string, string)
Creates a new AWS S3 source configuration.
public static SippyAwsSource Create(string bucket, string region, string accessKeyId, string secretAccessKey)
Parameters
bucketstringThe name of the source AWS S3 bucket.
regionstringThe AWS region where the bucket is located.
accessKeyIdstringThe AWS access key ID for reading from the source bucket.
secretAccessKeystringThe AWS secret access key for reading from the source bucket.
Returns
- SippyAwsSource
A new SippyAwsSource with provider set to AWS.