Amazon AWS SDK Uživatelská příručka Strana 106

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 155
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 105
"Statement" : [
{
"Sid" : "ListDeploymentsStatement",
"Effect" : "Allow",
"Action" : "codedeploy:ListDeployments",
"Resource" : "*"
}
]
}
*/
var action = new ActionIdentifier("codedeploy:ListDeployments");
var actions = new List<ActionIdentifier>();
actions.Add(action);
var resource = new Resource("*");
var resources = new List<Resource>();
resources.Add(resource);
var statement = new Statement(Statement.StatementEffect.Allow)
{
Actions = actions,
Id = "ListDeploymentsStatement",
Resources = resources
};
var statements = new List<Statement>();
statements.Add(statement);
var policy = new Policy
{
Id = "ListDeploymentsPolicy",
Version = "2012-10-17",
Statements = statements
};
return policy.ToJson();
}
Add a Policy to a Group
The following example creates a new policy, adds the new policy to an existing group, and then displays
a list of the group's associated policies:
// using Amazon.IdentityManagement.Resources;
// using Amazon.IdentityManagement.Model;
var iam = new IdentityManagementService();
try
{
var group = iam.GetGroupByName("DemoGroup");
// GenerateGroupPolicyDocument() is a custom method.
string policyDoc = GenerateGroupPolicyDocument();
Version v2.0.0
102
AWS SDK for .NET Developer Guide
IAM Resource API Examples
Zobrazit stránku 105
1 2 ... 101 102 103 104 105 106 107 108 109 110 111 ... 154 155

Komentáře k této Příručce

Žádné komentáře

Powermate 024-0078CT manuály

Uživatelské manuály a uživatelské příručky pro Elektrické nářadí Powermate 024-0078CT.
Poskytujeme 1 manuály pdf Powermate 024-0078CT ke stažení zdarma podle typů dokumentů: Uživatelský manuál






Další produkty a příručky pro Elektrické nářadí Powermate

Modely Typ Dokumentu
P024-0140SP Uživatelský manuál     Powermate P024-0140SP User's Manual, 16 stránky
P024-0110SP Uživatelský manuál     Powermate P024-0110SP User's Manual, 16 stránky
024-0179CT Uživatelský manuál     Powermate 024-0179CT User's Manual, 20 stránky
P024-0139SP Uživatelský manuál     Powermate P024-0139SP User's Manual, 16 stránky
024-0082CT Uživatelský manuál     Powermate 024-0082CT User's Manual, 16 stránky
024-0092CT Uživatelský manuál     Powermate 024-0092CT User's Manual, 16 stránky
P024-0101SP Uživatelský manuál     Powermate P024-0101SP User's Manual, 16 stránky
009-0002CT Uživatelský manuál     Powermate 009-0002CT User's Manual, 16 stránky
024-0175CT Uživatelský manuál     Powermate 024-0175CT User's Manual, 16 stránky
P024-0112SP Uživatelský manuál     Powermate P024-0112SP User's Manual, 16 stránky
024-0079CT Uživatelský manuál     Powermate 024-0079CT User's Manual, 16 stránky
024-0089CT Uživatelský manuál     Powermate 024-0089CT User's Manual, 16 stránky
009-0367CT Návod k použití a péči     Powermate 009-0367CT Use and Care Manual, 16 stránky