{ if (e.detail) { bucket_config = { type: 'S3', bucket: '', region: '', access_key: '', secret_key: '', endpoint: '' } } else { bucket_config = undefined } }} />
{#if bucket_config}
{ if (e.detail === 'S3' && bucket_config?.type !== 'S3') { bucket_config = { type: 'S3', bucket: '', region: '', access_key: '', secret_key: '', endpoint: '' } } else if (e.detail === 'Azure' && bucket_config?.type !== 'Azure') { bucket_config = { type: 'Azure', accountName: '', containerName: '', useSSL: false, tenantId: '', clientId: '', accessKey: '' } } else if (e.detail === 'Gcs' && bucket_config?.type !== 'Gcs') { bucket_config = { type: 'Gcs', bucket: '', serviceAccountKey: {} } } else if (e.detail === 'AwsOidc' && bucket_config?.type !== 'AwsOidc') { bucket_config = { type: 'AwsOidc', bucket: '', region: '', roleArn: '' } } }} >
{#if bucket_config.type === 'S3'}
Disable if using https only policy
{:else if bucket_config.type === 'Azure'} {:else if bucket_config.type === 'AwsOidc'} {:else if bucket_config.type === 'Gcs'} {:else}
Unknown bucket type {bucket_config['type']}
{/if}
{/if}