import React from 'react'; import componentTypes from '@data-driven-forms/react-form-renderer/component-types'; import validatorTypes from '@data-driven-forms/react-form-renderer/validator-types'; import { Button, HelperText, HelperTextItem, Title, } from '@patternfly/react-core'; import { ExternalLinkAltIcon } from '@patternfly/react-icons'; import nextStepMapper from './imageOutputStepMapper'; import StepTemplate from './stepTemplate'; import { DEFAULT_AWS_REGION } from '../../../constants'; import CustomButtons from '../formComponents/CustomButtons'; const SourcesButton = () => { return ( } iconPosition="right" isInline href={'settings/sources'} > Create and manage sources here ); }; export default { StepTemplate, id: 'wizard-target-aws', title: 'Amazon Web Services', customTitle: (
Your image will be uploaded to AWS and shared with the account you provide below.
), }, { component: componentTypes.PLAIN_TEXT, name: 'plain-text-component', label: (The shared image will expire within 14 days. To permanently access the image, copy the image, which will be shared to your account by Red Hat, to your own AWS account.
), }, { component: componentTypes.RADIO, label: 'Share method:', name: 'aws-target-type', initialValue: 'aws-target-type-source', autoFocus: true, options: [ { label: 'Use an account configured from Sources.', description: 'Use a configured source to launch environments directly from the console.', value: 'aws-target-type-source', 'data-testid': 'aws-radio-source', autoFocus: true, }, { label: 'Manually enter an account ID.', value: 'aws-target-type-account-id', 'data-testid': 'aws-radio-account-id', className: 'pf-u-mt-sm', }, ], }, { component: 'aws-sources-select', name: 'aws-sources-select', className: 'pf-u-max-width', label: 'Source Name', isRequired: true, validate: [ { type: validatorTypes.REQUIRED, }, ], condition: { when: 'aws-target-type', is: 'aws-target-type-source', }, }, { component: componentTypes.PLAIN_TEXT, name: 'aws-sources-select-description', label: