// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 using System; using System.Collections.Generic; using System.Threading.Tasks; using Amazon.AppRunner.Model; using Amazon.CloudControlApi.Model; using Amazon.CloudFormation.Model; using Amazon.CloudFront.Model; using Amazon.CloudWatchEvents.Model; using Amazon.EC2.Model; using Amazon.ECR.Model; using Amazon.ElasticBeanstalk.Model; using Amazon.ElasticLoadBalancingV2; using Amazon.IdentityManagement.Model; using Amazon.Runtime; using Amazon.S3; using Amazon.SecurityToken.Model; using AWS.Deploy.Common.Data; using AWS.Deploy.Orchestration; using AWS.Deploy.Orchestration.Data; namespace AWS.Deploy.CLI.UnitTests.Utilities { public class TestToolAWSResourceQueryer : IAWSResourceQueryer { public Task DescribeAppRunnerService(string serviceArn) => throw new NotImplementedException(); public Task CreateEC2KeyPair(string keyName, string saveLocation) => throw new NotImplementedException(); public Task CreateECRRepository(string repositoryName) => throw new NotImplementedException(); public Task> GetCloudFormationStacks() => throw new NotImplementedException(); public Task GetCloudFormationStack(string stackName) => throw new NotImplementedException(); public Task> GetECRAuthorizationToken() { var authorizationData = new AuthorizationData { // Test authorization token is encoded dummy 'username:password' string AuthorizationToken = "dXNlcm5hbWU6cGFzc3dvcmQ=", ProxyEndpoint = "endpoint" }; return Task.FromResult>(new List(){ authorizationData }); } public Task> GetECRRepositories(List repositoryNames) { if (repositoryNames.Count == 0) return Task.FromResult>(new List() { }); var repository = new Repository { RepositoryName = repositoryNames[0] }; return Task.FromResult>(new List() { repository }); } public Task GetLatestElasticBeanstalkPlatformArn(BeanstalkPlatformType platformType) { return Task.FromResult(new PlatformSummary() { PlatformArn = string.Empty }); } public Task> GetElasticBeanstalkPlatformArns(params BeanstalkPlatformType[] platformTypes) => throw new NotImplementedException(); public Task> GetListOfVpcs() => throw new NotImplementedException(); public Task> ListOfEC2KeyPairs() => throw new NotImplementedException(); public Task> ListOfECSClusters(string ecsClusterName) => throw new NotImplementedException(); public Task> ListOfElasticBeanstalkApplications(string applicationName) => throw new NotImplementedException(); public Task> ListOfElasticBeanstalkEnvironments(string applicationName, string environmentName) => throw new NotImplementedException(); public Task> ListOfIAMRoles(string servicePrincipal) => throw new NotImplementedException(); public Task> DescribeCloudFormationResources(string stackName) => throw new NotImplementedException(); public Task DescribeElasticBeanstalkEnvironment(string environmentId) => throw new NotImplementedException(); public Task DescribeElasticLoadBalancer(string loadBalancerArn) => throw new NotImplementedException(); public Task GetS3BucketLocation(string bucketName) => throw new NotImplementedException(); public Task GetS3BucketWebSiteConfiguration(string bucketName) => throw new NotImplementedException(); public Task> DescribeElasticLoadBalancerListeners(string loadBalancerArn) => throw new NotImplementedException(); public Task DescribeCloudWatchRule(string ruleName) => throw new NotImplementedException(); Task IAWSResourceQueryer.GetS3BucketLocation(string bucketName) => throw new NotImplementedException(); public Task> ListOfLoadBalancers(LoadBalancerTypeEnum loadBalancerType) => throw new NotImplementedException(); public Task GetCloudFrontDistribution(string distributionId) => throw new NotImplementedException(); public Task> ListOfDyanmoDBTables() => throw new NotImplementedException(); public Task> ListOfSQSQueuesUrls() => throw new NotImplementedException(); public Task> ListOfSNSTopicArns() => throw new NotImplementedException(); public Task> ListOfS3Buckets() => throw new NotImplementedException(); public Task> ListOfAvailableInstanceTypes() => throw new NotImplementedException(); public Task DescribeInstanceType(string instanceType) => throw new NotImplementedException(); public Task> GetCloudFormationStackEvents(string stackName) => throw new NotImplementedException(); public Task> ListElasticBeanstalkResourceTags(string resourceArn) => throw new NotImplementedException(); public Task> GetBeanstalkEnvironmentConfigurationSettings(string environmentId) => throw new NotImplementedException(); public Task GetCallerIdentity(string awsRegion) => throw new NotImplementedException(); public Task DescribeECRRepository(string respositoryName) => throw new NotImplementedException(); public Task> DescribeAppRunnerVpcConnectors() => throw new NotImplementedException(); public Task> DescribeSubnets(string vpcID = null) => throw new NotImplementedException(); public Task> DescribeSecurityGroups(string vpcID = null) => throw new NotImplementedException(); public Task GetParameterStoreTextValue(string parameterName) => throw new NotImplementedException(); public Task GetCloudControlApiResource(string type, string identifier) => throw new NotImplementedException(); public Task GetDefaultVpc() => throw new NotImplementedException(); } }