Amazon AWS SDK Guia do Utilizador Página 46

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 155
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 45
Caution
The AWS Resource APIs for .NET are currently provided as a preview. This means that these
resource APIs may frequently change in response to customer feedback, and these changes
may happen without advance notice. Until these resource APIs exit the preview stage, please
be cautious about writing and distributing production-quality code that relies on them.
Using the AWS Resource APIs for .NET provide these benefits:
The resource APIs in the SDK for .NET are easier to understand conceptually than their low-level API
counterparts. The low-level APIs in the SDK for .NET typically consist of sets of matching
request-and-response objects that correspond to HTTP-based API calls focusing on somewhat isolated
AWS service constructs. In contrast, these resource APIs represent logical relationships among
resources within AWS services and intuitively use familiar .NET programming constructs.
Code that you write with the resource APIs is easier for you and others to comprehend when compared
to their low-level API equivalents. Instead of writing somewhat complex request-and-response style
code with the low-level APIs to access resources, you can get directly to resources with the resource
APIs. If you're working with a team of developers in the same code base, it's typically easier to
understand what has already been coded and to start contributing quickly to existing code.
You will typically write less code with the resource APIs than with equivalent low-level API code.
Request-and-response style code with the low-level APIs can sometimes be quite long. Equivalent
resource APIs code is typically much shorter, more compact, and easer to debug.
Here's a brief example of using C# and the AWS Resource APIs for .NET to create a new IAM user
account:
// using Amazon.IdentityManagement.Resources;
// using Amazon.IdentityManagement.Model;
var iam = new IdentityManagementService();
try
{
var user = iam.CreateUser("DemoUser");
Console.WriteLine("User Name = '{0}', ARN = '{1}'",
user.Name, user.Arn);
}
catch (EntityAlreadyExistsException)
{
Console.WriteLine("User 'DemoUser' already exists.");
}
Compare this to an equivalent example of using the low-level APIs:
// using Amazon.IdentityManagement;
// using Amazon.IdentityManagement.Model;
var client = new AmazonIdentityManagementServiceClient();
var request = new CreateUserRequest
{
UserName = "DemoUser"
};
try
{
Version v2.0.0
42
AWS SDK for .NET Developer Guide
AWS Resource APIs for .NET
Vista de página 45
1 2 ... 41 42 43 44 45 46 47 48 49 50 51 ... 154 155

Comentários a estes Manuais

Sem comentários

LG LW2412HR manuales

Manuales del propietario y guías del usuario para Accesorios de refrigeración de hardware LG LW2412HR.
Ofrecemos 1 manuales en pdf LG LW2412HR para descargar gratis por tipos de documentos: Hoja de especificaciones


Tabla de contenidos





Más productos y manuales para Accesorios de refrigeración de hardware LG

Modelos Tipo de documento
LW2511ER Hoja de especificaciones   LG LW2511ER Specification Sheet, 2 paginas
LW1814ER Hoja de especificaciones   LG LW1814ER Specification Sheet, 2 paginas
LP1414SHR Manual   LG LP1414SHR Product manual, 2 paginas
LW1013ER Hoja de especificaciones   LG LW1013ER Specification Sheet, 2 paginas
LW1812ER Hoja de especificaciones   LG LW1812ER Specification Sheet, 2 paginas
LW1210HR Hoja de especificaciones   LG LW1210HR Specification Sheet, 2 paginas
LW1213HR Hoja de especificaciones   LG LW1213HR Specification Sheet, 2 paginas
LW1011CR Hoja de especificaciones   LG LW1011CR Specification Sheet, 2 paginas
LT1034HNR Especificaciones   LG LT1034HNR Specifications, 2 paginas
LW2512ER Guia Energética   LG LW2512ER Energy Guide, 2 paginas
LW1512ER Hoja de especificaciones   LG LW1512ER Specification Sheet, 2 paginas
LT0814CNR Especificaciones   LG LT0814CNR Specifications, 2 paginas
LW1810HR Hoja de especificaciones   LG LW1810HR Specification Sheet, 2 paginas
LW1012CR Hoja de especificaciones   LG LW1012CR Specification Sheet, 2 paginas
LW2414HR Hoja de especificaciones   LG LW2414HR Specification Sheet, 2 paginas
LW1514ER Hoja de especificaciones   LG LW1514ER Specification Sheet, 2 paginas
LW1813ER Hoja de especificaciones   LG LW1813ER Specification Sheet, 2 paginas
LW2513ER Hoja de especificaciones   LG LW2513ER Specification Sheet, 2 paginas
LW5013 Hoja de especificaciones   LG LW5013 Specification Sheet, 2 paginas
ESA-PUAC10 Ficha de datos   LG ESA-FAN50 hardware cooling accessory, 2 paginas