Skip to content

Commit dabd46c

Browse files
authored
Merge pull request #3781 from rlhagerm/rlhagerm-dotnetv3-support-poc
.NET Support MVP
2 parents 89d89a0 + b8bd906 commit dabd46c

15 files changed

+1385
-0
lines changed

.doc_gen/metadata/services.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,14 @@ sts:
489489
product_categories: {'Security, Identity, & Compliance'}
490490
version: sts-2011-06-15
491491
api_ref: STS/latest/APIReference/welcome.html
492+
support:
493+
long: '&SUPlong;'
494+
short: '⊃'
495+
sort: Support
496+
tags:
497+
product_categories: {'Customer Enablement Services'}
498+
version: support-2013-04-15
499+
api_ref: support/latest/APIReference/welcome.html
492500
textract:
493501
long: '&TEXTRACTlong;'
494502
short: '&TEXTRACT;'
+200
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,200 @@
1+
# zexi 0.4.0
2+
support_Hello:
3+
title: Hello ⊃
4+
title_abbrev: Hello ⊃
5+
synopsis: get started using ⊃.
6+
category: Hello
7+
languages:
8+
.NET:
9+
versions:
10+
- sdk_version: 3
11+
github: dotnetv3/Support
12+
sdkguide:
13+
excerpts:
14+
- description:
15+
snippet_tags:
16+
- Support.dotnetv3.HelloSupport
17+
services:
18+
support: {DescribeServices}
19+
support_AddAttachment:
20+
title: Add an ⊃ attachment to a set using an &AWS; SDK
21+
title_abbrev: Add an attachment to a set
22+
synopsis: add an ⊃ attachment to an attachment set.
23+
category:
24+
languages:
25+
.NET:
26+
versions:
27+
- sdk_version: 3
28+
github: dotnetv3/Support
29+
sdkguide:
30+
excerpts:
31+
- description:
32+
snippet_tags:
33+
- Support.dotnetv3.AddAttachmentToSet
34+
services:
35+
support: {AddAttachmentsToSet}
36+
support_AddCommunication:
37+
title: Add an ⊃ communication to a case using an &AWS; SDK
38+
title_abbrev: Add a communication to a case
39+
synopsis: add an ⊃ communication with an attachment to a support case.
40+
category:
41+
languages:
42+
.NET:
43+
versions:
44+
- sdk_version: 3
45+
github: dotnetv3/Support
46+
sdkguide:
47+
excerpts:
48+
- description:
49+
snippet_tags:
50+
- Support.dotnetv3.AddCommunicationToCase
51+
services:
52+
support: {AddCommunicationToCase}
53+
support_CreateCase:
54+
title: Create an ⊃ case using an &AWS; SDK
55+
title_abbrev: Create a case
56+
synopsis: create a new ⊃ case.
57+
category:
58+
languages:
59+
.NET:
60+
versions:
61+
- sdk_version: 3
62+
github: dotnetv3/Support
63+
sdkguide:
64+
excerpts:
65+
- description:
66+
snippet_tags:
67+
- Support.dotnetv3.CreateCase
68+
services:
69+
support: {CreateCase}
70+
support_DescribeAttachment:
71+
title: Describe an attachment for an ⊃ case using an &AWS; SDK
72+
title_abbrev: Describe an attachment
73+
synopsis: describe an attachment for an ⊃ case.
74+
category:
75+
languages:
76+
.NET:
77+
versions:
78+
- sdk_version: 3
79+
github: dotnetv3/Support
80+
sdkguide:
81+
excerpts:
82+
- description:
83+
snippet_tags:
84+
- Support.dotnetv3.DescribeAttachment
85+
services:
86+
support: {DescribeAttachment}
87+
support_DescribeCases:
88+
title: Describe ⊃ cases using an &AWS; SDK
89+
title_abbrev: Describe cases
90+
synopsis: describe ⊃ cases.
91+
category:
92+
languages:
93+
.NET:
94+
versions:
95+
- sdk_version: 3
96+
github: dotnetv3/Support
97+
sdkguide:
98+
excerpts:
99+
- description:
100+
snippet_tags:
101+
- Support.dotnetv3.DescribeCases
102+
services:
103+
support: {DescribeCases}
104+
support_DescribeCommunications:
105+
title: Describe ⊃ communications for a case using an &AWS; SDK
106+
title_abbrev: Describe communications
107+
synopsis: describe ⊃ communications for a case.
108+
category:
109+
languages:
110+
.NET:
111+
versions:
112+
- sdk_version: 3
113+
github: dotnetv3/Support
114+
sdkguide:
115+
excerpts:
116+
- description:
117+
snippet_tags:
118+
- Support.dotnetv3.DescribeCommunications
119+
services:
120+
support: {DescribeCommunications}
121+
support_DescribeServices:
122+
title: Describe the available &AWS; services for support cases using an &AWS; SDK
123+
title_abbrev: Describe services
124+
synopsis: describe the list of &AWS; services.
125+
category:
126+
languages:
127+
.NET:
128+
versions:
129+
- sdk_version: 3
130+
github: dotnetv3/Support
131+
sdkguide:
132+
excerpts:
133+
- description:
134+
snippet_tags:
135+
- Support.dotnetv3.DescribeServices
136+
services:
137+
support: {DescribeServices}
138+
support_DescribeSeverityLevels:
139+
title: Describe ⊃ severity levels using an &AWS; SDK
140+
title_abbrev: Describe severity levels
141+
synopsis: describe ⊃ severity levels.
142+
category:
143+
languages:
144+
.NET:
145+
versions:
146+
- sdk_version: 3
147+
github: dotnetv3/Support
148+
sdkguide:
149+
excerpts:
150+
- description:
151+
snippet_tags:
152+
- Support.dotnetv3.DescribeSeverityLevels
153+
services:
154+
support: {DescribeSeverityLevels}
155+
support_ResolveCase:
156+
title: Resolve an ⊃ case using an &AWS; SDK
157+
title_abbrev: Resolve case
158+
synopsis: resolve an ⊃ case.
159+
category:
160+
languages:
161+
.NET:
162+
versions:
163+
- sdk_version: 3
164+
github: dotnetv3/Support
165+
sdkguide:
166+
excerpts:
167+
- description:
168+
snippet_tags:
169+
- Support.dotnetv3.ResolveCase
170+
services:
171+
support: {ResolveCase}
172+
support_Scenario_GetStartedSupportCases:
173+
title: Get started with ⊃ cases using an &AWS; SDK
174+
title_abbrev: Get started with cases
175+
synopsis_list:
176+
- Get and display available services and severity levels for cases.
177+
- Create a support case using a selected service, category, and severity level.
178+
- Get and display a list of open cases for the current day.
179+
- Add an attachment set and a communication to the new case.
180+
- Describe the new attachment and communication for the case.
181+
- Resolve the case.
182+
- Get and display a list of resolved cases for the current day.
183+
category: Scenarios
184+
languages:
185+
.NET:
186+
versions:
187+
- sdk_version: 3
188+
github: dotnetv3/Support
189+
sdkguide:
190+
excerpts:
191+
- description: Run an interactive scenario at a command prompt.
192+
snippet_tags:
193+
- Support.dotnetv3.SupportBasics
194+
- description: Wrapper methods used by the scenario for ⊃ actions.
195+
snippet_tags:
196+
- Support.dotnetv3.SupportWrapper
197+
services:
198+
support: {AddAttachmentsToSet, AddCommunicationToCase, CreateCase, DescribeAttachment,
199+
DescribeCases, DescribeCommunications, DescribeServices, DescribeSeverityLevels,
200+
ResolveCase}

.github/workflows/super-linter.yml

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
branches: [ main ]
1212
pull_request:
1313
branches: [ main ]
14+
15+
# Lets you to run this workflow manually from the Actions tab
16+
workflow_dispatch:
17+
1418
jobs:
1519
run-lint:
1620
runs-on: ubuntu-latest
+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
namespace SupportActions;
5+
6+
// snippet-start:[Support.dotnetv3.HelloSupport]
7+
8+
using Amazon.AWSSupport;
9+
using Microsoft.Extensions.DependencyInjection;
10+
using Microsoft.Extensions.Hosting;
11+
12+
public static class HelloSupport
13+
{
14+
static async Task Main(string[] args)
15+
{
16+
// Use the AWS .NET Core Setup package to set up dependency injection for the AWS Support service.
17+
// Use your AWS profile name, or leave it blank to use the default profile.
18+
// You must have one of the following AWS Support plans: Business, Enterprise On-Ramp, or Enterprise. Otherwise, an exception will be thrown.
19+
using var host = Host.CreateDefaultBuilder(args)
20+
.ConfigureServices((_, services) =>
21+
services.AddAWSService<IAmazonAWSSupport>()
22+
).Build();
23+
24+
// Now the client is available for injection.
25+
var supportClient = host.Services.GetRequiredService<IAmazonAWSSupport>();
26+
27+
// You can use await and any of the async methods to get a response.
28+
var response = await supportClient.DescribeServicesAsync();
29+
Console.WriteLine($"\tHello AWS Support! There are {response.Services.Count} services available.");
30+
}
31+
}
32+
// snippet-end:[Support.dotnetv3.HelloSupport]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net6.0</TargetFramework>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<Nullable>enable</Nullable>
8+
</PropertyGroup>
9+
10+
<ItemGroup>
11+
<PackageReference Include="AWSSDK.AWSSupport" Version="3.7.0.217" />
12+
<PackageReference Include="AWSSDK.Extensions.NETCore.Setup" Version="3.7.2" />
13+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
14+
<PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.1" />
15+
</ItemGroup>
16+
17+
</Project>

0 commit comments

Comments
 (0)